box size in lyx 2.0.2 (and 2.0.3)

2012-04-10 Thread Ramon Flores
Hi:

I have recently updated from lyx 1.6.4 to lyx 2.0.2. In the new version I can 
not change the box size.

In the old version it was possible to right-click on the box, and a convenient 
menu to change the box settings was readily at hand. 
Now it looks like necessary to go to the menu bar to select Edit-Box Settings
A bit less convenient for me, but nothing really annoying.

The real problem is that I can not change the size of the boxes. In the box 
menu it looks like possible to modify the Width, but after changing it and 
clicking OK or Apply, nothing change.

Old documents, created with lyx 1.6.4, that have boxes of different sizes, are 
rendered without problems. But all I can created now are boxes with 100 
column width% size.

I have compiled and installed the last version of lyx, 2.0.3. And I have the 
same problem with the box sizes.

Is me, or is this a general problem that merits a bug entry?
Is there any workaround?


I have the problem in two computers: one with Mandriva 2010 and the other with 
Mandriva 2012.

Ramon







Re: Possible Bug in Export to HTML

2012-04-10 Thread Richard Heck

On 04/10/2012 04:13 AM, Peter Contor wrote:

On 09/04/2012, Richard Heckrgh...@comcast.net  wrote:

On 04/09/2012 01:07 AM, Peter Contor wrote:

On 09/04/2012, Richard Heckrgh...@comcast.net   wrote:

On 04/08/2012 06:57 PM, Peter Contor wrote:

Hi all. This is my first posting to this mailing list, so apologies if
I'm doing something wrong.

My system:

Windows Vista Home Premium Version 6.0.6002 Service Pack 2 Build 6002
LyX 2.0.3
MIKTeX 2.8

Description of alleged bug:

I open a new file in LyX, open a display style formula box (with
Ctrl-Shift-m), type in an M, save the file and export it to HTML (with
FileExportHTML). The PNG file containing the image of the M has
it unrecognizably blurred.

If put to M's in the display box (MM) and repeat the export, the PNG
file is considerably less garbled. Even less so with three M's. From
about 6 M's onwards, the image is clear.

I used M's to fix ideas: the same happens with any single character.
If I export to LaTeX and use TeX4ht (htlatex) to convert to HTML,
nothing of the above happens on my system.


Is tex4ht being used by LyX here? or what?

Richard



My understanding is that it's not; i.e., thay LyX uses it's own
scripts/whatever to export to HTML. It is I who used TeX4ht to see if
it would act differently than LyX. It did.


If you want to export using LyX's internal export, then you have to
export to the LyXHTML format. If you export to HTML, then what you get
depends upon how your converters are configured and could be lots of things.

I doubt you are using LyXHTML here, because we produce PNGs only under
the most difficult conditions (unless it is explicitly requested).

Richard



No Richard, I wasn't using LyXHTML. Just the 'plain' HTML export
option. Just tried LyXHTML. What happens here is that the export
contains NO pictures whatsoever: it uses only text with unicode
characters. For example, if I try exporting the displayed formula
\int\frac{dx}{\sqrt{1-x^2}}, all I get in the exported HTML file is
∫ dx 1- x 2.



I think what you're getting is MathML, since that is what we export by 
default. This can be controlled a bit under Document Settings Output. 
If you want PNGs, we can give you that instead.


So the question remains: What is LyX using to do the export when you 
export the HTML format? You can find out either (a) by looking to see 
what converters are defined under Tools Preferences, or else (b) by 
running LyX from a terminal and seeing what goes by.


Richard

PS Remember to cc the list in case someone else has ideas.



Re: Possible Bug in Export to HTML

2012-04-10 Thread Peter Contor
On 10/04/2012, Richard Heck rgh...@comcast.net wrote:
 On 04/10/2012 04:13 AM, Peter Contor wrote:
 On 09/04/2012, Richard Heckrgh...@comcast.net  wrote:
 On 04/09/2012 01:07 AM, Peter Contor wrote:
 On 09/04/2012, Richard Heckrgh...@comcast.net   wrote:
 On 04/08/2012 06:57 PM, Peter Contor wrote:
 Hi all. This is my first posting to this mailing list, so apologies if
 I'm doing something wrong.

 My system:

 Windows Vista Home Premium Version 6.0.6002 Service Pack 2 Build 6002
 LyX 2.0.3
 MIKTeX 2.8

 Description of alleged bug:

 I open a new file in LyX, open a display style formula box (with
 Ctrl-Shift-m), type in an M, save the file and export it to HTML (with
 FileExportHTML). The PNG file containing the image of the M
 has
 it unrecognizably blurred.

 If put to M's in the display box (MM) and repeat the export, the PNG
 file is considerably less garbled. Even less so with three M's. From
 about 6 M's onwards, the image is clear.

 I used M's to fix ideas: the same happens with any single character.
 If I export to LaTeX and use TeX4ht (htlatex) to convert to HTML,
 nothing of the above happens on my system.

 Is tex4ht being used by LyX here? or what?

 Richard


 My understanding is that it's not; i.e., thay LyX uses it's own
 scripts/whatever to export to HTML. It is I who used TeX4ht to see if
 it would act differently than LyX. It did.

 If you want to export using LyX's internal export, then you have to
 export to the LyXHTML format. If you export to HTML, then what you get
 depends upon how your converters are configured and could be lots of
 things.

 I doubt you are using LyXHTML here, because we produce PNGs only under
 the most difficult conditions (unless it is explicitly requested).

 Richard


 No Richard, I wasn't using LyXHTML. Just the 'plain' HTML export
 option. Just tried LyXHTML. What happens here is that the export
 contains NO pictures whatsoever: it uses only text with unicode
 characters. For example, if I try exporting the displayed formula
 \int\frac{dx}{\sqrt{1-x^2}}, all I get in the exported HTML file is
 ∫ dx 1- x 2.


 I think what you're getting is MathML, since that is what we export by
 default. This can be controlled a bit under Document Settings Output.
 If you want PNGs, we can give you that instead.

 So the question remains: What is LyX using to do the export when you
 export the HTML format? You can find out either (a) by looking to see
 what converters are defined under Tools Preferences, or else (b) by
 running LyX from a terminal and seeing what goes by.

 Richard

 PS Remember to cc the list in case someone else has ideas.



