Re: How to refresh images of equations

2024-05-22 Thread Andrew Parsloe


On 23/05/2024 6:13 am, David Cardon wrote:

Version 2.4.0~RC4
(Sunday, March 24, 2024)

Qt Version (run-time): 6.6.1 on platform windows
Qt Version (compile-time): 6.6.1
OS Version (run-time): Windows 11 Version 23H2
Python detected: 3.11.4 
(C:\Users\David\AppData\Local\Programs\Python\Python311\python.exe)


I am having a problem with the images created for equations when 
"Instant preview" is turned on. I created a document on one computer 
with a 4K 32" monitor.  When I opened the same document on my laptop 
with a 4K 16" monitor, the equations were all microscopic, but the 
images for the equations would not refresh to look right on the new 
display.  Is there a way to force a refresh?  If not, then this may be 
a bug.


Thanks,
David


Changing the zoom level forces a redrawing of previews. I've made a 
shortcut for


command-sequence buffer-zoom-in; buffer-zoom-out

which leaves the zoom level as it was but forces a document-wide 
redrawing of previews.


Andrew

--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


How to refresh images of equations

2024-05-22 Thread David Cardon
Version 2.4.0~RC4
(Sunday, March 24, 2024)

Qt Version (run-time): 6.6.1 on platform windows
Qt Version (compile-time): 6.6.1
OS Version (run-time): Windows 11 Version 23H2
Python detected: 3.11.4
(C:\Users\David\AppData\Local\Programs\Python\Python311\python.exe)

I am having a problem with the images created for equations when "Instant
preview" is turned on. I created a document on one computer with a 4K 32"
monitor.  When I opened the same document on my laptop with a 4K 16"
monitor, the equations were all microscopic, but the images for the
equations would not refresh to look right on the new display.  Is there a
way to force a refresh?  If not, then this may be a bug.

Thanks,
David
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: How to automatically display all equations as intuitive formulas in LyX?

2023-04-19 Thread Hongyi Zhao
On Wed, Apr 19, 2023 at 9:46 PM Udicoudco  wrote:
>
>
>
>
> On Wed, Apr 19, 2023 at 4:15 PM Hongyi Zhao  wrote:
> >
> > On Wed, Apr 19, 2023 at 9:00 PM Udicoudco  wrote:
> > >
> > > On Wed, Apr 19, 2023 at 3:36 PM Hongyi Zhao  wrote:
> > > >
> > > > On Wed, Apr 19, 2023 at 8:27 PM Udicoudco  wrote:
> > > > >
> > > > > On Wed, Apr 19, 2023 at 3:18 PM Hongyi Zhao  
> > > > > wrote:
> > > > > >
> > > > > > On Wed, Apr 19, 2023 at 1:33 PM Stefano Simonucci
> > > > > >  wrote:
> > > > > > >
> > > > > > > If I understand your question, you should open the following menu:
> > > > > > >
> > > > > > > Tools --> Preferences. Then in the window Lyx: Prefrences you 
> > > > > > > have to
> > > > > > > open the menu: Look & Feel --> Display.
> > > > > > >
> > > > > > > and to set On the Instant preview
> > > > > >
> > > > > > I've enabled this option, but the formulae still show as LaTeX
> > > > > > commands. See the attachment for more details.
> > > > > >
> > > > > > > Stefano
> > > > > >
> > > > > > Regards,
> > > > > > Zhao
> > > > > >
> > > > >
> > > > > Instead of copy a LaTeX code try to import it via
> > > > > File->Import->LaTeX (Plain).
> > > > > Then the equations should appear in a new LyX file,
> > > > > and you can copy them from there.
> > > >
> > > > This method really fixed the problem of equations display, but the
> > > > Chinese characters are displayed as chaos, as shown in the attached
> > > > file.
> > > >
> > >
> > > In what encodings the latex
> >
> > See the following for encoding info of the original TeX file which is
> > being imported into LyX:
> >
> > werner@X10DAi:~$ encguess test.tex
> > test.texUTF-8
> > werner@X10DAi:~$ uchardet test.tex
> > UTF-8
> > werner@X10DAi:~$ file -i test.tex
> > test.tex: text/plain; charset=utf-8
> >
> > > and LyX files are written?
> >
> > I don't know what do you mean by saying this. I just do the import via
> > File->Import->LaTeX (Plain).
>
> You need to add \usepackage[utf8]{inputenc} to the latex preamble so that LyX 
> will
> know what is the correct encoding.
>
> Attached is a .tex file that  I successfully imported to LyX (I think), the 
> text is taken
> from here.

Thank you very much, and it does the trick.

Best,
Zhao
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: How to automatically display all equations as intuitive formulas in LyX?

2023-04-19 Thread Udicoudco
On Wed, Apr 19, 2023 at 4:15 PM Hongyi Zhao  wrote:
>
> On Wed, Apr 19, 2023 at 9:00 PM Udicoudco  wrote:
> >
> > On Wed, Apr 19, 2023 at 3:36 PM Hongyi Zhao 
wrote:
> > >
> > > On Wed, Apr 19, 2023 at 8:27 PM Udicoudco  wrote:
> > > >
> > > > On Wed, Apr 19, 2023 at 3:18 PM Hongyi Zhao 
wrote:
> > > > >
> > > > > On Wed, Apr 19, 2023 at 1:33 PM Stefano Simonucci
> > > > >  wrote:
> > > > > >
> > > > > > If I understand your question, you should open the following
menu:
> > > > > >
> > > > > > Tools --> Preferences. Then in the window Lyx: Prefrences you
have to
> > > > > > open the menu: Look & Feel --> Display.
> > > > > >
> > > > > > and to set On the Instant preview
> > > > >
> > > > > I've enabled this option, but the formulae still show as LaTeX
> > > > > commands. See the attachment for more details.
> > > > >
> > > > > > Stefano
> > > > >
> > > > > Regards,
> > > > > Zhao
> > > > >
> > > >
> > > > Instead of copy a LaTeX code try to import it via
> > > > File->Import->LaTeX (Plain).
> > > > Then the equations should appear in a new LyX file,
> > > > and you can copy them from there.
> > >
> > > This method really fixed the problem of equations display, but the
> > > Chinese characters are displayed as chaos, as shown in the attached
> > > file.
> > >
> >
> > In what encodings the latex
>
> See the following for encoding info of the original TeX file which is
> being imported into LyX:
>
> werner@X10DAi:~$ encguess test.tex
> test.texUTF-8
> werner@X10DAi:~$ uchardet test.tex
> UTF-8
> werner@X10DAi:~$ file -i test.tex
> test.tex: text/plain; charset=utf-8
>
> > and LyX files are written?
>
> I don't know what do you mean by saying this. I just do the import via
> File->Import->LaTeX (Plain).

You need to add \usepackage[utf8]{inputenc} to the latex preamble so that
LyX will
know what is the correct encoding.

Attached is a .tex file that  I successfully imported to LyX (I think), the
text is taken
from here <https://zh.wikipedia.org/wiki/%E6%98%A5%E7%AF%80>.


ww.tex
Description: Binary data
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: How to automatically display all equations as intuitive formulas in LyX?

2023-04-19 Thread Hongyi Zhao
On Wed, Apr 19, 2023 at 9:00 PM Udicoudco  wrote:
>
> On Wed, Apr 19, 2023 at 3:36 PM Hongyi Zhao  wrote:
> >
> > On Wed, Apr 19, 2023 at 8:27 PM Udicoudco  wrote:
> > >
> > > On Wed, Apr 19, 2023 at 3:18 PM Hongyi Zhao  wrote:
> > > >
> > > > On Wed, Apr 19, 2023 at 1:33 PM Stefano Simonucci
> > > >  wrote:
> > > > >
> > > > > If I understand your question, you should open the following menu:
> > > > >
> > > > > Tools --> Preferences. Then in the window Lyx: Prefrences you have to
> > > > > open the menu: Look & Feel --> Display.
> > > > >
> > > > > and to set On the Instant preview
> > > >
> > > > I've enabled this option, but the formulae still show as LaTeX
> > > > commands. See the attachment for more details.
> > > >
> > > > > Stefano
> > > >
> > > > Regards,
> > > > Zhao
> > > >
> > >
> > > Instead of copy a LaTeX code try to import it via
> > > File->Import->LaTeX (Plain).
> > > Then the equations should appear in a new LyX file,
> > > and you can copy them from there.
> >
> > This method really fixed the problem of equations display, but the
> > Chinese characters are displayed as chaos, as shown in the attached
> > file.
> >
>
> In what encodings the latex

See the following for encoding info of the original TeX file which is
being imported into LyX:

werner@X10DAi:~$ encguess test.tex
test.texUTF-8
werner@X10DAi:~$ uchardet test.tex
UTF-8
werner@X10DAi:~$ file -i test.tex
test.tex: text/plain; charset=utf-8

> and LyX files are written?

I don't know what do you mean by saying this. I just do the import via
File->Import->LaTeX (Plain).

Best,
Zhao
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: How to automatically display all equations as intuitive formulas in LyX?

2023-04-19 Thread Udicoudco
On Wed, Apr 19, 2023 at 3:36 PM Hongyi Zhao  wrote:
>
> On Wed, Apr 19, 2023 at 8:27 PM Udicoudco  wrote:
> >
> > On Wed, Apr 19, 2023 at 3:18 PM Hongyi Zhao  wrote:
> > >
> > > On Wed, Apr 19, 2023 at 1:33 PM Stefano Simonucci
> > >  wrote:
> > > >
> > > > If I understand your question, you should open the following menu:
> > > >
> > > > Tools --> Preferences. Then in the window Lyx: Prefrences you have to
> > > > open the menu: Look & Feel --> Display.
> > > >
> > > > and to set On the Instant preview
> > >
> > > I've enabled this option, but the formulae still show as LaTeX
> > > commands. See the attachment for more details.
> > >
> > > > Stefano
> > >
> > > Regards,
> > > Zhao
> > >
> >
> > Instead of copy a LaTeX code try to import it via
> > File->Import->LaTeX (Plain).
> > Then the equations should appear in a new LyX file,
> > and you can copy them from there.
>
> This method really fixed the problem of equations display, but the
> Chinese characters are displayed as chaos, as shown in the attached
> file.
>

In what encodings the latex and LyX files are written?
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: How to automatically display all equations as intuitive formulas in LyX?

2023-04-19 Thread Hongyi Zhao
On Wed, Apr 19, 2023 at 8:27 PM Udicoudco  wrote:
>
> On Wed, Apr 19, 2023 at 3:18 PM Hongyi Zhao  wrote:
> >
> > On Wed, Apr 19, 2023 at 1:33 PM Stefano Simonucci
> >  wrote:
> > >
> > > If I understand your question, you should open the following menu:
> > >
> > > Tools --> Preferences. Then in the window Lyx: Prefrences you have to
> > > open the menu: Look & Feel --> Display.
> > >
> > > and to set On the Instant preview
> >
> > I've enabled this option, but the formulae still show as LaTeX
> > commands. See the attachment for more details.
> >
> > > Stefano
> >
> > Regards,
> > Zhao
> >
>
> Instead of copy a LaTeX code try to import it via
> File->Import->LaTeX (Plain).
> Then the equations should appear in a new LyX file,
> and you can copy them from there.

This method really fixed the problem of equations display, but the
Chinese characters are displayed as chaos, as shown in the attached
file.

> Regards,
> Udi

Best Regards,
Zhao
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: How to automatically display all equations as intuitive formulas in LyX?

2023-04-19 Thread Udicoudco
On Wed, Apr 19, 2023 at 3:18 PM Hongyi Zhao  wrote:
>
> On Wed, Apr 19, 2023 at 1:33 PM Stefano Simonucci
>  wrote:
> >
> > If I understand your question, you should open the following menu:
> >
> > Tools --> Preferences. Then in the window Lyx: Prefrences you have to
> > open the menu: Look & Feel --> Display.
> >
> > and to set On the Instant preview
>
> I've enabled this option, but the formulae still show as LaTeX
> commands. See the attachment for more details.
>
> > Stefano
>
> Regards,
> Zhao
>

Instead of copy a LaTeX code try to import it via
File->Import->LaTeX (Plain).
Then the equations should appear in a new LyX file,
and you can copy them from there.

Regards,
Udi

> --
> lyx-users mailing list
> lyx-users@lists.lyx.org
> http://lists.lyx.org/mailman/listinfo/lyx-users
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: How to automatically display all equations as intuitive formulas in LyX?

2023-04-18 Thread Stefano Simonucci

If I understand your question, you should open the following menu:

Tools --> Preferences. Then in the window Lyx: Prefrences you have to 
open the menu: Look & Feel --> Display.


and to set On the Instant preview

Stefano

On 19/04/23 03:11, Hongyi Zhao wrote:

Dear LyX mailing list,

I am writing to ask for your help regarding a question about LyX.
Specifically, I am wondering how to display all equations as intuitive
formulas in LyX once for all when I open my LyX document or paste some
LaTeX code into a newly created LyX document.

I would like to know how to change the display of all equations in my
LyX document so that they are shown as formulas. I have tried with
`Ctrl-M` shortcut, and it only works for separated formulas. But I
haven't been able to figure out how to make this change for all
equations at once.

Can you please provide me with some guidance on how to display all
equations as intuitive formulas in LyX all at once? Any help would be
greatly appreciated.

Thank you in advance for your time and assistance.

Best regards,
Zhao

--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


How to automatically display all equations as intuitive formulas in LyX?

2023-04-18 Thread Hongyi Zhao
Dear LyX mailing list,

I am writing to ask for your help regarding a question about LyX.
Specifically, I am wondering how to display all equations as intuitive
formulas in LyX once for all when I open my LyX document or paste some
LaTeX code into a newly created LyX document.

I would like to know how to change the display of all equations in my
LyX document so that they are shown as formulas. I have tried with
`Ctrl-M` shortcut, and it only works for separated formulas. But I
haven't been able to figure out how to make this change for all
equations at once.

Can you please provide me with some guidance on how to display all
equations as intuitive formulas in LyX all at once? Any help would be
greatly appreciated.

Thank you in advance for your time and assistance.

Best regards,
Zhao
-- 
Assoc. Prof. Hongsheng Zhao 
Theory and Simulation of Materials
Hebei Vocational University of Technology and Engineering
No. 473, Quannan West Street, Xindu District, Xingtai, Hebei province
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Copying and pasting equations from LyX into other packages?

2022-12-04 Thread Jean-Marc Lasgouttes

Le 04/12/2022 à 12:43, oliver.b...@maths.ox.ac.uk a écrit :

Hello,

Does LyX have an option to copy and paste a piece of LaTeX code in raw 
format, i.e. removing any trace of macros that were used to generate the 
code?


Hello,

This functionality does not exist yet, but indeed it would be doable 
(either pasting, or transforming an expression in place).


I would like to be able to use a command to copy and paste the LaTeX 
code for the equation /as it is formatted/, so that any traces of the 
macros in the source code are removed in doing so.  I use LyX all the 
time for my mathematical typesetting work and I have found macros to be 
extremely useful, but the downside of this is that the equations cannot 
be pasted into other software without some way of defining the macros or 
creating preambles in those packages. The other software packages I have 
in mind are ones that have a plugin to support LaTeX but aren’t designed 
with it in mind (e.g. GeoGebra, Blender, InkScape etc.).


Are there any plans to implement such a feature (and how much would it 
cost to implement such a feature if not)?


There are no current plans for that, that I know of. Indeed, paying 
someone to do it may help to materialize it sooner. I suggest that you 
create a ticket on www.lyx.org/trac. I will forward it to the developers 
list to try to find someone willing to implement it.


JMarc

--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Copying and pasting equations from LyX into other packages?

2022-12-04 Thread oliver.bond
Hello,

 

Does LyX have an option to copy and paste a piece of LaTeX code in raw
format, i.e. removing any trace of macros that were used to generate the
code?

 

For an example of what I mean, I have a piece of documentation in LyX where
the code is given by 

 

0=\dfrac{\partial^{2}\inTheSolid{\dimensionless A}}{\partial\dimensionless
x^{2}}+\dfrac{\partial^{2}\inTheSolid{\dimensionless
A}}{\partial\dimensionless y^{2}}

 

where inTheSolid and dimensionless are both macros (which themselves depend
on other macros) created so that the text looks like this:

 



 

I would like to be able to use a command to copy and paste the LaTeX code
for the equation as it is formatted, so that any traces of the macros in the
source code are removed in doing so.  I use LyX all the time for my
mathematical typesetting work and I have found macros to be extremely
useful, but the downside of this is that the equations cannot be pasted into
other software without some way of defining the macros or creating preambles
in those packages. The other software packages I have in mind are ones that
have a plugin to support LaTeX but aren't designed with it in mind (e.g.
GeoGebra, Blender, InkScape etc.).

 

Are there any plans to implement such a feature (and how much would it cost
to implement such a feature if not)?

 

Best regards,

- Oliver Bond.

-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Large delimiters, multiline equations

2021-01-22 Thread Joel Kulesza
On Fri, Jan 22, 2021 at 2:40 PM Paul A. Rubin  wrote:

> On 1/22/21 3:24 PM, Joel Kulesza wrote:
>
>
>
> On Fri, Jan 22, 2021 at 12:09 Paul A. Rubin  wrote:
>
>> On 1/22/21 1:06 PM, Neal Becker wrote:
>> > On Fri, Jan 22, 2021 at 11:26 AM Joel Kulesza 
>> wrote:
>> >> On Fri, Jan 22, 2021 at 6:29 AM Neal Becker 
>> wrote:
>> >>> I have an equation that has to be split (to fit into beamer
>> >>> presentation).  It has large delimiters that span the lines.  Does lyx
>> >>> have any facility to help with this?  I did get a useable result, but
>> >>> only with a lot of ERT.  Lyx seems not helpful here, is there any way
>> >>> other than ERT to get "\Biggl. ... \Biggr]"?  Or "\right."?
>> >>>
>> >>> Here is what I wanted:
>> >>>
>> >>> \begin{multline*}
>> >>>
>> >>> \mathbf{X}_{N_{C}\times S\times
>> >>>
>> A}=\left[\left[\left[\sum_{n}m1_{p+cL_{c}+nS}m2_{p+cL_{c}+(n+\tau)S}^{*}\right.\right.\right.,\\
>> >>>
>> >>> \Biggl.\Biggl.\Biggl.\tau\in[-A/2\dots A/2]\Biggr],p\in[0\dots
>> >>> S-1]\Biggr],c\in[0\dots N_{c}-1]\Biggr]
>> >>>
>> >>> \end{multline*}
>> >>
>> >> To accomplish this, I prefer to use the Insert Delimiters capability
>> (the subject of an adjacent thread).  Using "none" will let you give the
>> appearance of matched delimiters that vertically scale to contain the
>> contents.  The "Swap & Reverse" button is meant as a convenience to control
>> delimiter insertion in this manner.  Finally, if you have lines that vary
>> in vertical extent, a vertical phantom (\vphantom) with the proper contents
>> will ensure consistent delimiter sizes.
>> >>
>> >> Hope this helps,
>> >> Joel
>> > Thanks for the reply.  I can't see how to do this.  Inserting
>> > Delimiters seems to insist on inserting a pair of delimiters - I don't
>> > see any way to just get \left[ for example.
>> I've attached three screenshots. The first (shot1.png) shows LyX open
>> with a new document, containing two copies of your example. The first
>> copy is pasted into an ERT box (so that I can see what you are shooting
>> for). The second has most of your example, but not the nested brackets,
>> typed into a multiline math environment. The first line of the multiline
>> formula is selected, so that I can put a left bracket in front of it.
>>
>> The second screenshot shows the delimiter insertion dialog. Note that I
>> unchecked the "keep matched" box below the left pane, then selected a
>> left bracket in the left pane and "(None)" in the right pane.
>>
>> The third screenshot shows the formula after I click "Insert" in the
>> delimiter dialog. There is a large left bracket at the start of the
>> first line and "phantom" bracked (dotted line) at the end of the first
>> line. To insert other brackets, do similar things, selecting the content
>> of the bracketed area and where appropriate selecting none on the left
>> and a closing bracket on the right.
>>
>
> Paul,
>
> Thanks for picking up the thread!  If you provide the LyX file for shot3,
> I’ll demonstrate what I meant about vphantom.
>
> Thanks again,
> Joel
>
> Joel,
>
> Happy to help on the thread. Here's the file for shot 3.
>
> Paul
>
> Thanks Paul!

Please see attached for how I use vphantom—it's not pretty in LyX, but it
works well in the final PDF.

Note: I did/saved this with 2.4.0a1.

Thanks,
Joel


brackets.lyx
Description: Binary data
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Large delimiters, multiline equations

2021-01-22 Thread Paul A. Rubin

On 1/22/21 3:24 PM, Joel Kulesza wrote:



On Fri, Jan 22, 2021 at 12:09 Paul A. Rubin > wrote:


On 1/22/21 1:06 PM, Neal Becker wrote:
> On Fri, Jan 22, 2021 at 11:26 AM Joel Kulesza
mailto:jkule...@gmail.com>> wrote:
>> On Fri, Jan 22, 2021 at 6:29 AM Neal Becker
mailto:ndbeck...@gmail.com>> wrote:
>>> I have an equation that has to be split (to fit into beamer
>>> presentation).  It has large delimiters that span the lines. 
Does lyx
>>> have any facility to help with this?  I did get a useable
result, but
>>> only with a lot of ERT.  Lyx seems not helpful here, is there
any way
>>> other than ERT to get "\Biggl. ... \Biggr]"? Or "\right."?
>>>
>>> Here is what I wanted:
>>>
>>> \begin{multline*}
>>>
>>> \mathbf{X}_{N_{C}\times S\times
>>>

A}=\left[\left[\left[\sum_{n}m1_{p+cL_{c}+nS}m2_{p+cL_{c}+(n+\tau)S}^{*}\right.\right.\right.,\\
>>>
>>> \Biggl.\Biggl.\Biggl.\tau\in[-A/2\dots A/2]\Biggr],p\in[0\dots
>>> S-1]\Biggr],c\in[0\dots N_{c}-1]\Biggr]
>>>
>>> \end{multline*}
>>
>> To accomplish this, I prefer to use the Insert Delimiters
capability (the subject of an adjacent thread). Using "none" will
let you give the appearance of matched delimiters that vertically
scale to contain the contents. The "Swap & Reverse" button is
meant as a convenience to control delimiter insertion in this
manner.  Finally, if you have lines that vary in vertical extent,
a vertical phantom (\vphantom) with the proper contents will
ensure consistent delimiter sizes.
>>
>> Hope this helps,
>> Joel
> Thanks for the reply.  I can't see how to do this. Inserting
> Delimiters seems to insist on inserting a pair of delimiters - I
don't
> see any way to just get \left[ for example.
I've attached three screenshots. The first (shot1.png) shows LyX open
with a new document, containing two copies of your example. The first
copy is pasted into an ERT box (so that I can see what you are
shooting
for). The second has most of your example, but not the nested
brackets,
typed into a multiline math environment. The first line of the
multiline
formula is selected, so that I can put a left bracket in front of it.

The second screenshot shows the delimiter insertion dialog. Note
that I
unchecked the "keep matched" box below the left pane, then selected a
left bracket in the left pane and "(None)" in the right pane.

The third screenshot shows the formula after I click "Insert" in the
delimiter dialog. There is a large left bracket at the start of the
first line and "phantom" bracked (dotted line) at the end of the
first
line. To insert other brackets, do similar things, selecting the
content
of the bracketed area and where appropriate selecting none on the
left
and a closing bracket on the right.


Paul,

Thanks for picking up the thread!  If you provide the LyX file for 
shot3, I’ll demonstrate what I meant about vphantom.


Thanks again,
Joel

Joel,

Happy to help on the thread. Here's the file for shot 3.

Paul



brackets.lyx
Description: application/lyx
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Large delimiters, multiline equations

2021-01-22 Thread Joel Kulesza
On Fri, Jan 22, 2021 at 12:09 Paul A. Rubin  wrote:

> On 1/22/21 1:06 PM, Neal Becker wrote:
> > On Fri, Jan 22, 2021 at 11:26 AM Joel Kulesza 
> wrote:
> >> On Fri, Jan 22, 2021 at 6:29 AM Neal Becker 
> wrote:
> >>> I have an equation that has to be split (to fit into beamer
> >>> presentation).  It has large delimiters that span the lines.  Does lyx
> >>> have any facility to help with this?  I did get a useable result, but
> >>> only with a lot of ERT.  Lyx seems not helpful here, is there any way
> >>> other than ERT to get "\Biggl. ... \Biggr]"?  Or "\right."?
> >>>
> >>> Here is what I wanted:
> >>>
> >>> \begin{multline*}
> >>>
> >>> \mathbf{X}_{N_{C}\times S\times
> >>>
> A}=\left[\left[\left[\sum_{n}m1_{p+cL_{c}+nS}m2_{p+cL_{c}+(n+\tau)S}^{*}\right.\right.\right.,\\
> >>>
> >>> \Biggl.\Biggl.\Biggl.\tau\in[-A/2\dots A/2]\Biggr],p\in[0\dots
> >>> S-1]\Biggr],c\in[0\dots N_{c}-1]\Biggr]
> >>>
> >>> \end{multline*}
> >>
> >> To accomplish this, I prefer to use the Insert Delimiters capability
> (the subject of an adjacent thread).  Using "none" will let you give the
> appearance of matched delimiters that vertically scale to contain the
> contents.  The "Swap & Reverse" button is meant as a convenience to control
> delimiter insertion in this manner.  Finally, if you have lines that vary
> in vertical extent, a vertical phantom (\vphantom) with the proper contents
> will ensure consistent delimiter sizes.
> >>
> >> Hope this helps,
> >> Joel
> > Thanks for the reply.  I can't see how to do this.  Inserting
> > Delimiters seems to insist on inserting a pair of delimiters - I don't
> > see any way to just get \left[ for example.
> I've attached three screenshots. The first (shot1.png) shows LyX open
> with a new document, containing two copies of your example. The first
> copy is pasted into an ERT box (so that I can see what you are shooting
> for). The second has most of your example, but not the nested brackets,
> typed into a multiline math environment. The first line of the multiline
> formula is selected, so that I can put a left bracket in front of it.
>
> The second screenshot shows the delimiter insertion dialog. Note that I
> unchecked the "keep matched" box below the left pane, then selected a
> left bracket in the left pane and "(None)" in the right pane.
>
> The third screenshot shows the formula after I click "Insert" in the
> delimiter dialog. There is a large left bracket at the start of the
> first line and "phantom" bracked (dotted line) at the end of the first
> line. To insert other brackets, do similar things, selecting the content
> of the bracketed area and where appropriate selecting none on the left
> and a closing bracket on the right.
>

Paul,

Thanks for picking up the thread!  If you provide the LyX file for shot3,
I’ll demonstrate what I meant about vphantom.

Thanks again,
Joel
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Large delimiters, multiline equations

2021-01-22 Thread Neal Becker
On Fri, Jan 22, 2021 at 11:26 AM Joel Kulesza  wrote:
>
> On Fri, Jan 22, 2021 at 6:29 AM Neal Becker  wrote:
>>
>> I have an equation that has to be split (to fit into beamer
>> presentation).  It has large delimiters that span the lines.  Does lyx
>> have any facility to help with this?  I did get a useable result, but
>> only with a lot of ERT.  Lyx seems not helpful here, is there any way
>> other than ERT to get "\Biggl. ... \Biggr]"?  Or "\right."?
>>
>> Here is what I wanted:
>>
>> \begin{multline*}
>>
>> \mathbf{X}_{N_{C}\times S\times
>> A}=\left[\left[\left[\sum_{n}m1_{p+cL_{c}+nS}m2_{p+cL_{c}+(n+\tau)S}^{*}\right.\right.\right.,\\
>>
>> \Biggl.\Biggl.\Biggl.\tau\in[-A/2\dots A/2]\Biggr],p\in[0\dots
>> S-1]\Biggr],c\in[0\dots N_{c}-1]\Biggr]
>>
>> \end{multline*}
>
>
> To accomplish this, I prefer to use the Insert Delimiters capability (the 
> subject of an adjacent thread).  Using "none" will let you give the 
> appearance of matched delimiters that vertically scale to contain the 
> contents.  The "Swap & Reverse" button is meant as a convenience to control 
> delimiter insertion in this manner.  Finally, if you have lines that vary in 
> vertical extent, a vertical phantom (\vphantom) with the proper contents will 
> ensure consistent delimiter sizes.
>
> Hope this helps,
> Joel

Thanks for the reply.  I can't see how to do this.  Inserting
Delimiters seems to insist on inserting a pair of delimiters - I don't
see any way to just get \left[ for example.
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Large delimiters, multiline equations

2021-01-22 Thread Joel Kulesza
On Fri, Jan 22, 2021 at 6:29 AM Neal Becker  wrote:

> I have an equation that has to be split (to fit into beamer
> presentation).  It has large delimiters that span the lines.  Does lyx
> have any facility to help with this?  I did get a useable result, but
> only with a lot of ERT.  Lyx seems not helpful here, is there any way
> other than ERT to get "\Biggl. ... \Biggr]"?  Or "\right."?
>
> Here is what I wanted:
>
> \begin{multline*}
>
> \mathbf{X}_{N_{C}\times S\times
>
> A}=\left[\left[\left[\sum_{n}m1_{p+cL_{c}+nS}m2_{p+cL_{c}+(n+\tau)S}^{*}\right.\right.\right.,\\
>
> \Biggl.\Biggl.\Biggl.\tau\in[-A/2\dots A/2]\Biggr],p\in[0\dots
> S-1]\Biggr],c\in[0\dots N_{c}-1]\Biggr]
>
> \end{multline*}
>

To accomplish this, I prefer to use the Insert Delimiters capability (the
subject of an adjacent thread).  Using "none" will let you give the
appearance of matched delimiters that vertically scale to contain the
contents.  The "Swap & Reverse" button is meant as a convenience to control
delimiter insertion in this manner.  Finally, if you have lines that vary
in vertical extent, a vertical phantom (\vphantom) with the proper contents
will ensure consistent delimiter sizes.

Hope this helps,
Joel
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Large delimiters, multiline equations

2021-01-22 Thread Daniel

On 2021-01-22 14:28, Neal Becker wrote:

I have an equation that has to be split (to fit into beamer
presentation).  It has large delimiters that span the lines.  Does lyx
have any facility to help with this?  I did get a useable result, but
only with a lot of ERT.  Lyx seems not helpful here, is there any way
other than ERT to get "\Biggl. ... \Biggr]"?  Or "\right."?

Here is what I wanted:

\begin{multline*}

\mathbf{X}_{N_{C}\times S\times
A}=\left[\left[\left[\sum_{n}m1_{p+cL_{c}+nS}m2_{p+cL_{c}+(n+\tau)S}^{*}\right.\right.\right.,\\

\Biggl.\Biggl.\Biggl.\tau\in[-A/2\dots A/2]\Biggr],p\in[0\dots
S-1]\Biggr],c\in[0\dots N_{c}-1]\Biggr]

\end{multline*}


When I copy and paste your LaTeX code via

Paste Special > Paste from LaTeX

it seems to work without ERT. There is still not so prety "Biggl" text 
in LyX's work area though...


Daniel


--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Large delimiters, multiline equations

2021-01-22 Thread Neal Becker
I have an equation that has to be split (to fit into beamer
presentation).  It has large delimiters that span the lines.  Does lyx
have any facility to help with this?  I did get a useable result, but
only with a lot of ERT.  Lyx seems not helpful here, is there any way
other than ERT to get "\Biggl. ... \Biggr]"?  Or "\right."?

Here is what I wanted:

\begin{multline*}

\mathbf{X}_{N_{C}\times S\times
A}=\left[\left[\left[\sum_{n}m1_{p+cL_{c}+nS}m2_{p+cL_{c}+(n+\tau)S}^{*}\right.\right.\right.,\\

\Biggl.\Biggl.\Biggl.\tau\in[-A/2\dots A/2]\Biggr],p\in[0\dots
S-1]\Biggr],c\in[0\dots N_{c}-1]\Biggr]

\end{multline*}


-- 
Those who don't understand recursion are doomed to repeat it
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: How to break long equations with LyX

2020-07-15 Thread Paul A. Rubin

On 7/15/20 4:57 AM, list_em...@icloud.com wrote:


The breqn package seems like a noble if not perfect effort. Someone 
put a lot of work into it and then died so it seems to be not actively 
developed at this time. There is extensive documentation on it but 
basic use is possible. I’ve had luck with it before, once I figure out 
how to put the bits of ERT before and after the equation to get it set 
up. Not sure what tripped it up this time. I wonder if it would be 
worthwhile to put an example on the wiki.
It couldn't hurt, particularly if the example showed how to break within 
a parenthesized / bracketed expression.


Paul

-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: How to break long equations with LyX

2020-07-15 Thread list_email

> On Jun 20, 2020, at 9:09 PM, Joel Kulesza  wrote:
> 
> On Sat, Jun 20, 2020 at 12:13 PM Paul A. Rubin  <mailto:parubi...@gmail.com>> wrote:
> On 6/19/20 9:47 PM, list_em...@icloud.com <mailto:list_em...@icloud.com> 
> wrote:
>>> On Jun 19, 2020, at 5:14 PM, Paul A. Rubin  
>>> <mailto:parubi...@gmail.com> wrote:
>>> 
>>> On 6/19/20 7:34 PM, list_em...@icloud.com <mailto:list_em...@icloud.com> 
>>> wrote:
>>>>> On Jun 19, 2020, at 8:15 AM, Paul A. Rubin  
>>>>> <mailto:parubi...@gmail.com> wrote:
>>>>> 
>>>>> On 6/19/20 7:51 AM, list_em...@icloud.com <mailto:list_em...@icloud.com> 
>>>>> wrote:
>>>>>> I have tried mightily to get LyX to break long equations. I’ve studied 
>>>>>> multiple pages at stackexchange, both LaTeX and LyX, and can’t seem to 
>>>>>> get anything to work.
>>>>>> 
>>>>>> I have had luck in the past with the second large block of code at this 
>>>>>> page:
>>>>>> 
>>>>>> https://stackoverflow.com/questions/2904807/lyx-breaking-long-formula-lines
>>>>>>  
>>>>>> <https://stackoverflow.com/questions/2904807/lyx-breaking-long-formula-lines>
>>>>>> 
>>>>>> but today I have some problems with it.
>>>>>> 
>>>>>> First, it doesn’t work if the \text command appears inside my own LaTeX 
>>>>>> code that appears between \begin{dmath} and \end{dmath} or if I try to 
>>>>>> use the trick twice in the same document. (That’s a tentative analysis 
>>>>>> of the problem.) Specifically, LyX runs at 100% CPU eventually gives me 
>>>>>> a chance to abort and then follows up with this additional message: "The 
>>>>>> external program pdflatex finished with an error. It is recommended you 
>>>>>> fix the cause of the external program's error (check the logs)."
>>>>>> 
>>>>>> Plus, I now want to to apply the line breaking to a line within an 
>>>>>> aligned environment (Insert -> Math -> Aligned Environment in the menu 
>>>>>> system.) This is causing things to look even worse, even though I added 
>>>>>> two “aligned” lines to the referenced code block. (If you look at the 
>>>>>> code you’ll see the obvious places to add the lines.)
>>>>>> 
>>>>>> How do LyX-ers handle this? Is there “LyX” solution to breaking long 
>>>>>> equations? I’m OK with some ad hoc solution for now, or some ERT if it 
>>>>>> works.
>>>>>> 
>>>>>> Thanks,
>>>>>> Jerry
>>>>>> 
>>>>>> 
>>>>> I've never used the breqn package, but with ordinary and AMS math 
>>>>> environments, hitting Ctrl-Enter in the middle of a long formula will 
>>>>> break it (inserting a line break, \\, in the LaTeX output). If that 
>>>>> doesn't achieve what you want, perhaps you could post a minimal example 
>>>>> and a specification of what the output should look like.
>>>>> 
>>>>> Paul
>>>>> 
>>>> Thanks, Paul. I’m on a Mac so of course Control-Enter has no meaning. 
>>>> Usually this translates to Mac-speak as Command-Enter. When I do 
>>>> Command-Enter in my equation, which is unfortunately inside a align 
>>>> environment, it instead adds a row to the matrix that represents the align 
>>>> environment. Ditto for Shift-Command-Enter. These two commands in LyX are 
>>>> mapped as Insert -> Formatting -> Ragged Line Break and Justified Line 
>>>> Break, respectively but invoking the menu commands with the cursor in my 
>>>> equation has exactly the same effect: adding a row to the align matrix 
>>>> (above the row where the cursor is.) When (Shift-)Command-Enter is done to 
>>>> a non-align display equation a similar thing happens except now the 
>>>> non-align equation is converted to an align equation with a blank new row 
>>>> _below_ the original equation.
>>>> 
>>>> Right now I guess I would be pretty happy with merely a way to make 
>>>> Command-shift (Control-shift) do what is expected which is apparently 
>>>> break the equation instead of creating a new row.
>>>> 
>>>> Jerry
>>>> 

Re: How to break long equations with LyX

2020-07-15 Thread list_email

> On Jun 20, 2020, at 9:09 PM, Joel Kulesza  wrote:
> 
> On Sat, Jun 20, 2020 at 12:13 PM Paul A. Rubin  <mailto:parubi...@gmail.com>> wrote:
> On 6/19/20 9:47 PM, list_em...@icloud.com <mailto:list_em...@icloud.com> 
> wrote:
>>> On Jun 19, 2020, at 5:14 PM, Paul A. Rubin  
>>> <mailto:parubi...@gmail.com> wrote:
>>> 
>>> On 6/19/20 7:34 PM, list_em...@icloud.com <mailto:list_em...@icloud.com> 
>>> wrote:
>>>>> On Jun 19, 2020, at 8:15 AM, Paul A. Rubin  
>>>>> <mailto:parubi...@gmail.com> wrote:
>>>>> 
>>>>> On 6/19/20 7:51 AM, list_em...@icloud.com <mailto:list_em...@icloud.com> 
>>>>> wrote:
>>>>>> I have tried mightily to get LyX to break long equations. I’ve studied 
>>>>>> multiple pages at stackexchange, both LaTeX and LyX, and can’t seem to 
>>>>>> get anything to work.
>>>>>> 
>>>>>> I have had luck in the past with the second large block of code at this 
>>>>>> page:
>>>>>> 
>>>>>> https://stackoverflow.com/questions/2904807/lyx-breaking-long-formula-lines
>>>>>>  
>>>>>> <https://stackoverflow.com/questions/2904807/lyx-breaking-long-formula-lines>
>>>>>> 
>>>>>> but today I have some problems with it.
>>>>>> 
>>>>>> First, it doesn’t work if the \text command appears inside my own LaTeX 
>>>>>> code that appears between \begin{dmath} and \end{dmath} or if I try to 
>>>>>> use the trick twice in the same document. (That’s a tentative analysis 
>>>>>> of the problem.) Specifically, LyX runs at 100% CPU eventually gives me 
>>>>>> a chance to abort and then follows up with this additional message: "The 
>>>>>> external program pdflatex finished with an error. It is recommended you 
>>>>>> fix the cause of the external program's error (check the logs)."
>>>>>> 
>>>>>> Plus, I now want to to apply the line breaking to a line within an 
>>>>>> aligned environment (Insert -> Math -> Aligned Environment in the menu 
>>>>>> system.) This is causing things to look even worse, even though I added 
>>>>>> two “aligned” lines to the referenced code block. (If you look at the 
>>>>>> code you’ll see the obvious places to add the lines.)
>>>>>> 
>>>>>> How do LyX-ers handle this? Is there “LyX” solution to breaking long 
>>>>>> equations? I’m OK with some ad hoc solution for now, or some ERT if it 
>>>>>> works.
>>>>>> 
>>>>>> Thanks,
>>>>>> Jerry
>>>>>> 
>>>>>> 
>>>>> I've never used the breqn package, but with ordinary and AMS math 
>>>>> environments, hitting Ctrl-Enter in the middle of a long formula will 
>>>>> break it (inserting a line break, \\, in the LaTeX output). If that 
>>>>> doesn't achieve what you want, perhaps you could post a minimal example 
>>>>> and a specification of what the output should look like.
>>>>> 
>>>>> Paul
>>>>> 
>>>> Thanks, Paul. I’m on a Mac so of course Control-Enter has no meaning. 
>>>> Usually this translates to Mac-speak as Command-Enter. When I do 
>>>> Command-Enter in my equation, which is unfortunately inside a align 
>>>> environment, it instead adds a row to the matrix that represents the align 
>>>> environment. Ditto for Shift-Command-Enter. These two commands in LyX are 
>>>> mapped as Insert -> Formatting -> Ragged Line Break and Justified Line 
>>>> Break, respectively but invoking the menu commands with the cursor in my 
>>>> equation has exactly the same effect: adding a row to the align matrix 
>>>> (above the row where the cursor is.) When (Shift-)Command-Enter is done to 
>>>> a non-align display equation a similar thing happens except now the 
>>>> non-align equation is converted to an align equation with a blank new row 
>>>> _below_ the original equation.
>>>> 
>>>> Right now I guess I would be pretty happy with merely a way to make 
>>>> Command-shift (Control-shift) do what is expected which is apparently 
>>>> break the equation instead of creating a new row.
>>>> 
>>>> Jerry
>>>> 

Re: How to break long equations with LyX

2020-06-20 Thread Joel Kulesza
On Sat, Jun 20, 2020 at 12:13 PM Paul A. Rubin  wrote:

> On 6/19/20 9:47 PM, list_em...@icloud.com wrote:
>
> On Jun 19, 2020, at 5:14 PM, Paul A. Rubin  
>  wrote:
>
> On 6/19/20 7:34 PM, list_em...@icloud.com wrote:
>
> On Jun 19, 2020, at 8:15 AM, Paul A. Rubin  
>  wrote:
>
> On 6/19/20 7:51 AM, list_em...@icloud.com wrote:
>
> I have tried mightily to get LyX to break long equations. I’ve studied 
> multiple pages at stackexchange, both LaTeX and LyX, and can’t seem to get 
> anything to work.
>
> I have had luck in the past with the second large block of code at this page:
> https://stackoverflow.com/questions/2904807/lyx-breaking-long-formula-lines
>
> but today I have some problems with it.
>
> First, it doesn’t work if the \text command appears inside my own LaTeX code 
> that appears between \begin{dmath} and \end{dmath} or if I try to use the 
> trick twice in the same document. (That’s a tentative analysis of the 
> problem.) Specifically, LyX runs at 100% CPU eventually gives me a chance to 
> abort and then follows up with this additional message: "The external program 
> pdflatex finished with an error. It is recommended you fix the cause of the 
> external program's error (check the logs)."
>
> Plus, I now want to to apply the line breaking to a line within an aligned 
> environment (Insert -> Math -> Aligned Environment in the menu system.) This 
> is causing things to look even worse, even though I added two “aligned” lines 
> to the referenced code block. (If you look at the code you’ll see the obvious 
> places to add the lines.)
>
> How do LyX-ers handle this? Is there “LyX” solution to breaking long 
> equations? I’m OK with some ad hoc solution for now, or some ERT if it works.
>
> Thanks,
> Jerry
>
>
>
> I've never used the breqn package, but with ordinary and AMS math 
> environments, hitting Ctrl-Enter in the middle of a long formula will break 
> it (inserting a line break, \\, in the LaTeX output). If that doesn't achieve 
> what you want, perhaps you could post a minimal example and a specification 
> of what the output should look like.
>
> Paul
>
>
> Thanks, Paul. I’m on a Mac so of course Control-Enter has no meaning. Usually 
> this translates to Mac-speak as Command-Enter. When I do Command-Enter in my 
> equation, which is unfortunately inside a align environment, it instead adds 
> a row to the matrix that represents the align environment. Ditto for 
> Shift-Command-Enter. These two commands in LyX are mapped as Insert -> 
> Formatting -> Ragged Line Break and Justified Line Break, respectively but 
> invoking the menu commands with the cursor in my equation has exactly the 
> same effect: adding a row to the align matrix (above the row where the cursor 
> is.) When (Shift-)Command-Enter is done to a non-align display equation a 
> similar thing happens except now the non-align equation is converted to an 
> align equation with a blank new row _below_ the original equation.
>
> Right now I guess I would be pretty happy with merely a way to make 
> Command-shift (Control-shift) do what is expected which is apparently break 
> the equation instead of creating a new row.
>
> Jerry
>
>
> Jerry,
>
> I just created an align environment with two equations, the left side of the 
> first being ridiculously long. When I put the cursor somewhere toward the 
> middle of the left side of the long equation and inserted a break (using 
> Ctrl-Enter -- I'll get to the Mac part in a minute), it broke the equation 
> and inserted a new row. So
>
> (x+x+x+x+...+x) =1
>  y =2
>
> (where the right column contained the equal signs and integers) became
>
> (x+x+x+...
> +x+x+x+x) =1
>  y =2
>
> where the right column is empty in the first row. See the attached minimal 
> example. Is this not what you want?
>
> Regarding the key mapping, if you can find an unused key combo that you have 
> a chance of remembering, you can map it to "newline-insert newline" using 
> Tools > Preferences... > Editing > Shortcuts. That's what Ctrl+Enter binds to 
> for me.
>
> Paul
>
> Paul:
>
> Thanks. The effect appears to work by adding another row to the matrix and 
> filling it with the partial equation. In your example the new row is on top. 
> If the long equation is moved to the RHS the new row is below.
>
> I tried adding horizontal space to the second line of your broken equation 
> but Latex seems to ignore it: when I click outside the math box and the 
> equation is rendered, it is rendered without the horizontal space even though 
> it was visible while in math editing mode.
>
> About Mac key mappings: Acco

Re: How to break long equations with LyX

2020-06-20 Thread Paul A. Rubin

On 6/20/20 8:00 AM, list_em...@icloud.com wrote:

On Jun 19, 2020, at 5:14 PM, Paul A. Rubin  wrote:

On 6/19/20 7:34 PM, list_em...@icloud.com wrote:

On Jun 19, 2020, at 8:15 AM, Paul A. Rubin  wrote:

On 6/19/20 7:51 AM, list_em...@icloud.com wrote:

I have tried mightily to get LyX to break long equations. I’ve studied multiple 
pages at stackexchange, both LaTeX and LyX, and can’t seem to get anything to 
work.

I have had luck in the past with the second large block of code at this page:

https://stackoverflow.com/questions/2904807/lyx-breaking-long-formula-lines

but today I have some problems with it.

First, it doesn’t work if the \text command appears inside my own LaTeX code that appears 
between \begin{dmath} and \end{dmath} or if I try to use the trick twice in the same 
document. (That’s a tentative analysis of the problem.) Specifically, LyX runs at 100% 
CPU eventually gives me a chance to abort and then follows up with this additional 
message: "The external program pdflatex finished with an error. It is recommended 
you fix the cause of the external program's error (check the logs)."

Plus, I now want to to apply the line breaking to a line within an aligned 
environment (Insert -> Math -> Aligned Environment in the menu system.) This is 
causing things to look even worse, even though I added two “aligned” lines to the 
referenced code block. (If you look at the code you’ll see the obvious places to add 
the lines.)

How do LyX-ers handle this? Is there “LyX” solution to breaking long equations? 
I’m OK with some ad hoc solution for now, or some ERT if it works.

Thanks,
Jerry



I've never used the breqn package, but with ordinary and AMS math environments, 
hitting Ctrl-Enter in the middle of a long formula will break it (inserting a 
line break, \\, in the LaTeX output). If that doesn't achieve what you want, 
perhaps you could post a minimal example and a specification of what the output 
should look like.

Paul


Thanks, Paul. I’m on a Mac so of course Control-Enter has no meaning. Usually this 
translates to Mac-speak as Command-Enter. When I do Command-Enter in my equation, 
which is unfortunately inside a align environment, it instead adds a row to the 
matrix that represents the align environment. Ditto for Shift-Command-Enter. These 
two commands in LyX are mapped as Insert -> Formatting -> Ragged Line Break and 
Justified Line Break, respectively but invoking the menu commands with the cursor in 
my equation has exactly the same effect: adding a row to the align matrix (above the 
row where the cursor is.) When (Shift-)Command-Enter is done to a non-align display 
equation a similar thing happens except now the non-align equation is converted to an 
align equation with a blank new row _below_ the original equation.

Right now I guess I would be pretty happy with merely a way to make 
Command-shift (Control-shift) do what is expected which is apparently break the 
equation instead of creating a new row.

Jerry


Jerry,

I just created an align environment with two equations, the left side of the 
first being ridiculously long. When I put the cursor somewhere toward the 
middle of the left side of the long equation and inserted a break (using 
Ctrl-Enter -- I'll get to the Mac part in a minute), it broke the equation and 
inserted a new row. So

 (x+x+x+x+...+x) =1
  y =2

(where the right column contained the equal signs and integers) became

 (x+x+x+...
 +x+x+x+x) =1
  y =2

where the right column is empty in the first row. See the attached minimal 
example. Is this not what you want?

Regarding the key mapping, if you can find an unused key combo that you have a chance of 
remembering, you can map it to "newline-insert newline" using Tools > Preferences... 
> Editing > Shortcuts. That's what Ctrl+Enter binds to for me.

Paul

—

Paul,

I’ve attached an example showing a few things, mainly that 
Command-(Control-)-Enter works with your equation and the equation from Section 
18 of the Math manual but not with my equation.

Jerry



Jerry,

As explained in my reply to your prior message, the breaking in the 
wrong place issue is apparently caused by the use of balanced [] around 
the chubby part of the formula.


Regarding the rest, I also get a bunch of (apparently harmless) LaTeX 
errors/warnings when I compile it. As to why the version you liked 
failed to be transferable to its intended destination, I have no idea 
about that. Although I have the breqn package installed, I have never 
used it, so I don't know with what other packages (or standard LaTeX 
things) it might be incompatible. The change I made in the previous file 
also works here, and (since it is vanilla LaTeX and does not use the 
dmath environment) should be portable.


Paul

-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: How to break long equations with LyX

2020-06-20 Thread Paul A. Rubin

On 6/19/20 9:47 PM, list_em...@icloud.com wrote:

On Jun 19, 2020, at 5:14 PM, Paul A. Rubin  wrote:

On 6/19/20 7:34 PM, list_em...@icloud.com wrote:

On Jun 19, 2020, at 8:15 AM, Paul A. Rubin  wrote:

On 6/19/20 7:51 AM, list_em...@icloud.com wrote:

I have tried mightily to get LyX to break long equations. I’ve studied multiple 
pages at stackexchange, both LaTeX and LyX, and can’t seem to get anything to 
work.

I have had luck in the past with the second large block of code at this page:

https://stackoverflow.com/questions/2904807/lyx-breaking-long-formula-lines

but today I have some problems with it.

First, it doesn’t work if the \text command appears inside my own LaTeX code that appears 
between \begin{dmath} and \end{dmath} or if I try to use the trick twice in the same 
document. (That’s a tentative analysis of the problem.) Specifically, LyX runs at 100% 
CPU eventually gives me a chance to abort and then follows up with this additional 
message: "The external program pdflatex finished with an error. It is recommended 
you fix the cause of the external program's error (check the logs)."

Plus, I now want to to apply the line breaking to a line within an aligned 
environment (Insert -> Math -> Aligned Environment in the menu system.) This is 
causing things to look even worse, even though I added two “aligned” lines to the 
referenced code block. (If you look at the code you’ll see the obvious places to add 
the lines.)

How do LyX-ers handle this? Is there “LyX” solution to breaking long equations? 
I’m OK with some ad hoc solution for now, or some ERT if it works.

Thanks,
Jerry



I've never used the breqn package, but with ordinary and AMS math environments, 
hitting Ctrl-Enter in the middle of a long formula will break it (inserting a 
line break, \\, in the LaTeX output). If that doesn't achieve what you want, 
perhaps you could post a minimal example and a specification of what the output 
should look like.

Paul


Thanks, Paul. I’m on a Mac so of course Control-Enter has no meaning. Usually this 
translates to Mac-speak as Command-Enter. When I do Command-Enter in my equation, 
which is unfortunately inside a align environment, it instead adds a row to the 
matrix that represents the align environment. Ditto for Shift-Command-Enter. These 
two commands in LyX are mapped as Insert -> Formatting -> Ragged Line Break and 
Justified Line Break, respectively but invoking the menu commands with the cursor in 
my equation has exactly the same effect: adding a row to the align matrix (above the 
row where the cursor is.) When (Shift-)Command-Enter is done to a non-align display 
equation a similar thing happens except now the non-align equation is converted to an 
align equation with a blank new row _below_ the original equation.

Right now I guess I would be pretty happy with merely a way to make 
Command-shift (Control-shift) do what is expected which is apparently break the 
equation instead of creating a new row.

Jerry


Jerry,

I just created an align environment with two equations, the left side of the 
first being ridiculously long. When I put the cursor somewhere toward the 
middle of the left side of the long equation and inserted a break (using 
Ctrl-Enter -- I'll get to the Mac part in a minute), it broke the equation and 
inserted a new row. So

 (x+x+x+x+...+x) =1
  y =2

(where the right column contained the equal signs and integers) became

 (x+x+x+...
 +x+x+x+x) =1
  y =2

where the right column is empty in the first row. See the attached minimal 
example. Is this not what you want?

Regarding the key mapping, if you can find an unused key combo that you have a chance of 
remembering, you can map it to "newline-insert newline" using Tools > Preferences... 
> Editing > Shortcuts. That's what Ctrl+Enter binds to for me.

Paul

Paul:

Thanks. The effect appears to work by adding another row to the matrix and 
filling it with the partial equation. In your example the new row is on top. If 
the long equation is moved to the RHS the new row is below.

I tried adding horizontal space to the second line of your broken equation but 
Latex seems to ignore it: when I click outside the math box and the equation is 
rendered, it is rendered without the horizontal space even though it was 
visible while in math editing mode.

About Mac key mappings: According to the status line in the document window, 
when I hit Command-Shift, it displays “(newline-insert newline;) and then icons 
for “Command” and “new line” which is an arrow thingy. So I’m going to assume 
that the key mapping is correct but that there is another problem, meaning…

…See my attached example. Attempting to break the line before the second 
exponential (1) doesn’t break the line, (2) adds a matrix row above, and (3) 
steals the = from the now-third row and puts it on the second row.

The failure to break with Command-Enter does not seem to be a function of t

Re: How to break long equations with LyX

2020-06-20 Thread list_email

> On Jun 19, 2020, at 5:14 PM, Paul A. Rubin  wrote:
> 
> On 6/19/20 7:34 PM, list_em...@icloud.com wrote:
>>> On Jun 19, 2020, at 8:15 AM, Paul A. Rubin  wrote:
>>> 
>>> On 6/19/20 7:51 AM, list_em...@icloud.com wrote:
>>>> I have tried mightily to get LyX to break long equations. I’ve studied 
>>>> multiple pages at stackexchange, both LaTeX and LyX, and can’t seem to get 
>>>> anything to work.
>>>> 
>>>> I have had luck in the past with the second large block of code at this 
>>>> page:
>>>> 
>>>> https://stackoverflow.com/questions/2904807/lyx-breaking-long-formula-lines
>>>> 
>>>> but today I have some problems with it.
>>>> 
>>>> First, it doesn’t work if the \text command appears inside my own LaTeX 
>>>> code that appears between \begin{dmath} and \end{dmath} or if I try to use 
>>>> the trick twice in the same document. (That’s a tentative analysis of the 
>>>> problem.) Specifically, LyX runs at 100% CPU eventually gives me a chance 
>>>> to abort and then follows up with this additional message: "The external 
>>>> program pdflatex finished with an error. It is recommended you fix the 
>>>> cause of the external program's error (check the logs)."
>>>> 
>>>> Plus, I now want to to apply the line breaking to a line within an aligned 
>>>> environment (Insert -> Math -> Aligned Environment in the menu system.) 
>>>> This is causing things to look even worse, even though I added two 
>>>> “aligned” lines to the referenced code block. (If you look at the code 
>>>> you’ll see the obvious places to add the lines.)
>>>> 
>>>> How do LyX-ers handle this? Is there “LyX” solution to breaking long 
>>>> equations? I’m OK with some ad hoc solution for now, or some ERT if it 
>>>> works.
>>>> 
>>>> Thanks,
>>>> Jerry
>>>> 
>>>> 
>>> I've never used the breqn package, but with ordinary and AMS math 
>>> environments, hitting Ctrl-Enter in the middle of a long formula will break 
>>> it (inserting a line break, \\, in the LaTeX output). If that doesn't 
>>> achieve what you want, perhaps you could post a minimal example and a 
>>> specification of what the output should look like.
>>> 
>>> Paul
>>> 
>> Thanks, Paul. I’m on a Mac so of course Control-Enter has no meaning. 
>> Usually this translates to Mac-speak as Command-Enter. When I do 
>> Command-Enter in my equation, which is unfortunately inside a align 
>> environment, it instead adds a row to the matrix that represents the align 
>> environment. Ditto for Shift-Command-Enter. These two commands in LyX are 
>> mapped as Insert -> Formatting -> Ragged Line Break and Justified Line 
>> Break, respectively but invoking the menu commands with the cursor in my 
>> equation has exactly the same effect: adding a row to the align matrix 
>> (above the row where the cursor is.) When (Shift-)Command-Enter is done to a 
>> non-align display equation a similar thing happens except now the non-align 
>> equation is converted to an align equation with a blank new row _below_ the 
>> original equation.
>> 
>> Right now I guess I would be pretty happy with merely a way to make 
>> Command-shift (Control-shift) do what is expected which is apparently break 
>> the equation instead of creating a new row.
>> 
>> Jerry
>> 
> Jerry,
> 
> I just created an align environment with two equations, the left side of the 
> first being ridiculously long. When I put the cursor somewhere toward the 
> middle of the left side of the long equation and inserted a break (using 
> Ctrl-Enter -- I'll get to the Mac part in a minute), it broke the equation 
> and inserted a new row. So
> 
> (x+x+x+x+...+x) =1
>  y =2
> 
> (where the right column contained the equal signs and integers) became
> 
> (x+x+x+...
> +x+x+x+x) =1
>  y =2
> 
> where the right column is empty in the first row. See the attached minimal 
> example. Is this not what you want?
> 
> Regarding the key mapping, if you can find an unused key combo that you have 
> a chance of remembering, you can map it to "newline-insert newline" using 
> Tools > Preferences... > Editing > Shortcuts. That's what Ctrl+Enter binds to 
> for me.
> 
> Paul
> 
> — 

Paul,

I’ve attached an example showing a few things, mainly that 
Command-(Control-)-Enter works with your equation and the equation from Section 
18 of the Math manual but not with my equation.

Jerry



Breaking Bad.lyx
Description: Binary data
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: How to break long equations with LyX

2020-06-20 Thread Steve Litt
On Fri, 19 Jun 2020 07:26:30 -0600
Joel Kulesza  wrote:

> On Fri, Jun 19, 2020 at 5:51 AM  wrote:
> 
> > I have tried mightily to get LyX to break long equations. I’ve
> > studied multiple pages at stackexchange, both LaTeX and LyX, and
> > can’t seem to get anything to work.
> >
> > ...
> >
> > How do LyX-ers handle this? Is there “LyX” solution to breaking long
> > equations? I’m OK with some ad hoc solution for now, or some ERT if
> > it works.
> >  
> 
> Jerry,
> 
> I regret that I don't have any good guidance to satisfy your desire to
> automatically break equations.  One benefit to LaTeX is the aesthetic
> as a result of the underlying algorithms, but I know of no automatic
> algorithms to universally break equations well.  I suspect this is
> the case because each component in the equation has distinct meaning
> and how the equation is broken and aligned can help the reader
> interpret it (e.g., breaking at "logical" places).

One thing I've been known to do is to put in a lot of intermediate
steps, so each equation is short.

SteveT

Steve Litt 
May 2020 featured book: Troubleshooting Techniques
 of the Successful Technologist
http://www.troubleshooters.com/techniques
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: How to break long equations with LyX

2020-06-19 Thread list_email

> On Jun 19, 2020, at 5:14 PM, Paul A. Rubin  wrote:
> 
> On 6/19/20 7:34 PM, list_em...@icloud.com wrote:
>>> On Jun 19, 2020, at 8:15 AM, Paul A. Rubin  wrote:
>>> 
>>> On 6/19/20 7:51 AM, list_em...@icloud.com wrote:
>>>> I have tried mightily to get LyX to break long equations. I’ve studied 
>>>> multiple pages at stackexchange, both LaTeX and LyX, and can’t seem to get 
>>>> anything to work.
>>>> 
>>>> I have had luck in the past with the second large block of code at this 
>>>> page:
>>>> 
>>>> https://stackoverflow.com/questions/2904807/lyx-breaking-long-formula-lines
>>>> 
>>>> but today I have some problems with it.
>>>> 
>>>> First, it doesn’t work if the \text command appears inside my own LaTeX 
>>>> code that appears between \begin{dmath} and \end{dmath} or if I try to use 
>>>> the trick twice in the same document. (That’s a tentative analysis of the 
>>>> problem.) Specifically, LyX runs at 100% CPU eventually gives me a chance 
>>>> to abort and then follows up with this additional message: "The external 
>>>> program pdflatex finished with an error. It is recommended you fix the 
>>>> cause of the external program's error (check the logs)."
>>>> 
>>>> Plus, I now want to to apply the line breaking to a line within an aligned 
>>>> environment (Insert -> Math -> Aligned Environment in the menu system.) 
>>>> This is causing things to look even worse, even though I added two 
>>>> “aligned” lines to the referenced code block. (If you look at the code 
>>>> you’ll see the obvious places to add the lines.)
>>>> 
>>>> How do LyX-ers handle this? Is there “LyX” solution to breaking long 
>>>> equations? I’m OK with some ad hoc solution for now, or some ERT if it 
>>>> works.
>>>> 
>>>> Thanks,
>>>> Jerry
>>>> 
>>>> 
>>> I've never used the breqn package, but with ordinary and AMS math 
>>> environments, hitting Ctrl-Enter in the middle of a long formula will break 
>>> it (inserting a line break, \\, in the LaTeX output). If that doesn't 
>>> achieve what you want, perhaps you could post a minimal example and a 
>>> specification of what the output should look like.
>>> 
>>> Paul
>>> 
>> Thanks, Paul. I’m on a Mac so of course Control-Enter has no meaning. 
>> Usually this translates to Mac-speak as Command-Enter. When I do 
>> Command-Enter in my equation, which is unfortunately inside a align 
>> environment, it instead adds a row to the matrix that represents the align 
>> environment. Ditto for Shift-Command-Enter. These two commands in LyX are 
>> mapped as Insert -> Formatting -> Ragged Line Break and Justified Line 
>> Break, respectively but invoking the menu commands with the cursor in my 
>> equation has exactly the same effect: adding a row to the align matrix 
>> (above the row where the cursor is.) When (Shift-)Command-Enter is done to a 
>> non-align display equation a similar thing happens except now the non-align 
>> equation is converted to an align equation with a blank new row _below_ the 
>> original equation.
>> 
>> Right now I guess I would be pretty happy with merely a way to make 
>> Command-shift (Control-shift) do what is expected which is apparently break 
>> the equation instead of creating a new row.
>> 
>> Jerry
>> 
> Jerry,
> 
> I just created an align environment with two equations, the left side of the 
> first being ridiculously long. When I put the cursor somewhere toward the 
> middle of the left side of the long equation and inserted a break (using 
> Ctrl-Enter -- I'll get to the Mac part in a minute), it broke the equation 
> and inserted a new row. So
> 
> (x+x+x+x+...+x) =1
>  y =2
> 
> (where the right column contained the equal signs and integers) became
> 
> (x+x+x+...
> +x+x+x+x) =1
>  y =2
> 
> where the right column is empty in the first row. See the attached minimal 
> example. Is this not what you want?
> 
> Regarding the key mapping, if you can find an unused key combo that you have 
> a chance of remembering, you can map it to "newline-insert newline" using 
> Tools > Preferences... > Editing > Shortcuts. That's what Ctrl+Enter binds to 
> for me.
> 
> Paul

Paul:

Thanks. The effect appears to work by adding another row to the matrix and 
filling it with the partial equation. In your example

Re: How to break long equations with LyX

2020-06-19 Thread list_email

> On Jun 19, 2020, at 8:15 AM, Paul A. Rubin  wrote:
> 
> On 6/19/20 7:51 AM, list_em...@icloud.com wrote:
>> I have tried mightily to get LyX to break long equations. I’ve studied 
>> multiple pages at stackexchange, both LaTeX and LyX, and can’t seem to get 
>> anything to work.
>> 
>> I have had luck in the past with the second large block of code at this page:
>> 
>> https://stackoverflow.com/questions/2904807/lyx-breaking-long-formula-lines
>> 
>> but today I have some problems with it.
>> 
>> First, it doesn’t work if the \text command appears inside my own LaTeX code 
>> that appears between \begin{dmath} and \end{dmath} or if I try to use the 
>> trick twice in the same document. (That’s a tentative analysis of the 
>> problem.) Specifically, LyX runs at 100% CPU eventually gives me a chance to 
>> abort and then follows up with this additional message: "The external 
>> program pdflatex finished with an error. It is recommended you fix the cause 
>> of the external program's error (check the logs)."
>> 
>> Plus, I now want to to apply the line breaking to a line within an aligned 
>> environment (Insert -> Math -> Aligned Environment in the menu system.) This 
>> is causing things to look even worse, even though I added two “aligned” 
>> lines to the referenced code block. (If you look at the code you’ll see the 
>> obvious places to add the lines.)
>> 
>> How do LyX-ers handle this? Is there “LyX” solution to breaking long 
>> equations? I’m OK with some ad hoc solution for now, or some ERT if it works.
>> 
>> Thanks,
>> Jerry
>> 
>> 
> I've never used the breqn package, but with ordinary and AMS math 
> environments, hitting Ctrl-Enter in the middle of a long formula will break 
> it (inserting a line break, \\, in the LaTeX output). If that doesn't achieve 
> what you want, perhaps you could post a minimal example and a specification 
> of what the output should look like.
> 
> Paul
> 
Thanks, Paul. I’m on a Mac so of course Control-Enter has no meaning. Usually 
this translates to Mac-speak as Command-Enter. When I do Command-Enter in my 
equation, which is unfortunately inside a align environment, it instead adds a 
row to the matrix that represents the align environment. Ditto for 
Shift-Command-Enter. These two commands in LyX are mapped as Insert -> 
Formatting -> Ragged Line Break and Justified Line Break, respectively but 
invoking the menu commands with the cursor in my equation has exactly the same 
effect: adding a row to the align matrix (above the row where the cursor is.) 
When (Shift-)Command-Enter is done to a non-align display equation a similar 
thing happens except now the non-align equation is converted to an align 
equation with a blank new row _below_ the original equation.

Right now I guess I would be pretty happy with merely a way to make 
Command-shift (Control-shift) do what is expected which is apparently break the 
equation instead of creating a new row.

Jerry

-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: How to break long equations with LyX

2020-06-19 Thread Paul A. Rubin

On 6/19/20 7:34 PM, list_em...@icloud.com wrote:

On Jun 19, 2020, at 8:15 AM, Paul A. Rubin  wrote:

On 6/19/20 7:51 AM, list_em...@icloud.com wrote:

I have tried mightily to get LyX to break long equations. I’ve studied multiple 
pages at stackexchange, both LaTeX and LyX, and can’t seem to get anything to 
work.

I have had luck in the past with the second large block of code at this page:

https://stackoverflow.com/questions/2904807/lyx-breaking-long-formula-lines

but today I have some problems with it.

First, it doesn’t work if the \text command appears inside my own LaTeX code that appears 
between \begin{dmath} and \end{dmath} or if I try to use the trick twice in the same 
document. (That’s a tentative analysis of the problem.) Specifically, LyX runs at 100% 
CPU eventually gives me a chance to abort and then follows up with this additional 
message: "The external program pdflatex finished with an error. It is recommended 
you fix the cause of the external program's error (check the logs)."

Plus, I now want to to apply the line breaking to a line within an aligned 
environment (Insert -> Math -> Aligned Environment in the menu system.) This is 
causing things to look even worse, even though I added two “aligned” lines to the 
referenced code block. (If you look at the code you’ll see the obvious places to add 
the lines.)

How do LyX-ers handle this? Is there “LyX” solution to breaking long equations? 
I’m OK with some ad hoc solution for now, or some ERT if it works.

Thanks,
Jerry



I've never used the breqn package, but with ordinary and AMS math environments, 
hitting Ctrl-Enter in the middle of a long formula will break it (inserting a 
line break, \\, in the LaTeX output). If that doesn't achieve what you want, 
perhaps you could post a minimal example and a specification of what the output 
should look like.

Paul


Thanks, Paul. I’m on a Mac so of course Control-Enter has no meaning. Usually this 
translates to Mac-speak as Command-Enter. When I do Command-Enter in my equation, 
which is unfortunately inside a align environment, it instead adds a row to the 
matrix that represents the align environment. Ditto for Shift-Command-Enter. These 
two commands in LyX are mapped as Insert -> Formatting -> Ragged Line Break and 
Justified Line Break, respectively but invoking the menu commands with the cursor in 
my equation has exactly the same effect: adding a row to the align matrix (above the 
row where the cursor is.) When (Shift-)Command-Enter is done to a non-align display 
equation a similar thing happens except now the non-align equation is converted to an 
align equation with a blank new row _below_ the original equation.

Right now I guess I would be pretty happy with merely a way to make 
Command-shift (Control-shift) do what is expected which is apparently break the 
equation instead of creating a new row.

Jerry


Jerry,

I just created an align environment with two equations, the left side of 
the first being ridiculously long. When I put the cursor somewhere 
toward the middle of the left side of the long equation and inserted a 
break (using Ctrl-Enter -- I'll get to the Mac part in a minute), it 
broke the equation and inserted a new row. So


    (x+x+x+x+...+x) =1
 y =2

(where the right column contained the equal signs and integers) became

    (x+x+x+...
    +x+x+x+x) =1
 y =2

where the right column is empty in the first row. See the attached 
minimal example. Is this not what you want?


Regarding the key mapping, if you can find an unused key combo that you 
have a chance of remembering, you can map it to "newline-insert newline" 
using Tools > Preferences... > Editing > Shortcuts. That's what 
Ctrl+Enter binds to for me.


Paul



breakeq.lyx
Description: application/lyx
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


How to break long equations with LyX

2020-06-19 Thread list_email
I have tried mightily to get LyX to break long equations. I’ve studied multiple 
pages at stackexchange, both LaTeX and LyX, and can’t seem to get anything to 
work.

I have had luck in the past with the second large block of code at this page:

https://stackoverflow.com/questions/2904807/lyx-breaking-long-formula-lines

but today I have some problems with it.

First, it doesn’t work if the \text command appears inside my own LaTeX code 
that appears between \begin{dmath} and \end{dmath} or if I try to use the trick 
twice in the same document. (That’s a tentative analysis of the problem.) 
Specifically, LyX runs at 100% CPU eventually gives me a chance to abort and 
then follows up with this additional message: "The external program pdflatex 
finished with an error. It is recommended you fix the cause of the external 
program's error (check the logs)."

Plus, I now want to to apply the line breaking to a line within an aligned 
environment (Insert -> Math -> Aligned Environment in the menu system.) This is 
causing things to look even worse, even though I added two “aligned” lines to 
the referenced code block. (If you look at the code you’ll see the obvious 
places to add the lines.)

How do LyX-ers handle this? Is there “LyX” solution to breaking long equations? 
I’m OK with some ad hoc solution for now, or some ERT if it works.

Thanks,
Jerry


-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: How to break long equations with LyX

2020-06-19 Thread Paul A. Rubin

On 6/19/20 7:51 AM, list_em...@icloud.com wrote:

I have tried mightily to get LyX to break long equations. I’ve studied multiple 
pages at stackexchange, both LaTeX and LyX, and can’t seem to get anything to 
work.

I have had luck in the past with the second large block of code at this page:

https://stackoverflow.com/questions/2904807/lyx-breaking-long-formula-lines

but today I have some problems with it.

First, it doesn’t work if the \text command appears inside my own LaTeX code that appears 
between \begin{dmath} and \end{dmath} or if I try to use the trick twice in the same 
document. (That’s a tentative analysis of the problem.) Specifically, LyX runs at 100% 
CPU eventually gives me a chance to abort and then follows up with this additional 
message: "The external program pdflatex finished with an error. It is recommended 
you fix the cause of the external program's error (check the logs)."

Plus, I now want to to apply the line breaking to a line within an aligned 
environment (Insert -> Math -> Aligned Environment in the menu system.) This is 
causing things to look even worse, even though I added two “aligned” lines to the 
referenced code block. (If you look at the code you’ll see the obvious places to add 
the lines.)

How do LyX-ers handle this? Is there “LyX” solution to breaking long equations? 
I’m OK with some ad hoc solution for now, or some ERT if it works.

Thanks,
Jerry


I've never used the breqn package, but with ordinary and AMS math 
environments, hitting Ctrl-Enter in the middle of a long formula will 
break it (inserting a line break, \\, in the LaTeX output). If that 
doesn't achieve what you want, perhaps you could post a minimal example 
and a specification of what the output should look like.


Paul

--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: How to break long equations with LyX

2020-06-19 Thread Joel Kulesza
On Fri, Jun 19, 2020 at 5:51 AM  wrote:

> I have tried mightily to get LyX to break long equations. I’ve studied
> multiple pages at stackexchange, both LaTeX and LyX, and can’t seem to get
> anything to work.
>
> ...
>
> How do LyX-ers handle this? Is there “LyX” solution to breaking long
> equations? I’m OK with some ad hoc solution for now, or some ERT if it
> works.
>

Jerry,

I regret that I don't have any good guidance to satisfy your desire to
automatically break equations.  One benefit to LaTeX is the aesthetic as a
result of the underlying algorithms, but I know of no automatic algorithms
to universally break equations well.  I suspect this is the case because
each component in the equation has distinct meaning and how the equation is
broken and aligned can help the reader interpret it (e.g., breaking at
"logical" places).

As such, the two approaches I take are to either use multiline or aligned
equations (with the "right-hand side" indented with a manual \quad).  This
has produced equations I'm usually happy with.  Multiline is a bit more
"automatic," but it can produce equations that aren't totally satisfying
(e.g., 6b in this paper
<https://www.osti.gov/biblio/1542798-monte-carlo-importance-splitting-analytic-benchmark>
).

Sorry I can't offer a good and direct answer, but I hope these thoughts
help.

- Joel
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Equations - Preview Issue

2019-01-01 Thread Baris Erkus
Hello,

I am using Istanbul Tech. Univ thesis class. Attached are the MWEs, the 
layout file and the ITU thesis class file.

Some equations are not previewed and there is no apparent reason. All 
other equations are previewed nicely.

I have tried the article class, which works fine. So I believe it is 
related to ITU thesis class file. Still it is funny only one or two 
equations are not previewed.

Did anybody experienced similar issue with other classes?

Thanks and happy 2019 to all...

B. Erkus

-- 
↓↓
Please bottom-post. Start your reply here:

#LyX 2.3 created this file. For more info see http://www.lyx.org/
\lyxformat 544
\begin_document
\begin_header
\save_transient_properties true
\origin unavailable
\textclass article
\use_default_options false
\maintain_unincluded_children false
\language english
\language_package none
\inputencoding auto
\fontencoding default
\font_roman "default" "default"
\font_sans "default" "default"
\font_typewriter "default" "default"
\font_math "auto" "auto"
\font_default_family default
\use_non_tex_fonts false
\font_sc false
\font_osf false
\font_sf_scale 100 100
\font_tt_scale 100 100
\use_microtype false
\use_dash_ligatures true
\graphics default
\default_output_format default
\output_sync 0
\bibtex_command default
\index_command default
\paperfontsize default
\spacing single
\use_hyperref false
\papersize default
\use_geometry false
\use_package amsmath 1
\use_package amssymb 1
\use_package cancel 1
\use_package esint 1
\use_package mathdots 1
\use_package mathtools 1
\use_package mhchem 1
\use_package stackrel 1
\use_package stmaryrd 1
\use_package undertilde 1
\cite_engine basic
\cite_engine_type default
\biblio_style plain
\use_bibtopic false
\use_indices false
\paperorientation portrait
\suppress_date false
\justification true
\use_refstyle 0
\use_minted 0
\index Index
\shortcut idx
\color #008000
\end_index
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\paragraph_indentation default
\is_math_indent 0
\math_numbering_side default
\quotes_style english
\dynamic_quotes 0
\papercolumns 1
\papersides 1
\paperpagestyle default
\tracking_changes false
\output_changes false
\html_math_output 0
\html_css_as_file 0
\html_be_strict false
\end_header

\begin_body

\begin_layout Itemize
\noindent
\begin_inset Formula $F_{\text{y}}$
\end_inset

This does not render.
\end_layout

\begin_layout Itemize
\noindent
\begin_inset Formula $K_{\text{e}}$
\end_inset

 OK
\end_layout

\begin_layout Itemize
\noindent
\begin_inset Formula $K_{\text{s}}=\alpha_{\text{s}}K_{\text{e}}$
\end_inset

 OK
\end_layout

\begin_layout Itemize
\noindent
\begin_inset Formula $F_{\text{c}},\delta_{\text{c}}$
\end_inset

 
\begin_inset Formula $(F_{c})$
\end_inset

 OK
\end_layout

\begin_layout Itemize
This is not OK:
\end_layout

\begin_layout Standard
\noindent
\begin_inset Formula 
\begin{equation}
F_{\text{c}}=F_{\text{y}}+K_{\text{s}}\left(\delta_{\text{s}}-\delta_{\text{y}}\right)
\end{equation}

\end_inset


\end_layout

\begin_layout Itemize
\noindent
This is OK:
\begin_inset Formula 
\begin{equation}
\delta_{\text{r}}=\delta_{\text{c}}+\left(F_{\text{c}}-F_{\text{r}}\right)/K_{\text{c}}
\end{equation}

\end_inset


\end_layout

\begin_layout Itemize
\noindent

\family roman
\series medium
\shape up
\size normal
\emph off
\bar no
\strikeout off
\xout off
\uuline off
\uwave off
\noun off
\color none
\begin_inset Formula 
$\left(\delta_{\text{c}},\delta_{\text{s}},\alpha_{\text{\text{s}}},\alpha_{\text{\text{c}}},\lambda\right)$
\end_inset


\family default
\series default
\shape default
\size default
\emph default
\bar default
\strikeout default
\xout default
\uuline default
\uwave default
\noun default
\color inherit
 OK
\end_layout

\end_body
\end_document
#LyX 2.3 created this file. For more info see http://www.lyx.org/
\lyxformat 544
\begin_document
\begin_header
\save_transient_properties true
\origin unavailable
\textclass itutezLyX
\use_default_options false
\maintain_unincluded_children false
\language english
\language_package none
\inputencoding auto
\fontencoding default
\font_roman "default" "default"
\font_sans "default" "default"
\font_typewriter "default" "default"
\font_math "auto" "auto"
\font_default_family default
\use_non_tex_fonts false
\font_sc false
\font_osf false
\font_sf_scale 100 100
\font_tt_scale 100 100
\use_microtype false
\use_dash_ligatures true
\graphics default
\default_output_format default
\output_sync 0
\bibtex_command default
\index_command default
\paperfontsize default
\spacing single
\use_hyperref false
\papersize default
\use_geometry false
\use_package amsmath 1
\use_package amssymb 1
\use_package cancel 1
\use_package esint 1
\use_package mathdots 1
\use_package mathtools 1
\use_package mhchem 1
\use_package stackrel 1
\use_package stmaryr

Re: LyX 2.3.1: bug in "\text" mode of equations

2018-11-29 Thread Guenter Milde
On 2018-10-30, Bernt Lie wrote:
> Hm... I opened a new document of the template, and in this new
> template, the preview works. But it does not work in another document
> from the same template, where I'm in the process of inserting text from
> an OCR scanned paper copy of a document I wrote 30 years ago... (using
> Adobe Acrobat for OCR).

> This is weird. Maybe some junk from the imported, scanned document?
> I'll test some more.

...

>>> I need to insert some text in an equation. Two options:
>>> * \text{my text}

This is text-in-maths mode (using the active text font)

>>> * \mathrm{text}

this is the "roman" (upright serif) math alphabet (maths mode).


>>> There is a problem with \text{} if I use Instant preview *on*...: if
>>> I include character "ø" in the text string, it shows if I turn
>>> Instant preview *off*, but is removed if I turn Instant preview
>>> *off*.

Test, whether this "ø" in your source is really
00F8LATIN SMALL LETTER O WITH STROKE
or some other similar looking symbol which may be missing in the text font
used for the instant preview.


Günter



Re: LyX 2.3.1: bug in "\text" mode of equations

2018-10-31 Thread Daniel

On 31/10/2018 15:10, Bernt Lie wrote:

Yes, I confirm that this fixes the problem:
* In "Documents > Settings... > Formats", I change "Default output set to" from 
"PDF(XeTeX)" to "Default".
NOTE: this does not have immediate affect! I need to:
* save the document with this settings change,
* close LyX,
* open LyX
* open the changed document


You don't have to close LyX if you save under a new file name or? At 
least I don't have to in order to see the effect.



I'm curious:
* why on earth should the behavior in LyX be related to the chosen output 
format?
* does changing from "PDF(XeTeX)" to "Default" have any side effects?


I don't know. But since this behaviour seems like a bug, I'll forward it 
to the developers. Here is a short summary:


Steps to reproduce:
1. Open the attached file.
2. Set Preview to "On".

Actual result:
- The ø is omitted in the preview but not in the output.

Expected result:
- It is not omitted in both

Daniel


template_test-9.lyx
Description: application/lyx


RE: LyX 2.3.1: bug in "\text" mode of equations

2018-10-31 Thread Bernt Lie
Yes, I confirm that this fixes the problem:
* In "Documents > Settings... > Formats", I change "Default output set to" from 
"PDF(XeTeX)" to "Default".
NOTE: this does not have immediate affect! I need to:
* save the document with this settings change,
* close LyX,
* open LyX
* open the changed document

I'm curious: 
* why on earth should the behavior in LyX be related to the chosen output 
format?
* does changing from "PDF(XeTeX)" to "Default" have any side effects?

-Bernt

-Original Message-
From: Daniel  
Sent: onsdag 31. oktober 2018 14.54
To: Bernt Lie ; lyx-users@lists.lyx.org
Subject: Re: LyX 2.3.1: bug in "\text" mode of equations

Thanks. I think I have narrowed down the problem to "Default output set to " 
with "PDF (XeTeX)" in

Document > Settings... > Formats.

Can you confirm that the problem goes away if you use the "Default" 
output format? (To force LyX to regenerate the preview you can just save the 
file under a new name after you made the change.)

Daniel

On 31/10/2018 14:32, Bernt Lie wrote:
> Here is my "template_test.lyx" file, which contains displayed math with 
> \text{} containing letter "ø". This letter is not displayed wieh I have 
> enabled "instant preview". It does show up when preview in LyX is turned off. 
> In any way, it shows up in the generated PDF file.
> 
> Still, it annoys me that it doesn't show up when I turn on "instant preview".
> 
> Any clues? I use the latest version of Windows 10 (v 1803) 64 bit, LyX 2.3.1 
> 64 bit, version from September 2018 (?).
> 
> Suggestions are appreciated.
> Bernt
> 
> -Original Message-
> From: lyx-users@lists.lyx.org  On Behalf Of 
> Daniel
> Sent: Tuesday, October 30, 2018 11:44
> To: lyx-users@lists.lyx.org
> Subject: Re: LyX 2.3.1: bug in "\text" mode of equations
> 
> On 30/10/2018 11:33, Bernt Lie wrote:
>> Hm... I opened a new document of the template, and in this new template, the 
>> preview works. But it does not work in another document from the same 
>> template, where I'm in the process of inserting text from an OCR scanned 
>> paper copy of a document I wrote 30 years ago... (using Adobe Acrobat for 
>> OCR).
>>
>> This is weird. Maybe some junk from the imported, scanned document? I'll 
>> test some more.
> 
> You can also try whether making a copy of your problem document and opening 
> the copy makes a difference. As far as I remember this should force LyX to 
> regenerate the preview.
> 
> Daniel
> 
>> -Original Message-
>> From: Daniel 
>> Sent: Tuesday, October 30, 2018 10:52
>> To: Bernt Lie ; lyx-users@lists.lyx.org
>> Subject: Re: LyX 2.3.1: bug in "\text" mode of equations
>>
>> On 30/10/2018 10:46, Bernt Lie wrote:
>>> OK -- in your LyX file, Instant preview works ok. Two questions:
>>> * Could it depend on which *style* I use?
>>
>> So what style are you using? Can you send a (somewhat) minimal document 
>> where the problem occurs?
>>
>>> * My LyX version is:
>>>
>>> LyX Version 2.3.1-1
>>> (Saturday, September 29, 2018)
>>> Built from git commit hash ce82ba93
>>> Library directory: ~\AppData\Local\LyX 2.3\Resources\ User directory:
>>> ~\AppData\Roaming\LyX2.3\ Qt Version (run-time): 5.10.1 Qt Version
>>> (compile-time): 5.10.1
>>> --
>>> --> How can I update to the latest version *without* uninstalling the 
>>> current one, and installing the new version from scratch?
>>
>> That is the latest version and the same I am using.
>>
>> (There might have been a misunderstanding. I thought you menat your 
>> Windows version by "latest version" but I guess you did mean LyX. The 
>> information I sent was on the Windows version I am using.)
>>
>> Daniel
>>
>>>
>>> -Original Message-
>>> From: lyx-users@lists.lyx.org  On Behalf Of 
>>> Daniel
>>> Sent: Tuesday, October 30, 2018 10:33
>>> To: lyx-users@lists.lyx.org
>>> Subject: Re: LyX 2.3.1: bug in "\text" mode of equations
>>>
>>> On 30/10/2018 09:38, Bernt Lie wrote:
>>>> I use LyX 2.3.1 (64bit) on 64bit Win 10, latest version, and have Instant 
>>>> preview turned on.
>>>>
>>>> I need to insert some text in an equation. Two options:
>>>> * \text{my text}
>>>> * \mathrm{text}
>>>>
>>>> With \text{}, space is automatically handled. With \mathrm{}, I need to 
>>>> use

Re: LyX 2.3.1: bug in "\text" mode of equations

2018-10-31 Thread Daniel
Thanks. I think I have narrowed down the problem to "Default output set 
to " with "PDF (XeTeX)" in


Document > Settings... > Formats.

Can you confirm that the problem goes away if you use the "Default" 
output format? (To force LyX to regenerate the preview you can just save 
the file under a new name after you made the change.)


Daniel

On 31/10/2018 14:32, Bernt Lie wrote:

Here is my "template_test.lyx" file, which contains displayed math with \text{} containing letter 
"ø". This letter is not displayed wieh I have enabled "instant preview". It does show up 
when preview in LyX is turned off. In any way, it shows up in the generated PDF file.

Still, it annoys me that it doesn't show up when I turn on "instant preview".

Any clues? I use the latest version of Windows 10 (v 1803) 64 bit, LyX 2.3.1 64 
bit, version from September 2018 (?).

Suggestions are appreciated.
Bernt

-Original Message-
From: lyx-users@lists.lyx.org  On Behalf Of Daniel
Sent: Tuesday, October 30, 2018 11:44
To: lyx-users@lists.lyx.org
Subject: Re: LyX 2.3.1: bug in "\text" mode of equations

On 30/10/2018 11:33, Bernt Lie wrote:

Hm... I opened a new document of the template, and in this new template, the 
preview works. But it does not work in another document from the same template, 
where I'm in the process of inserting text from an OCR scanned paper copy of a 
document I wrote 30 years ago... (using Adobe Acrobat for OCR).

This is weird. Maybe some junk from the imported, scanned document? I'll test 
some more.


You can also try whether making a copy of your problem document and opening the 
copy makes a difference. As far as I remember this should force LyX to 
regenerate the preview.

Daniel


-Original Message-
From: Daniel 
Sent: Tuesday, October 30, 2018 10:52
To: Bernt Lie ; lyx-users@lists.lyx.org
Subject: Re: LyX 2.3.1: bug in "\text" mode of equations

On 30/10/2018 10:46, Bernt Lie wrote:

OK -- in your LyX file, Instant preview works ok. Two questions:
* Could it depend on which *style* I use?


So what style are you using? Can you send a (somewhat) minimal document where 
the problem occurs?


* My LyX version is:

LyX Version 2.3.1-1
(Saturday, September 29, 2018)
Built from git commit hash ce82ba93
Library directory: ~\AppData\Local\LyX 2.3\Resources\ User directory:
~\AppData\Roaming\LyX2.3\ Qt Version (run-time): 5.10.1 Qt Version
(compile-time): 5.10.1
--
--> How can I update to the latest version *without* uninstalling the current 
one, and installing the new version from scratch?


That is the latest version and the same I am using.

(There might have been a misunderstanding. I thought you menat your
Windows version by "latest version" but I guess you did mean LyX. The
information I sent was on the Windows version I am using.)

Daniel



-Original Message-
From: lyx-users@lists.lyx.org  On Behalf Of
Daniel
Sent: Tuesday, October 30, 2018 10:33
To: lyx-users@lists.lyx.org
Subject: Re: LyX 2.3.1: bug in "\text" mode of equations

On 30/10/2018 09:38, Bernt Lie wrote:

I use LyX 2.3.1 (64bit) on 64bit Win 10, latest version, and have Instant 
preview turned on.

I need to insert some text in an equation. Two options:
* \text{my text}
* \mathrm{text}

With \text{}, space is automatically handled. With \mathrm{}, I need to use the 
escape character (backslash) to get space. There are probably also some spacing 
differences -- I assume \text{} is the correct choice if I write text and not 
math.

There is a problem with \text{} if I use Instant preview *on*...: if I include character 
"ø" in the text string, it shows if I turn Instant preview *off*, but is 
removed if I turn Instant preview *off*.

The generated PDF file *includes* the symbol "ø", but ... it does not show up 
in the preview with Instant preview turned *on*.

Presumably, this is a problem with other non-English ASCII characters, too?

-B


I cannot reproduce the problem. The ø in the attached file shows with instant 
preview turned on.

This is on Windows 10 Pro 64bit version 17134.345. ("latest version"
is a bit ambigous since there are different update tracks and the
recently pulled "October 2018 Update".)

Daniel






RE: LyX 2.3.1: bug in "\text" mode of equations

2018-10-31 Thread Bernt Lie
Here is my "template_test.lyx" file, which contains displayed math with \text{} 
containing letter "ø". This letter is not displayed wieh I have enabled 
"instant preview". It does show up when preview in LyX is turned off. In any 
way, it shows up in the generated PDF file.

Still, it annoys me that it doesn't show up when I turn on "instant preview".

Any clues? I use the latest version of Windows 10 (v 1803) 64 bit, LyX 2.3.1 64 
bit, version from September 2018 (?). 

Suggestions are appreciated.
Bernt

-Original Message-
From: lyx-users@lists.lyx.org  On Behalf Of Daniel
Sent: Tuesday, October 30, 2018 11:44
To: lyx-users@lists.lyx.org
Subject: Re: LyX 2.3.1: bug in "\text" mode of equations

On 30/10/2018 11:33, Bernt Lie wrote:
> Hm... I opened a new document of the template, and in this new template, the 
> preview works. But it does not work in another document from the same 
> template, where I'm in the process of inserting text from an OCR scanned 
> paper copy of a document I wrote 30 years ago... (using Adobe Acrobat for 
> OCR).
> 
> This is weird. Maybe some junk from the imported, scanned document? I'll test 
> some more.

You can also try whether making a copy of your problem document and opening the 
copy makes a difference. As far as I remember this should force LyX to 
regenerate the preview.

Daniel

> -Original Message-
> From: Daniel 
> Sent: Tuesday, October 30, 2018 10:52
> To: Bernt Lie ; lyx-users@lists.lyx.org
> Subject: Re: LyX 2.3.1: bug in "\text" mode of equations
> 
> On 30/10/2018 10:46, Bernt Lie wrote:
>> OK -- in your LyX file, Instant preview works ok. Two questions:
>> * Could it depend on which *style* I use?
> 
> So what style are you using? Can you send a (somewhat) minimal document where 
> the problem occurs?
> 
>> * My LyX version is:
>>
>> LyX Version 2.3.1-1
>> (Saturday, September 29, 2018)
>> Built from git commit hash ce82ba93
>> Library directory: ~\AppData\Local\LyX 2.3\Resources\ User directory:
>> ~\AppData\Roaming\LyX2.3\ Qt Version (run-time): 5.10.1 Qt Version
>> (compile-time): 5.10.1
>> --
>> --> How can I update to the latest version *without* uninstalling the 
>> current one, and installing the new version from scratch?
> 
> That is the latest version and the same I am using.
> 
> (There might have been a misunderstanding. I thought you menat your 
> Windows version by "latest version" but I guess you did mean LyX. The 
> information I sent was on the Windows version I am using.)
> 
> Daniel
> 
>>
>> -Original Message-
>> From: lyx-users@lists.lyx.org  On Behalf Of 
>> Daniel
>> Sent: Tuesday, October 30, 2018 10:33
>> To: lyx-users@lists.lyx.org
>> Subject: Re: LyX 2.3.1: bug in "\text" mode of equations
>>
>> On 30/10/2018 09:38, Bernt Lie wrote:
>>> I use LyX 2.3.1 (64bit) on 64bit Win 10, latest version, and have Instant 
>>> preview turned on.
>>>
>>> I need to insert some text in an equation. Two options:
>>> * \text{my text}
>>> * \mathrm{text}
>>>
>>> With \text{}, space is automatically handled. With \mathrm{}, I need to use 
>>> the escape character (backslash) to get space. There are probably also some 
>>> spacing differences -- I assume \text{} is the correct choice if I write 
>>> text and not math.
>>>
>>> There is a problem with \text{} if I use Instant preview *on*...: if I 
>>> include character "ø" in the text string, it shows if I turn Instant 
>>> preview *off*, but is removed if I turn Instant preview *off*.
>>>
>>> The generated PDF file *includes* the symbol "ø", but ... it does not show 
>>> up in the preview with Instant preview turned *on*.
>>>
>>> Presumably, this is a problem with other non-English ASCII characters, too?
>>>
>>> -B
>>
>> I cannot reproduce the problem. The ø in the attached file shows with 
>> instant preview turned on.
>>
>> This is on Windows 10 Pro 64bit version 17134.345. ("latest version"
>> is a bit ambigous since there are different update tracks and the 
>> recently pulled "October 2018 Update".)
>>
>> Daniel
>>




template_test.lyx
Description: template_test.lyx


Re: LyX 2.3.1: bug in "\text" mode of equations

2018-10-30 Thread John White


On Tuesday, October 30, 2018 11:43:42 AM PDT Daniel wrote:
> On 30/10/2018 11:33, Bernt Lie wrote:
> > Hm... I opened a new document of the template, and in this new template,
> > the preview works. But it does not work in another document from the same
> > template, where I'm in the process of inserting text from an OCR scanned
> > paper copy of a document I wrote 30 years ago... (using Adobe Acrobat for
> > OCR).
> > 
> > This is weird. Maybe some junk from the imported, scanned document? I'll
> > test some more.
> You can also try whether making a copy of your problem document and
> opening the copy makes a difference. As far as I remember this should
> force LyX to regenerate the preview.
> 
> Daniel
> 
> > -Original Message-
> > From: Daniel 
> > Sent: Tuesday, October 30, 2018 10:52
> > To: Bernt Lie ; lyx-users@lists.lyx.org
> > Subject: Re: LyX 2.3.1: bug in "\text" mode of equations
> > 
> > On 30/10/2018 10:46, Bernt Lie wrote:
> >> OK -- in your LyX file, Instant preview works ok. Two questions:
> >> * Could it depend on which *style* I use?
> > 
> > So what style are you using? Can you send a (somewhat) minimal document
> > where the problem occurs?> 
> >> * My LyX version is:
> >> 
> >> LyX Version 2.3.1-1
> >> (Saturday, September 29, 2018)
> >> Built from git commit hash ce82ba93
> >> Library directory: ~\AppData\Local\LyX 2.3\Resources\ User directory:
> >> ~\AppData\Roaming\LyX2.3\ Qt Version (run-time): 5.10.1 Qt Version
> >> (compile-time): 5.10.1
> >> --
> >> --> How can I update to the latest version *without* uninstalling the
> >> current one, and installing the new version from scratch?> 
> > That is the latest version and the same I am using.
> > 
> > (There might have been a misunderstanding. I thought you menat your
> > Windows version by "latest version" but I guess you did mean LyX. The
> > information I sent was on the Windows version I am using.)
> > 
> > Daniel
> > 
> >> -Original Message-
> >> From: lyx-users@lists.lyx.org  On Behalf Of
> >> Daniel
> >> Sent: Tuesday, October 30, 2018 10:33
> >> To: lyx-users@lists.lyx.org
> >> Subject: Re: LyX 2.3.1: bug in "\text" mode of equations
> >> 
> >> On 30/10/2018 09:38, Bernt Lie wrote:
> >>> I use LyX 2.3.1 (64bit) on 64bit Win 10, latest version, and have
> >>> Instant preview turned on.
> >>> 
> >>> I need to insert some text in an equation. Two options:
> >>> * \text{my text}
> >>> * \mathrm{text}
> >>> 
> >>> With \text{}, space is automatically handled. With \mathrm{}, I need to
> >>> use the escape character (backslash) to get space. There are probably
> >>> also some spacing differences -- I assume \text{} is the correct choice
> >>> if I write text and not math.
> >>> 
> >>> There is a problem with \text{} if I use Instant preview *on*...: if I
> >>> include character "ø" in the text string, it shows if I turn Instant
> >>> preview *off*, but is removed if I turn Instant preview *off*.
> >>> 
> >>> The generated PDF file *includes* the symbol "ø", but ... it does not
> >>> show up in the preview with Instant preview turned *on*.
> >>> 
> >>> Presumably, this is a problem with other non-English ASCII characters,
> >>> too?
> >>> 
> >>> -B
> >> 
> >> I cannot reproduce the problem. The ø in the attached file shows with
> >> instant preview turned on.
> >> 
> >> This is on Windows 10 Pro 64bit version 17134.345. ("latest version"
> >> is a bit ambigous since there are different update tracks and the
> >> recently pulled "October 2018 Update".)
> >> 
> >> Daniel
I would try OCRing it with Google Docs.

John


Re: LyX 2.3.1: bug in "\text" mode of equations

2018-10-30 Thread Daniel

On 30/10/2018 11:33, Bernt Lie wrote:

Hm... I opened a new document of the template, and in this new template, the 
preview works. But it does not work in another document from the same template, 
where I'm in the process of inserting text from an OCR scanned paper copy of a 
document I wrote 30 years ago... (using Adobe Acrobat for OCR).

This is weird. Maybe some junk from the imported, scanned document? I'll test 
some more.


You can also try whether making a copy of your problem document and 
opening the copy makes a difference. As far as I remember this should 
force LyX to regenerate the preview.


Daniel


-Original Message-
From: Daniel 
Sent: Tuesday, October 30, 2018 10:52
To: Bernt Lie ; lyx-users@lists.lyx.org
Subject: Re: LyX 2.3.1: bug in "\text" mode of equations

On 30/10/2018 10:46, Bernt Lie wrote:

OK -- in your LyX file, Instant preview works ok. Two questions:
* Could it depend on which *style* I use?


So what style are you using? Can you send a (somewhat) minimal document where 
the problem occurs?


* My LyX version is:

LyX Version 2.3.1-1
(Saturday, September 29, 2018)
Built from git commit hash ce82ba93
Library directory: ~\AppData\Local\LyX 2.3\Resources\ User directory:
~\AppData\Roaming\LyX2.3\ Qt Version (run-time): 5.10.1 Qt Version
(compile-time): 5.10.1
--
--> How can I update to the latest version *without* uninstalling the current 
one, and installing the new version from scratch?


That is the latest version and the same I am using.

(There might have been a misunderstanding. I thought you menat your Windows version by 
"latest version" but I guess you did mean LyX. The information I sent was on 
the Windows version I am using.)

Daniel



-Original Message-
From: lyx-users@lists.lyx.org  On Behalf Of
Daniel
Sent: Tuesday, October 30, 2018 10:33
To: lyx-users@lists.lyx.org
Subject: Re: LyX 2.3.1: bug in "\text" mode of equations

On 30/10/2018 09:38, Bernt Lie wrote:

I use LyX 2.3.1 (64bit) on 64bit Win 10, latest version, and have Instant 
preview turned on.

I need to insert some text in an equation. Two options:
* \text{my text}
* \mathrm{text}

With \text{}, space is automatically handled. With \mathrm{}, I need to use the 
escape character (backslash) to get space. There are probably also some spacing 
differences -- I assume \text{} is the correct choice if I write text and not 
math.

There is a problem with \text{} if I use Instant preview *on*...: if I include character 
"ø" in the text string, it shows if I turn Instant preview *off*, but is 
removed if I turn Instant preview *off*.

The generated PDF file *includes* the symbol "ø", but ... it does not show up 
in the preview with Instant preview turned *on*.

Presumably, this is a problem with other non-English ASCII characters, too?

-B


I cannot reproduce the problem. The ø in the attached file shows with instant 
preview turned on.

This is on Windows 10 Pro 64bit version 17134.345. ("latest version"
is a bit ambigous since there are different update tracks and the
recently pulled "October 2018 Update".)

Daniel






RE: LyX 2.3.1: bug in "\text" mode of equations

2018-10-30 Thread Bernt Lie
Hm... I opened a new document of the template, and in this new template, the 
preview works. But it does not work in another document from the same template, 
where I'm in the process of inserting text from an OCR scanned paper copy of a 
document I wrote 30 years ago... (using Adobe Acrobat for OCR).

This is weird. Maybe some junk from the imported, scanned document? I'll test 
some more.

-B

-Original Message-
From: Daniel  
Sent: Tuesday, October 30, 2018 10:52
To: Bernt Lie ; lyx-users@lists.lyx.org
Subject: Re: LyX 2.3.1: bug in "\text" mode of equations

On 30/10/2018 10:46, Bernt Lie wrote:
> OK -- in your LyX file, Instant preview works ok. Two questions:
> * Could it depend on which *style* I use?

So what style are you using? Can you send a (somewhat) minimal document where 
the problem occurs?

> * My LyX version is:
> 
> LyX Version 2.3.1-1
> (Saturday, September 29, 2018)
> Built from git commit hash ce82ba93
> Library directory: ~\AppData\Local\LyX 2.3\Resources\ User directory: 
> ~\AppData\Roaming\LyX2.3\ Qt Version (run-time): 5.10.1 Qt Version 
> (compile-time): 5.10.1
> --
> --> How can I update to the latest version *without* uninstalling the current 
> one, and installing the new version from scratch?

That is the latest version and the same I am using.

(There might have been a misunderstanding. I thought you menat your Windows 
version by "latest version" but I guess you did mean LyX. The information I 
sent was on the Windows version I am using.)

Daniel

> 
> -Original Message-
> From: lyx-users@lists.lyx.org  On Behalf Of 
> Daniel
> Sent: Tuesday, October 30, 2018 10:33
> To: lyx-users@lists.lyx.org
> Subject: Re: LyX 2.3.1: bug in "\text" mode of equations
> 
> On 30/10/2018 09:38, Bernt Lie wrote:
>> I use LyX 2.3.1 (64bit) on 64bit Win 10, latest version, and have Instant 
>> preview turned on.
>>
>> I need to insert some text in an equation. Two options:
>> * \text{my text}
>> * \mathrm{text}
>>
>> With \text{}, space is automatically handled. With \mathrm{}, I need to use 
>> the escape character (backslash) to get space. There are probably also some 
>> spacing differences -- I assume \text{} is the correct choice if I write 
>> text and not math.
>>
>> There is a problem with \text{} if I use Instant preview *on*...: if I 
>> include character "ø" in the text string, it shows if I turn Instant preview 
>> *off*, but is removed if I turn Instant preview *off*.
>>
>> The generated PDF file *includes* the symbol "ø", but ... it does not show 
>> up in the preview with Instant preview turned *on*.
>>
>> Presumably, this is a problem with other non-English ASCII characters, too?
>>
>> -B
> 
> I cannot reproduce the problem. The ø in the attached file shows with instant 
> preview turned on.
> 
> This is on Windows 10 Pro 64bit version 17134.345. ("latest version" 
> is a bit ambigous since there are different update tracks and the 
> recently pulled "October 2018 Update".)
> 
> Daniel
> 


Re: LyX 2.3.1: bug in "\text" mode of equations

2018-10-30 Thread Daniel

On 30/10/2018 10:46, Bernt Lie wrote:

OK -- in your LyX file, Instant preview works ok. Two questions:
* Could it depend on which *style* I use?


So what style are you using? Can you send a (somewhat) minimal document 
where the problem occurs?



* My LyX version is:

LyX Version 2.3.1-1
(Saturday, September 29, 2018)
Built from git commit hash ce82ba93
Library directory: ~\AppData\Local\LyX 2.3\Resources\
User directory: ~\AppData\Roaming\LyX2.3\
Qt Version (run-time): 5.10.1
Qt Version (compile-time): 5.10.1
--
--> How can I update to the latest version *without* uninstalling the current 
one, and installing the new version from scratch?


That is the latest version and the same I am using.

(There might have been a misunderstanding. I thought you menat your 
Windows version by "latest version" but I guess you did mean LyX. The 
information I sent was on the Windows version I am using.)


Daniel



-Original Message-
From: lyx-users@lists.lyx.org  On Behalf Of Daniel
Sent: Tuesday, October 30, 2018 10:33
To: lyx-users@lists.lyx.org
Subject: Re: LyX 2.3.1: bug in "\text" mode of equations

On 30/10/2018 09:38, Bernt Lie wrote:

I use LyX 2.3.1 (64bit) on 64bit Win 10, latest version, and have Instant 
preview turned on.

I need to insert some text in an equation. Two options:
* \text{my text}
* \mathrm{text}

With \text{}, space is automatically handled. With \mathrm{}, I need to use the 
escape character (backslash) to get space. There are probably also some spacing 
differences -- I assume \text{} is the correct choice if I write text and not 
math.

There is a problem with \text{} if I use Instant preview *on*...: if I include character 
"ø" in the text string, it shows if I turn Instant preview *off*, but is 
removed if I turn Instant preview *off*.

The generated PDF file *includes* the symbol "ø", but ... it does not show up 
in the preview with Instant preview turned *on*.

Presumably, this is a problem with other non-English ASCII characters, too?

-B


I cannot reproduce the problem. The ø in the attached file shows with instant 
preview turned on.

This is on Windows 10 Pro 64bit version 17134.345. ("latest version" is a bit ambigous 
since there are different update tracks and the recently pulled "October 2018 Update".)

Daniel



RE: LyX 2.3.1: bug in "\text" mode of equations

2018-10-30 Thread Bernt Lie
OK -- in your LyX file, Instant preview works ok. Two questions:
* Could it depend on which *style* I use?
* My LyX version is: 

LyX Version 2.3.1-1
(Saturday, September 29, 2018)
Built from git commit hash ce82ba93
Library directory: ~\AppData\Local\LyX 2.3\Resources\
User directory: ~\AppData\Roaming\LyX2.3\
Qt Version (run-time): 5.10.1
Qt Version (compile-time): 5.10.1
--
--> How can I update to the latest version *without* uninstalling the current 
one, and installing the new version from scratch?

-Original Message-
From: lyx-users@lists.lyx.org  On Behalf Of Daniel
Sent: Tuesday, October 30, 2018 10:33
To: lyx-users@lists.lyx.org
Subject: Re: LyX 2.3.1: bug in "\text" mode of equations

On 30/10/2018 09:38, Bernt Lie wrote:
> I use LyX 2.3.1 (64bit) on 64bit Win 10, latest version, and have Instant 
> preview turned on.
> 
> I need to insert some text in an equation. Two options:
> * \text{my text}
> * \mathrm{text}
> 
> With \text{}, space is automatically handled. With \mathrm{}, I need to use 
> the escape character (backslash) to get space. There are probably also some 
> spacing differences -- I assume \text{} is the correct choice if I write text 
> and not math.
> 
> There is a problem with \text{} if I use Instant preview *on*...: if I 
> include character "ø" in the text string, it shows if I turn Instant preview 
> *off*, but is removed if I turn Instant preview *off*.
> 
> The generated PDF file *includes* the symbol "ø", but ... it does not show up 
> in the preview with Instant preview turned *on*.
> 
> Presumably, this is a problem with other non-English ASCII characters, too?
> 
> -B

I cannot reproduce the problem. The ø in the attached file shows with instant 
preview turned on.

This is on Windows 10 Pro 64bit version 17134.345. ("latest version" is a bit 
ambigous since there are different update tracks and the recently pulled 
"October 2018 Update".)

Daniel


Re: LyX 2.3.1: bug in "\text" mode of equations

2018-10-30 Thread Daniel

On 30/10/2018 09:38, Bernt Lie wrote:

I use LyX 2.3.1 (64bit) on 64bit Win 10, latest version, and have Instant 
preview turned on.

I need to insert some text in an equation. Two options:
* \text{my text}
* \mathrm{text}

With \text{}, space is automatically handled. With \mathrm{}, I need to use the 
escape character (backslash) to get space. There are probably also some spacing 
differences -- I assume \text{} is the correct choice if I write text and not 
math.

There is a problem with \text{} if I use Instant preview *on*...: if I include character 
"ø" in the text string, it shows if I turn Instant preview *off*, but is 
removed if I turn Instant preview *off*.

The generated PDF file *includes* the symbol "ø", but ... it does not show up 
in the preview with Instant preview turned *on*.

Presumably, this is a problem with other non-English ASCII characters, too?

-B


I cannot reproduce the problem. The ø in the attached file shows with 
instant preview turned on.


This is on Windows 10 Pro 64bit version 17134.345. ("latest version" is 
a bit ambigous since there are different update tracks and the recently 
pulled "October 2018 Update".)


Daniel


ascii_math_text.lyx
Description: application/lyx


LyX 2.3.1: bug in "\text" mode of equations

2018-10-30 Thread Bernt Lie
I use LyX 2.3.1 (64bit) on 64bit Win 10, latest version, and have Instant 
preview turned on.

I need to insert some text in an equation. Two options:
* \text{my text}
* \mathrm{text}

With \text{}, space is automatically handled. With \mathrm{}, I need to use the 
escape character (backslash) to get space. There are probably also some spacing 
differences -- I assume \text{} is the correct choice if I write text and not 
math.

There is a problem with \text{} if I use Instant preview *on*...: if I include 
character "ø" in the text string, it shows if I turn Instant preview *off*, but 
is removed if I turn Instant preview *off*.

The generated PDF file *includes* the symbol "ø", but ... it does not show up 
in the preview with Instant preview turned *on*. 

Presumably, this is a problem with other non-English ASCII characters, too?

-B


Re: Equations displaced on the screen

2017-10-08 Thread Paolo M Pumilia
Jean-Marc Lasgouttes wrote:


> when editing the equation. Would that solve your problem?
> 
> This is ticket http://www.lyx.org/trac/ticket/10668
> 
> JMarc

That seems to be the problem. Anyway, just a little inconvenience.

thank you
p. 




Re: Equations displaced on the screen

2017-10-04 Thread Jean-Marc Lasgouttes

Le 02/10/2017 à 11:10, Paolo M Pumilia a écrit :

Equations with labels appear largely displaced on the right side of
the lyx window on the screen, as pointer switches focus from the
math mode of that equation to the text display mode.

(Equations are correctly centered with numbers on the right, when my
file gets printed out).


Hello,

The plan is eventually to have the number completely on the right also 
when editing the equation. Would that solve your problem?


This is ticket http://www.lyx.org/trac/ticket/10668

JMarc


Equations displaced on the screen

2017-10-02 Thread Paolo M Pumilia
Equations with labels appear largely displaced on the right side of 
the lyx window on the screen, as pointer switches focus from the 
math mode of that equation to the text display mode.

(Equations are correctly centered with numbers on the right, when my 
file gets printed out).

Using lyx 2.2.3 on linux suse
Here included a test document.

thank you
Paolo

test-equation.lyx
Description: application/lyx


Re: Lyx Change tracking show changes in output not working with displayed equations

2016-05-31 Thread Scott Kostyshak
On Mon, May 30, 2016 at 02:05:09PM -0500, David Halpern wrote:
> Hi,
> 
> I would like to print a hardcopy changes in output (deleted and added).
> If what I deleted does not contain a displayed equation, I can export the
> contents of my lyx file to a pdf file, and then print it out. However, if I
> delete a displayed equation, then an error message appears during the
> export to a pdf phase. I've also exported a lyx file to a plain latex file,
> with the changes in output on. In this case, again I get similar errors.
> With the changes in output off, latex does not generate errors.
> Is this a limitation of "tracking changes" or an error?
> Let me know how to get around this problem.
> Thanks.
> 

Hi David, it appears that this is a limitation of ulem.sty (which is
inherited by LyX's track changes feature). See:
http://www.lyx.org/trac/ticket/9678

I've checked with ulem's author and he said he would consider extending
the support for display math (it appears to be a tricky issue). I just
pinged him again (now a year later), so we'll see what he says.

As for the short run, I don't know of a workaround.

Best,

Scott

p.s. please respond to the list and not to me personally.


signature.asc
Description: PGP signature


Lyx Change tracking show changes in output not working with displayed equations

2016-05-30 Thread David Halpern
Hi,

I would like to print a hardcopy changes in output (deleted and added).
If what I deleted does not contain a displayed equation, I can export the
contents of my lyx file to a pdf file, and then print it out. However, if I
delete a displayed equation, then an error message appears during the
export to a pdf phase. I've also exported a lyx file to a plain latex file,
with the changes in output on. In this case, again I get similar errors.
With the changes in output off, latex does not generate errors.
Is this a limitation of "tracking changes" or an error?
Let me know how to get around this problem.
Thanks.

David Halpern


Re: Color font to highlight parts inside equations

2016-03-07 Thread Uwe Stöhr

Am 03.03.2016 um 04:48 schrieb MANUEL ANGEL DOMINGUEZ TORIBIO:


But what I would like to do now y to change the colour or a part of the
equation to highlight the part I want the reader to look at.


Have a look at section 9.3 "Colored Boxes" of the Math manual that you 
find in LyX's help menu.


regards Uwe


Color font to highlight parts inside equations

2016-03-02 Thread MANUEL ANGEL DOMINGUEZ TORIBIO
Hi everybody there,

I'm  writing maths with Lyx and I know how to change the color of a
equation by first highlighting it and then rightclicking and choosing and
then picking text style in the menu that pops up, and then personal style.
But what I would like to do now y to change the colour or a part of the
equation to highlight the part I want the reader to look at. When I
highlight the part and rightclick on it, the menu doesn't pop up. I have
search in the forum but I didn't find any solution. Can anybody give me a
hand? Thanks in advance. Manuel.

By the way, I'm writing slides using the one of the Beamer styles. And I'm
using standard 2.1.5 release for Windows 7. Just in case this piece of info
is relevant.


Re: padding at edges of equations

2015-09-21 Thread Guenter Milde
On 2015-09-20, Jack Sankey wrote:

> [-- Type: text/plain, Encoding:  --]

> Hello!

> Is there any way to change the padding (i.e. the number of pixels) on the
> sides of equations?

> The reason I ask is when I'm trying to select part of an equation I often
> need single-pixel mouse precision to avoid grabbing everything. Adding a
> pixel or two of buffer on the edge would be pretty helpful. This is also
> true for things like "the stuff inside a square root" though adding pixels
> there might make things ugly..

I agree that selecting stuff in a formula can be quite tricky.
However, there is one important reason speaking against more padding:

If you press the space bar inside mathed, this has the effect of an
"escape"¹ but it does *not* insert whitespace. This is easily overlooked
already with the current display, adding a padding makes it even harder
to detect if the formula is followed by whitespace or directly by text. 

(There are use-cases for both: "$x$-axis" or a formula followed by
punctuation as well as formulas in the middle of a sentence requiring
whitespace around.)

Günter


¹ Leave the current box (in the main box you leave the formula).



Re: padding at edges of equations

2015-09-21 Thread Guillaume Munch

Le 21/09/2015 09:57, Guenter Milde a écrit :

On 2015-09-20, Jack Sankey wrote:


[-- Type: text/plain, Encoding:  --]



Hello!



Is there any way to change the padding (i.e. the number of pixels) on the
sides of equations?



The reason I ask is when I'm trying to select part of an equation I often
need single-pixel mouse precision to avoid grabbing everything. Adding a
pixel or two of buffer on the edge would be pretty helpful. This is also
true for things like "the stuff inside a square root" though adding pixels
there might make things ugly..


I agree that selecting stuff in a formula can be quite tricky.
However, there is one important reason speaking against more padding:

If you press the space bar inside mathed, this has the effect of an
"escape"¹ but it does *not* insert whitespace. This is easily overlooked
already with the current display, adding a padding makes it even harder
to detect if the formula is followed by whitespace or directly by text.

(There are use-cases for both: "$x$-axis" or a formula followed by
punctuation as well as formulas in the middle of a sentence requiring
whitespace around.)




A better solution would be to only need to go over half the inset to 
select it, as suggested in http://www.lyx.org/trac/ticket/9748





Re: padding at edges of equations

2015-09-21 Thread Jean-Marc Lasgouttes

Le 21/09/2015 09:57, Guenter Milde a écrit :

I agree that selecting stuff in a formula can be quite tricky.
However, there is one important reason speaking against more padding:

If you press the space bar inside mathed, this has the effect of an
"escape"¹ but it does *not* insert whitespace. This is easily overlooked
already with the current display, adding a padding makes it even harder
to detect if the formula is followed by whitespace or directly by text.


Note that our padding is AFAIK done in absolute pixel size. Using a 
length that depends on DPI and zoom (like some em value) would probably 
improve the situation a lot.


JMarc



padding at edges of equations

2015-09-20 Thread Jack Sankey
Hello!

Is there any way to change the padding (i.e. the number of pixels) on the
sides of equations?

The reason I ask is when I'm trying to select part of an equation I often
need single-pixel mouse precision to avoid grabbing everything. Adding a
pixel or two of buffer on the edge would be pretty helpful. This is also
true for things like "the stuff inside a square root" though adding pixels
there might make things ugly..

An added (read: not important) bonus to adding a few pixels on the sides
would be the equations look nicer when the background doesn't match that of
the page.

Cheers,
Jack


Re: Lyx numbering equations

2015-03-24 Thread Jerry
On Mar 20, 2015, at 7:38 AM, Benedict Holland benedict.m.holl...@gmail.com 
wrote:

 Equation labels should be human readable and make sense to you and the 
 document. That is the proper use. If you are making them all a1, a2,... aN, I 
 can't help you but typically there are not many equations in documents 
 anyway. Each one is a bit different and requires a slightly different human 
 readable note attached with a number that you don't care about. It seems 
 perfect to me. 

Responding to Benedict and others...

This assumes something that isn't necessarily true. It assumes one person's 
writing style or habits or needs. Other people have dozens and hundreds of 
equations in a document and having to invent meaningful labels for then is 
truly a nuisance because equations don't naturally have names. The same goes of 
course for figures and tables but at least in those cases one might pick a few 
choice words from their captions.

To make a meaningful name can easily take 10-20 words in many cases. One can 
make shorter labels but then the meaning is lost so one may as well do A1, A2, 
 And short labels or longer descriptions as labels doesn't matter that much 
when one is scrolling through a list of dozens or hundreds of labels trying to 
remember what Laplace distribution modified by AM after substitution of 
cross-correlaction factor from AR process means. And the outline doesn't show 
display equations that aren't labelled. The only easily meaningful thing is the 
equation itself, which is why one spends tons of time looking around for the 
actual equation to make sure it's the right one. Thus my argument for a 
graphical equation browser.

Jerry

Re: Lyx numbering equations

2015-03-24 Thread Jerry

On Mar 24, 2015, at 9:36 PM, Jerry lancebo...@qwest.net wrote:

 On Mar 20, 2015, at 7:38 AM, Benedict Holland benedict.m.holl...@gmail.com 
 wrote:
 
 Equation labels should be human readable and make sense to you and the 
 document. That is the proper use. If you are making them all a1, a2,... aN, 
 I can't help you but typically there are not many equations in documents 
 anyway. Each one is a bit different and requires a slightly different human 
 readable note attached with a number that you don't care about. It seems 
 perfect to me. 
 
 Responding to Benedict and others...
 
 This assumes something that isn't necessarily true. It assumes one person's 
 writing style or habits or needs. Other people have dozens and hundreds of 
 equations in a document and having to invent meaningful labels for then is 
 truly a nuisance because equations don't naturally have names. The same goes 
 of course for figures and tables but at least in those cases one might pick a 
 few choice words from their captions.
 
 To make a meaningful name can easily take 10-20 words in many cases. One can 
 make shorter labels but then the meaning is lost so one may as well do A1, 
 A2,  And short labels or longer descriptions as labels doesn't matter 
 that much when one is scrolling through a list of dozens or hundreds of 
 labels trying to remember what Laplace distribution modified by AM after 
 substitution of cross-correlaction factor from AR process means. And the 
 outline doesn't show display equations that aren't labelled. The only easily 
 meaningful thing is the equation itself, which is why one spends tons of time 
 looking around for the actual equation to make sure it's the right one. Thus 
 my argument for a graphical equation browser.
 
 Jerry

(Bottom-posting on myself)

I'll add that the Outline pane in any kind of normal configuration is so narrow 
that, again, only a bit of any label is visible. One could of course have it 
span the width of one's screen to see more of any longer labels, but this 
wastes enormous amounts of screen space (especially important to laptop users) 
and this exercise is further foiled by the Outline pane's annoying behavior of 
floating on top of the main document window at all times when it is detached.

Jerry

Re: Lyx numbering equations

2015-03-24 Thread Jerry
On Mar 20, 2015, at 7:38 AM, Benedict Holland benedict.m.holl...@gmail.com 
wrote:

 Equation labels should be human readable and make sense to you and the 
 document. That is the proper use. If you are making them all a1, a2,... aN, I 
 can't help you but typically there are not many equations in documents 
 anyway. Each one is a bit different and requires a slightly different human 
 readable note attached with a number that you don't care about. It seems 
 perfect to me. 

Responding to Benedict and others...

This assumes something that isn't necessarily true. It assumes one person's 
writing style or habits or needs. Other people have dozens and hundreds of 
equations in a document and having to invent meaningful labels for then is 
truly a nuisance because equations don't naturally have names. The same goes of 
course for figures and tables but at least in those cases one might pick a few 
choice words from their captions.

To make a meaningful name can easily take 10-20 words in many cases. One can 
make shorter labels but then the meaning is lost so one may as well do A1, A2, 
 And short labels or longer descriptions as labels doesn't matter that much 
when one is scrolling through a list of dozens or hundreds of labels trying to 
remember what Laplace distribution modified by AM after substitution of 
cross-correlaction factor from AR process means. And the outline doesn't show 
display equations that aren't labelled. The only easily meaningful thing is the 
equation itself, which is why one spends tons of time looking around for the 
actual equation to make sure it's the right one. Thus my argument for a 
graphical equation browser.

Jerry

Re: Lyx numbering equations

2015-03-24 Thread Jerry

On Mar 24, 2015, at 9:36 PM, Jerry lancebo...@qwest.net wrote:

 On Mar 20, 2015, at 7:38 AM, Benedict Holland benedict.m.holl...@gmail.com 
 wrote:
 
 Equation labels should be human readable and make sense to you and the 
 document. That is the proper use. If you are making them all a1, a2,... aN, 
 I can't help you but typically there are not many equations in documents 
 anyway. Each one is a bit different and requires a slightly different human 
 readable note attached with a number that you don't care about. It seems 
 perfect to me. 
 
 Responding to Benedict and others...
 
 This assumes something that isn't necessarily true. It assumes one person's 
 writing style or habits or needs. Other people have dozens and hundreds of 
 equations in a document and having to invent meaningful labels for then is 
 truly a nuisance because equations don't naturally have names. The same goes 
 of course for figures and tables but at least in those cases one might pick a 
 few choice words from their captions.
 
 To make a meaningful name can easily take 10-20 words in many cases. One can 
 make shorter labels but then the meaning is lost so one may as well do A1, 
 A2,  And short labels or longer descriptions as labels doesn't matter 
 that much when one is scrolling through a list of dozens or hundreds of 
 labels trying to remember what Laplace distribution modified by AM after 
 substitution of cross-correlaction factor from AR process means. And the 
 outline doesn't show display equations that aren't labelled. The only easily 
 meaningful thing is the equation itself, which is why one spends tons of time 
 looking around for the actual equation to make sure it's the right one. Thus 
 my argument for a graphical equation browser.
 
 Jerry

(Bottom-posting on myself)

I'll add that the Outline pane in any kind of normal configuration is so narrow 
that, again, only a bit of any label is visible. One could of course have it 
span the width of one's screen to see more of any longer labels, but this 
wastes enormous amounts of screen space (especially important to laptop users) 
and this exercise is further foiled by the Outline pane's annoying behavior of 
floating on top of the main document window at all times when it is detached.

Jerry

Re: Lyx numbering equations

2015-03-24 Thread Jerry
On Mar 20, 2015, at 7:38 AM, Benedict Holland <benedict.m.holl...@gmail.com> 
wrote:

> Equation labels should be human readable and make sense to you and the 
> document. That is the proper use. If you are making them all a1, a2,... aN, I 
> can't help you but typically there are not many equations in documents 
> anyway. Each one is a bit different and requires a slightly different human 
> readable note attached with a number that you don't care about. It seems 
> perfect to me. 

Responding to Benedict and others...

This assumes something that isn't necessarily true. It assumes one person's 
writing style or habits or needs. Other people have dozens and hundreds of 
equations in a document and having to invent meaningful labels for then is 
truly a nuisance because equations don't naturally have names. The same goes of 
course for figures and tables but at least in those cases one might pick a few 
choice words from their captions.

To make a meaningful name can easily take 10-20 words in many cases. One can 
make shorter labels but then the meaning is lost so one may as well do A1, A2, 
 And short labels or longer descriptions as labels doesn't matter that much 
when one is scrolling through a list of dozens or hundreds of labels trying to 
remember what "Laplace distribution modified by AM after substitution of 
cross-correlaction factor from AR process" means. And the outline doesn't show 
display equations that aren't labelled. The only easily meaningful thing is the 
equation itself, which is why one spends tons of time looking around for the 
actual equation to make sure it's the right one. Thus my argument for a 
graphical equation browser.

Jerry

Re: Lyx numbering equations

2015-03-24 Thread Jerry

On Mar 24, 2015, at 9:36 PM, Jerry <lancebo...@qwest.net> wrote:

> On Mar 20, 2015, at 7:38 AM, Benedict Holland <benedict.m.holl...@gmail.com> 
> wrote:
> 
>> Equation labels should be human readable and make sense to you and the 
>> document. That is the proper use. If you are making them all a1, a2,... aN, 
>> I can't help you but typically there are not many equations in documents 
>> anyway. Each one is a bit different and requires a slightly different human 
>> readable note attached with a number that you don't care about. It seems 
>> perfect to me. 
> 
> Responding to Benedict and others...
> 
> This assumes something that isn't necessarily true. It assumes one person's 
> writing style or habits or needs. Other people have dozens and hundreds of 
> equations in a document and having to invent meaningful labels for then is 
> truly a nuisance because equations don't naturally have names. The same goes 
> of course for figures and tables but at least in those cases one might pick a 
> few choice words from their captions.
> 
> To make a meaningful name can easily take 10-20 words in many cases. One can 
> make shorter labels but then the meaning is lost so one may as well do A1, 
> A2,  And short labels or longer descriptions as labels doesn't matter 
> that much when one is scrolling through a list of dozens or hundreds of 
> labels trying to remember what "Laplace distribution modified by AM after 
> substitution of cross-correlaction factor from AR process" means. And the 
> outline doesn't show display equations that aren't labelled. The only easily 
> meaningful thing is the equation itself, which is why one spends tons of time 
> looking around for the actual equation to make sure it's the right one. Thus 
> my argument for a graphical equation browser.
> 
> Jerry

(Bottom-posting on myself)

I'll add that the Outline pane in any kind of normal configuration is so narrow 
that, again, only a bit of any label is visible. One could of course have it 
span the width of one's screen to see more of any longer labels, but this 
wastes enormous amounts of screen space (especially important to laptop users) 
and this exercise is further foiled by the Outline pane's annoying behavior of 
floating on top of the main document window at all times when it is detached.

Jerry

Re: Lyx numbering equations

2015-03-20 Thread Jerry

On Mar 14, 2015, at 9:56 AM, Robert Susmilch rob...@susmilch.com wrote:

 This seems absurd given that Lyx purports to free you to write and not
 micromanage things like this. The tutorial goes on and on about using
 citations, bibliography, automatic section and chapter title numbering
 that takes care of itself. If I can number an equation and it's
 automatic that means the equation numbering can / will change as they
 are moved about, added or deleted, etc.

I agree, but would stop short of absurd and simply say awkward, clumsy, 
and then I'll stop. It does work. I believe that Microsoft Word and Mathematica 
require the same sort of tedious labeling, and those are not necessarily good 
models. I know for a fact that this problem can be handled better because I 
used the long-gone and much-loved FullWrite Professional for about 10 years, 
from 1988 to 1998, and it did not require labeling of anything. You simply 
inserted, as a reference, the current equation number and then FullWrite 
automatically kept everything up to date. It was just that simple.
And, not trivially, FullWrite had a _graphical_ equation browser, a 
window of all your (filtered) stand-alone equations, numbered or not, in a 
scrollable window. Now _that_ was neat. I think I have filed a feature request 
for LyX but I don't expect anything to happen for a long time. However, LyX has 
an option to render equations on-screen already (Instant Preview) so it seems 
that the hard part of a graphical browser has already been done.
With a graphical browser, one could assign nonsense labels (AA, AB, AC, 
... or just 1, 2, 3, ...) and use the graphical browser to find the one to 
which you want to insert a reference and just click on the image. That's what 
you do anyway, only instead of a dedicated graphical browser, you just scroll 
around in your main document window until you find the equation you want to 
reference, and that's not efficient or fun.


and then...
On Mar 15, 2015, at 5:26 PM, David A Case c...@biomaps.rutgers.edu wrote:

 On Sat, Mar 14, 2015, Robert Susmilch wrote:
 
 I have Googled a way to refer to numbered equations in text, such as
 See equation (3) in Lyx but everything I read, whether from other
 users or wikis, suggests labeling the already numbered equations and
 then using the label to cross reference.
 
 This seems absurd 
 
 This has been discussed before on this list.  The requirement to have a
 label makes good sense: how do you propose to refer to an equation that
 does not have a label?  Remember that its number will change as equations
 are added or removed, whereas the label will not change.
 
 It seems like you may wish to have a cross reference that says the
 following: refer to the *current* equation (3), and update the number in
 the cross reference if the corresponding equation number changes.  This
 might be implemented by having LyX create a unique but hidden label for
 every numbered equation, and providing some sort of user interface to
 refer to it.

Nice answer.
 
 For good reasons or bad, this is not the way LyX and latex work.

Why do you say this? You just proposed a solution to use the LyX/Latex 
underpinnings to do that very thing. And that's probably the way FullWrite did 
it.

  Note that
 numbered equations are no different in this respect than are numbered
 sections, etc.
 
 dave case
 
Finally (I'll file a ticket for this in due course), a simple improvement of 
the current system would be to display the labels with more characters than are 
currently used; currently, so few characters are displayed that one quickly 
becomes confused about which equation the label belongs to.

Jerry

Re: Lyx numbering equations

2015-03-20 Thread Michael Berger

On 03/20/2015 08:44 AM, Jerry wrote:

On Mar 14, 2015, at 9:56 AM, Robert Susmilch rob...@susmilch.com wrote:


This seems absurd given that Lyx purports to free you to write and not
micromanage things like this. The tutorial goes on and on about using
citations, bibliography, automatic section and chapter title numbering
that takes care of itself. If I can number an equation and it's
automatic that means the equation numbering can / will change as they
are moved about, added or deleted, etc.

I agree, but would stop short of absurd and simply say awkward, clumsy, 
and then I'll stop. It does work. I believe that Microsoft Word and Mathematica require the same sort of 
tedious labeling, and those are not necessarily good models. I know for a fact that this problem can be 
handled better because I used the long-gone and much-loved FullWrite Professional for about 10 years, from 
1988 to 1998, and it did not require labeling of anything. You simply inserted, as a reference, the current 
equation number and then FullWrite automatically kept everything up to date. It was just that simple.
And, not trivially, FullWrite had a _graphical_ equation browser, a 
window of all your (filtered) stand-alone equations, numbered or not, in a 
scrollable window. Now _that_ was neat. I think I have filed a feature request 
for LyX but I don't expect anything to happen for a long time. However, LyX has 
an option to render equations on-screen already (Instant Preview) so it seems 
that the hard part of a graphical browser has already been done.
With a graphical browser, one could assign nonsense labels (AA, AB, AC, 
... or just 1, 2, 3, ...) and use the graphical browser to find the one to 
which you want to insert a reference and just click on the image. That's what 
you do anyway, only instead of a dedicated graphical browser, you just scroll 
around in your main document window until you find the equation you want to 
reference, and that's not efficient or fun.


and then...
On Mar 15, 2015, at 5:26 PM, David A Case c...@biomaps.rutgers.edu wrote:


On Sat, Mar 14, 2015, Robert Susmilch wrote:

I have Googled a way to refer to numbered equations in text, such as
See equation (3) in Lyx but everything I read, whether from other
users or wikis, suggests labeling the already numbered equations and
then using the label to cross reference.

This seems absurd 

This has been discussed before on this list.  The requirement to have a
label makes good sense: how do you propose to refer to an equation that
does not have a label?  Remember that its number will change as equations
are added or removed, whereas the label will not change.

It seems like you may wish to have a cross reference that says the
following: refer to the *current* equation (3), and update the number in
the cross reference if the corresponding equation number changes.  This
might be implemented by having LyX create a unique but hidden label for
every numbered equation, and providing some sort of user interface to
refer to it.

Nice answer.

For good reasons or bad, this is not the way LyX and latex work.

Why do you say this? You just proposed a solution to use the LyX/Latex 
underpinnings to do that very thing. And that's probably the way FullWrite did 
it.


  Note that
numbered equations are no different in this respect than are numbered
sections, etc.

dave case


Finally (I'll file a ticket for this in due course), a simple improvement of 
the current system would be to display the labels with more characters than are 
currently used; currently, so few characters are displayed that one quickly 
becomes confused about which equation the label belongs to.

Jerry


Dear Jerry and followers of this very issue,
personally I am happy with LyX's philosophy and think we should not 
over-emphasize such detail.

Is adding a label really such tremendous effort?
However, I see the point of some users.
But could it be that the implementation of this simple improvement 
turns out not to be so very simple?

(see above: For good reasons or bad, this is not the way LyX and latex work)

Now, please have a look at the screen-shot attached.
It shows an excerpt of André Miede's excellent classicthesis.
He created a new type of reference (Insert  Custom Insets  CT-auto 
cross-reference) which can show labels of more characters / words next 
to the number.
I know, this is not exactly what is being discussed here but it 
certainly goes in that direction.


And last but not least: users who prefer FullWrite Professional's 
features over those of Lyx may stick to it.


Cheers!

Michael



Re: Lyx numbering equations

2015-03-20 Thread Benedict Holland
Hi everyone,

I am going to take a strong line on this one and say it works as designed
and the design is very well done. The reason for is it that you do have
references and labels, under the table, that lyx is managing for you. You
have an equation, you number the question, you label the equation, and you
never have to worry about it again. The reference automatically updates
with the removal or addition of equations prior to the referenced one. The
entire point of the labeling system is to make the numbering decoupled from
where an equation appears in the document and to that extent, it performs
very well. After reading various comments I actually have no idea what the
OP would like or what other people are suggesting.

Equation labels should be human readable and make sense to you and the
document. That is the proper use. If you are making them all a1, a2,... aN,
I can't help you but typically there are not many equations in documents
anyway. Each one is a bit different and requires a slightly different human
readable note attached with a number that you don't care about. It seems
perfect to me.

~Ben

On Fri, Mar 20, 2015 at 9:23 AM, John Kane jrkrid...@gmail.com wrote:

 Fullwrite was abandoned about 1995 or 2000, sob.  I was not as crazy about
 it as Jerry since it was a bugger when doing tables but compared to
 something like MS Word it was heaven.

 On 20 March 2015 at 04:55, Michael Berger id...@online.de wrote:

 On 03/20/2015 08:44 AM, Jerry wrote:

 On Mar 14, 2015, at 9:56 AM, Robert Susmilch rob...@susmilch.com
 wrote:

  This seems absurd given that Lyx purports to free you to write and not
 micromanage things like this. The tutorial goes on and on about using
 citations, bibliography, automatic section and chapter title numbering
 that takes care of itself. If I can number an equation and it's
 automatic that means the equation numbering can / will change as they
 are moved about, added or deleted, etc.

 I agree, but would stop short of absurd and simply say awkward,
 clumsy, and then I'll stop. It does work. I believe that Microsoft Word
 and Mathematica require the same sort of tedious labeling, and those are
 not necessarily good models. I know for a fact that this problem can be
 handled better because I used the long-gone and much-loved FullWrite
 Professional for about 10 years, from 1988 to 1998, and it did not require
 labeling of anything. You simply inserted, as a reference, the current
 equation number and then FullWrite automatically kept everything up to
 date. It was just that simple.
 And, not trivially, FullWrite had a _graphical_ equation
 browser, a window of all your (filtered) stand-alone equations, numbered or
 not, in a scrollable window. Now _that_ was neat. I think I have filed a
 feature request for LyX but I don't expect anything to happen for a long
 time. However, LyX has an option to render equations on-screen already
 (Instant Preview) so it seems that the hard part of a graphical browser has
 already been done.
 With a graphical browser, one could assign nonsense labels (AA,
 AB, AC, ... or just 1, 2, 3, ...) and use the graphical browser to find the
 one to which you want to insert a reference and just click on the image.
 That's what you do anyway, only instead of a dedicated graphical browser,
 you just scroll around in your main document window until you find the
 equation you want to reference, and that's not efficient or fun.


 and then...
 On Mar 15, 2015, at 5:26 PM, David A Case c...@biomaps.rutgers.edu
 wrote:

  On Sat, Mar 14, 2015, Robert Susmilch wrote:

 I have Googled a way to refer to numbered equations in text, such as
 See equation (3) in Lyx but everything I read, whether from other
 users or wikis, suggests labeling the already numbered equations and
 then using the label to cross reference.

 This seems absurd 

 This has been discussed before on this list.  The requirement to have a
 label makes good sense: how do you propose to refer to an equation that
 does not have a label?  Remember that its number will change as
 equations
 are added or removed, whereas the label will not change.

 It seems like you may wish to have a cross reference that says the
 following: refer to the *current* equation (3), and update the number
 in
 the cross reference if the corresponding equation number changes.  This
 might be implemented by having LyX create a unique but hidden label for
 every numbered equation, and providing some sort of user interface to
 refer to it.

 Nice answer.

 For good reasons or bad, this is not the way LyX and latex work.

 Why do you say this? You just proposed a solution to use the LyX/Latex
 underpinnings to do that very thing. And that's probably the way FullWrite
 did it.

Note that
 numbered equations are no different in this respect than are numbered
 sections, etc.

 dave case

  Finally (I'll file a ticket for this in due course), a simple
 improvement of the current system would

Re: Lyx numbering equations

2015-03-20 Thread John Kane
Fullwrite was abandoned about 1995 or 2000, sob.  I was not as crazy about
it as Jerry since it was a bugger when doing tables but compared to
something like MS Word it was heaven.

On 20 March 2015 at 04:55, Michael Berger id...@online.de wrote:

 On 03/20/2015 08:44 AM, Jerry wrote:

 On Mar 14, 2015, at 9:56 AM, Robert Susmilch rob...@susmilch.com wrote:

  This seems absurd given that Lyx purports to free you to write and not
 micromanage things like this. The tutorial goes on and on about using
 citations, bibliography, automatic section and chapter title numbering
 that takes care of itself. If I can number an equation and it's
 automatic that means the equation numbering can / will change as they
 are moved about, added or deleted, etc.

 I agree, but would stop short of absurd and simply say awkward,
 clumsy, and then I'll stop. It does work. I believe that Microsoft Word
 and Mathematica require the same sort of tedious labeling, and those are
 not necessarily good models. I know for a fact that this problem can be
 handled better because I used the long-gone and much-loved FullWrite
 Professional for about 10 years, from 1988 to 1998, and it did not require
 labeling of anything. You simply inserted, as a reference, the current
 equation number and then FullWrite automatically kept everything up to
 date. It was just that simple.
 And, not trivially, FullWrite had a _graphical_ equation browser,
 a window of all your (filtered) stand-alone equations, numbered or not, in
 a scrollable window. Now _that_ was neat. I think I have filed a feature
 request for LyX but I don't expect anything to happen for a long time.
 However, LyX has an option to render equations on-screen already (Instant
 Preview) so it seems that the hard part of a graphical browser has already
 been done.
 With a graphical browser, one could assign nonsense labels (AA,
 AB, AC, ... or just 1, 2, 3, ...) and use the graphical browser to find the
 one to which you want to insert a reference and just click on the image.
 That's what you do anyway, only instead of a dedicated graphical browser,
 you just scroll around in your main document window until you find the
 equation you want to reference, and that's not efficient or fun.


 and then...
 On Mar 15, 2015, at 5:26 PM, David A Case c...@biomaps.rutgers.edu
 wrote:

  On Sat, Mar 14, 2015, Robert Susmilch wrote:

 I have Googled a way to refer to numbered equations in text, such as
 See equation (3) in Lyx but everything I read, whether from other
 users or wikis, suggests labeling the already numbered equations and
 then using the label to cross reference.

 This seems absurd 

 This has been discussed before on this list.  The requirement to have a
 label makes good sense: how do you propose to refer to an equation that
 does not have a label?  Remember that its number will change as equations
 are added or removed, whereas the label will not change.

 It seems like you may wish to have a cross reference that says the
 following: refer to the *current* equation (3), and update the number in
 the cross reference if the corresponding equation number changes.  This
 might be implemented by having LyX create a unique but hidden label for
 every numbered equation, and providing some sort of user interface to
 refer to it.

 Nice answer.

 For good reasons or bad, this is not the way LyX and latex work.

 Why do you say this? You just proposed a solution to use the LyX/Latex
 underpinnings to do that very thing. And that's probably the way FullWrite
 did it.

Note that
 numbered equations are no different in this respect than are numbered
 sections, etc.

 dave case

  Finally (I'll file a ticket for this in due course), a simple
 improvement of the current system would be to display the labels with more
 characters than are currently used; currently, so few characters are
 displayed that one quickly becomes confused about which equation the label
 belongs to.

 Jerry


 Dear Jerry and followers of this very issue,
 personally I am happy with LyX's philosophy and think we should not
 over-emphasize such detail.
 Is adding a label really such tremendous effort?
 However, I see the point of some users.
 But could it be that the implementation of this simple improvement turns
 out not to be so very simple?
 (see above: For good reasons or bad, this is not the way LyX and latex
 work)

 Now, please have a look at the screen-shot attached.
 It shows an excerpt of André Miede's excellent classicthesis.
 He created a new type of reference (Insert  Custom Insets  CT-auto
 cross-reference) which can show labels of more characters / words next to
 the number.
 I know, this is not exactly what is being discussed here but it certainly
 goes in that direction.

 And last but not least: users who prefer FullWrite Professional's features
 over those of Lyx may stick to it.

 Cheers!

 Michael




-- 
John Kane
Kingston ON Canada


Re: Lyx numbering equations

2015-03-20 Thread Robert Susmilch
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 03/15/2015 09:59 PM, Hal Kierstead wrote:
 This would be nice, and I think that I would use it, but I can
 think of many other improvements that might be easier to implement.
 For example: 1. LyX could remember the kind of reference associated
 with a label. So instead of typing Lemma 14, I would only need to
 type the reference to its label.  LyX already knows this because
 its suggestions for labels look like lem: … .  I often forget
 whether a reference is to a lemma or proposition, etc. 2. When I
 know the label for a reference it would be nice to be able to enter
 it directly from the keyboard (of course it would also be nice to
 be able to enter its current number). 3. When I highlight a
 reference in the pop-up window and then use the goto and return
 buttons, it would be nice to still have the reference highlighted. 
 4. The best thing, which is apparently very hard, would be to have
 tex2lyx work perfectly on tex files that were originally created by
 LyX, but have been modified by a coauthor without changing the
 front matter.
 
 But it is a great app; I only wish my coauthors and students would
 use it.
 
 Hal

Dear Hal,

I don't have much experience with Lyx right now, just beginning.
However I can tell you this future student plans on utilizing it when
I can!
- -- 
Respectfully,

Robert Susmilch
-BEGIN PGP SIGNATURE-
Version: GnuPG v2

iQIbBAEBAgAGBQJVDD2LAAoJEJvhIiLnDQ8qo0wP+N7hRZ12b3RJ90Q4tB92bN1z
MK2ygkN+2C6FzrsQ4fiI/Tg6WNKjXl3dMVEvmkwj12KAEwEKrzzxmwiAeBAXIhNB
Bl7ha+QO3Gt4BKmHSgmCSkOygVF2uJqhb98EIvfokyAzgIEx1Itq7gfP7NTC1Ds0
9sE0skw7CEPoTzyTFHexCxObdoZ2nlHQ+fdW/LhiWoW/TaXg/Tf7qqmOB7GyYgAj
MXhsL/KdZjXOc2DGpXDK9OVHZC2hrMwGD2+aW26v6Vtxp4/IvuRn5EEblKyh0DB0
3qrdVGim99t5iBE4ptBsYDsyry7l/g9X0lkUM+NMBbdo7tNosHJPXpoHzN53o0sl
oJbiAwnC8pEzWwjuntIbZCFeA/Ffhlnvt/CTfDT+QQDHPqFefptzvclYhMUvnQdf
DZ4NSWyiR20M49+iVa+z0heDfFPQiYpnGmD82AtOXZ1d8aHl01OHY4rIx7iKlh+H
WovoSC9nhDSoYZBp1TaoyoYWDsUuspUY7r6qx75Puo3xHEHVejiUA5YA1T5yTn2T
jRL00VJsvt7u+RzDMI3c0GaADjdeG67Frh9iBLPnnGpTVnB6iNefCdqZx2q0+vMY
7IH+/lDTgZ+fycCBDVYC+UxZ0fKIhskYHnNsY8oNONsED9CqmDnrzbFAWCWjIr3g
VkveIloFUuyXQkSizlM=
=t1+R
-END PGP SIGNATURE-


Re: Lyx numbering equations

2015-03-20 Thread Robert Susmilch
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 03/15/2015 07:26 PM, David A Case wrote:
 On Sat, Mar 14, 2015, Robert Susmilch wrote:
 
 I have Googled a way to refer to numbered equations in text, such
 as See equation (3) in Lyx but everything I read, whether from
 other users or wikis, suggests labeling the already numbered
 equations and then using the label to cross reference.
 
 This seems absurd 
 
 This has been discussed before on this list.  The requirement to
 have a label makes good sense: how do you propose to refer to an
 equation that does not have a label?  Remember that its number will
 change as equations are added or removed, whereas the label will
 not change.
 
 It seems like you may wish to have a cross reference that says the 
 following: refer to the *current* equation (3), and update the
 number in the cross reference if the corresponding equation number
 changes.  This might be implemented by having LyX create a unique
 but hidden label for every numbered equation, and providing some
 sort of user interface to refer to it.
 
 For good reasons or bad, this is not the way LyX and latex work.
 Note that numbered equations are no different in this respect than
 are numbered sections, etc.
 
 dave case
 
Dear Dave,

Yes I see this now about sections, I think that might be an oversight
IMHO.

I have been very busy with work, a two year old, and getting both
myself and wife back to college after 10 and 15 years away from school
respectively to write back to everyone.
- -- 
Respectfully,

Robert Susmilch
-BEGIN PGP SIGNATURE-
Version: GnuPG v2

iQIcBAEBAgAGBQJVDD1iAAoJEJvhIiLnDQ8q+DoQAJeFEJSLN6qpRY7bU6731KF8
tzWM1eWmZMixNRco1CmTE22Paj0+hULSsU1RaWzO1TW0FSJd++v0A09Vw3OmF/U6
p2Sx2IglsekJ6m4Lpiqm8FbRRM1L8XzLJovXTNXKG+6wlDN2R+3mnX79SN6DaRNL
oHsM6eoJ/hHFXsbn6YmMeTNcdAkavLHWjiKP3wMGaI3phlttjysp/B/Ugwgbrgja
AVWViTdUcuHlFa2puK7MsrkqLKeh0vMKfTkayj/HokLKcIcHgWERPYBEwz2ABGEU
QFRHsKrN4VWtYLfWPzaYFdNFSlj0VMElJSzn4vpizMaSnGpD9vMQ1SY4vxbDTEp5
OTAM2GN9OzVaeh5Om7D6OH4uR/QVGNc6OVe6flBEpegoWYTO4bpO89+QefX3q9hn
K8TdiLR3Ot3BX95NfJL2uccBR8qDyb4ffYgRF7xcApRpIA4utEiXrEXwstByM1hd
cihsyyg3sE4tTfyRxLVz3cugdHbr5hpxboE/MSdGP62DRE4Z9H12aD+/8qR48+5/
YNBpc1abPAF16PaURSKB7PtGbgupCQkLLofvK9ruhfBKPR32DT+Y0md0bULuoP1o
bI6mVGmE2jn81uBcRqPddav3JxM8C7vocbTB6gRDon7PtVpLmzdOSxOCT+EQcI7n
vM1OIWMVoMBXMoLmoumI
=Dxu4
-END PGP SIGNATURE-


Re: Lyx numbering equations

2015-03-20 Thread Robert Susmilch
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 03/20/2015 09:38 AM, Benedict Holland wrote:
 Hi everyone,
 
 I am going to take a strong line on this one and say it works as 
 designed and the design is very well done. The reason for is it 
 that you do have references and labels, under the table, that lyx 
 is managing for you. You have an equation, you number the
 question, you label the equation, and you never have to worry about
 it again. The reference automatically updates with the removal or
 addition of equations prior to the referenced one. The entire point
 of the labeling system is to make the numbering decoupled from
 where an equation appears in the document and to that extent, it
 performs very well. After reading various comments I actually have
 no idea what the OP would like or what other people are
 suggesting.
 
 Equation labels should be human readable and make sense to you and 
 the document. That is the proper use. If you are making them all 
 a1, a2,... aN, I can't help you but typically there are not many 
 equations in documents anyway. Each one is a bit different and 
 requires a slightly different human readable note attached with a 
 number that you don't care about. It seems perfect to me.
 
 ~Ben

Dear Ben,

I haven't used Lyx for long, but for years and years have heard about
Latex so was excited to find Lyx. Especially since I'm going back to
school.

My issue is simple (I think).

Let's take an example
(https://www.dropbox.com/s/k19be7n6uuegw1n/Numbered%20Equations%20Exampl
e.pdf?dl=0),
much like a text book in math or science uses many equations and
refers to them by number (since you can have multiple variations of a
named equation).

I have copied and pasted this section out of a larger document, so the
number equations have shifted back to 1, 2, 3, etc. However it's
simply an example of what I'm thinking.

- -- 
Respectfully,

Robert Susmilch
-BEGIN PGP SIGNATURE-
Version: GnuPG v2

iQIcBAEBAgAGBQJVDDz+AAoJEJvhIiLnDQ8qL30P/RM6rNDyRzdi4qW2QgLiv3Yq
3jus8f23ai2IHdyyfeedZcKe7pf2ge78lOG118zZbazJko7iLFV49ioHjqgVODFz
r60Icj1toefwtr14u5CJfnFoM/kwJIgbTmXwhmvYS6y+6xeuWovH78XMrdkqVeS/
nQLrWm4XTgkXPJh7nMZGe0i0NzV5DhaCaAuOsud93QwL2FXR9woULmD/PQ3bmwOZ
iovxN4Ag1ElBzPhpFnDmJFXv8B1RoQRPq2+iHA7EuOf62T4GiGncxW2eKnRL3llQ
mF99ok0PQ6jW3NDW7NgWTGSudZJJX4OEikc3FFdHVwQtsAi7vehKe905/1IS+TE8
izj5khuBxgAUyfiVxKkbp5Y8sr6cPsCuOcposcQucU2mXhMMYJHqZhBVan7wKBOf
EaAcgAZsc+HRbI2tWkKaR8YNCDgawrLmQsXzrCBXShQkGmmEDfg+HTeodzKJKjir
49DM3fKP1lWCDIHZ0iLpaAyP/xPOWZK9KA0Tk8G4RAd97E4u6O72IvL5Kr5boXeL
V1exSmJ7zcqP6esh4qWHkQXURt20h1PZeQlnGSZUZFFoOEMmDzvQd+vlHx2/Nwhi
hsm/X6GEBu95QAvY3uBGpfGLIL1u7C1JCODsMATlRKszlWNBbvslICczfs+GkWHn
4Kcfn//eqgeZm6Pr/TxG
=Lh1w
-END PGP SIGNATURE-


Re: Lyx numbering equations

2015-03-20 Thread Richard Heck

On 03/20/2015 03:44 AM, Jerry wrote:

And, not trivially, FullWrite had a _graphical_ equation browser, a 
window of all your (filtered) stand-alone equations, numbered or not, in a 
scrollable window. Now _that_ was neat.


Note that all equations are listed in the Outline pane, so it is easy to 
search for them.


The general issue about label-less references is one that has been 
raised before, and it is on various people's radars. It's not 
impossible, by any means. It just needs someone who cares enough about 
it to find the time to do it. It doesn't bother me, so I choose to put 
my time elsewhere.


Richard




Re: Lyx numbering equations

2015-03-20 Thread Benedict Holland
Hello,

So you want to label each of the lines in order? If you are in the math
environment, right click and select Displayed Formula. That will center
the entire math block. Then you can right click and number the whole
formula or each line. It is true that it will not number each line 1-4 and
equally true that would most likely not be very difficult but it is equally
not very difficult to just number each line. It is then possible to label
each line as something like equation_1, equation_2, equation_3 for easy
reference. That way you know that equation_1 is the first equation for
equation *equation. *To reference these numbers, you set up a cross
reference based on the labels you chose. This is actually really nice. Say
for example that you wanted to insert an equation between 3 and 4. You
don't have to worry about changing labels or references. It just does it.

Again, I really don't understand what the desired outcome would be or why
something doesn't work. All Lyx is doing is setting up a nice front end and
dealing with the \ref{} and \label{} tags for you. The cases where it makes
sense to have every single line in a math group labeled separately are
fairly edge case in nature and the problem easily  fixed with a few simple
right clicks.

Thanks,
~Ben

On Fri, Mar 20, 2015 at 11:32 AM, Robert Susmilch rob...@susmilch.com
wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 On 03/15/2015 09:59 PM, Hal Kierstead wrote:
  This would be nice, and I think that I would use it, but I can
  think of many other improvements that might be easier to implement.
  For example: 1. LyX could remember the kind of reference associated
  with a label. So instead of typing Lemma 14, I would only need to
  type the reference to its label.  LyX already knows this because
  its suggestions for labels look like lem: … .  I often forget
  whether a reference is to a lemma or proposition, etc. 2. When I
  know the label for a reference it would be nice to be able to enter
  it directly from the keyboard (of course it would also be nice to
  be able to enter its current number). 3. When I highlight a
  reference in the pop-up window and then use the goto and return
  buttons, it would be nice to still have the reference highlighted.
  4. The best thing, which is apparently very hard, would be to have
  tex2lyx work perfectly on tex files that were originally created by
  LyX, but have been modified by a coauthor without changing the
  front matter.
 
  But it is a great app; I only wish my coauthors and students would
  use it.
 
  Hal

 Dear Hal,

 I don't have much experience with Lyx right now, just beginning.
 However I can tell you this future student plans on utilizing it when
 I can!
 - --
 Respectfully,

 Robert Susmilch
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v2

 iQIbBAEBAgAGBQJVDD2LAAoJEJvhIiLnDQ8qo0wP+N7hRZ12b3RJ90Q4tB92bN1z
 MK2ygkN+2C6FzrsQ4fiI/Tg6WNKjXl3dMVEvmkwj12KAEwEKrzzxmwiAeBAXIhNB
 Bl7ha+QO3Gt4BKmHSgmCSkOygVF2uJqhb98EIvfokyAzgIEx1Itq7gfP7NTC1Ds0
 9sE0skw7CEPoTzyTFHexCxObdoZ2nlHQ+fdW/LhiWoW/TaXg/Tf7qqmOB7GyYgAj
 MXhsL/KdZjXOc2DGpXDK9OVHZC2hrMwGD2+aW26v6Vtxp4/IvuRn5EEblKyh0DB0
 3qrdVGim99t5iBE4ptBsYDsyry7l/g9X0lkUM+NMBbdo7tNosHJPXpoHzN53o0sl
 oJbiAwnC8pEzWwjuntIbZCFeA/Ffhlnvt/CTfDT+QQDHPqFefptzvclYhMUvnQdf
 DZ4NSWyiR20M49+iVa+z0heDfFPQiYpnGmD82AtOXZ1d8aHl01OHY4rIx7iKlh+H
 WovoSC9nhDSoYZBp1TaoyoYWDsUuspUY7r6qx75Puo3xHEHVejiUA5YA1T5yTn2T
 jRL00VJsvt7u+RzDMI3c0GaADjdeG67Frh9iBLPnnGpTVnB6iNefCdqZx2q0+vMY
 7IH+/lDTgZ+fycCBDVYC+UxZ0fKIhskYHnNsY8oNONsED9CqmDnrzbFAWCWjIr3g
 VkveIloFUuyXQkSizlM=
 =t1+R
 -END PGP SIGNATURE-



Re: Lyx numbering equations

2015-03-20 Thread Robert Susmilch
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 03/15/2015 02:19 AM, Scott Kostyshak wrote:
 On Sat, Mar 14, 2015 at 12:56 PM, Robert Susmilch
 rob...@susmilch.com wrote:
 -BEGIN PGP SIGNED MESSAGE- Hash: SHA1
 
 Dear List,
 
 I have Googled a way to refer to numbered equations in text, such
 as See equation (3) in Lyx but everything I read, whether from
 other users or wikis, suggests labeling the already numbered
 equations and then using the label to cross reference.
 
 This seems absurd given that Lyx purports to free you to write
 and not micromanage things like this. The tutorial goes on and on
 about using citations, bibliography, automatic section and
 chapter title numbering that takes care of itself. If I can
 number an equation and it's automatic that means the equation
 numbering can / will change as they are moved about, added or
 deleted, etc.
 
 So can this be done? Have I failed Google 101? I'm running Lyx
 2.1.3. If it can't be done then really, what's the point?
 
 Dear Robert,
 
 If I understand correctly, you want to reference an equation
 without specifying a label. But how would LyX know which equation
 you want to reference?
 
 Best,
 
 Scott
 
Dear Scott,

Why, by the special numbered equation number I can view in my outline.
Lyx CLEARLY knows where they are as you can click on them and it takes
one to them in the document.

Also if you enter another equation before a currently numbered
equation it correctly numbers BOTH equations, so internally it is
keeping track of them.

I did notice that you can't reference sections in the table of
contents without a label. I'm a rookie so didn't see this the first
time, but it seems like an oversight to not have a drop-down box to
select these kinds of things in cross-reference.

For example, in the cross-reference dialog, select a label, or show a
category of internal labels such as Table of Contents or Equations.
- -- 
Respectfully,

Robert Susmilch
-BEGIN PGP SIGNATURE-
Version: GnuPG v2

iQIcBAEBAgAGBQJVDD1FAAoJEJvhIiLnDQ8qM0wQAKR15jVLOgq3VbaWRu/qSsG+
fQFcrH+yB0+8CLnCGg3Pkzyk3nAb5I9sJRg9vrNBI4RgO/ZCPqgzTt1rf1iotHAJ
bTVpia1ipKPEfGzeT2+Om5dUEMGXnyTfLNG8U0kw7GC6gcRyQYr0GIUMK6pojY8K
MdC9RgDAtc7dBg3I8BaGk3f7mrwdWku3191lQ4KQexkqr3SQHZG6wfSaTV5IUCg4
PBNjt2uAeF29DNvZ/DKt/1ab7TNXehiI2yEarOS0eWUXVyWUHV3hsEdUudeHQ8u6
zpnGDhNrzcYcX22Q3YKbVCoZYIap7xABFH9JphUvDjfSC4dUoYywdfLr67pUi0ck
wWLNT1K/XCJR5QpGQbquzrpke7fK7S0/6t/gLddiNdEZi37jtVmERBwiiT7ly8vp
1Oh+2uXedRCtPM6fluTk/1WA8+PI7xM3dgjfPcyA2DFRhKibYr383Sh3wx65gykC
cJ40K+kA8fbS5Mmm18U13ivyHt2z8epbFDYCvcJbieUa6ZqdblY1b8oJous1DUEs
QkvxItzs6bjTUvJfg8d33jf0MAu4eYL5KhVcI1iv/61sn+3v9MrgTDGFYxQXbWT7
S/5+KaXtfWVKWltqQdn/DvMO/ry7UdQNk+00kEIvjybdxwkFKiq4fQ+sDtseTa7p
XPxt8wNHYsrovVKnZnIT
=wnW1
-END PGP SIGNATURE-


Re: Lyx numbering equations

2015-03-20 Thread Jerry

On Mar 14, 2015, at 9:56 AM, Robert Susmilch rob...@susmilch.com wrote:

 This seems absurd given that Lyx purports to free you to write and not
 micromanage things like this. The tutorial goes on and on about using
 citations, bibliography, automatic section and chapter title numbering
 that takes care of itself. If I can number an equation and it's
 automatic that means the equation numbering can / will change as they
 are moved about, added or deleted, etc.

I agree, but would stop short of absurd and simply say awkward, clumsy, 
and then I'll stop. It does work. I believe that Microsoft Word and Mathematica 
require the same sort of tedious labeling, and those are not necessarily good 
models. I know for a fact that this problem can be handled better because I 
used the long-gone and much-loved FullWrite Professional for about 10 years, 
from 1988 to 1998, and it did not require labeling of anything. You simply 
inserted, as a reference, the current equation number and then FullWrite 
automatically kept everything up to date. It was just that simple.
And, not trivially, FullWrite had a _graphical_ equation browser, a 
window of all your (filtered) stand-alone equations, numbered or not, in a 
scrollable window. Now _that_ was neat. I think I have filed a feature request 
for LyX but I don't expect anything to happen for a long time. However, LyX has 
an option to render equations on-screen already (Instant Preview) so it seems 
that the hard part of a graphical browser has already been done.
With a graphical browser, one could assign nonsense labels (AA, AB, AC, 
... or just 1, 2, 3, ...) and use the graphical browser to find the one to 
which you want to insert a reference and just click on the image. That's what 
you do anyway, only instead of a dedicated graphical browser, you just scroll 
around in your main document window until you find the equation you want to 
reference, and that's not efficient or fun.


and then...
On Mar 15, 2015, at 5:26 PM, David A Case c...@biomaps.rutgers.edu wrote:

 On Sat, Mar 14, 2015, Robert Susmilch wrote:
 
 I have Googled a way to refer to numbered equations in text, such as
 See equation (3) in Lyx but everything I read, whether from other
 users or wikis, suggests labeling the already numbered equations and
 then using the label to cross reference.
 
 This seems absurd 
 
 This has been discussed before on this list.  The requirement to have a
 label makes good sense: how do you propose to refer to an equation that
 does not have a label?  Remember that its number will change as equations
 are added or removed, whereas the label will not change.
 
 It seems like you may wish to have a cross reference that says the
 following: refer to the *current* equation (3), and update the number in
 the cross reference if the corresponding equation number changes.  This
 might be implemented by having LyX create a unique but hidden label for
 every numbered equation, and providing some sort of user interface to
 refer to it.

Nice answer.
 
 For good reasons or bad, this is not the way LyX and latex work.

Why do you say this? You just proposed a solution to use the LyX/Latex 
underpinnings to do that very thing. And that's probably the way FullWrite did 
it.

  Note that
 numbered equations are no different in this respect than are numbered
 sections, etc.
 
 dave case
 
Finally (I'll file a ticket for this in due course), a simple improvement of 
the current system would be to display the labels with more characters than are 
currently used; currently, so few characters are displayed that one quickly 
becomes confused about which equation the label belongs to.

Jerry

Re: Lyx numbering equations

2015-03-20 Thread Michael Berger

On 03/20/2015 08:44 AM, Jerry wrote:

On Mar 14, 2015, at 9:56 AM, Robert Susmilch rob...@susmilch.com wrote:


This seems absurd given that Lyx purports to free you to write and not
micromanage things like this. The tutorial goes on and on about using
citations, bibliography, automatic section and chapter title numbering
that takes care of itself. If I can number an equation and it's
automatic that means the equation numbering can / will change as they
are moved about, added or deleted, etc.

I agree, but would stop short of absurd and simply say awkward, clumsy, 
and then I'll stop. It does work. I believe that Microsoft Word and Mathematica require the same sort of 
tedious labeling, and those are not necessarily good models. I know for a fact that this problem can be 
handled better because I used the long-gone and much-loved FullWrite Professional for about 10 years, from 
1988 to 1998, and it did not require labeling of anything. You simply inserted, as a reference, the current 
equation number and then FullWrite automatically kept everything up to date. It was just that simple.
And, not trivially, FullWrite had a _graphical_ equation browser, a 
window of all your (filtered) stand-alone equations, numbered or not, in a 
scrollable window. Now _that_ was neat. I think I have filed a feature request 
for LyX but I don't expect anything to happen for a long time. However, LyX has 
an option to render equations on-screen already (Instant Preview) so it seems 
that the hard part of a graphical browser has already been done.
With a graphical browser, one could assign nonsense labels (AA, AB, AC, 
... or just 1, 2, 3, ...) and use the graphical browser to find the one to 
which you want to insert a reference and just click on the image. That's what 
you do anyway, only instead of a dedicated graphical browser, you just scroll 
around in your main document window until you find the equation you want to 
reference, and that's not efficient or fun.


and then...
On Mar 15, 2015, at 5:26 PM, David A Case c...@biomaps.rutgers.edu wrote:


On Sat, Mar 14, 2015, Robert Susmilch wrote:

I have Googled a way to refer to numbered equations in text, such as
See equation (3) in Lyx but everything I read, whether from other
users or wikis, suggests labeling the already numbered equations and
then using the label to cross reference.

This seems absurd 

This has been discussed before on this list.  The requirement to have a
label makes good sense: how do you propose to refer to an equation that
does not have a label?  Remember that its number will change as equations
are added or removed, whereas the label will not change.

It seems like you may wish to have a cross reference that says the
following: refer to the *current* equation (3), and update the number in
the cross reference if the corresponding equation number changes.  This
might be implemented by having LyX create a unique but hidden label for
every numbered equation, and providing some sort of user interface to
refer to it.

Nice answer.

For good reasons or bad, this is not the way LyX and latex work.

Why do you say this? You just proposed a solution to use the LyX/Latex 
underpinnings to do that very thing. And that's probably the way FullWrite did 
it.


  Note that
numbered equations are no different in this respect than are numbered
sections, etc.

dave case


Finally (I'll file a ticket for this in due course), a simple improvement of 
the current system would be to display the labels with more characters than are 
currently used; currently, so few characters are displayed that one quickly 
becomes confused about which equation the label belongs to.

Jerry


Dear Jerry and followers of this very issue,
personally I am happy with LyX's philosophy and think we should not 
over-emphasize such detail.

Is adding a label really such tremendous effort?
However, I see the point of some users.
But could it be that the implementation of this simple improvement 
turns out not to be so very simple?

(see above: For good reasons or bad, this is not the way LyX and latex work)

Now, please have a look at the screen-shot attached.
It shows an excerpt of André Miede's excellent classicthesis.
He created a new type of reference (Insert  Custom Insets  CT-auto 
cross-reference) which can show labels of more characters / words next 
to the number.
I know, this is not exactly what is being discussed here but it 
certainly goes in that direction.


And last but not least: users who prefer FullWrite Professional's 
features over those of Lyx may stick to it.


Cheers!

Michael



Re: Lyx numbering equations

2015-03-20 Thread John Kane
Fullwrite was abandoned about 1995 or 2000, sob.  I was not as crazy about
it as Jerry since it was a bugger when doing tables but compared to
something like MS Word it was heaven.

On 20 March 2015 at 04:55, Michael Berger id...@online.de wrote:

 On 03/20/2015 08:44 AM, Jerry wrote:

 On Mar 14, 2015, at 9:56 AM, Robert Susmilch rob...@susmilch.com wrote:

  This seems absurd given that Lyx purports to free you to write and not
 micromanage things like this. The tutorial goes on and on about using
 citations, bibliography, automatic section and chapter title numbering
 that takes care of itself. If I can number an equation and it's
 automatic that means the equation numbering can / will change as they
 are moved about, added or deleted, etc.

 I agree, but would stop short of absurd and simply say awkward,
 clumsy, and then I'll stop. It does work. I believe that Microsoft Word
 and Mathematica require the same sort of tedious labeling, and those are
 not necessarily good models. I know for a fact that this problem can be
 handled better because I used the long-gone and much-loved FullWrite
 Professional for about 10 years, from 1988 to 1998, and it did not require
 labeling of anything. You simply inserted, as a reference, the current
 equation number and then FullWrite automatically kept everything up to
 date. It was just that simple.
 And, not trivially, FullWrite had a _graphical_ equation browser,
 a window of all your (filtered) stand-alone equations, numbered or not, in
 a scrollable window. Now _that_ was neat. I think I have filed a feature
 request for LyX but I don't expect anything to happen for a long time.
 However, LyX has an option to render equations on-screen already (Instant
 Preview) so it seems that the hard part of a graphical browser has already
 been done.
 With a graphical browser, one could assign nonsense labels (AA,
 AB, AC, ... or just 1, 2, 3, ...) and use the graphical browser to find the
 one to which you want to insert a reference and just click on the image.
 That's what you do anyway, only instead of a dedicated graphical browser,
 you just scroll around in your main document window until you find the
 equation you want to reference, and that's not efficient or fun.


 and then...
 On Mar 15, 2015, at 5:26 PM, David A Case c...@biomaps.rutgers.edu
 wrote:

  On Sat, Mar 14, 2015, Robert Susmilch wrote:

 I have Googled a way to refer to numbered equations in text, such as
 See equation (3) in Lyx but everything I read, whether from other
 users or wikis, suggests labeling the already numbered equations and
 then using the label to cross reference.

 This seems absurd 

 This has been discussed before on this list.  The requirement to have a
 label makes good sense: how do you propose to refer to an equation that
 does not have a label?  Remember that its number will change as equations
 are added or removed, whereas the label will not change.

 It seems like you may wish to have a cross reference that says the
 following: refer to the *current* equation (3), and update the number in
 the cross reference if the corresponding equation number changes.  This
 might be implemented by having LyX create a unique but hidden label for
 every numbered equation, and providing some sort of user interface to
 refer to it.

 Nice answer.

 For good reasons or bad, this is not the way LyX and latex work.

 Why do you say this? You just proposed a solution to use the LyX/Latex
 underpinnings to do that very thing. And that's probably the way FullWrite
 did it.

Note that
 numbered equations are no different in this respect than are numbered
 sections, etc.

 dave case

  Finally (I'll file a ticket for this in due course), a simple
 improvement of the current system would be to display the labels with more
 characters than are currently used; currently, so few characters are
 displayed that one quickly becomes confused about which equation the label
 belongs to.

 Jerry


 Dear Jerry and followers of this very issue,
 personally I am happy with LyX's philosophy and think we should not
 over-emphasize such detail.
 Is adding a label really such tremendous effort?
 However, I see the point of some users.
 But could it be that the implementation of this simple improvement turns
 out not to be so very simple?
 (see above: For good reasons or bad, this is not the way LyX and latex
 work)

 Now, please have a look at the screen-shot attached.
 It shows an excerpt of André Miede's excellent classicthesis.
 He created a new type of reference (Insert  Custom Insets  CT-auto
 cross-reference) which can show labels of more characters / words next to
 the number.
 I know, this is not exactly what is being discussed here but it certainly
 goes in that direction.

 And last but not least: users who prefer FullWrite Professional's features
 over those of Lyx may stick to it.

 Cheers!

 Michael




-- 
John Kane
Kingston ON Canada


Re: Lyx numbering equations

2015-03-20 Thread Benedict Holland
Hi everyone,

I am going to take a strong line on this one and say it works as designed
and the design is very well done. The reason for is it that you do have
references and labels, under the table, that lyx is managing for you. You
have an equation, you number the question, you label the equation, and you
never have to worry about it again. The reference automatically updates
with the removal or addition of equations prior to the referenced one. The
entire point of the labeling system is to make the numbering decoupled from
where an equation appears in the document and to that extent, it performs
very well. After reading various comments I actually have no idea what the
OP would like or what other people are suggesting.

Equation labels should be human readable and make sense to you and the
document. That is the proper use. If you are making them all a1, a2,... aN,
I can't help you but typically there are not many equations in documents
anyway. Each one is a bit different and requires a slightly different human
readable note attached with a number that you don't care about. It seems
perfect to me.

~Ben

On Fri, Mar 20, 2015 at 9:23 AM, John Kane jrkrid...@gmail.com wrote:

 Fullwrite was abandoned about 1995 or 2000, sob.  I was not as crazy about
 it as Jerry since it was a bugger when doing tables but compared to
 something like MS Word it was heaven.

 On 20 March 2015 at 04:55, Michael Berger id...@online.de wrote:

 On 03/20/2015 08:44 AM, Jerry wrote:

 On Mar 14, 2015, at 9:56 AM, Robert Susmilch rob...@susmilch.com
 wrote:

  This seems absurd given that Lyx purports to free you to write and not
 micromanage things like this. The tutorial goes on and on about using
 citations, bibliography, automatic section and chapter title numbering
 that takes care of itself. If I can number an equation and it's
 automatic that means the equation numbering can / will change as they
 are moved about, added or deleted, etc.

 I agree, but would stop short of absurd and simply say awkward,
 clumsy, and then I'll stop. It does work. I believe that Microsoft Word
 and Mathematica require the same sort of tedious labeling, and those are
 not necessarily good models. I know for a fact that this problem can be
 handled better because I used the long-gone and much-loved FullWrite
 Professional for about 10 years, from 1988 to 1998, and it did not require
 labeling of anything. You simply inserted, as a reference, the current
 equation number and then FullWrite automatically kept everything up to
 date. It was just that simple.
 And, not trivially, FullWrite had a _graphical_ equation
 browser, a window of all your (filtered) stand-alone equations, numbered or
 not, in a scrollable window. Now _that_ was neat. I think I have filed a
 feature request for LyX but I don't expect anything to happen for a long
 time. However, LyX has an option to render equations on-screen already
 (Instant Preview) so it seems that the hard part of a graphical browser has
 already been done.
 With a graphical browser, one could assign nonsense labels (AA,
 AB, AC, ... or just 1, 2, 3, ...) and use the graphical browser to find the
 one to which you want to insert a reference and just click on the image.
 That's what you do anyway, only instead of a dedicated graphical browser,
 you just scroll around in your main document window until you find the
 equation you want to reference, and that's not efficient or fun.


 and then...
 On Mar 15, 2015, at 5:26 PM, David A Case c...@biomaps.rutgers.edu
 wrote:

  On Sat, Mar 14, 2015, Robert Susmilch wrote:

 I have Googled a way to refer to numbered equations in text, such as
 See equation (3) in Lyx but everything I read, whether from other
 users or wikis, suggests labeling the already numbered equations and
 then using the label to cross reference.

 This seems absurd 

 This has been discussed before on this list.  The requirement to have a
 label makes good sense: how do you propose to refer to an equation that
 does not have a label?  Remember that its number will change as
 equations
 are added or removed, whereas the label will not change.

 It seems like you may wish to have a cross reference that says the
 following: refer to the *current* equation (3), and update the number
 in
 the cross reference if the corresponding equation number changes.  This
 might be implemented by having LyX create a unique but hidden label for
 every numbered equation, and providing some sort of user interface to
 refer to it.

 Nice answer.

 For good reasons or bad, this is not the way LyX and latex work.

 Why do you say this? You just proposed a solution to use the LyX/Latex
 underpinnings to do that very thing. And that's probably the way FullWrite
 did it.

Note that
 numbered equations are no different in this respect than are numbered
 sections, etc.

 dave case

  Finally (I'll file a ticket for this in due course), a simple
 improvement of the current system would

Re: Lyx numbering equations

2015-03-20 Thread Richard Heck

On 03/20/2015 03:44 AM, Jerry wrote:

And, not trivially, FullWrite had a _graphical_ equation browser, a 
window of all your (filtered) stand-alone equations, numbered or not, in a 
scrollable window. Now _that_ was neat.


Note that all equations are listed in the Outline pane, so it is easy to 
search for them.


The general issue about label-less references is one that has been 
raised before, and it is on various people's radars. It's not 
impossible, by any means. It just needs someone who cares enough about 
it to find the time to do it. It doesn't bother me, so I choose to put 
my time elsewhere.


Richard




Re: Lyx numbering equations

2015-03-20 Thread Robert Susmilch
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 03/20/2015 09:38 AM, Benedict Holland wrote:
 Hi everyone,
 
 I am going to take a strong line on this one and say it works as 
 designed and the design is very well done. The reason for is it 
 that you do have references and labels, under the table, that lyx 
 is managing for you. You have an equation, you number the
 question, you label the equation, and you never have to worry about
 it again. The reference automatically updates with the removal or
 addition of equations prior to the referenced one. The entire point
 of the labeling system is to make the numbering decoupled from
 where an equation appears in the document and to that extent, it
 performs very well. After reading various comments I actually have
 no idea what the OP would like or what other people are
 suggesting.
 
 Equation labels should be human readable and make sense to you and 
 the document. That is the proper use. If you are making them all 
 a1, a2,... aN, I can't help you but typically there are not many 
 equations in documents anyway. Each one is a bit different and 
 requires a slightly different human readable note attached with a 
 number that you don't care about. It seems perfect to me.
 
 ~Ben

Dear Ben,

I haven't used Lyx for long, but for years and years have heard about
Latex so was excited to find Lyx. Especially since I'm going back to
school.

My issue is simple (I think).

Let's take an example
(https://www.dropbox.com/s/k19be7n6uuegw1n/Numbered%20Equations%20Exampl
e.pdf?dl=0),
much like a text book in math or science uses many equations and
refers to them by number (since you can have multiple variations of a
named equation).

I have copied and pasted this section out of a larger document, so the
number equations have shifted back to 1, 2, 3, etc. However it's
simply an example of what I'm thinking.

- -- 
Respectfully,

Robert Susmilch
-BEGIN PGP SIGNATURE-
Version: GnuPG v2

iQIcBAEBAgAGBQJVDDz+AAoJEJvhIiLnDQ8qL30P/RM6rNDyRzdi4qW2QgLiv3Yq
3jus8f23ai2IHdyyfeedZcKe7pf2ge78lOG118zZbazJko7iLFV49ioHjqgVODFz
r60Icj1toefwtr14u5CJfnFoM/kwJIgbTmXwhmvYS6y+6xeuWovH78XMrdkqVeS/
nQLrWm4XTgkXPJh7nMZGe0i0NzV5DhaCaAuOsud93QwL2FXR9woULmD/PQ3bmwOZ
iovxN4Ag1ElBzPhpFnDmJFXv8B1RoQRPq2+iHA7EuOf62T4GiGncxW2eKnRL3llQ
mF99ok0PQ6jW3NDW7NgWTGSudZJJX4OEikc3FFdHVwQtsAi7vehKe905/1IS+TE8
izj5khuBxgAUyfiVxKkbp5Y8sr6cPsCuOcposcQucU2mXhMMYJHqZhBVan7wKBOf
EaAcgAZsc+HRbI2tWkKaR8YNCDgawrLmQsXzrCBXShQkGmmEDfg+HTeodzKJKjir
49DM3fKP1lWCDIHZ0iLpaAyP/xPOWZK9KA0Tk8G4RAd97E4u6O72IvL5Kr5boXeL
V1exSmJ7zcqP6esh4qWHkQXURt20h1PZeQlnGSZUZFFoOEMmDzvQd+vlHx2/Nwhi
hsm/X6GEBu95QAvY3uBGpfGLIL1u7C1JCODsMATlRKszlWNBbvslICczfs+GkWHn
4Kcfn//eqgeZm6Pr/TxG
=Lh1w
-END PGP SIGNATURE-


Re: Lyx numbering equations

2015-03-20 Thread Robert Susmilch
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 03/15/2015 02:19 AM, Scott Kostyshak wrote:
 On Sat, Mar 14, 2015 at 12:56 PM, Robert Susmilch
 rob...@susmilch.com wrote:
 -BEGIN PGP SIGNED MESSAGE- Hash: SHA1
 
 Dear List,
 
 I have Googled a way to refer to numbered equations in text, such
 as See equation (3) in Lyx but everything I read, whether from
 other users or wikis, suggests labeling the already numbered
 equations and then using the label to cross reference.
 
 This seems absurd given that Lyx purports to free you to write
 and not micromanage things like this. The tutorial goes on and on
 about using citations, bibliography, automatic section and
 chapter title numbering that takes care of itself. If I can
 number an equation and it's automatic that means the equation
 numbering can / will change as they are moved about, added or
 deleted, etc.
 
 So can this be done? Have I failed Google 101? I'm running Lyx
 2.1.3. If it can't be done then really, what's the point?
 
 Dear Robert,
 
 If I understand correctly, you want to reference an equation
 without specifying a label. But how would LyX know which equation
 you want to reference?
 
 Best,
 
 Scott
 
Dear Scott,

Why, by the special numbered equation number I can view in my outline.
Lyx CLEARLY knows where they are as you can click on them and it takes
one to them in the document.

Also if you enter another equation before a currently numbered
equation it correctly numbers BOTH equations, so internally it is
keeping track of them.

I did notice that you can't reference sections in the table of
contents without a label. I'm a rookie so didn't see this the first
time, but it seems like an oversight to not have a drop-down box to
select these kinds of things in cross-reference.

For example, in the cross-reference dialog, select a label, or show a
category of internal labels such as Table of Contents or Equations.
- -- 
Respectfully,

Robert Susmilch
-BEGIN PGP SIGNATURE-
Version: GnuPG v2

iQIcBAEBAgAGBQJVDD1FAAoJEJvhIiLnDQ8qM0wQAKR15jVLOgq3VbaWRu/qSsG+
fQFcrH+yB0+8CLnCGg3Pkzyk3nAb5I9sJRg9vrNBI4RgO/ZCPqgzTt1rf1iotHAJ
bTVpia1ipKPEfGzeT2+Om5dUEMGXnyTfLNG8U0kw7GC6gcRyQYr0GIUMK6pojY8K
MdC9RgDAtc7dBg3I8BaGk3f7mrwdWku3191lQ4KQexkqr3SQHZG6wfSaTV5IUCg4
PBNjt2uAeF29DNvZ/DKt/1ab7TNXehiI2yEarOS0eWUXVyWUHV3hsEdUudeHQ8u6
zpnGDhNrzcYcX22Q3YKbVCoZYIap7xABFH9JphUvDjfSC4dUoYywdfLr67pUi0ck
wWLNT1K/XCJR5QpGQbquzrpke7fK7S0/6t/gLddiNdEZi37jtVmERBwiiT7ly8vp
1Oh+2uXedRCtPM6fluTk/1WA8+PI7xM3dgjfPcyA2DFRhKibYr383Sh3wx65gykC
cJ40K+kA8fbS5Mmm18U13ivyHt2z8epbFDYCvcJbieUa6ZqdblY1b8oJous1DUEs
QkvxItzs6bjTUvJfg8d33jf0MAu4eYL5KhVcI1iv/61sn+3v9MrgTDGFYxQXbWT7
S/5+KaXtfWVKWltqQdn/DvMO/ry7UdQNk+00kEIvjybdxwkFKiq4fQ+sDtseTa7p
XPxt8wNHYsrovVKnZnIT
=wnW1
-END PGP SIGNATURE-


Re: Lyx numbering equations

2015-03-20 Thread Robert Susmilch
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 03/15/2015 07:26 PM, David A Case wrote:
 On Sat, Mar 14, 2015, Robert Susmilch wrote:
 
 I have Googled a way to refer to numbered equations in text, such
 as See equation (3) in Lyx but everything I read, whether from
 other users or wikis, suggests labeling the already numbered
 equations and then using the label to cross reference.
 
 This seems absurd 
 
 This has been discussed before on this list.  The requirement to
 have a label makes good sense: how do you propose to refer to an
 equation that does not have a label?  Remember that its number will
 change as equations are added or removed, whereas the label will
 not change.
 
 It seems like you may wish to have a cross reference that says the 
 following: refer to the *current* equation (3), and update the
 number in the cross reference if the corresponding equation number
 changes.  This might be implemented by having LyX create a unique
 but hidden label for every numbered equation, and providing some
 sort of user interface to refer to it.
 
 For good reasons or bad, this is not the way LyX and latex work.
 Note that numbered equations are no different in this respect than
 are numbered sections, etc.
 
 dave case
 
Dear Dave,

Yes I see this now about sections, I think that might be an oversight
IMHO.

I have been very busy with work, a two year old, and getting both
myself and wife back to college after 10 and 15 years away from school
respectively to write back to everyone.
- -- 
Respectfully,

Robert Susmilch
-BEGIN PGP SIGNATURE-
Version: GnuPG v2

iQIcBAEBAgAGBQJVDD1iAAoJEJvhIiLnDQ8q+DoQAJeFEJSLN6qpRY7bU6731KF8
tzWM1eWmZMixNRco1CmTE22Paj0+hULSsU1RaWzO1TW0FSJd++v0A09Vw3OmF/U6
p2Sx2IglsekJ6m4Lpiqm8FbRRM1L8XzLJovXTNXKG+6wlDN2R+3mnX79SN6DaRNL
oHsM6eoJ/hHFXsbn6YmMeTNcdAkavLHWjiKP3wMGaI3phlttjysp/B/Ugwgbrgja
AVWViTdUcuHlFa2puK7MsrkqLKeh0vMKfTkayj/HokLKcIcHgWERPYBEwz2ABGEU
QFRHsKrN4VWtYLfWPzaYFdNFSlj0VMElJSzn4vpizMaSnGpD9vMQ1SY4vxbDTEp5
OTAM2GN9OzVaeh5Om7D6OH4uR/QVGNc6OVe6flBEpegoWYTO4bpO89+QefX3q9hn
K8TdiLR3Ot3BX95NfJL2uccBR8qDyb4ffYgRF7xcApRpIA4utEiXrEXwstByM1hd
cihsyyg3sE4tTfyRxLVz3cugdHbr5hpxboE/MSdGP62DRE4Z9H12aD+/8qR48+5/
YNBpc1abPAF16PaURSKB7PtGbgupCQkLLofvK9ruhfBKPR32DT+Y0md0bULuoP1o
bI6mVGmE2jn81uBcRqPddav3JxM8C7vocbTB6gRDon7PtVpLmzdOSxOCT+EQcI7n
vM1OIWMVoMBXMoLmoumI
=Dxu4
-END PGP SIGNATURE-


Re: Lyx numbering equations

2015-03-20 Thread Robert Susmilch
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 03/15/2015 09:59 PM, Hal Kierstead wrote:
 This would be nice, and I think that I would use it, but I can
 think of many other improvements that might be easier to implement.
 For example: 1. LyX could remember the kind of reference associated
 with a label. So instead of typing Lemma 14, I would only need to
 type the reference to its label.  LyX already knows this because
 its suggestions for labels look like lem: … .  I often forget
 whether a reference is to a lemma or proposition, etc. 2. When I
 know the label for a reference it would be nice to be able to enter
 it directly from the keyboard (of course it would also be nice to
 be able to enter its current number). 3. When I highlight a
 reference in the pop-up window and then use the goto and return
 buttons, it would be nice to still have the reference highlighted. 
 4. The best thing, which is apparently very hard, would be to have
 tex2lyx work perfectly on tex files that were originally created by
 LyX, but have been modified by a coauthor without changing the
 front matter.
 
 But it is a great app; I only wish my coauthors and students would
 use it.
 
 Hal

Dear Hal,

I don't have much experience with Lyx right now, just beginning.
However I can tell you this future student plans on utilizing it when
I can!
- -- 
Respectfully,

Robert Susmilch
-BEGIN PGP SIGNATURE-
Version: GnuPG v2

iQIbBAEBAgAGBQJVDD2LAAoJEJvhIiLnDQ8qo0wP+N7hRZ12b3RJ90Q4tB92bN1z
MK2ygkN+2C6FzrsQ4fiI/Tg6WNKjXl3dMVEvmkwj12KAEwEKrzzxmwiAeBAXIhNB
Bl7ha+QO3Gt4BKmHSgmCSkOygVF2uJqhb98EIvfokyAzgIEx1Itq7gfP7NTC1Ds0
9sE0skw7CEPoTzyTFHexCxObdoZ2nlHQ+fdW/LhiWoW/TaXg/Tf7qqmOB7GyYgAj
MXhsL/KdZjXOc2DGpXDK9OVHZC2hrMwGD2+aW26v6Vtxp4/IvuRn5EEblKyh0DB0
3qrdVGim99t5iBE4ptBsYDsyry7l/g9X0lkUM+NMBbdo7tNosHJPXpoHzN53o0sl
oJbiAwnC8pEzWwjuntIbZCFeA/Ffhlnvt/CTfDT+QQDHPqFefptzvclYhMUvnQdf
DZ4NSWyiR20M49+iVa+z0heDfFPQiYpnGmD82AtOXZ1d8aHl01OHY4rIx7iKlh+H
WovoSC9nhDSoYZBp1TaoyoYWDsUuspUY7r6qx75Puo3xHEHVejiUA5YA1T5yTn2T
jRL00VJsvt7u+RzDMI3c0GaADjdeG67Frh9iBLPnnGpTVnB6iNefCdqZx2q0+vMY
7IH+/lDTgZ+fycCBDVYC+UxZ0fKIhskYHnNsY8oNONsED9CqmDnrzbFAWCWjIr3g
VkveIloFUuyXQkSizlM=
=t1+R
-END PGP SIGNATURE-


Re: Lyx numbering equations

2015-03-20 Thread Benedict Holland
Hello,

So you want to label each of the lines in order? If you are in the math
environment, right click and select Displayed Formula. That will center
the entire math block. Then you can right click and number the whole
formula or each line. It is true that it will not number each line 1-4 and
equally true that would most likely not be very difficult but it is equally
not very difficult to just number each line. It is then possible to label
each line as something like equation_1, equation_2, equation_3 for easy
reference. That way you know that equation_1 is the first equation for
equation *equation. *To reference these numbers, you set up a cross
reference based on the labels you chose. This is actually really nice. Say
for example that you wanted to insert an equation between 3 and 4. You
don't have to worry about changing labels or references. It just does it.

Again, I really don't understand what the desired outcome would be or why
something doesn't work. All Lyx is doing is setting up a nice front end and
dealing with the \ref{} and \label{} tags for you. The cases where it makes
sense to have every single line in a math group labeled separately are
fairly edge case in nature and the problem easily  fixed with a few simple
right clicks.

Thanks,
~Ben

On Fri, Mar 20, 2015 at 11:32 AM, Robert Susmilch rob...@susmilch.com
wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 On 03/15/2015 09:59 PM, Hal Kierstead wrote:
  This would be nice, and I think that I would use it, but I can
  think of many other improvements that might be easier to implement.
  For example: 1. LyX could remember the kind of reference associated
  with a label. So instead of typing Lemma 14, I would only need to
  type the reference to its label.  LyX already knows this because
  its suggestions for labels look like lem: … .  I often forget
  whether a reference is to a lemma or proposition, etc. 2. When I
  know the label for a reference it would be nice to be able to enter
  it directly from the keyboard (of course it would also be nice to
  be able to enter its current number). 3. When I highlight a
  reference in the pop-up window and then use the goto and return
  buttons, it would be nice to still have the reference highlighted.
  4. The best thing, which is apparently very hard, would be to have
  tex2lyx work perfectly on tex files that were originally created by
  LyX, but have been modified by a coauthor without changing the
  front matter.
 
  But it is a great app; I only wish my coauthors and students would
  use it.
 
  Hal

 Dear Hal,

 I don't have much experience with Lyx right now, just beginning.
 However I can tell you this future student plans on utilizing it when
 I can!
 - --
 Respectfully,

 Robert Susmilch
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v2

 iQIbBAEBAgAGBQJVDD2LAAoJEJvhIiLnDQ8qo0wP+N7hRZ12b3RJ90Q4tB92bN1z
 MK2ygkN+2C6FzrsQ4fiI/Tg6WNKjXl3dMVEvmkwj12KAEwEKrzzxmwiAeBAXIhNB
 Bl7ha+QO3Gt4BKmHSgmCSkOygVF2uJqhb98EIvfokyAzgIEx1Itq7gfP7NTC1Ds0
 9sE0skw7CEPoTzyTFHexCxObdoZ2nlHQ+fdW/LhiWoW/TaXg/Tf7qqmOB7GyYgAj
 MXhsL/KdZjXOc2DGpXDK9OVHZC2hrMwGD2+aW26v6Vtxp4/IvuRn5EEblKyh0DB0
 3qrdVGim99t5iBE4ptBsYDsyry7l/g9X0lkUM+NMBbdo7tNosHJPXpoHzN53o0sl
 oJbiAwnC8pEzWwjuntIbZCFeA/Ffhlnvt/CTfDT+QQDHPqFefptzvclYhMUvnQdf
 DZ4NSWyiR20M49+iVa+z0heDfFPQiYpnGmD82AtOXZ1d8aHl01OHY4rIx7iKlh+H
 WovoSC9nhDSoYZBp1TaoyoYWDsUuspUY7r6qx75Puo3xHEHVejiUA5YA1T5yTn2T
 jRL00VJsvt7u+RzDMI3c0GaADjdeG67Frh9iBLPnnGpTVnB6iNefCdqZx2q0+vMY
 7IH+/lDTgZ+fycCBDVYC+UxZ0fKIhskYHnNsY8oNONsED9CqmDnrzbFAWCWjIr3g
 VkveIloFUuyXQkSizlM=
 =t1+R
 -END PGP SIGNATURE-



Re: Lyx numbering equations

2015-03-20 Thread Jerry

On Mar 14, 2015, at 9:56 AM, Robert Susmilch <rob...@susmilch.com> wrote:

> This seems absurd given that Lyx purports to free you to write and not
> micromanage things like this. The tutorial goes on and on about using
> citations, bibliography, automatic section and chapter title numbering
> that takes care of itself. If I can number an equation and it's
> automatic that means the equation numbering can / will change as they
> are moved about, added or deleted, etc.

I agree, but would stop short of "absurd" and simply say "awkward," "clumsy," 
and then I'll stop. It does work. I believe that Microsoft Word and Mathematica 
require the same sort of tedious labeling, and those are not necessarily good 
models. I know for a fact that this problem can be handled better because I 
used the long-gone and much-loved FullWrite Professional for about 10 years, 
from 1988 to 1998, and it did not require labeling of anything. You simply 
inserted, as a reference, the current equation number and then FullWrite 
automatically kept everything up to date. It was just that simple.
And, not trivially, FullWrite had a _graphical_ equation browser, a 
window of all your (filtered) stand-alone equations, numbered or not, in a 
scrollable window. Now _that_ was neat. I think I have filed a feature request 
for LyX but I don't expect anything to happen for a long time. However, LyX has 
an option to render equations on-screen already (Instant Preview) so it seems 
that the hard part of a graphical browser has already been done.
With a graphical browser, one could assign nonsense labels (AA, AB, AC, 
... or just 1, 2, 3, ...) and use the graphical browser to find the one to 
which you want to insert a reference and just click on the image. That's what 
you do anyway, only instead of a dedicated graphical browser, you just scroll 
around in your main document window until you find the equation you want to 
reference, and that's not efficient or fun.


and then...
On Mar 15, 2015, at 5:26 PM, David A Case <c...@biomaps.rutgers.edu> wrote:

> On Sat, Mar 14, 2015, Robert Susmilch wrote:
>> 
>> I have Googled a way to refer to numbered equations in text, such as
>> "See equation (3)" in Lyx but everything I read, whether from other
>> users or wikis, suggests labeling the already numbered equations and
>> then using the label to cross reference.
>> 
>> This seems absurd 
> 
> This has been discussed before on this list.  The requirement to have a
> label makes good sense: how do you propose to refer to an equation that
> does not have a label?  Remember that its number will change as equations
> are added or removed, whereas the label will not change.
> 
> It seems like you may wish to have a cross reference that says the
> following: "refer to the *current* equation (3), and update the number in
> the cross reference if the corresponding equation number changes."  This
> might be implemented by having LyX create a unique but hidden label for
> every numbered equation, and providing some sort of user interface to
> refer to it.

Nice answer.
> 
> For good reasons or bad, this is not the way LyX and latex work.

Why do you say this? You just proposed a solution to use the LyX/Latex 
underpinnings to do that very thing. And that's probably the way FullWrite did 
it.

>  Note that
> numbered equations are no different in this respect than are numbered
> sections, etc.
> 
> dave case
> 
Finally (I'll file a ticket for this in due course), a simple improvement of 
the current system would be to display the labels with more characters than are 
currently used; currently, so few characters are displayed that one quickly 
becomes confused about which equation the label belongs to.

Jerry

Re: Lyx numbering equations

2015-03-20 Thread Michael Berger

On 03/20/2015 08:44 AM, Jerry wrote:

On Mar 14, 2015, at 9:56 AM, Robert Susmilch <rob...@susmilch.com> wrote:


This seems absurd given that Lyx purports to free you to write and not
micromanage things like this. The tutorial goes on and on about using
citations, bibliography, automatic section and chapter title numbering
that takes care of itself. If I can number an equation and it's
automatic that means the equation numbering can / will change as they
are moved about, added or deleted, etc.

I agree, but would stop short of "absurd" and simply say "awkward," "clumsy," 
and then I'll stop. It does work. I believe that Microsoft Word and Mathematica require the same sort of 
tedious labeling, and those are not necessarily good models. I know for a fact that this problem can be 
handled better because I used the long-gone and much-loved FullWrite Professional for about 10 years, from 
1988 to 1998, and it did not require labeling of anything. You simply inserted, as a reference, the current 
equation number and then FullWrite automatically kept everything up to date. It was just that simple.
And, not trivially, FullWrite had a _graphical_ equation browser, a 
window of all your (filtered) stand-alone equations, numbered or not, in a 
scrollable window. Now _that_ was neat. I think I have filed a feature request 
for LyX but I don't expect anything to happen for a long time. However, LyX has 
an option to render equations on-screen already (Instant Preview) so it seems 
that the hard part of a graphical browser has already been done.
With a graphical browser, one could assign nonsense labels (AA, AB, AC, 
... or just 1, 2, 3, ...) and use the graphical browser to find the one to 
which you want to insert a reference and just click on the image. That's what 
you do anyway, only instead of a dedicated graphical browser, you just scroll 
around in your main document window until you find the equation you want to 
reference, and that's not efficient or fun.


and then...
On Mar 15, 2015, at 5:26 PM, David A Case <c...@biomaps.rutgers.edu> wrote:


On Sat, Mar 14, 2015, Robert Susmilch wrote:

I have Googled a way to refer to numbered equations in text, such as
"See equation (3)" in Lyx but everything I read, whether from other
users or wikis, suggests labeling the already numbered equations and
then using the label to cross reference.

This seems absurd 

This has been discussed before on this list.  The requirement to have a
label makes good sense: how do you propose to refer to an equation that
does not have a label?  Remember that its number will change as equations
are added or removed, whereas the label will not change.

It seems like you may wish to have a cross reference that says the
following: "refer to the *current* equation (3), and update the number in
the cross reference if the corresponding equation number changes."  This
might be implemented by having LyX create a unique but hidden label for
every numbered equation, and providing some sort of user interface to
refer to it.

Nice answer.

For good reasons or bad, this is not the way LyX and latex work.

Why do you say this? You just proposed a solution to use the LyX/Latex 
underpinnings to do that very thing. And that's probably the way FullWrite did 
it.


  Note that
numbered equations are no different in this respect than are numbered
sections, etc.

dave case


Finally (I'll file a ticket for this in due course), a simple improvement of 
the current system would be to display the labels with more characters than are 
currently used; currently, so few characters are displayed that one quickly 
becomes confused about which equation the label belongs to.

Jerry


Dear Jerry and followers of this very issue,
personally I am happy with LyX's philosophy and think we should not 
over-emphasize such detail.

Is adding a label really such tremendous effort?
However, I see the point of some users.
But could it be that the implementation of "this simple improvement" 
turns out not to be so very simple?

(see above: For good reasons or bad, this is not the way LyX and latex work)

Now, please have a look at the screen-shot attached.
It shows an excerpt of André Miede's excellent "classicthesis".
He created a new type of reference (Insert > Custom Insets > CT-auto 
cross-reference) which can show labels of more characters / words next 
to the number.
I know, this is not exactly what is being discussed here but it 
certainly goes in that direction.


And last but not least: users who prefer FullWrite Professional's 
features over those of Lyx may stick to it.


Cheers!

Michael



Re: Lyx numbering equations

2015-03-20 Thread John Kane
Fullwrite was abandoned about 1995 or 2000, sob.  I was not as crazy about
it as Jerry since it was a bugger when doing tables but compared to
something like MS Word it was heaven.

On 20 March 2015 at 04:55, Michael Berger <id...@online.de> wrote:

> On 03/20/2015 08:44 AM, Jerry wrote:
>
>> On Mar 14, 2015, at 9:56 AM, Robert Susmilch <rob...@susmilch.com> wrote:
>>
>>  This seems absurd given that Lyx purports to free you to write and not
>>> micromanage things like this. The tutorial goes on and on about using
>>> citations, bibliography, automatic section and chapter title numbering
>>> that takes care of itself. If I can number an equation and it's
>>> automatic that means the equation numbering can / will change as they
>>> are moved about, added or deleted, etc.
>>>
>> I agree, but would stop short of "absurd" and simply say "awkward,"
>> "clumsy," and then I'll stop. It does work. I believe that Microsoft Word
>> and Mathematica require the same sort of tedious labeling, and those are
>> not necessarily good models. I know for a fact that this problem can be
>> handled better because I used the long-gone and much-loved FullWrite
>> Professional for about 10 years, from 1988 to 1998, and it did not require
>> labeling of anything. You simply inserted, as a reference, the current
>> equation number and then FullWrite automatically kept everything up to
>> date. It was just that simple.
>> And, not trivially, FullWrite had a _graphical_ equation browser,
>> a window of all your (filtered) stand-alone equations, numbered or not, in
>> a scrollable window. Now _that_ was neat. I think I have filed a feature
>> request for LyX but I don't expect anything to happen for a long time.
>> However, LyX has an option to render equations on-screen already (Instant
>> Preview) so it seems that the hard part of a graphical browser has already
>> been done.
>> With a graphical browser, one could assign nonsense labels (AA,
>> AB, AC, ... or just 1, 2, 3, ...) and use the graphical browser to find the
>> one to which you want to insert a reference and just click on the image.
>> That's what you do anyway, only instead of a dedicated graphical browser,
>> you just scroll around in your main document window until you find the
>> equation you want to reference, and that's not efficient or fun.
>>
>>
>> and then...
>> On Mar 15, 2015, at 5:26 PM, David A Case <c...@biomaps.rutgers.edu>
>> wrote:
>>
>>  On Sat, Mar 14, 2015, Robert Susmilch wrote:
>>>
>>>> I have Googled a way to refer to numbered equations in text, such as
>>>> "See equation (3)" in Lyx but everything I read, whether from other
>>>> users or wikis, suggests labeling the already numbered equations and
>>>> then using the label to cross reference.
>>>>
>>>> This seems absurd 
>>>>
>>> This has been discussed before on this list.  The requirement to have a
>>> label makes good sense: how do you propose to refer to an equation that
>>> does not have a label?  Remember that its number will change as equations
>>> are added or removed, whereas the label will not change.
>>>
>>> It seems like you may wish to have a cross reference that says the
>>> following: "refer to the *current* equation (3), and update the number in
>>> the cross reference if the corresponding equation number changes."  This
>>> might be implemented by having LyX create a unique but hidden label for
>>> every numbered equation, and providing some sort of user interface to
>>> refer to it.
>>>
>> Nice answer.
>>
>>> For good reasons or bad, this is not the way LyX and latex work.
>>>
>> Why do you say this? You just proposed a solution to use the LyX/Latex
>> underpinnings to do that very thing. And that's probably the way FullWrite
>> did it.
>>
>>Note that
>>> numbered equations are no different in this respect than are numbered
>>> sections, etc.
>>>
>>> dave case
>>>
>>>  Finally (I'll file a ticket for this in due course), a simple
>> improvement of the current system would be to display the labels with more
>> characters than are currently used; currently, so few characters are
>> displayed that one quickly becomes confused about which equation the label
>> belongs to.
>>
>> Jerry
>>
>
> Dear Jerry and followers of this very issue,
> personally I am happy with LyX's phil

Re: Lyx numbering equations

2015-03-20 Thread Benedict Holland
Hi everyone,

I am going to take a strong line on this one and say it works as designed
and the design is very well done. The reason for is it that you do have
references and labels, under the table, that lyx is managing for you. You
have an equation, you number the question, you label the equation, and you
never have to worry about it again. The reference automatically updates
with the removal or addition of equations prior to the referenced one. The
entire point of the labeling system is to make the numbering decoupled from
where an equation appears in the document and to that extent, it performs
very well. After reading various comments I actually have no idea what the
OP would like or what other people are suggesting.

Equation labels should be human readable and make sense to you and the
document. That is the proper use. If you are making them all a1, a2,... aN,
I can't help you but typically there are not many equations in documents
anyway. Each one is a bit different and requires a slightly different human
readable note attached with a number that you don't care about. It seems
perfect to me.

~Ben

On Fri, Mar 20, 2015 at 9:23 AM, John Kane <jrkrid...@gmail.com> wrote:

> Fullwrite was abandoned about 1995 or 2000, sob.  I was not as crazy about
> it as Jerry since it was a bugger when doing tables but compared to
> something like MS Word it was heaven.
>
> On 20 March 2015 at 04:55, Michael Berger <id...@online.de> wrote:
>
>> On 03/20/2015 08:44 AM, Jerry wrote:
>>
>>> On Mar 14, 2015, at 9:56 AM, Robert Susmilch <rob...@susmilch.com>
>>> wrote:
>>>
>>>  This seems absurd given that Lyx purports to free you to write and not
>>>> micromanage things like this. The tutorial goes on and on about using
>>>> citations, bibliography, automatic section and chapter title numbering
>>>> that takes care of itself. If I can number an equation and it's
>>>> automatic that means the equation numbering can / will change as they
>>>> are moved about, added or deleted, etc.
>>>>
>>> I agree, but would stop short of "absurd" and simply say "awkward,"
>>> "clumsy," and then I'll stop. It does work. I believe that Microsoft Word
>>> and Mathematica require the same sort of tedious labeling, and those are
>>> not necessarily good models. I know for a fact that this problem can be
>>> handled better because I used the long-gone and much-loved FullWrite
>>> Professional for about 10 years, from 1988 to 1998, and it did not require
>>> labeling of anything. You simply inserted, as a reference, the current
>>> equation number and then FullWrite automatically kept everything up to
>>> date. It was just that simple.
>>> And, not trivially, FullWrite had a _graphical_ equation
>>> browser, a window of all your (filtered) stand-alone equations, numbered or
>>> not, in a scrollable window. Now _that_ was neat. I think I have filed a
>>> feature request for LyX but I don't expect anything to happen for a long
>>> time. However, LyX has an option to render equations on-screen already
>>> (Instant Preview) so it seems that the hard part of a graphical browser has
>>> already been done.
>>> With a graphical browser, one could assign nonsense labels (AA,
>>> AB, AC, ... or just 1, 2, 3, ...) and use the graphical browser to find the
>>> one to which you want to insert a reference and just click on the image.
>>> That's what you do anyway, only instead of a dedicated graphical browser,
>>> you just scroll around in your main document window until you find the
>>> equation you want to reference, and that's not efficient or fun.
>>>
>>>
>>> and then...
>>> On Mar 15, 2015, at 5:26 PM, David A Case <c...@biomaps.rutgers.edu>
>>> wrote:
>>>
>>>  On Sat, Mar 14, 2015, Robert Susmilch wrote:
>>>>
>>>>> I have Googled a way to refer to numbered equations in text, such as
>>>>> "See equation (3)" in Lyx but everything I read, whether from other
>>>>> users or wikis, suggests labeling the already numbered equations and
>>>>> then using the label to cross reference.
>>>>>
>>>>> This seems absurd 
>>>>>
>>>> This has been discussed before on this list.  The requirement to have a
>>>> label makes good sense: how do you propose to refer to an equation that
>>>> does not have a label?  Remember that its number will change as
>>>> equations
>>>> are added or removed, whereas the label will not chan

Re: Lyx numbering equations

2015-03-20 Thread Richard Heck

On 03/20/2015 03:44 AM, Jerry wrote:

And, not trivially, FullWrite had a _graphical_ equation browser, a 
window of all your (filtered) stand-alone equations, numbered or not, in a 
scrollable window. Now _that_ was neat.


Note that all equations are listed in the Outline pane, so it is easy to 
search for them.


The general issue about "label-less references" is one that has been 
raised before, and it is on various people's radars. It's not 
impossible, by any means. It just needs someone who cares enough about 
it to find the time to do it. It doesn't bother me, so I choose to put 
my time elsewhere.


Richard




Re: Lyx numbering equations

2015-03-20 Thread Robert Susmilch
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 03/20/2015 09:38 AM, Benedict Holland wrote:
> Hi everyone,
> 
> I am going to take a strong line on this one and say it works as 
> designed and the design is very well done. The reason for is it 
> that you do have references and labels, under the table, that lyx 
> is managing for you. You have an equation, you number the
> question, you label the equation, and you never have to worry about
> it again. The reference automatically updates with the removal or
> addition of equations prior to the referenced one. The entire point
> of the labeling system is to make the numbering decoupled from
> where an equation appears in the document and to that extent, it
> performs very well. After reading various comments I actually have
> no idea what the OP would like or what other people are
> suggesting.
> 
> Equation labels should be human readable and make sense to you and 
> the document. That is the proper use. If you are making them all 
> a1, a2,... aN, I can't help you but typically there are not many 
> equations in documents anyway. Each one is a bit different and 
> requires a slightly different human readable note attached with a 
> number that you don't care about. It seems perfect to me.
> 
> ~Ben

Dear Ben,

I haven't used Lyx for long, but for years and years have heard about
Latex so was excited to find Lyx. Especially since I'm going back to
school.

My issue is simple (I think).

Let's take an example
(https://www.dropbox.com/s/k19be7n6uuegw1n/Numbered%20Equations%20Exampl
e.pdf?dl=0),
much like a text book in math or science uses many equations and
refers to them by number (since you can have multiple variations of a
"named" equation).

I have copied and pasted this section out of a larger document, so the
number equations have shifted back to 1, 2, 3, etc. However it's
simply an example of what I'm thinking.

- -- 
Respectfully,

Robert Susmilch
-BEGIN PGP SIGNATURE-
Version: GnuPG v2

iQIcBAEBAgAGBQJVDDz+AAoJEJvhIiLnDQ8qL30P/RM6rNDyRzdi4qW2QgLiv3Yq
3jus8f23ai2IHdyyfeedZcKe7pf2ge78lOG118zZbazJko7iLFV49ioHjqgVODFz
r60Icj1toefwtr14u5CJfnFoM/kwJIgbTmXwhmvYS6y+6xeuWovH78XMrdkqVeS/
nQLrWm4XTgkXPJh7nMZGe0i0NzV5DhaCaAuOsud93QwL2FXR9woULmD/PQ3bmwOZ
iovxN4Ag1ElBzPhpFnDmJFXv8B1RoQRPq2+iHA7EuOf62T4GiGncxW2eKnRL3llQ
mF99ok0PQ6jW3NDW7NgWTGSudZJJX4OEikc3FFdHVwQtsAi7vehKe905/1IS+TE8
izj5khuBxgAUyfiVxKkbp5Y8sr6cPsCuOcposcQucU2mXhMMYJHqZhBVan7wKBOf
EaAcgAZsc+HRbI2tWkKaR8YNCDgawrLmQsXzrCBXShQkGmmEDfg+HTeodzKJKjir
49DM3fKP1lWCDIHZ0iLpaAyP/xPOWZK9KA0Tk8G4RAd97E4u6O72IvL5Kr5boXeL
V1exSmJ7zcqP6esh4qWHkQXURt20h1PZeQlnGSZUZFFoOEMmDzvQd+vlHx2/Nwhi
hsm/X6GEBu95QAvY3uBGpfGLIL1u7C1JCODsMATlRKszlWNBbvslICczfs+GkWHn
4Kcfn//eqgeZm6Pr/TxG
=Lh1w
-END PGP SIGNATURE-


Re: Lyx numbering equations

2015-03-20 Thread Robert Susmilch
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 03/15/2015 02:19 AM, Scott Kostyshak wrote:
> On Sat, Mar 14, 2015 at 12:56 PM, Robert Susmilch
> <rob...@susmilch.com> wrote:
>> -BEGIN PGP SIGNED MESSAGE- Hash: SHA1
>> 
>> Dear List,
>> 
>> I have Googled a way to refer to numbered equations in text, such
>> as "See equation (3)" in Lyx but everything I read, whether from
>> other users or wikis, suggests labeling the already numbered
>> equations and then using the label to cross reference.
>> 
>> This seems absurd given that Lyx purports to free you to write
>> and not micromanage things like this. The tutorial goes on and on
>> about using citations, bibliography, automatic section and
>> chapter title numbering that takes care of itself. If I can
>> number an equation and it's automatic that means the equation
>> numbering can / will change as they are moved about, added or
>> deleted, etc.
>> 
>> So can this be done? Have I failed Google 101? I'm running Lyx
>> 2.1.3. If it can't be done then really, what's the point?
> 
> Dear Robert,
> 
> If I understand correctly, you want to reference an equation
> without specifying a label. But how would LyX know which equation
> you want to reference?
> 
> Best,
> 
> Scott
> 
Dear Scott,

Why, by the special numbered equation number I can view in my outline.
Lyx CLEARLY knows where they are as you can click on them and it takes
one to them in the document.

Also if you enter another equation before a currently numbered
equation it correctly numbers BOTH equations, so internally it is
keeping track of them.

I did notice that you can't reference sections in the table of
contents without a label. I'm a rookie so didn't see this the first
time, but it seems like an oversight to not have a drop-down box to
select these kinds of things in cross-reference.

For example, in the cross-reference dialog, select a label, or show a
category of "internal labels" such as Table of Contents or Equations.
- -- 
Respectfully,

Robert Susmilch
-BEGIN PGP SIGNATURE-
Version: GnuPG v2

iQIcBAEBAgAGBQJVDD1FAAoJEJvhIiLnDQ8qM0wQAKR15jVLOgq3VbaWRu/qSsG+
fQFcrH+yB0+8CLnCGg3Pkzyk3nAb5I9sJRg9vrNBI4RgO/ZCPqgzTt1rf1iotHAJ
bTVpia1ipKPEfGzeT2+Om5dUEMGXnyTfLNG8U0kw7GC6gcRyQYr0GIUMK6pojY8K
MdC9RgDAtc7dBg3I8BaGk3f7mrwdWku3191lQ4KQexkqr3SQHZG6wfSaTV5IUCg4
PBNjt2uAeF29DNvZ/DKt/1ab7TNXehiI2yEarOS0eWUXVyWUHV3hsEdUudeHQ8u6
zpnGDhNrzcYcX22Q3YKbVCoZYIap7xABFH9JphUvDjfSC4dUoYywdfLr67pUi0ck
wWLNT1K/XCJR5QpGQbquzrpke7fK7S0/6t/gLddiNdEZi37jtVmERBwiiT7ly8vp
1Oh+2uXedRCtPM6fluTk/1WA8+PI7xM3dgjfPcyA2DFRhKibYr383Sh3wx65gykC
cJ40K+kA8fbS5Mmm18U13ivyHt2z8epbFDYCvcJbieUa6ZqdblY1b8oJous1DUEs
QkvxItzs6bjTUvJfg8d33jf0MAu4eYL5KhVcI1iv/61sn+3v9MrgTDGFYxQXbWT7
S/5+KaXtfWVKWltqQdn/DvMO/ry7UdQNk+00kEIvjybdxwkFKiq4fQ+sDtseTa7p
XPxt8wNHYsrovVKnZnIT
=wnW1
-END PGP SIGNATURE-


Re: Lyx numbering equations

2015-03-20 Thread Robert Susmilch
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 03/15/2015 07:26 PM, David A Case wrote:
> On Sat, Mar 14, 2015, Robert Susmilch wrote:
>> 
>> I have Googled a way to refer to numbered equations in text, such
>> as "See equation (3)" in Lyx but everything I read, whether from
>> other users or wikis, suggests labeling the already numbered
>> equations and then using the label to cross reference.
>> 
>> This seems absurd 
> 
> This has been discussed before on this list.  The requirement to
> have a label makes good sense: how do you propose to refer to an
> equation that does not have a label?  Remember that its number will
> change as equations are added or removed, whereas the label will
> not change.
> 
> It seems like you may wish to have a cross reference that says the 
> following: "refer to the *current* equation (3), and update the
> number in the cross reference if the corresponding equation number
> changes."  This might be implemented by having LyX create a unique
> but hidden label for every numbered equation, and providing some
> sort of user interface to refer to it.
> 
> For good reasons or bad, this is not the way LyX and latex work.
> Note that numbered equations are no different in this respect than
> are numbered sections, etc.
> 
> dave case
> 
Dear Dave,

Yes I see this now about sections, I think that might be an oversight
IMHO.

I have been very busy with work, a two year old, and getting both
myself and wife back to college after 10 and 15 years away from school
respectively to write back to everyone.
- -- 
Respectfully,

Robert Susmilch
-BEGIN PGP SIGNATURE-
Version: GnuPG v2

iQIcBAEBAgAGBQJVDD1iAAoJEJvhIiLnDQ8q+DoQAJeFEJSLN6qpRY7bU6731KF8
tzWM1eWmZMixNRco1CmTE22Paj0+hULSsU1RaWzO1TW0FSJd++v0A09Vw3OmF/U6
p2Sx2IglsekJ6m4Lpiqm8FbRRM1L8XzLJovXTNXKG+6wlDN2R+3mnX79SN6DaRNL
oHsM6eoJ/hHFXsbn6YmMeTNcdAkavLHWjiKP3wMGaI3phlttjysp/B/Ugwgbrgja
AVWViTdUcuHlFa2puK7MsrkqLKeh0vMKfTkayj/HokLKcIcHgWERPYBEwz2ABGEU
QFRHsKrN4VWtYLfWPzaYFdNFSlj0VMElJSzn4vpizMaSnGpD9vMQ1SY4vxbDTEp5
OTAM2GN9OzVaeh5Om7D6OH4uR/QVGNc6OVe6flBEpegoWYTO4bpO89+QefX3q9hn
K8TdiLR3Ot3BX95NfJL2uccBR8qDyb4ffYgRF7xcApRpIA4utEiXrEXwstByM1hd
cihsyyg3sE4tTfyRxLVz3cugdHbr5hpxboE/MSdGP62DRE4Z9H12aD+/8qR48+5/
YNBpc1abPAF16PaURSKB7PtGbgupCQkLLofvK9ruhfBKPR32DT+Y0md0bULuoP1o
bI6mVGmE2jn81uBcRqPddav3JxM8C7vocbTB6gRDon7PtVpLmzdOSxOCT+EQcI7n
vM1OIWMVoMBXMoLmoumI
=Dxu4
-END PGP SIGNATURE-


Re: Lyx numbering equations

2015-03-20 Thread Robert Susmilch
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 03/15/2015 09:59 PM, Hal Kierstead wrote:
> This would be nice, and I think that I would use it, but I can
> think of many other improvements that might be easier to implement.
> For example: 1. LyX could remember the kind of reference associated
> with a label. So instead of typing Lemma 14, I would only need to
> type the reference to its label.  LyX already knows this because
> its suggestions for labels look like lem: … .  I often forget
> whether a reference is to a lemma or proposition, etc. 2. When I
> know the label for a reference it would be nice to be able to enter
> it directly from the keyboard (of course it would also be nice to
> be able to enter its current number). 3. When I highlight a
> reference in the pop-up window and then use the goto and return
> buttons, it would be nice to still have the reference highlighted. 
> 4. The best thing, which is apparently very hard, would be to have
> tex2lyx work perfectly on tex files that were originally created by
> LyX, but have been modified by a coauthor without changing the
> front matter.
> 
> But it is a great app; I only wish my coauthors and students would
> use it.
> 
> Hal

Dear Hal,

I don't have much experience with Lyx right now, just beginning.
However I can tell you this future student plans on utilizing it when
I can!
- -- 
Respectfully,

Robert Susmilch
-BEGIN PGP SIGNATURE-
Version: GnuPG v2

iQIbBAEBAgAGBQJVDD2LAAoJEJvhIiLnDQ8qo0wP+N7hRZ12b3RJ90Q4tB92bN1z
MK2ygkN+2C6FzrsQ4fiI/Tg6WNKjXl3dMVEvmkwj12KAEwEKrzzxmwiAeBAXIhNB
Bl7ha+QO3Gt4BKmHSgmCSkOygVF2uJqhb98EIvfokyAzgIEx1Itq7gfP7NTC1Ds0
9sE0skw7CEPoTzyTFHexCxObdoZ2nlHQ+fdW/LhiWoW/TaXg/Tf7qqmOB7GyYgAj
MXhsL/KdZjXOc2DGpXDK9OVHZC2hrMwGD2+aW26v6Vtxp4/IvuRn5EEblKyh0DB0
3qrdVGim99t5iBE4ptBsYDsyry7l/g9X0lkUM+NMBbdo7tNosHJPXpoHzN53o0sl
oJbiAwnC8pEzWwjuntIbZCFeA/Ffhlnvt/CTfDT+QQDHPqFefptzvclYhMUvnQdf
DZ4NSWyiR20M49+iVa+z0heDfFPQiYpnGmD82AtOXZ1d8aHl01OHY4rIx7iKlh+H
WovoSC9nhDSoYZBp1TaoyoYWDsUuspUY7r6qx75Puo3xHEHVejiUA5YA1T5yTn2T
jRL00VJsvt7u+RzDMI3c0GaADjdeG67Frh9iBLPnnGpTVnB6iNefCdqZx2q0+vMY
7IH+/lDTgZ+fycCBDVYC+UxZ0fKIhskYHnNsY8oNONsED9CqmDnrzbFAWCWjIr3g
VkveIloFUuyXQkSizlM=
=t1+R
-END PGP SIGNATURE-


Re: Lyx numbering equations

2015-03-20 Thread Benedict Holland
Hello,

So you want to label each of the lines in order? If you are in the math
environment, right click and select "Displayed Formula". That will center
the entire math block. Then you can right click and number the whole
formula or each line. It is true that it will not number each line 1-4 and
equally true that would most likely not be very difficult but it is equally
not very difficult to just number each line. It is then possible to label
each line as something like equation_1, equation_2, equation_3 for easy
reference. That way you know that equation_1 is the first equation for
equation *equation. *To reference these numbers, you set up a cross
reference based on the labels you chose. This is actually really nice. Say
for example that you wanted to insert an equation between 3 and 4. You
don't have to worry about changing labels or references. It just does it.

Again, I really don't understand what the desired outcome would be or why
something doesn't work. All Lyx is doing is setting up a nice front end and
dealing with the \ref{} and \label{} tags for you. The cases where it makes
sense to have every single line in a math group labeled separately are
fairly edge case in nature and the problem easily  fixed with a few simple
right clicks.

Thanks,
~Ben

On Fri, Mar 20, 2015 at 11:32 AM, Robert Susmilch 
wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> On 03/15/2015 09:59 PM, Hal Kierstead wrote:
> > This would be nice, and I think that I would use it, but I can
> > think of many other improvements that might be easier to implement.
> > For example: 1. LyX could remember the kind of reference associated
> > with a label. So instead of typing Lemma 14, I would only need to
> > type the reference to its label.  LyX already knows this because
> > its suggestions for labels look like lem: … .  I often forget
> > whether a reference is to a lemma or proposition, etc. 2. When I
> > know the label for a reference it would be nice to be able to enter
> > it directly from the keyboard (of course it would also be nice to
> > be able to enter its current number). 3. When I highlight a
> > reference in the pop-up window and then use the goto and return
> > buttons, it would be nice to still have the reference highlighted.
> > 4. The best thing, which is apparently very hard, would be to have
> > tex2lyx work perfectly on tex files that were originally created by
> > LyX, but have been modified by a coauthor without changing the
> > front matter.
> >
> > But it is a great app; I only wish my coauthors and students would
> > use it.
> >
> > Hal
>
> Dear Hal,
>
> I don't have much experience with Lyx right now, just beginning.
> However I can tell you this future student plans on utilizing it when
> I can!
> - --
> Respectfully,
>
> Robert Susmilch
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v2
>
> iQIbBAEBAgAGBQJVDD2LAAoJEJvhIiLnDQ8qo0wP+N7hRZ12b3RJ90Q4tB92bN1z
> MK2ygkN+2C6FzrsQ4fiI/Tg6WNKjXl3dMVEvmkwj12KAEwEKrzzxmwiAeBAXIhNB
> Bl7ha+QO3Gt4BKmHSgmCSkOygVF2uJqhb98EIvfokyAzgIEx1Itq7gfP7NTC1Ds0
> 9sE0skw7CEPoTzyTFHexCxObdoZ2nlHQ+fdW/LhiWoW/TaXg/Tf7qqmOB7GyYgAj
> MXhsL/KdZjXOc2DGpXDK9OVHZC2hrMwGD2+aW26v6Vtxp4/IvuRn5EEblKyh0DB0
> 3qrdVGim99t5iBE4ptBsYDsyry7l/g9X0lkUM+NMBbdo7tNosHJPXpoHzN53o0sl
> oJbiAwnC8pEzWwjuntIbZCFeA/Ffhlnvt/CTfDT+QQDHPqFefptzvclYhMUvnQdf
> DZ4NSWyiR20M49+iVa+z0heDfFPQiYpnGmD82AtOXZ1d8aHl01OHY4rIx7iKlh+H
> WovoSC9nhDSoYZBp1TaoyoYWDsUuspUY7r6qx75Puo3xHEHVejiUA5YA1T5yTn2T
> jRL00VJsvt7u+RzDMI3c0GaADjdeG67Frh9iBLPnnGpTVnB6iNefCdqZx2q0+vMY
> 7IH+/lDTgZ+fycCBDVYC+UxZ0fKIhskYHnNsY8oNONsED9CqmDnrzbFAWCWjIr3g
> VkveIloFUuyXQkSizlM=
> =t1+R
> -END PGP SIGNATURE-
>


Re: Lyx numbering equations

2015-03-15 Thread Michael Berger
Robert Susmilch robert at susmilch.com writes:

 Dear List,
 
 I have Googled a way to refer to numbered equations in text, such as
 See equation (3) in Lyx but everything I read, whether from other
 users or wikis, suggests labeling the already numbered equations and
 then using the label to cross reference.
 
 This seems absurd given that Lyx purports to free you to write and not
 micromanage things like this. The tutorial goes on and on about using
 citations, bibliography, automatic section and chapter title numbering
 that takes care of itself. If I can number an equation and it's
 automatic that means the equation numbering can / will change as they
 are moved about, added or deleted, etc.
 
 So can this be done? Have I failed Google 101? I'm running Lyx 2.1.3.
 If it can't be done then really, what's the point?
 
 Respectfully,
 
 Robert Susmilch

Robert,
I would not say that it cannot be done (I have no idea of rewriting code).
But I think numbering equations and referencing these equations to in the
body text of the document are two entirely different things by
comprehension. And if you could agree to this you might as well be prepared
to agree that things are just fine as they are.
Cheers and a big Bravo to LyX and its developers!

Michael 






Re: Lyx numbering equations

2015-03-15 Thread Scott Kostyshak
On Sat, Mar 14, 2015 at 12:56 PM, Robert Susmilch rob...@susmilch.com wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Dear List,

 I have Googled a way to refer to numbered equations in text, such as
 See equation (3) in Lyx but everything I read, whether from other
 users or wikis, suggests labeling the already numbered equations and
 then using the label to cross reference.

 This seems absurd given that Lyx purports to free you to write and not
 micromanage things like this. The tutorial goes on and on about using
 citations, bibliography, automatic section and chapter title numbering
 that takes care of itself. If I can number an equation and it's
 automatic that means the equation numbering can / will change as they
 are moved about, added or deleted, etc.

 So can this be done? Have I failed Google 101? I'm running Lyx 2.1.3.
 If it can't be done then really, what's the point?

Dear Robert,

If I understand correctly, you want to reference an equation without
specifying a label. But how would LyX know which equation you want to
reference?

Best,

Scott


Re: Lyx numbering equations

2015-03-15 Thread David A Case
On Sat, Mar 14, 2015, Robert Susmilch wrote:
 
 I have Googled a way to refer to numbered equations in text, such as
 See equation (3) in Lyx but everything I read, whether from other
 users or wikis, suggests labeling the already numbered equations and
 then using the label to cross reference.
 
 This seems absurd 

This has been discussed before on this list.  The requirement to have a
label makes good sense: how do you propose to refer to an equation that
does not have a label?  Remember that its number will change as equations
are added or removed, whereas the label will not change.

It seems like you may wish to have a cross reference that says the
following: refer to the *current* equation (3), and update the number in
the cross reference if the corresponding equation number changes.  This
might be implemented by having LyX create a unique but hidden label for
every numbered equation, and providing some sort of user interface to
refer to it.

For good reasons or bad, this is not the way LyX and latex work.  Note that
numbered equations are no different in this respect than are numbered
sections, etc.

dave case



Re: Lyx numbering equations

2015-03-15 Thread Hal Kierstead
This would be nice, and I think that I would use it, but I can think of many 
other improvements that might be easier to implement. For example:
1. LyX could remember the kind of reference associated with a label. So instead 
of typing Lemma 14, I would only need to type the reference to its label.  LyX 
already knows this because its suggestions for labels look like lem: … .  I 
often forget whether a reference is to a lemma or proposition, etc.
2. When I know the label for a reference it would be nice to be able to enter 
it directly from the keyboard (of course it would also be nice to be able to 
enter its current number).
3. When I highlight a reference in the pop-up window and then use the goto and 
return buttons, it would be nice to still have the reference highlighted.
4. The best thing, which is apparently very hard, would be to have tex2lyx work 
perfectly on tex files that were originally created by LyX, but have been 
modified by a coauthor without changing the front matter.

But it is a great app; I only wish my coauthors and students would use it.

Hal

 On Mar 15, 2015, at 5:26 PM, David A Case c...@biomaps.rutgers.edu wrote:
 
 On Sat, Mar 14, 2015, Robert Susmilch wrote:
 
 I have Googled a way to refer to numbered equations in text, such as
 See equation (3) in Lyx but everything I read, whether from other
 users or wikis, suggests labeling the already numbered equations and
 then using the label to cross reference.
 
 This seems absurd 
 
 This has been discussed before on this list.  The requirement to have a
 label makes good sense: how do you propose to refer to an equation that
 does not have a label?  Remember that its number will change as equations
 are added or removed, whereas the label will not change.
 
 It seems like you may wish to have a cross reference that says the
 following: refer to the *current* equation (3), and update the number in
 the cross reference if the corresponding equation number changes.  This
 might be implemented by having LyX create a unique but hidden label for
 every numbered equation, and providing some sort of user interface to
 refer to it.
 
 For good reasons or bad, this is not the way LyX and latex work.  Note that
 numbered equations are no different in this respect than are numbered
 sections, etc.
 
 dave case
 



Re: Lyx numbering equations

2015-03-15 Thread Scott Kostyshak
On Sat, Mar 14, 2015 at 12:56 PM, Robert Susmilch rob...@susmilch.com wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Dear List,

 I have Googled a way to refer to numbered equations in text, such as
 See equation (3) in Lyx but everything I read, whether from other
 users or wikis, suggests labeling the already numbered equations and
 then using the label to cross reference.

 This seems absurd given that Lyx purports to free you to write and not
 micromanage things like this. The tutorial goes on and on about using
 citations, bibliography, automatic section and chapter title numbering
 that takes care of itself. If I can number an equation and it's
 automatic that means the equation numbering can / will change as they
 are moved about, added or deleted, etc.

 So can this be done? Have I failed Google 101? I'm running Lyx 2.1.3.
 If it can't be done then really, what's the point?

Dear Robert,

If I understand correctly, you want to reference an equation without
specifying a label. But how would LyX know which equation you want to
reference?

Best,

Scott


Re: Lyx numbering equations

2015-03-15 Thread Michael Berger
Robert Susmilch robert at susmilch.com writes:

 Dear List,
 
 I have Googled a way to refer to numbered equations in text, such as
 See equation (3) in Lyx but everything I read, whether from other
 users or wikis, suggests labeling the already numbered equations and
 then using the label to cross reference.
 
 This seems absurd given that Lyx purports to free you to write and not
 micromanage things like this. The tutorial goes on and on about using
 citations, bibliography, automatic section and chapter title numbering
 that takes care of itself. If I can number an equation and it's
 automatic that means the equation numbering can / will change as they
 are moved about, added or deleted, etc.
 
 So can this be done? Have I failed Google 101? I'm running Lyx 2.1.3.
 If it can't be done then really, what's the point?
 
 Respectfully,
 
 Robert Susmilch

Robert,
I would not say that it cannot be done (I have no idea of rewriting code).
But I think numbering equations and referencing these equations to in the
body text of the document are two entirely different things by
comprehension. And if you could agree to this you might as well be prepared
to agree that things are just fine as they are.
Cheers and a big Bravo to LyX and its developers!

Michael 






Re: Lyx numbering equations

2015-03-15 Thread David A Case
On Sat, Mar 14, 2015, Robert Susmilch wrote:
 
 I have Googled a way to refer to numbered equations in text, such as
 See equation (3) in Lyx but everything I read, whether from other
 users or wikis, suggests labeling the already numbered equations and
 then using the label to cross reference.
 
 This seems absurd 

This has been discussed before on this list.  The requirement to have a
label makes good sense: how do you propose to refer to an equation that
does not have a label?  Remember that its number will change as equations
are added or removed, whereas the label will not change.

It seems like you may wish to have a cross reference that says the
following: refer to the *current* equation (3), and update the number in
the cross reference if the corresponding equation number changes.  This
might be implemented by having LyX create a unique but hidden label for
every numbered equation, and providing some sort of user interface to
refer to it.

For good reasons or bad, this is not the way LyX and latex work.  Note that
numbered equations are no different in this respect than are numbered
sections, etc.

dave case



  1   2   3   4   5   6   7   8   9   10   >