I will check these, not least because I'm using LyX more and more
lately and getting interested in how it works. It does make sense to
me that the trouble is to do with the converters. As it happens, I
also have Debian (in VirtualBox), so a bit earlier I installed LyX in
it. First thing to say is that it looks MUCH better in there, second
is that the HTML export work perfectly 'out of the box'. So it's to do
with my Windows system. Not surprised (especially with Vista...)


How to minimize hyphenation?

2012-04-10 Thread Steve Litt
Hi all,

I've always preferred legible over pretty, and my opinion is that most
time hyphenation's decrease in legibility and readability isn't worth
its aesthetic contribution. I was just going to turn off hyphenation
(however one would do that). But a friend reminded me that if I
failed to hyphenate a word like antidisestablishmentarianism, it would
do hideous things to the paragraph.

So now I'd like to tell LyX not to hyphenate unless it's really,
really, really, REALLY needed. I figure maybe there's some rubber-band
value somewhere, and I can set it higher or lower or whatever.

Anyone know of such a thing?

Thanks

SteveT


Re: How to minimize hyphenation?

2012-04-10 Thread Richard Heck

On 04/10/2012 02:38 PM, Steve Litt wrote:

Hi all,

I've always preferred legible over pretty, and my opinion is that most
time hyphenation's decrease in legibility and readability isn't worth
its aesthetic contribution. I was just going to turn off hyphenation
(however one would do that). But a friend reminded me that if I
failed to hyphenate a word like antidisestablishmentarianism, it would
do hideous things to the paragraph.

So now I'd like to tell LyX not to hyphenate unless it's really,
really, really, REALLY needed. I figure maybe there's some rubber-band
value somewhere, and I can set it higher or lower or whatever.

Anyone know of such a thing?


I'll make a slightly different suggestion:
\usepackage{microtype}
In my experience, this reduces hyphenation by 80% or so.

Otherwise, read this:
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=overfull

Richard



Re: How to minimize hyphenation?

2012-04-10 Thread Richard Heck

On 04/10/2012 02:47 PM, Richard Heck wrote:

On 04/10/2012 02:38 PM, Steve Litt wrote:

Hi all,

I've always preferred legible over pretty, and my opinion is that most
time hyphenation's decrease in legibility and readability isn't worth
its aesthetic contribution. I was just going to turn off hyphenation
(however one would do that). But a friend reminded me that if I
failed to hyphenate a word like antidisestablishmentarianism, it would
do hideous things to the paragraph.

So now I'd like to tell LyX not to hyphenate unless it's really,
really, really, REALLY needed. I figure maybe there's some rubber-band
value somewhere, and I can set it higher or lower or whatever.

Anyone know of such a thing?


I'll make a slightly different suggestion:
\usepackage{microtype}
In my experience, this reduces hyphenation by 80% or so.

Otherwise, read this:
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=overfull


Oh, and you can also try things like:
 \hyphenpenalty=200
The default is 50; infinity, as usual, is 1.

Richard



Re: char-right via LyX server and math insets

2012-04-10 Thread Pavel Sanda
Allen Barker wrote:
 Create a new file with some random text and a math
 inset with some random math in it.  Position the
 cursor somewhere before the math inset.

 Using the right-arrow key the cursor can be moved
 into and then past the math inset.

 Using char-right repeatedly from the command
 minibuffer the cursor can similarly be moved into
 and past the math inset.

 Using the char-right command via the LyX server with
echo 'LYXCMD:clientname:char-right:' ~/.lyx/lyxpipe.in
 however, the cursor always stops at the left side
 of the math inset.  It works fine on ordinary text, but
 it cannot enter the math inset.  When the command is
 run with the cursor already inside the math inset the
 cursor-point just pops out to the left of the math inset.
 The char-forward LFUN has the same behavior.  It makes
 no difference if display mode for math is on or off.

 I have an application where I'd like to be able to use
 the LyX server to move the cursor inside a math inset
 if one is there.  Any ideas what is happening and how to
 work around it?

It seems to be LyX bug, feel free to add bug into Trac. Pavel


Re: How to minimize hyphenation?

2012-04-10 Thread stefano franchi
On Tue, Apr 10, 2012 at 1:52 PM, Richard Heck rgh...@comcast.net wrote:

 On 04/10/2012 02:47 PM, Richard Heck wrote:

 On 04/10/2012 02:38 PM, Steve Litt wrote:

 Hi all,

 I've always preferred legible over pretty, and my opinion is that most
 time hyphenation's decrease in legibility and readability isn't worth
 its aesthetic contribution. I was just going to turn off hyphenation
 (however one would do that). But a friend reminded me that if I
 failed to hyphenate a word like antidisestablishmentarianism, it would
 do hideous things to the paragraph.

 So now I'd like to tell LyX not to hyphenate unless it's really,
 really, really, REALLY needed. I figure maybe there's some rubber-band
 value somewhere, and I can set it higher or lower or whatever.

 Anyone know of such a thing?

  I'll make a slightly different suggestion:
\usepackage{microtype}
 In my experience, this reduces hyphenation by 80% or so.



I second Richard's point. The microtype package makes a huge difference,
especially if you tweak the parameters a bit (like font expansion). Notice
that, as far as I know, it requires pdflatex or luatex (xetex has partial
support only, I think). The manual is excellent, BTW.

Cheers,

S.



-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic StudiesPh:   +1 (979) 845-2125
Texas AM University  Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu
http://stefano.cleinias.org


Re: circular letter

2012-04-10 Thread Dr Eberhard Lisse
I do stuff like this with LaTeX directly, though I do design the files
in LyX and then pull them into Perl :-)-O

There there is also a LaTeX package to pull in CSV files, but forgot
what its name is :-)-O

el

On 2012-04-05 21:20 , John O'Gorman wrote:
 :
 On 04/04/2012 02:25 AM, Jörg Kühne wrote:
 Dear List

 Is it possible to write (with Lyx) a circular letter with an
 arbitrary letter pattern?
 I have written perl programs which allow mail merge in insurance
 companies for things such as renewal notices, price quotation, etc.
 The main idea is that the user creates a normal LyX letter template
 (using the article class - we found the letter classes were not suited
 to NZ conventions). Where details particular to a client were to be
 inserted, you put perl expressions e.g. ${title}  ${firstname}
 ${lastname} etc.
 
 A database program runs an SQL query and, for each row returned, builds
 list of perl assignments
 e.g.
 ${firstname}=John;
 ${lastname}=Smith;
 ...
 and writes these to a file with a .rec suffix
 Then the lyxmerge program loops through the .rec file, effectively
 assigning the database values for each client then reads the template
 and writes to an output file. Works beautifully giving the usual superb
 typesetting.
 
 Perl is most suitable for this because of its weird notion of using
 distinctive  syntax for variables. More pleasant languages like Python
 do not.
 
 When I wrote this many years ago, I also took the trouble to create
 scripts to insert tables of data  into the template. This involved using
 some supplied perl library scripts which came with LyX.
 The LyX developers now use python for this sort of thing and I haven't
 kept my scripts up to date with current LyX versions.
 
 If you want more detail, I'll happily pass on the scripts to those who
 want them.
 
 John O'Gorman
 
 
 
 
 
 




Is it possible to track changes without seeing the tracked changes?

2012-04-10 Thread Bert Lloyd
Hi,

I would like to track changes as I make edits to a collaborative
document, but all the crossing out and red and blue text drives me
crazy when I am typing. (It's great for reading edits and for
accepting / rejecting them.)

Is it possible to track changes but not actually have the tracking be
apparent in the document while I am working?

Thanks,

BL


numbering multi-line formulas

2012-04-10 Thread s nedunuri
Hello, I wonder if anyone can help me with how to number multi-line 
formulas, as the Help manual appears to be out of date (it refers to 
menu options that no longer exist). I am running Lyx 2.0.2. I have a 
multi-line formula that I created via the Insert Matrix command. I 
would like to number each line in the formula. However, when I try this: 
Edit | Math |  there are two choices: Number Whole Formula or Number 
This Line. However, they seem to be the same thing. Turning one one 
automatically enables the other, as does turning either one off. The 
result is that either there is no numbering at all or one number for the 
entire array, which is not what I want. Anyone have any ideas?


thanks



Re: numbering multi-line formulas

2012-04-10 Thread David L. Johnson

On 04/11/2012 12:12 AM, s nedunuri wrote:
Hello, I wonder if anyone can help me with how to number multi-line 
formulas, as the Help manual appears to be out of date (it refers to 
menu options that no longer exist). I am running Lyx 2.0.2. I have a 
multi-line formula that I created via the Insert Matrix command. I 
would like to number each line in the formula. However, when I try 
this: Edit | Math |  there are two choices: Number Whole Formula or 
Number This Line. However, they seem to be the same thing.


The problem is that a matrix does not really give you a multi-line 
formula, it is a one-line formula including a matrix.  To get a 
multiline formula, use one of the aligned environments.  I prefer the 
eqnarray environment.  Then you can number each line of the multi-line 
environment.  I will attach a simply LyX file showing first an eqnarray 
environment, then a matrix environment, both numbered, but the matrix 
only allows numbering of the whole thing.


--

David L. Johnson

Anyone who is capable of getting themselves made President should on
no account be allowed to do the job.
-- Douglas Adams



numbering.lyx
Description: application/lyx


box size in lyx 2.0.2 (and 2.0.3)

2012-04-10 Thread Ramon Flores
Hi:

I have recently updated from lyx 1.6.4 to lyx 2.0.2. In the new version I can 
not change the box size.

In the old version it was possible to right-click on the box, and a convenient 
menu to change the box settings was readily at hand. 
Now it looks like necessary to go to the menu bar to select Edit-Box Settings
A bit less convenient for me, but nothing really annoying.

The real problem is that I can not change the size of the boxes. In the box 
menu it looks like possible to modify the Width, but after changing it and 
clicking OK or Apply, nothing change.

Old documents, created with lyx 1.6.4, that have boxes of different sizes, are 
rendered without problems. But all I can created now are boxes with 100 
column width% size.

I have compiled and installed the last version of lyx, 2.0.3. And I have the 
same problem with the box sizes.

Is me, or is this a general problem that merits a bug entry?
Is there any workaround?


I have the problem in two computers: one with Mandriva 2010 and the other with 
Mandriva 2012.

Ramon







Re: Possible Bug in Export to HTML

2012-04-10 Thread Richard Heck

On 04/10/2012 04:13 AM, Peter Contor wrote:

On 09/04/2012, Richard Heckrgh...@comcast.net  wrote:

On 04/09/2012 01:07 AM, Peter Contor wrote:

On 09/04/2012, Richard Heckrgh...@comcast.net   wrote:

On 04/08/2012 06:57 PM, Peter Contor wrote:

Hi all. This is my first posting to this mailing list, so apologies if
I'm doing something wrong.

My system:

Windows Vista Home Premium Version 6.0.6002 Service Pack 2 Build 6002
LyX 2.0.3
MIKTeX 2.8

Description of alleged bug:

I open a new file in LyX, open a display style formula box (with
Ctrl-Shift-m), type in an M, save the file and export it to HTML (with
FileExportHTML). The PNG file containing the image of the M has
it unrecognizably blurred.

If put to M's in the display box (MM) and repeat the export, the PNG
file is considerably less garbled. Even less so with three M's. From
about 6 M's onwards, the image is clear.

I used M's to fix ideas: the same happens with any single character.
If I export to LaTeX and use TeX4ht (htlatex) to convert to HTML,
nothing of the above happens on my system.


Is tex4ht being used by LyX here? or what?

Richard



My understanding is that it's not; i.e., thay LyX uses it's own
scripts/whatever to export to HTML. It is I who used TeX4ht to see if
it would act differently than LyX. It did.


If you want to export using LyX's internal export, then you have to
export to the LyXHTML format. If you export to HTML, then what you get
depends upon how your converters are configured and could be lots of things.

I doubt you are using LyXHTML here, because we produce PNGs only under
the most difficult conditions (unless it is explicitly requested).

Richard



No Richard, I wasn't using LyXHTML. Just the 'plain' HTML export
option. Just tried LyXHTML. What happens here is that the export
contains NO pictures whatsoever: it uses only text with unicode
characters. For example, if I try exporting the displayed formula
\int\frac{dx}{\sqrt{1-x^2}}, all I get in the exported HTML file is
∫ dx 1- x 2.



I think what you're getting is MathML, since that is what we export by 
default. This can be controlled a bit under Document Settings Output. 
If you want PNGs, we can give you that instead.


So the question remains: What is LyX using to do the export when you 
export the HTML format? You can find out either (a) by looking to see 
what converters are defined under Tools Preferences, or else (b) by 
running LyX from a terminal and seeing what goes by.


Richard

PS Remember to cc the list in case someone else has ideas.



Re: Possible Bug in Export to HTML

2012-04-10 Thread Peter Contor
On 10/04/2012, Richard Heck rgh...@comcast.net wrote:
 On 04/10/2012 04:13 AM, Peter Contor wrote:
 On 09/04/2012, Richard Heckrgh...@comcast.net  wrote:
 On 04/09/2012 01:07 AM, Peter Contor wrote:
 On 09/04/2012, Richard Heckrgh...@comcast.net   wrote:
 On 04/08/2012 06:57 PM, Peter Contor wrote:
 Hi all. This is my first posting to this mailing list, so apologies if
 I'm doing something wrong.

 My system:

 Windows Vista Home Premium Version 6.0.6002 Service Pack 2 Build 6002
 LyX 2.0.3
 MIKTeX 2.8

 Description of alleged bug:

 I open a new file in LyX, open a display style formula box (with
 Ctrl-Shift-m), type in an M, save the file and export it to HTML (with
 FileExportHTML). The PNG file containing the image of the M
 has
 it unrecognizably blurred.

 If put to M's in the display box (MM) and repeat the export, the PNG
 file is considerably less garbled. Even less so with three M's. From
 about 6 M's onwards, the image is clear.

 I used M's to fix ideas: the same happens with any single character.
 If I export to LaTeX and use TeX4ht (htlatex) to convert to HTML,
 nothing of the above happens on my system.

 Is tex4ht being used by LyX here? or what?

 Richard


 My understanding is that it's not; i.e., thay LyX uses it's own
 scripts/whatever to export to HTML. It is I who used TeX4ht to see if
 it would act differently than LyX. It did.

 If you want to export using LyX's internal export, then you have to
 export to the LyXHTML format. If you export to HTML, then what you get
 depends upon how your converters are configured and could be lots of
 things.

 I doubt you are using LyXHTML here, because we produce PNGs only under
 the most difficult conditions (unless it is explicitly requested).

 Richard


 No Richard, I wasn't using LyXHTML. Just the 'plain' HTML export
 option. Just tried LyXHTML. What happens here is that the export
 contains NO pictures whatsoever: it uses only text with unicode
 characters. For example, if I try exporting the displayed formula
 \int\frac{dx}{\sqrt{1-x^2}}, all I get in the exported HTML file is
 ∫ dx 1- x 2.


 I think what you're getting is MathML, since that is what we export by
 default. This can be controlled a bit under Document Settings Output.
 If you want PNGs, we can give you that instead.

 So the question remains: What is LyX using to do the export when you
 export the HTML format? You can find out either (a) by looking to see
 what converters are defined under Tools Preferences, or else (b) by
 running LyX from a terminal and seeing what goes by.

 Richard

 PS Remember to cc the list in case someone else has ideas.



I will check these, not least because I'm using LyX more and more
lately and getting interested in how it works. It does make sense to
me that the trouble is to do with the converters. As it happens, I
also have Debian (in VirtualBox), so a bit earlier I installed LyX in
it. First thing to say is that it looks MUCH better in there, second
is that the HTML export work perfectly 'out of the box'. So it's to do
with my Windows system. Not surprised (especially with Vista...)


How to minimize hyphenation?

2012-04-10 Thread Steve Litt
Hi all,

I've always preferred legible over pretty, and my opinion is that most
time hyphenation's decrease in legibility and readability isn't worth
its aesthetic contribution. I was just going to turn off hyphenation
(however one would do that). But a friend reminded me that if I
failed to hyphenate a word like antidisestablishmentarianism, it would
do hideous things to the paragraph.

So now I'd like to tell LyX not to hyphenate unless it's really,
really, really, REALLY needed. I figure maybe there's some rubber-band
value somewhere, and I can set it higher or lower or whatever.

Anyone know of such a thing?

Thanks

SteveT


Re: How to minimize hyphenation?

2012-04-10 Thread Richard Heck

On 04/10/2012 02:38 PM, Steve Litt wrote:

Hi all,

I've always preferred legible over pretty, and my opinion is that most
time hyphenation's decrease in legibility and readability isn't worth
its aesthetic contribution. I was just going to turn off hyphenation
(however one would do that). But a friend reminded me that if I
failed to hyphenate a word like antidisestablishmentarianism, it would
do hideous things to the paragraph.

So now I'd like to tell LyX not to hyphenate unless it's really,
really, really, REALLY needed. I figure maybe there's some rubber-band
value somewhere, and I can set it higher or lower or whatever.

Anyone know of such a thing?


I'll make a slightly different suggestion:
\usepackage{microtype}
In my experience, this reduces hyphenation by 80% or so.

Otherwise, read this:
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=overfull

Richard



Re: How to minimize hyphenation?

2012-04-10 Thread Richard Heck

On 04/10/2012 02:47 PM, Richard Heck wrote:

On 04/10/2012 02:38 PM, Steve Litt wrote:

Hi all,

I've always preferred legible over pretty, and my opinion is that most
time hyphenation's decrease in legibility and readability isn't worth
its aesthetic contribution. I was just going to turn off hyphenation
(however one would do that). But a friend reminded me that if I
failed to hyphenate a word like antidisestablishmentarianism, it would
do hideous things to the paragraph.

So now I'd like to tell LyX not to hyphenate unless it's really,
really, really, REALLY needed. I figure maybe there's some rubber-band
value somewhere, and I can set it higher or lower or whatever.

Anyone know of such a thing?


I'll make a slightly different suggestion:
\usepackage{microtype}
In my experience, this reduces hyphenation by 80% or so.

Otherwise, read this:
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=overfull


Oh, and you can also try things like:
 \hyphenpenalty=200
The default is 50; infinity, as usual, is 1.

Richard



Re: char-right via LyX server and math insets

2012-04-10 Thread Pavel Sanda
Allen Barker wrote:
 Create a new file with some random text and a math
 inset with some random math in it.  Position the
 cursor somewhere before the math inset.

 Using the right-arrow key the cursor can be moved
 into and then past the math inset.

 Using char-right repeatedly from the command
 minibuffer the cursor can similarly be moved into
 and past the math inset.

 Using the char-right command via the LyX server with
echo 'LYXCMD:clientname:char-right:' ~/.lyx/lyxpipe.in
 however, the cursor always stops at the left side
 of the math inset.  It works fine on ordinary text, but
 it cannot enter the math inset.  When the command is
 run with the cursor already inside the math inset the
 cursor-point just pops out to the left of the math inset.
 The char-forward LFUN has the same behavior.  It makes
 no difference if display mode for math is on or off.

 I have an application where I'd like to be able to use
 the LyX server to move the cursor inside a math inset
 if one is there.  Any ideas what is happening and how to
 work around it?

It seems to be LyX bug, feel free to add bug into Trac. Pavel


Re: How to minimize hyphenation?

2012-04-10 Thread stefano franchi
On Tue, Apr 10, 2012 at 1:52 PM, Richard Heck rgh...@comcast.net wrote:

 On 04/10/2012 02:47 PM, Richard Heck wrote:

 On 04/10/2012 02:38 PM, Steve Litt wrote:

 Hi all,

 I've always preferred legible over pretty, and my opinion is that most
 time hyphenation's decrease in legibility and readability isn't worth
 its aesthetic contribution. I was just going to turn off hyphenation
 (however one would do that). But a friend reminded me that if I
 failed to hyphenate a word like antidisestablishmentarianism, it would
 do hideous things to the paragraph.

 So now I'd like to tell LyX not to hyphenate unless it's really,
 really, really, REALLY needed. I figure maybe there's some rubber-band
 value somewhere, and I can set it higher or lower or whatever.

 Anyone know of such a thing?

  I'll make a slightly different suggestion:
\usepackage{microtype}
 In my experience, this reduces hyphenation by 80% or so.



I second Richard's point. The microtype package makes a huge difference,
especially if you tweak the parameters a bit (like font expansion). Notice
that, as far as I know, it requires pdflatex or luatex (xetex has partial
support only, I think). The manual is excellent, BTW.

Cheers,

S.



-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic StudiesPh:   +1 (979) 845-2125
Texas AM University  Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu
http://stefano.cleinias.org


Re: circular letter

2012-04-10 Thread Dr Eberhard Lisse
I do stuff like this with LaTeX directly, though I do design the files
in LyX and then pull them into Perl :-)-O

There there is also a LaTeX package to pull in CSV files, but forgot
what its name is :-)-O

el

On 2012-04-05 21:20 , John O'Gorman wrote:
 :
 On 04/04/2012 02:25 AM, Jörg Kühne wrote:
 Dear List

 Is it possible to write (with Lyx) a circular letter with an
 arbitrary letter pattern?
 I have written perl programs which allow mail merge in insurance
 companies for things such as renewal notices, price quotation, etc.
 The main idea is that the user creates a normal LyX letter template
 (using the article class - we found the letter classes were not suited
 to NZ conventions). Where details particular to a client were to be
 inserted, you put perl expressions e.g. ${title}  ${firstname}
 ${lastname} etc.
 
 A database program runs an SQL query and, for each row returned, builds
 list of perl assignments
 e.g.
 ${firstname}=John;
 ${lastname}=Smith;
 ...
 and writes these to a file with a .rec suffix
 Then the lyxmerge program loops through the .rec file, effectively
 assigning the database values for each client then reads the template
 and writes to an output file. Works beautifully giving the usual superb
 typesetting.
 
 Perl is most suitable for this because of its weird notion of using
 distinctive  syntax for variables. More pleasant languages like Python
 do not.
 
 When I wrote this many years ago, I also took the trouble to create
 scripts to insert tables of data  into the template. This involved using
 some supplied perl library scripts which came with LyX.
 The LyX developers now use python for this sort of thing and I haven't
 kept my scripts up to date with current LyX versions.
 
 If you want more detail, I'll happily pass on the scripts to those who
 want them.
 
 John O'Gorman
 
 
 
 
 
 




Is it possible to track changes without seeing the tracked changes?

2012-04-10 Thread Bert Lloyd
Hi,

I would like to track changes as I make edits to a collaborative
document, but all the crossing out and red and blue text drives me
crazy when I am typing. (It's great for reading edits and for
accepting / rejecting them.)

Is it possible to track changes but not actually have the tracking be
apparent in the document while I am working?

Thanks,

BL


numbering multi-line formulas

2012-04-10 Thread s nedunuri
Hello, I wonder if anyone can help me with how to number multi-line 
formulas, as the Help manual appears to be out of date (it refers to 
menu options that no longer exist). I am running Lyx 2.0.2. I have a 
multi-line formula that I created via the Insert Matrix command. I 
would like to number each line in the formula. However, when I try this: 
Edit | Math |  there are two choices: Number Whole Formula or Number 
This Line. However, they seem to be the same thing. Turning one one 
automatically enables the other, as does turning either one off. The 
result is that either there is no numbering at all or one number for the 
entire array, which is not what I want. Anyone have any ideas?


thanks



Re: numbering multi-line formulas

2012-04-10 Thread David L. Johnson

On 04/11/2012 12:12 AM, s nedunuri wrote:
Hello, I wonder if anyone can help me with how to number multi-line 
formulas, as the Help manual appears to be out of date (it refers to 
menu options that no longer exist). I am running Lyx 2.0.2. I have a 
multi-line formula that I created via the Insert Matrix command. I 
would like to number each line in the formula. However, when I try 
this: Edit | Math |  there are two choices: Number Whole Formula or 
Number This Line. However, they seem to be the same thing.


The problem is that a matrix does not really give you a multi-line 
formula, it is a one-line formula including a matrix.  To get a 
multiline formula, use one of the aligned environments.  I prefer the 
eqnarray environment.  Then you can number each line of the multi-line 
environment.  I will attach a simply LyX file showing first an eqnarray 
environment, then a matrix environment, both numbered, but the matrix 
only allows numbering of the whole thing.


--

David L. Johnson

Anyone who is capable of getting themselves made President should on
no account be allowed to do the job.
-- Douglas Adams



numbering.lyx
Description: application/lyx


box size in lyx 2.0.2 (and 2.0.3)

2012-04-10 Thread Ramon Flores
Hi:

I have recently updated from lyx 1.6.4 to lyx 2.0.2. In the new version I can 
not change the box size.

In the old version it was possible to right-click on the box, and a convenient 
menu to change the box settings was readily at hand. 
Now it looks like necessary to go to the menu bar to select Edit->Box Settings
A bit less convenient for me, but nothing really annoying.

The real problem is that I can not change the size of the boxes. In the box 
menu it looks like possible to modify the "Width", but after changing it and 
clicking "OK" or "Apply", nothing change.

Old documents, created with lyx 1.6.4, that have boxes of different sizes, are 
rendered without problems. But all I can created now are boxes with "100 
column width%" size.

I have compiled and installed the last version of lyx, 2.0.3. And I have the 
same problem with the box sizes.

Is me, or is this a general problem that merits a bug entry?
Is there any workaround?


I have the problem in two computers: one with Mandriva 2010 and the other with 
Mandriva 2012.

Ramon







Re: Possible Bug in Export to HTML

2012-04-10 Thread Richard Heck

On 04/10/2012 04:13 AM, Peter Contor wrote:

On 09/04/2012, Richard Heck  wrote:

On 04/09/2012 01:07 AM, Peter Contor wrote:

On 09/04/2012, Richard Heck   wrote:

On 04/08/2012 06:57 PM, Peter Contor wrote:

Hi all. This is my first posting to this mailing list, so apologies if
I'm doing something wrong.

My system:

Windows Vista Home Premium Version 6.0.6002 Service Pack 2 Build 6002
LyX 2.0.3
MIKTeX 2.8

Description of alleged bug:

I open a new file in LyX, open a display style formula box (with
Ctrl-Shift-m), type in an M, save the file and export it to HTML (with
File>Export>HTML). The PNG file containing the image of the M has
it unrecognizably blurred.

If put to M's in the display box (MM) and repeat the export, the PNG
file is considerably less garbled. Even less so with three M's. From
about 6 M's onwards, the image is clear.

I used M's to fix ideas: the same happens with any single character.
If I export to LaTeX and use TeX4ht (htlatex) to convert to HTML,
nothing of the above happens on my system.


Is tex4ht being used by LyX here? or what?

Richard



My understanding is that it's not; i.e., thay LyX uses it's own
scripts/whatever to export to HTML. It is I who used TeX4ht to see if
it would act differently than LyX. It did.


If you want to export using LyX's internal export, then you have to
export to the LyXHTML format. If you export to "HTML", then what you get
depends upon how your converters are configured and could be lots of things.

I doubt you are using LyXHTML here, because we produce PNGs only under
the most difficult conditions (unless it is explicitly requested).

Richard



No Richard, I wasn't using LyXHTML. Just the 'plain' HTML export
option. Just tried LyXHTML. What happens here is that the export
contains NO pictures whatsoever: it uses only text with unicode
characters. For example, if I try exporting the displayed formula
\int\frac{dx}{\sqrt{1-x^2}}, all I get in the exported HTML file is
∫ dx 1- x 2.



I think what you're getting is MathML, since that is what we export by 
default. This can be controlled a bit under Document> Settings> Output. 
If you want PNGs, we can give you that instead.


So the question remains: What is LyX using to do the export when you 
export the HTML format? You can find out either (a) by looking to see 
what converters are defined under Tools> Preferences, or else (b) by 
running LyX from a terminal and seeing what goes by.


Richard

PS Remember to cc the list in case someone else has ideas.



Re: Possible Bug in Export to HTML

2012-04-10 Thread Peter Contor
On 10/04/2012, Richard Heck  wrote:
> On 04/10/2012 04:13 AM, Peter Contor wrote:
>> On 09/04/2012, Richard Heck  wrote:
>>> On 04/09/2012 01:07 AM, Peter Contor wrote:
 On 09/04/2012, Richard Heck   wrote:
> On 04/08/2012 06:57 PM, Peter Contor wrote:
>> Hi all. This is my first posting to this mailing list, so apologies if
>> I'm doing something wrong.
>>
>> My system:
>>
>> Windows Vista Home Premium Version 6.0.6002 Service Pack 2 Build 6002
>> LyX 2.0.3
>> MIKTeX 2.8
>>
>> Description of alleged bug:
>>
>> I open a new file in LyX, open a display style formula box (with
>> Ctrl-Shift-m), type in an M, save the file and export it to HTML (with
>> File>Export>HTML). The PNG file containing the image of the M
>> has
>> it unrecognizably blurred.
>>
>> If put to M's in the display box (MM) and repeat the export, the PNG
>> file is considerably less garbled. Even less so with three M's. From
>> about 6 M's onwards, the image is clear.
>>
>> I used M's to fix ideas: the same happens with any single character.
>> If I export to LaTeX and use TeX4ht (htlatex) to convert to HTML,
>> nothing of the above happens on my system.
>>
> Is tex4ht being used by LyX here? or what?
>
> Richard
>
>
 My understanding is that it's not; i.e., thay LyX uses it's own
 scripts/whatever to export to HTML. It is I who used TeX4ht to see if
 it would act differently than LyX. It did.

>>> If you want to export using LyX's internal export, then you have to
>>> export to the LyXHTML format. If you export to "HTML", then what you get
>>> depends upon how your converters are configured and could be lots of
>>> things.
>>>
>>> I doubt you are using LyXHTML here, because we produce PNGs only under
>>> the most difficult conditions (unless it is explicitly requested).
>>>
>>> Richard
>>>
>>>
>> No Richard, I wasn't using LyXHTML. Just the 'plain' HTML export
>> option. Just tried LyXHTML. What happens here is that the export
>> contains NO pictures whatsoever: it uses only text with unicode
>> characters. For example, if I try exporting the displayed formula
>> \int\frac{dx}{\sqrt{1-x^2}}, all I get in the exported HTML file is
>> ∫ dx 1- x 2.
>>
>
> I think what you're getting is MathML, since that is what we export by
> default. This can be controlled a bit under Document> Settings> Output.
> If you want PNGs, we can give you that instead.
>
> So the question remains: What is LyX using to do the export when you
> export the HTML format? You can find out either (a) by looking to see
> what converters are defined under Tools> Preferences, or else (b) by
> running LyX from a terminal and seeing what goes by.
>
> Richard
>
> PS Remember to cc the list in case someone else has ideas.
>
>

I will check these, not least because I'm using LyX more and more
lately and getting interested in how it works. It does make sense to
me that the trouble is to do with the converters. As it happens, I
also have Debian (in VirtualBox), so a bit earlier I installed LyX in
it. First thing to say is that it looks MUCH better in there, second
is that the HTML export work perfectly 'out of the box'. So it's to do
with my Windows system. Not surprised (especially with Vista...)


How to minimize hyphenation?

2012-04-10 Thread Steve Litt
Hi all,

I've always preferred legible over pretty, and my opinion is that most
time hyphenation's decrease in legibility and readability isn't worth
its aesthetic contribution. I was just going to turn off hyphenation
(however one would do that). But a friend reminded me that if I
failed to hyphenate a word like antidisestablishmentarianism, it would
do hideous things to the paragraph.

So now I'd like to tell LyX not to hyphenate unless it's really,
really, really, REALLY needed. I figure maybe there's some rubber-band
value somewhere, and I can set it higher or lower or whatever.

Anyone know of such a thing?

Thanks

SteveT


Re: How to minimize hyphenation?

2012-04-10 Thread Richard Heck

On 04/10/2012 02:38 PM, Steve Litt wrote:

Hi all,

I've always preferred legible over pretty, and my opinion is that most
time hyphenation's decrease in legibility and readability isn't worth
its aesthetic contribution. I was just going to turn off hyphenation
(however one would do that). But a friend reminded me that if I
failed to hyphenate a word like antidisestablishmentarianism, it would
do hideous things to the paragraph.

So now I'd like to tell LyX not to hyphenate unless it's really,
really, really, REALLY needed. I figure maybe there's some rubber-band
value somewhere, and I can set it higher or lower or whatever.

Anyone know of such a thing?


I'll make a slightly different suggestion:
\usepackage{microtype}
In my experience, this reduces hyphenation by 80% or so.

Otherwise, read this:
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=overfull

Richard



Re: How to minimize hyphenation?

2012-04-10 Thread Richard Heck

On 04/10/2012 02:47 PM, Richard Heck wrote:

On 04/10/2012 02:38 PM, Steve Litt wrote:

Hi all,

I've always preferred legible over pretty, and my opinion is that most
time hyphenation's decrease in legibility and readability isn't worth
its aesthetic contribution. I was just going to turn off hyphenation
(however one would do that). But a friend reminded me that if I
failed to hyphenate a word like antidisestablishmentarianism, it would
do hideous things to the paragraph.

So now I'd like to tell LyX not to hyphenate unless it's really,
really, really, REALLY needed. I figure maybe there's some rubber-band
value somewhere, and I can set it higher or lower or whatever.

Anyone know of such a thing?


I'll make a slightly different suggestion:
\usepackage{microtype}
In my experience, this reduces hyphenation by 80% or so.

Otherwise, read this:
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=overfull


Oh, and you can also try things like:
 \hyphenpenalty=200
The default is 50; infinity, as usual, is 1.

Richard



Re: char-right via LyX server and math insets

2012-04-10 Thread Pavel Sanda
Allen Barker wrote:
> Create a new file with some random text and a math
> inset with some random math in it.  Position the
> cursor somewhere before the math inset.
>
> Using the right-arrow key the cursor can be moved
> into and then past the math inset.
>
> Using char-right repeatedly from the command
> minibuffer the cursor can similarly be moved into
> and past the math inset.
>
> Using the char-right command via the LyX server with
>echo 'LYXCMD:clientname:char-right:' >~/.lyx/lyxpipe.in
> however, the cursor always stops at the left side
> of the math inset.  It works fine on ordinary text, but
> it cannot enter the math inset.  When the command is
> run with the cursor already inside the math inset the
> cursor-point just pops out to the left of the math inset.
> The char-forward LFUN has the same behavior.  It makes
> no difference if display mode for math is on or off.
>
> I have an application where I'd like to be able to use
> the LyX server to move the cursor inside a math inset
> if one is there.  Any ideas what is happening and how to
> work around it?

It seems to be LyX bug, feel free to add bug into Trac. Pavel


Re: How to minimize hyphenation?

2012-04-10 Thread stefano franchi
On Tue, Apr 10, 2012 at 1:52 PM, Richard Heck  wrote:

> On 04/10/2012 02:47 PM, Richard Heck wrote:
>
>> On 04/10/2012 02:38 PM, Steve Litt wrote:
>>
>>> Hi all,
>>>
>>> I've always preferred legible over pretty, and my opinion is that most
>>> time hyphenation's decrease in legibility and readability isn't worth
>>> its aesthetic contribution. I was just going to turn off hyphenation
>>> (however one would do that). But a friend reminded me that if I
>>> failed to hyphenate a word like antidisestablishmentarianism, it would
>>> do hideous things to the paragraph.
>>>
>>> So now I'd like to tell LyX not to hyphenate unless it's really,
>>> really, really, REALLY needed. I figure maybe there's some rubber-band
>>> value somewhere, and I can set it higher or lower or whatever.
>>>
>>> Anyone know of such a thing?
>>>
>>>  I'll make a slightly different suggestion:
>>\usepackage{microtype}
>> In my experience, this reduces hyphenation by 80% or so.
>>
>>

I second Richard's point. The microtype package makes a huge difference,
especially if you tweak the parameters a bit (like font expansion). Notice
that, as far as I know, it requires pdflatex or luatex (xetex has partial
support only, I think). The manual is excellent, BTW.

Cheers,

S.



-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic StudiesPh:   +1 (979) 845-2125
Texas A University  Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu
http://stefano.cleinias.org


Re: circular letter

2012-04-10 Thread Dr Eberhard Lisse
I do stuff like this with LaTeX directly, though I do design the files
in LyX and then pull them into Perl :-)-O

There there is also a LaTeX package to pull in CSV files, but forgot
what its name is :-)-O

el

On 2012-04-05 21:20 , John O'Gorman wrote:
> :
>> On 04/04/2012 02:25 AM, "Jörg Kühne" wrote:
>>> Dear List
>>>
>>> Is it possible to write (with Lyx) a circular letter with an
>>> arbitrary letter pattern?
> I have written perl programs which allow mail merge in insurance
> companies for things such as renewal notices, price quotation, etc.
> The main idea is that the user creates a normal LyX letter template
> (using the article class - we found the letter classes were not suited
> to NZ conventions). Where details particular to a client were to be
> inserted, you put perl expressions e.g. ${title}  ${firstname}
> ${lastname} etc.
> 
> A database program runs an SQL query and, for each row returned, builds
> list of perl assignments
> e.g.
> ${firstname}="John";
> ${lastname}="Smith";
> ...
> and writes these to a file with a .rec suffix
> Then the lyxmerge program loops through the .rec file, effectively
> assigning the database values for each client then reads the template
> and writes to an output file. Works beautifully giving the usual superb
> typesetting.
> 
> Perl is most suitable for this because of its weird notion of using
> distinctive  syntax for variables. More pleasant languages like Python
> do not.
> 
> When I wrote this many years ago, I also took the trouble to create
> scripts to insert tables of data  into the template. This involved using
> some supplied perl library scripts which came with LyX.
> The LyX developers now use python for this sort of thing and I haven't
> kept my scripts up to date with current LyX versions.
> 
> If you want more detail, I'll happily pass on the scripts to those who
> want them.
> 
> John O'Gorman
> 
> 
> 
> 
> 
> 




Is it possible to track changes without seeing the tracked changes?

2012-04-10 Thread Bert Lloyd
Hi,

I would like to track changes as I make edits to a collaborative
document, but all the crossing out and red and blue text drives me
crazy when I am typing. (It's great for reading edits and for
accepting / rejecting them.)

Is it possible to track changes but not actually have the tracking be
apparent in the document while I am working?

Thanks,

BL


numbering multi-line formulas

2012-04-10 Thread s nedunuri
Hello, I wonder if anyone can help me with how to number multi-line 
formulas, as the Help manual appears to be out of date (it refers to 
menu options that no longer exist). I am running Lyx 2.0.2. I have a 
multi-line formula that I created via the "Insert Matrix" command. I 
would like to number each line in the formula. However, when I try this: 
Edit | Math |  there are two choices: Number Whole Formula or Number 
This Line. However, they seem to be the same thing. Turning one one 
automatically enables the other, as does turning either one off. The 
result is that either there is no numbering at all or one number for the 
entire array, which is not what I want. Anyone have any ideas?


thanks



Re: numbering multi-line formulas

2012-04-10 Thread David L. Johnson

On 04/11/2012 12:12 AM, s nedunuri wrote:
Hello, I wonder if anyone can help me with how to number multi-line 
formulas, as the Help manual appears to be out of date (it refers to 
menu options that no longer exist). I am running Lyx 2.0.2. I have a 
multi-line formula that I created via the "Insert Matrix" command. I 
would like to number each line in the formula. However, when I try 
this: Edit | Math |  there are two choices: Number Whole Formula or 
Number This Line. However, they seem to be the same thing.


The problem is that a matrix does not really give you a multi-line 
formula, it is a one-line formula including a matrix.  To get a 
multiline formula, use one of the aligned environments.  I prefer the 
eqnarray environment.  Then you can number each line of the multi-line 
environment.  I will attach a simply LyX file showing first an eqnarray 
environment, then a matrix environment, both numbered, but the matrix 
only allows numbering of the whole thing.


--

David L. Johnson

Anyone who is capable of getting themselves made President should on
no account be allowed to do the job.
-- Douglas Adams



numbering.lyx
Description: application/lyx