RE: Text within Equation

2024-08-05 Thread Bernt Lie via lyx-users
Something like
[cid:image001.png@01DAE719.6D9682B0]
??

I have written the text (“Channel redundancy”, etc. as text – start text mode 
by \text + Space, and use arrow to step out of text mode.

I have created the space after math expressions and text (e.g., “bits/symbol”) 
using the math space operation (\qquad + Space).

If you want to align the text strings to the right, the simplest is probably to 
but the math expression into a table.

From: lyx-users  On Behalf Of A-Imam Al-Sammak
Sent: Friday, August 2, 2024 7:48 AM
To: lyx-users@lists.lyx.org
Subject: Text within Equation

Dear all
I need to type something like the following formula in LyX where I have a 
mixture between normal text and math

[cid:image002.png@01DAE719.6D9682B0]

I know we can use normal ALL math symbols in an equation and also we can use 
ALL text fraction, but I don't know how to use a mixture of them as illustrated 
in the example above. Any help on this issue?

Best regards.

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


Re: Text within Equation

2024-08-02 Thread A-Imam Al-Sammak
Dear Richard
Thank you for your help.

The first option does not work, but the choice (Edit> Math> Text
Properties) is excellent, and I prefer it as it is menu driven.

Thanks again Richard, Alexander  and everybody for your support.

Best regards.

A-Imam

On Fri, Aug 2, 2024 at 4:18 PM Richard Kimberly Heck 
wrote:

> On 8/2/24 9:03 AM, A-Imam Al-Sammak wrote:
>
> Thank you Alexander for your reply.
> I could not figure it out. Can you show me how to change (bits/symbol) to
> text??
>
> [image: image.png]
>
> Highlight the text parts, and then type "\text" or "\mathrm", and then
> Return (Enter). On Linux, at least, you can also get the former by hitting
> Ctrl-M. When in math mode, you can also look under Edit> Math> Text
> Properties. See the math manual, under Help, for more info.
>
> Riki
>
>
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Text within Equation

2024-08-02 Thread Herbert Voss



Am 02.08.24 um 13:30 schrieb Alexander Dunlap:

On Fri, Aug 2, 2024, at 1:47 AM, A-Imam Al-Sammak wrote:

Dear all
I need to type something like the following formula in LyX where I 
have a mixture between normal text and math


image.png

I know we can use normal ALL math symbols in an equation and also we 
can use ALL text fraction, but I don't know how to use a mixture of 
them as illustrated in the example above. Any help on this issue?


You can use the \text or \mathrm macros around the parts you want to 
be text. \text will copy the text style of the outside environment, 
while \mathrm will force the text to be Roman style.


\mathrm takes the glyphs from the math font, whereas \text or \textrm 
takes it from the text font.

If text and math font are different you may see it in the output.

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


Re: Text within Equation

2024-08-02 Thread Richard Kimberly Heck

On 8/2/24 9:03 AM, A-Imam Al-Sammak wrote:

Thank you Alexander for your reply.
I could not figure it out. Can you show me how to change (bits/symbol) 
to text??


image.png


Highlight the text parts, and then type "\text" or "\mathrm", and then 
Return (Enter). On Linux, at least, you can also get the former by 
hitting Ctrl-M. When in math mode, you can also look under Edit> Math> 
Text Properties. See the math manual, under Help, for more info.


Riki

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


Re: Text within Equation

2024-08-02 Thread Alexander Dunlap
On Fri, Aug 2, 2024, at 9:03 AM, A-Imam Al-Sammak wrote:
> Thank you Alexander for your reply. 
> I could not figure it out. Can you show me how to change (bits/symbol) to 
> text??
> 
> image.png

Just highlight it and type \text (see attached)

> 
> Best regards.
> 
> A-Imam
> 
> 
> On Fri, Aug 2, 2024 at 2:31 PM Alexander Dunlap  
> wrote:
>> __
>> On Fri, Aug 2, 2024, at 1:47 AM, A-Imam Al-Sammak wrote:
>>> Dear all
>>> I need to type something like the following formula in LyX where I have a 
>>> mixture between normal text and math 
>>> 
>>> image.png
>>> 
>>> I know we can use normal ALL math symbols in an equation and also we can 
>>> use ALL text fraction, but I don't know how to use a mixture of them as 
>>> illustrated in the example above. Any help on this issue?
>> 
>> You can use the \text or \mathrm macros around the parts you want to be 
>> text. \text will copy the text style of the outside environment, while 
>> \mathrm will force the text to be Roman style.
>> 
>>> 
>>> Best regards.
>>> 
>>> A-Imam
>>> -- 
>>> 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
> 
> *Attachments:*
>  • Text within equation.lyx


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


Re: Text within Equation

2024-08-02 Thread A-Imam Al-Sammak
Thank you Alexander for your reply.
I could not figure it out. Can you show me how to change (bits/symbol) to
text??

[image: image.png]

Best regards.

A-Imam


On Fri, Aug 2, 2024 at 2:31 PM Alexander Dunlap 
wrote:

> On Fri, Aug 2, 2024, at 1:47 AM, A-Imam Al-Sammak wrote:
>
> Dear all
> I need to type something like the following formula in LyX where I have a
> mixture between normal text and math
>
> [image: image.png]
>
> I know we can use normal ALL math symbols in an equation and also we can
> use ALL text fraction, but I don't know how to use a mixture of them as
> illustrated in the example above. Any help on this issue?
>
>
> You can use the \text or \mathrm macros around the parts you want to be
> text. \text will copy the text style of the outside environment, while
> \mathrm will force the text to be Roman style.
>
>
> Best regards.
>
> A-Imam
> --
> 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
>


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


Re: Text within Equation

2024-08-02 Thread Alexander Dunlap
On Fri, Aug 2, 2024, at 1:47 AM, A-Imam Al-Sammak wrote:
> Dear all
> I need to type something like the following formula in LyX where I have a 
> mixture between normal text and math 
> 
> image.png
> 
> I know we can use normal ALL math symbols in an equation and also we can use 
> ALL text fraction, but I don't know how to use a mixture of them as 
> illustrated in the example above. Any help on this issue?

You can use the \text or \mathrm macros around the parts you want to be text. 
\text will copy the text style of the outside environment, while \mathrm will 
force the text to be Roman style.

> 
> Best regards.
> 
> A-Imam
> -- 
> 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


Text within Equation

2024-08-01 Thread A-Imam Al-Sammak
Dear all
I need to type something like the following formula in LyX where I have a
mixture between normal text and math

[image: image.png]

I know we can use normal ALL math symbols in an equation and also we can
use ALL text fraction, but I don't know how to use a mixture of them as
illustrated in the example above. Any help on this issue?

Best regards.

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


Re: Formatting/Equation numbering

2022-12-05 Thread Hal Kierstead via lyx-users


> There are two relevant document class options:
> 
> * "fleqn" (flush left equation), which aligns the equation to the left. Used 
> by itself, though, it leaves the equation number on the right.
> 
> * "leqno" (left equation number), which puts the equation number on the left. 
> Used by itself, it centers the equation still.
> 
> BUT, if you use BOTH options, then you get what you want.
> 
> How to do it in LyX? Look at Document> Settings> Document Class. The "Custom" 
> field allows you to enter class options. In your case, you could enter 
> "fleqn,leqno". Any class options can be entered here.
> 
> However, LyX also has native support for this under Document> Settings> Math 
> Options. The Formula Numbering Side option is self-explanatory. You would 
> want "Left". This adds "leqno" behind the scenes. The other one is the Indent 
> Formulas checkbox. The tooltip explains what it does: It indents instead of 
> centering equations. So you can check that. If you leave it at "Default", 
> then it just adds "fleqn"; you can also, however, control the indent here by 
> selecting "Custom" and entering a length (which gets set as the \mathindent).
> 
This excellent explanation was also very useful to me.

Thanks,

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


Re: Formatting/Equation numbering

2022-12-04 Thread Richard Kimberly Heck

On 12/4/22 19:57, Dan wrote:
I know how I can number equations, but I would like the equations to 
be in the following type of format:

Eq. 1.1 (equation)

Eq. 1.2 (equation)
indented slightly.  IMO I don't like having them centered like the 
usual Edit, Math, NumberWholeFormula method does.


I know LaTeX supports defining a user formatting code but I don't know 
how to do that in LyX.


There are two relevant document class options:

* "fleqn" (flush left equation), which aligns the equation to the left. 
Used by itself, though, it leaves the equation number on the right.


* "leqno" (left equation number), which puts the equation number on the 
left. Used by itself, it centers the equation still.


BUT, if you use BOTH options, then you get what you want.

How to do it in LyX? Look at Document> Settings> Document Class. The 
"Custom" field allows you to enter class options. In your case, you 
could enter "fleqn,leqno". Any class options can be entered here.


However, LyX also has native support for this under Document> Settings> 
Math Options. The Formula Numbering Side option is self-explanatory. You 
would want "Left". This adds "leqno" behind the scenes. The other one is 
the Indent Formulas checkbox. The tooltip explains what it does: It 
indents instead of centering equations. So you can check that. If you 
leave it at "Default", then it just adds "fleqn"; you can also, however, 
control the indent here by selecting "Custom" and entering a length 
(which gets set as the \mathindent).


This is all in the Math manual, under Help.

Riki


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


Formatting/Equation numbering

2022-12-04 Thread Dan
I know how I can number equations, but I would like the equations to be in
the following type of format:
Eq. 1.1 (equation)

Eq. 1.2 (equation)
indented slightly.  IMO I don't like having them centered like the usual
Edit, Math, NumberWholeFormula method does.

I know LaTeX supports defining a user formatting code but I don't know how
to do that in LyX.

Thanks!

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


Re: Equation

2022-09-22 Thread Kevin Cole
What is with all these single word subject lines?

"How do I highlight an equation?" is much more informative as a
subject. ("in LyX" is probably not necessary when sending to a LyX
Users mailing list. In most cases I would presume you were asking
about how to do it in LyX...)
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Equation

2022-09-22 Thread Ricardo Berlasso
El jue, 22 sept 2022 a las 1:26, Carlos Knauer ()
escribió:

> How do I highlight an equation in LyX?
>

To change the text&symbols color, just select the whole equation and Right
click → Text properties → Customize.

To change the background, you can either follow section 9 of the Math
editor manual you find under Help, or for a quick trick insert your
equation inside a "frame" (Insert → Frame) and play a bit with the frame
options.

Regards,
Ricardo



>
> Carlos Fernando Knauer
> --
> 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


Equation

2022-09-21 Thread Carlos Knauer
How do I highlight an equation in LyX?

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


Odd behavior of \protect in equation \tag

2021-03-08 Thread Sanford Shieh
I’m using lyx 2.631 and the tikzlings package, and put 
\protect\tikz\protect\panda in an equation \tag.  But after saving the .lyx 
file and reopening it the \protect vanishes.

Obviously more of an annoyance for having to retype the \protect than a serious 
bug, but is there a known solution?

Sanford

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


Re: Option for displaying equation labels less obstrusively?

2018-10-04 Thread Jean-Marc Lasgouttes

Le 03/10/2018 à 23:35, Klaus-Dieter Bauer a écrit :

Hello!

As it is currently implemented, equation labels are displayed as part of 
the equation number in LyX's editor. Sadly, for longer, semantically 
meaningful label names (e.g. "eq:maxwell-equations-in-vacuum"), this 
throws off the formatting in the editor buffer: Instead of centering the 
equation, the combination of label and equation is centered. A similar 
problem occurs, when left-aligned equations with left-aligned numbering 


I have plans to improve this, but not the required free time right now.

See e.g. https://www.lyx.org/trac/ticket/10668

JMarc


Re: Option for displaying equation labels less obstrusively?

2018-10-04 Thread John Kane
Sorry  I was hopeful but I never use a  numbered equation so I was just
guessing. The module is handy in other places.

On Thu, 4 Oct 2018 at 05:39, Klaus-Dieter Bauer <
bauer.klaus.die...@gmail.com> wrote:

> Insets cannot be used inside LyX equations sadly.
>
> On Thu, Oct 4, 2018 at 2:31 AM John Kane  wrote:
>
>> Try the ShortInsetNames module. I have never used it with equations but
>> it works well with Chapter and Section names, tables and figures.
>>
>> Insert the Short label  from Custom Inserts and then insert the label.
>> Repeat procedure with Short Ref + label to have a short label in the text
>> or wherever
>>
>> Thanks Andrew.
>>
>> On Wed, 3 Oct 2018 at 17:58, Joel Kulesza  wrote:
>>
>>> On Wed, Oct 3, 2018 at 3:36 PM Klaus-Dieter Bauer <
>>> bauer.klaus.die...@gmail.com> wrote:
>>>
>>>> Hello!
>>>>
>>>> As it is currently implemented, equation labels are displayed as part
>>>> of the equation number in LyX's editor. Sadly, for longer, semantically
>>>> meaningful label names (e.g. "eq:maxwell-equations-in-vacuum"), this throws
>>>> off the formatting in the editor buffer: Instead of centering the equation,
>>>> the combination of label and equation is centered. A similar problem
>>>> occurs, when left-aligned equations with left-aligned numbering are used.
>>>>
>>>> Is there some setting in LyX, that allows getting better alignment,
>>>> without sacrifizing the ability to use long label names?
>>>>
>>>> - Klaus
>>>>
>>>
>>> I do not know of such a method, but would be thrilled if such were
>>> created (or explained).  I wonder if mouseover tooltips could be used
>>> here...
>>>
>>> - Joel
>>>
>>>
>>
>>
>> --
>> John Kane
>> Kingston ON Canada
>>
>

-- 
John Kane
Kingston ON Canada


Re: Option for displaying equation labels less obstrusively?

2018-10-04 Thread Klaus-Dieter Bauer
Insets cannot be used inside LyX equations sadly.

On Thu, Oct 4, 2018 at 2:31 AM John Kane  wrote:

> Try the ShortInsetNames module. I have never used it with equations but it
> works well with Chapter and Section names, tables and figures.
>
> Insert the Short label  from Custom Inserts and then insert the label.
> Repeat procedure with Short Ref + label to have a short label in the text
> or wherever
>
> Thanks Andrew.
>
> On Wed, 3 Oct 2018 at 17:58, Joel Kulesza  wrote:
>
>> On Wed, Oct 3, 2018 at 3:36 PM Klaus-Dieter Bauer <
>> bauer.klaus.die...@gmail.com> wrote:
>>
>>> Hello!
>>>
>>> As it is currently implemented, equation labels are displayed as part of
>>> the equation number in LyX's editor. Sadly, for longer, semantically
>>> meaningful label names (e.g. "eq:maxwell-equations-in-vacuum"), this throws
>>> off the formatting in the editor buffer: Instead of centering the equation,
>>> the combination of label and equation is centered. A similar problem
>>> occurs, when left-aligned equations with left-aligned numbering are used.
>>>
>>> Is there some setting in LyX, that allows getting better alignment,
>>> without sacrifizing the ability to use long label names?
>>>
>>> - Klaus
>>>
>>
>> I do not know of such a method, but would be thrilled if such were
>> created (or explained).  I wonder if mouseover tooltips could be used
>> here...
>>
>> - Joel
>>
>>
>
>
> --
> John Kane
> Kingston ON Canada
>


Re: Option for displaying equation labels less obstrusively?

2018-10-03 Thread John Kane
Try the ShortInsetNames module. I have never used it with equations but it
works well with Chapter and Section names, tables and figures.

Insert the Short label  from Custom Inserts and then insert the label.
Repeat procedure with Short Ref + label to have a short label in the text
or wherever

Thanks Andrew.

On Wed, 3 Oct 2018 at 17:58, Joel Kulesza  wrote:

> On Wed, Oct 3, 2018 at 3:36 PM Klaus-Dieter Bauer <
> bauer.klaus.die...@gmail.com> wrote:
>
>> Hello!
>>
>> As it is currently implemented, equation labels are displayed as part of
>> the equation number in LyX's editor. Sadly, for longer, semantically
>> meaningful label names (e.g. "eq:maxwell-equations-in-vacuum"), this throws
>> off the formatting in the editor buffer: Instead of centering the equation,
>> the combination of label and equation is centered. A similar problem
>> occurs, when left-aligned equations with left-aligned numbering are used.
>>
>> Is there some setting in LyX, that allows getting better alignment,
>> without sacrifizing the ability to use long label names?
>>
>> - Klaus
>>
>
> I do not know of such a method, but would be thrilled if such were created
> (or explained).  I wonder if mouseover tooltips could be used here...
>
> - Joel
>
>


-- 
John Kane
Kingston ON Canada


Re: Option for displaying equation labels less obstrusively?

2018-10-03 Thread Joel Kulesza
On Wed, Oct 3, 2018 at 3:36 PM Klaus-Dieter Bauer <
bauer.klaus.die...@gmail.com> wrote:

> Hello!
>
> As it is currently implemented, equation labels are displayed as part of
> the equation number in LyX's editor. Sadly, for longer, semantically
> meaningful label names (e.g. "eq:maxwell-equations-in-vacuum"), this throws
> off the formatting in the editor buffer: Instead of centering the equation,
> the combination of label and equation is centered. A similar problem
> occurs, when left-aligned equations with left-aligned numbering are used.
>
> Is there some setting in LyX, that allows getting better alignment,
> without sacrifizing the ability to use long label names?
>
> - Klaus
>

I do not know of such a method, but would be thrilled if such were created
(or explained).  I wonder if mouseover tooltips could be used here...

- Joel


Option for displaying equation labels less obstrusively?

2018-10-03 Thread Klaus-Dieter Bauer
Hello!

As it is currently implemented, equation labels are displayed as part of
the equation number in LyX's editor. Sadly, for longer, semantically
meaningful label names (e.g. "eq:maxwell-equations-in-vacuum"), this throws
off the formatting in the editor buffer: Instead of centering the equation,
the combination of label and equation is centered. A similar problem
occurs, when left-aligned equations with left-aligned numbering are used.


Screenshot (if not displayed inline: https://imgur.com/a/Y1rDmgE)
Made in full-screen mode with limited text-width.

Is there some setting in LyX, that allows getting better alignment, without
sacrifizing the ability to use long label names?

- Klaus


latex equation copied from MathType generally shows redundant { }

2018-06-12 Thread balabi





Dear lyx developers and usersI am new to lyx. Before using lyx, I always use Mathtype software to typeset equations which can be downloaded from www.dessci.com/en/products/mathtype/ The equations in mathtype can be copied as latex format.for example, an _expression_ looks like thishttps://pasteboard.co/HpwLYea.pngis copied as latex code as below\left( {\begin{array}{*{20}{c}}{{e^{ - i\phi /2}}}\\{{e^{i\phi /2}}}\end{array}} \right)I then paste this latex code into lyx math mode, however, it shows like thishttps://pasteboard.co/HpwKWg4.pngwith annoying redundant { and } symbolHowever, if you tried any online latex equation editors likehttps://www.codecogs.comhttps://arachnoid.com/latex/etc.You will find the latex code copied from mathtype is perfect with any redundant { }So I think the latex equation interpretation in lyx should be improved. This issue should be solved. Thank you very much! looking forward to your reply.best regards




Re: Improvements to splitting math equation for multi-line?

2018-05-19 Thread David L. Johnson
On Sat, 19 May 2018 18:35:25 +0200
Jean-Marc Lasgouttes  wrote:

> Le 19/05/2018 à 16:08, David L. Johnson a écrit :
> > I would prefer to have it go into the eqnarry environment rather
> > than AMS align, or at least default to three columns rather than 2,
> > with the = in the middle.  That way, following lines will have the
> > = sign aligned, which IMO is how it should be.  
> 
> I am not sure that I understand the argument. = signs are aligned
> with "align" environment, aren't they? And the extra spacing added by
> eqnarry is gone, which is a good thing IMO.
> 
> Could you give an example of what you do not like?

Attached.  I have two nonsense displayed equations.  The top is with
align, the bottom with eqnarray.  The extra spacing, as you call it,
justifies the two sides of the equation consistently with eqnarray.  I
think it's easier to read.


-- 

David L. Johnson
Department of Mathematics
Lehigh University


test1.lyx
Description: application/lyx


Re: Improvements to splitting math equation for multi-line?

2018-05-19 Thread Jean-Marc Lasgouttes

Le 19/05/2018 à 16:08, David L. Johnson a écrit :

I would prefer to have it go into the eqnarry environment rather than
AMS align, or at least default to three columns rather than 2, with the
= in the middle.  That way, following lines will have the = sign
aligned, which IMO is how it should be.


I am not sure that I understand the argument. = signs are aligned with 
"align" environment, aren't they? And the extra spacing added by eqnarry 
is gone, which is a good thing IMO.


Could you give an example of what you do not like?

JMarc


Re: Improvements to splitting math equation for multi-line?

2018-05-19 Thread Jean-Marc Lasgouttes

Le 19/05/2018 à 16:08, David L. Johnson a écrit :

But LyX doesn't understand them as delimiters unless they are written
as such.


Since 2.3, LyX knows the class (mathopen, mathclose, matrel...) of the 
insets. This has been used actually to generalize the old code which 
only looked at = sign AFAIU.


JMarc


Re: Improvements to splitting math equation for multi-line?

2018-05-19 Thread Scott Kostyshak
On Sat, May 19, 2018 at 03:23:00PM +, David L. Johnson wrote:
> On Sat, 19 May 2018 11:14:16 -0400
> Scott Kostyshak  wrote:
> 
> > > I would prefer to have it go into the eqnarry environment rather
> > > than AMS align, or at least default to three columns rather than 2,
> > > with the = in the middle.  That way, following lines will have the
> > > = sign aligned, which IMO is how it should be.  
> > 
> > If you set amsmath to "Do not Load" in Document > Settings > Math
> > Options, the default will be an eqnarray.
> 
> Well, I can't do that.

Sorry, I should have mentioned that it was a hack that probably wouldn't
work for your setup.

Scott


signature.asc
Description: PGP signature


Re: Improvements to splitting math equation for multi-line?

2018-05-19 Thread Scott Kostyshak
On Sat, May 19, 2018 at 01:02:05PM +, Joel Kulesza wrote:
> On Fri, May 18, 2018 at 11:04 PM, Scott Kostyshak  wrote:
> 
> > When in a math display equation, if you press "ctrl + return", LyX will
> > turn it into a multi-line equation. I think the default is an "align"
> > environment. To do this, LyX tries "split" your current equation into
> > two parts. For example, if the equation is:
> >
> >   y = 3x + 5
> >
> > LyX guesses that you want "y" on the left box, and "= 3x + 5" in the
> > right box. In other words, it splits on the "=" sign.
> >
> > Do you use this feature?
> 
> 
> Yes.  For an example of some of the equations I contend with, please see
> the attached (particularly slides 15–20).  Breaking and fine-tuning
> equations has become a way of life.  Also, you can see why I'm reluctant to
> typeset these in raw LaTeX and prefer a utility like LyX... :-)

Ah yes that is a lot.

> > Are there any improvements that you can think
> > of?
> 
> 
> Things that aggravate me / improvements I'd propose (not necessarily in
> order):
> 
>1. I'm usually splitting equations because they are long.  If I use
>multiline, only one equation number is kept and kept in the bottom row of
>the equation.  However, if I use splitting as described here (or manually
>select "align" a priori because I know the equations lend themselves to
>this appearance), I have to manually toggle on/off equation numbers so that
>one, multi-line aligned, equation is properly numbered.  For complex/busy
>equations, this can be overlooked.  I don't have a good solution, but if
>something better were done to handle this, I'd be *quite* happy.

That does sound like it could be improved.

>2. If I'm within a set of delimiters, and break the equation as
>described, I'd like the break to happen at the cursor and to have the
>matched set of delimiters split into two unmatched sets with the proper
>open/close delimiters and a matching "None".  At present, I do this
>manipulation manually; however, if I have to reformat the equation, this
>can lead to lots of jousting with delimiters.

That is a good idea, and consistent with what JMarc suggested (of
splitting at the cursor). I see there's lots of room for improvement.

> If you recall, dealing with
>this situation lead to my first LyX code contribution (within the Insert
>delimiter dialog), so you can see that it's something I deal with
>frequently.

Ah I had forgotten about that.

> 
> I haven't looked at the code yet, but I'm considering trying to
> > improve the algorithm for splitting. My personal use case is that I
> > often have expressions of the form
> >
> >   P(X < 3) = 2
> >
> > Currently LyX splits this on the "<". I would like to have the algorithm
> > prioritize a relation character that is outside of delimiters.
> >
> 
> What happens if you use matched parenthesis (Ctrl-M, "(" in the math editor
> on macOS) rather than statically written ones (individually typing "(" and
> ")")?  If I used matched parenthesis (on macOS, at least), the break
> happens before the equal sign.  Unmatched, yes, the break happens before
> "<".  Note that I always use matched delimiters as a matter of course
> because, for me, it's highly probable that whatever is within them will
> cause them to grow in height.

Makes sense. I often forget to use the, but I should get in the habit.

Thanks,

Scott


signature.asc
Description: PGP signature


Re: Improvements to splitting math equation for multi-line?

2018-05-19 Thread David L. Johnson
On Sat, 19 May 2018 11:14:16 -0400
Scott Kostyshak  wrote:

> > I would prefer to have it go into the eqnarry environment rather
> > than AMS align, or at least default to three columns rather than 2,
> > with the = in the middle.  That way, following lines will have the
> > = sign aligned, which IMO is how it should be.  
> 
> If you set amsmath to "Do not Load" in Document > Settings > Math
> Options, the default will be an eqnarray.

Well, I can't do that.

-- 

David L. Johnson
Department of Mathematics
Lehigh University


Re: Improvements to splitting math equation for multi-line?

2018-05-19 Thread Scott Kostyshak
On Sat, May 19, 2018 at 02:08:43PM +, David L. Johnson wrote:
> On Sat, 19 May 2018 01:04:31 -0400
> Scott Kostyshak  wrote:
> 
> > When in a math display equation, if you press "ctrl + return", LyX
> > will turn it into a multi-line equation. I think the default is an
> > "align" environment. To do this, LyX tries "split" your current
> > equation into two parts. For example, if the equation is:
> > 
> >   y = 3x + 5
> > 
> > LyX guesses that you want "y" on the left box, and "= 3x + 5" in the
> > right box. In other words, it splits on the "=" sign.
> > 
> > Do you use this feature? Are there any improvements that you can think
> > of? 
> 
> I would prefer to have it go into the eqnarry environment rather than
> AMS align, or at least default to three columns rather than 2, with the
> = in the middle.  That way, following lines will have the = sign
> aligned, which IMO is how it should be.

If you set amsmath to "Do not Load" in Document > Settings > Math
Options, the default will be an eqnarray.

>  I haven't looked at the code yet, but I'm considering trying to
> > improve the algorithm for splitting. My personal use case is that I
> > often have expressions of the form
> > 
> >   P(X < 3) = 2
> > 
> > Currently LyX splits this on the "<". 
> 
> Well, you could prevent that by replacing "P(X<3)=2" with
> "P\left(X<3\right)=2", which is easy to do in LyX.  It also looks
> better.

You are right. I usually just forget to use the smart parentheses.
> 
>  I would like to have
> the
> > algorithm prioritize a relation character that is outside of
> > delimiters.
> 
> But LyX doesn't understand them as delimiters unless they are written
> as such.

True.

Scott


signature.asc
Description: PGP signature


Re: Improvements to splitting math equation for multi-line?

2018-05-19 Thread David L. Johnson
On Sat, 19 May 2018 01:04:31 -0400
Scott Kostyshak  wrote:

> When in a math display equation, if you press "ctrl + return", LyX
> will turn it into a multi-line equation. I think the default is an
> "align" environment. To do this, LyX tries "split" your current
> equation into two parts. For example, if the equation is:
> 
>   y = 3x + 5
> 
> LyX guesses that you want "y" on the left box, and "= 3x + 5" in the
> right box. In other words, it splits on the "=" sign.
> 
> Do you use this feature? Are there any improvements that you can think
> of? 

I would prefer to have it go into the eqnarry environment rather than
AMS align, or at least default to three columns rather than 2, with the
= in the middle.  That way, following lines will have the = sign
aligned, which IMO is how it should be.

 I haven't looked at the code yet, but I'm considering trying to
> improve the algorithm for splitting. My personal use case is that I
> often have expressions of the form
> 
>   P(X < 3) = 2
> 
> Currently LyX splits this on the "<". 

Well, you could prevent that by replacing "P(X<3)=2" with
"P\left(X<3\right)=2", which is easy to do in LyX.  It also looks
better.

 I would like to have
the
> algorithm prioritize a relation character that is outside of
> delimiters.

But LyX doesn't understand them as delimiters unless they are written
as such.


-- 

David L. Johnson
Department of Mathematics
Lehigh University


Re: Fwd: Improvements to splitting math equation for multi-line?

2018-05-19 Thread Jean-Marc Lasgouttes

Le 19/05/2018 à 13:46, Hal Kierstead a écrit :
I use this all the time. The slider would be useful as I often end up 
cutting and pasting. But I do not need the graphics; an easy way to 
insert the “&” at the right place would be great.


Indeed a "split here" would be good. The automatic detection is a hack, 
and I am not sure it is the best solution. A solution would be to split 
at the point where the cursor is, but maybe not add a new line when 
transforming from display equation to 1-line align.


JMarc


Fwd: Improvements to splitting math equation for multi-line?

2018-05-19 Thread Hal Kierstead
>>> When in a math display equation, if you press "ctrl + return", LyX will
>>> turn it into a multi-line equation. I think the default is an "align"
>>> environment. To do this, LyX tries "split" your current equation into
>>> two parts. For example, if the equation is:
>>> 
>>>  y = 3x + 5
>>> 
>>> LyX guesses that you want "y" on the left box, and "= 3x + 5" in the
>>> right box. In other words, it splits on the "=" sign.
>>> 
>>> Do you use this feature? Are there any improvements that you can think
>>> of? I haven't looked at the code yet, but I'm considering trying to
>>> improve the algorithm for splitting. My personal use case is that I
>>> often have expressions of the form
>>> 
>>>  P(X < 3) = 2
>>> 
>>> Currently LyX splits this on the "<". I would like to have the algorithm
>>> prioritize a relation character that is outside of delimiters.
>>> 
>>> Before I look at the code, I want to see if anyone else has a desired
>>> improvement to how LyX currently splits.
>>> 
>>> Scott

> Begin forwarded message:
> 
> From: Scott Kostyshak 
> Subject: Re: Improvements to splitting math equation for multi-line?
> Date: May 18, 2018 at 10:44:12 PM MST
> To: lyx-users@lists.lyx.org
> 
> On Sat, May 19, 2018 at 05:39:09AM +, Baris Erkus wrote:
> 
>> I may recommend to develop a tool where you can slide the location of "&" in 
>> the equation. Something like tab sign in Word.
> 
> I can see how that would be useful, especially for when there are many
> lines. I think it is too ambitious for what I'm planning on working on
> (hopefully I can limit my edits to the function that does the
> splitting), but I think I would like the feature you mention also.
> 
> Thanks,
> 
> Scott

I use this all the time. The slider would be useful as I often end up cutting 
and pasting. But I do not need the graphics; an easy way to insert the “&” at 
the right place would be great.

Re: Improvements to splitting math equation for multi-line?

2018-05-18 Thread Scott Kostyshak
On Sat, May 19, 2018 at 05:39:09AM +, Baris Erkus wrote:

> I may recommend to develop a tool where you can slide the location of "&" in 
> the equation. Something like tab sign in Word.

I can see how that would be useful, especially for when there are many
lines. I think it is too ambitious for what I'm planning on working on
(hopefully I can limit my edits to the function that does the
splitting), but I think I would like the feature you mention also.

Thanks,

Scott


signature.asc
Description: PGP signature


Re: Improvements to splitting math equation for multi-line?

2018-05-18 Thread Baris Erkus


On 5/19/2018 8:04 AM, Scott Kostyshak wrote:

When in a math display equation, if you press "ctrl + return", LyX will
turn it into a multi-line equation. I think the default is an "align"
environment. To do this, LyX tries "split" your current equation into
two parts. For example, if the equation is:

  y = 3x + 5

LyX guesses that you want "y" on the left box, and "= 3x + 5" in the
right box. In other words, it splits on the "=" sign.

Do you use this feature? Are there any improvements that you can think
of? I haven't looked at the code yet, but I'm considering trying to
improve the algorithm for splitting. My personal use case is that I
often have expressions of the form

  P(X < 3) = 2

Currently LyX splits this on the "<". I would like to have the algorithm
prioritize a relation character that is outside of delimiters.

Before I look at the code, I want to see if anyone else has a desired
improvement to how LyX currently splits.

Scott


I may recommend to develop a tool where you can slide the location of "&" in 
the equation. Something like tab sign in Word.
[cid:part1.162D0226.BA5075C5@hotmail.com]


Improvements to splitting math equation for multi-line?

2018-05-18 Thread Scott Kostyshak
When in a math display equation, if you press "ctrl + return", LyX will
turn it into a multi-line equation. I think the default is an "align"
environment. To do this, LyX tries "split" your current equation into
two parts. For example, if the equation is:

  y = 3x + 5

LyX guesses that you want "y" on the left box, and "= 3x + 5" in the
right box. In other words, it splits on the "=" sign.

Do you use this feature? Are there any improvements that you can think
of? I haven't looked at the code yet, but I'm considering trying to
improve the algorithm for splitting. My personal use case is that I
often have expressions of the form

  P(X < 3) = 2

Currently LyX splits this on the "<". I would like to have the algorithm
prioritize a relation character that is outside of delimiters.

Before I look at the code, I want to see if anyone else has a desired
improvement to how LyX currently splits.

Scott


signature.asc
Description: PGP signature


Re: Equation Center Alignment Relative to Beamer Frame

2017-04-06 Thread Joel Kulesza
On Thu, Apr 6, 2017 at 8:32 AM, Paul A. Rubin  wrote:

> So it's true: great minds think alike!


Indeed, I played with negative spaces previously but didn't get anything
useful.  I was hoping there might be a more elegant, e.g., preamble-only,
approach to redefine spacings for equations.  Regardless, I hadn't tried
inserting into the following item but rather before the restart of the
itemization.  If switching environments and negative spacing is the agreed
upon approach I'll see what I can cobble together into a module.

Thanks again,
Joel


Re: Equation Center Alignment Relative to Beamer Frame

2017-04-06 Thread Paul A. Rubin

On 04/06/2017 10:23 AM, Rich Shepard wrote:

On Thu, 6 Apr 2017, Joel Kulesza wrote:


A minor complaint (and why I didn't go this route originally), the
vertical spacing before/after the second equation is not consistent
because of going between "standard" and "itemize". It's subtle, but is
there a known fix?


Joel,

  What I would do is insert \vspace{Nmm} between the two lines, using a
negative value to decrease the space if necessary.

Rich


So it's true: great minds think alike!

Paul



Re: Equation Center Alignment Relative to Beamer Frame

2017-04-06 Thread Rich Shepard

On Thu, 6 Apr 2017, Joel Kulesza wrote:


A minor complaint (and why I didn't go this route originally), the
vertical spacing before/after the second equation is not consistent
because of going between "standard" and "itemize". It's subtle, but is
there a known fix?


Joel,

  What I would do is insert \vspace{Nmm} between the two lines, using a
negative value to decrease the space if necessary.

Rich



Re: Equation Center Alignment Relative to Beamer Frame

2017-04-06 Thread Joel Kulesza
On Wed, Apr 5, 2017 at 2:55 PM, Paul A. Rubin  wrote:

> I don't know if there's a module for this, but it's not hard to do. The
> first key is that you'll want the display mode math in a Standard, rather
> then Itemize (or Enumerate), environment to get it to center properly.
>
> As to what comes next, if it's the last thing in the last item, just
> soldier on. If it's the last thing in what is not the last item, just start
> a new Itemize environment. Where it gets interesting is if the math is in
> the middle of an item. In that case, get out of the item and into a
> standard environment, do the math, and then to resume the item start a new
> Itemize environment, do Insert > Custom Item, and leave the Custom Item
> inset empty (which suppresses the unwanted bullet). I've attached a small
> example.
>
> For math in the middle of an enumeration, the story is almost the same,
> the difference being that you will need to load the Beamer Resumable
> Enumerate module and use an Enumerate-Resume environment after itemize with
> the custom inset to resume enumerating with the next number.
>
> If this is a frequent issue, you might consider writing either a module or
> a macro for it (unless, of course, one already exists).
>

Thank you for your explanation and worked example (I really appreciate it
when people take the time to demonstrate a fix).  A minor complaint (and
why I didn't go this route originally), the vertical spacing before/after
the second equation is not consistent because of going between "standard"
and "itemize".  It's subtle, but is there a known fix?  I'm reluctant to
get into playing with hard-coded spacings in the preamble, but I'm willing
to if that's what it takes.

Once these types of items are hammered out, I'll create a submodule (and
will submit it to be considered for inclusion in future versions).

Thanks again (for this and your help to others that is very useful to learn
from).

Best regards,
Joel


Re: Equation Center Alignment Relative to Beamer Frame

2017-04-05 Thread Paul A. Rubin

On 04/05/2017 04:20 PM, Joel Kulesza wrote:

Colleagues:

My goal is to have equations on a Beamer frame center-aligned relative 
to the frame and not the indent level of the current environment.


This issue is surprisingly hard to search for (e.g., most discussion 
addresses equation alignment with things such as \align).  One 
approach I located is described at: 
http://tex.stackexchange.com/questions/11606/how-can-i-center-text-math-inside-a-list-environment


Is there built-in (or a suggested implementation of) functionality to 
produce the desired behavior?


Thank you,
Joel
I don't know if there's a module for this, but it's not hard to do. The 
first key is that you'll want the display mode math in a Standard, 
rather then Itemize (or Enumerate), environment to get it to center 
properly.


As to what comes next, if it's the last thing in the last item, just 
soldier on. If it's the last thing in what is not the last item, just 
start a new Itemize environment. Where it gets interesting is if the 
math is in the middle of an item. In that case, get out of the item and 
into a standard environment, do the math, and then to resume the item 
start a new Itemize environment, do Insert > Custom Item, and leave the 
Custom Item inset empty (which suppresses the unwanted bullet). I've 
attached a small example.


For math in the middle of an enumeration, the story is almost the same, 
the difference being that you will need to load the Beamer Resumable 
Enumerate module and use an Enumerate-Resume environment after itemize 
with the custom inset to resume enumerating with the next number.


If this is a frequent issue, you might consider writing either a module 
or a macro for it (unless, of course, one already exists).


Paul


item_math.lyx
Description: application/lyx


Equation Center Alignment Relative to Beamer Frame

2017-04-05 Thread Joel Kulesza
Colleagues:

My goal is to have equations on a Beamer frame center-aligned relative to
the frame and not the indent level of the current environment.

This issue is surprisingly hard to search for (e.g., most discussion
addresses equation alignment with things such as \align).  One approach I
located is described at:
http://tex.stackexchange.com/questions/11606/how-can-i-center-text-math-inside-a-list-environment

Is there built-in (or a suggested implementation of) functionality to
produce the desired behavior?

Thank you,
Joel


Re: How can one box a equation with a specified color?

2016-10-11 Thread Paul Smith
Thanks, Edu.

Meanwhile, I found out a solution with

\fcolorbox

Paul


On Tue, Oct 11, 2016 at 10:44 PM, edu Gpl  wrote:
> add this code in Document setting > local layou:
> 
> Style Law
>
> Category MainText
>
> Margin Static
>
> LatexType Environment
>
> LatexName bluec
>
> NextNoIndent 1
>
> LeftMargin MMM
>
> RightMargin MMM
>
> ParIndent MM
>
> ParSkip 0
>
> ItemSep 0
>
> TopSep 0.5
>
> BottomSep 0.5
>
> ParSep 0
>
> Align Block
>
> AlignPossible Block, Left, Right, Center
>
> Preamble
>
> \usepackage{mdframed}
>
> \usepackage{xcolor}
>
> \newenvironment{bluec}
>
> {\begin{mdframed}[backgroundcolor=blue!10,linecolor=blue!10,roundcorner=10pt]\quotation}
>
> {\endquotation\end{mdframed}}
>
> EndPreamble
>
> End
>
> %
>
>
>
> regards
>
> 2016-10-12 0:17 GMT+03:00 Paul Smith :
>>
>> Dear All,
>>
>> How can one box a equation with a specified color?
>>
>> Thanks in advance,
>>
>> Paul
>
>


Re: How can one box a equation with a specified color?

2016-10-11 Thread edu Gpl
whith my solution you put the code 1 time, but with your solution you add
the code every time.

regards

2016-10-12 0:54 GMT+03:00 Paul Smith :

> Thanks, Edu.
>
> Meanwhile, I found out a solution with
>
> \fcolorbox
>
> Paul
>
>
> On Tue, Oct 11, 2016 at 10:44 PM, edu Gpl  wrote:
> > add this code in Document setting > local layou:
> > 
> > Style Law
> >
> > Category MainText
> >
> > Margin Static
> >
> > LatexType Environment
> >
> > LatexName bluec
> >
> > NextNoIndent 1
> >
> > LeftMargin MMM
> >
> > RightMargin MMM
> >
> > ParIndent MM
> >
> > ParSkip 0
> >
> > ItemSep 0
> >
> > TopSep 0.5
> >
> > BottomSep 0.5
> >
> > ParSep 0
> >
> > Align Block
> >
> > AlignPossible Block, Left, Right, Center
> >
> > Preamble
> >
> > \usepackage{mdframed}
> >
> > \usepackage{xcolor}
> >
> > \newenvironment{bluec}
> >
> > {\begin{mdframed}[backgroundcolor=blue!10,linecolor=blue!10,roundcorner=
> 10pt]\quotation}
> >
> > {\endquotation\end{mdframed}}
> >
> > EndPreamble
> >
> > End
> >
> > %
> >
> >
> >
> > regards
> >
> > 2016-10-12 0:17 GMT+03:00 Paul Smith :
> >>
> >> Dear All,
> >>
> >> How can one box a equation with a specified color?
> >>
> >> Thanks in advance,
> >>
> >> Paul
> >
> >
>


Re: How can one box a equation with a specified color?

2016-10-11 Thread edu Gpl
add this code in Document setting > local layou:

Style Law

Category MainText

Margin Static

LatexType Environment

LatexName bluec

NextNoIndent 1

LeftMargin MMM

RightMargin MMM

ParIndent MM

ParSkip 0

ItemSep 0

TopSep 0.5

BottomSep 0.5

ParSep 0

Align Block

AlignPossible Block, Left, Right, Center

Preamble

\usepackage{mdframed}

\usepackage{xcolor}

\newenvironment{bluec}

{\begin{mdframed}[backgroundcolor=blue!10,linecolor=blue!10,roundcorner=10pt]\quotation}

{\endquotation\end{mdframed}}

EndPreamble

End

%



regards

2016-10-12 0:17 GMT+03:00 Paul Smith :

> Dear All,
>
> How can one box a equation with a specified color?
>
> Thanks in advance,
>
> Paul
>


How can one box a equation with a specified color?

2016-10-11 Thread Paul Smith
Dear All,

How can one box a equation with a specified color?

Thanks in advance,

Paul


Re: Bad equation renderings

2016-04-17 Thread Les
On Fri, 15 Apr 2016 10:07:06 -0700
Tim Wescott  wrote:

> A reader contacted me asking why I left out the equals signs in the
> equations.  It turned out that the equals signs did not render
> correctly in his web reader plug-in, but did render correctly in the
> related stand-alone reader. 

Tim,

Whenever something like this happens I immediately wonder about whether
all the fonts are embedded in the PDF. If I check with Image Viewer
(I'm using Linux Mint), I get the reassuring message "All fonts are
either standard or embedded", with ten unexceptional Type 1 fonts, all
with Embedded subsets. And one Type 3 "No name" font described as
Embedded, not Embedded subset. The equations do render correctly with
this viewer, and with the Chrome viewer.

If I open the downloaded file with Acrobat Reader 9, it renders
correctly, but the Type 3 font is described as"

F56
Type: Type 3
Encoding: Custom
Actual Font: F56
Actual Font Type: Type 3

There is no mention of it being embedded.

I don't know where this font is coming from in your document, but it
may be the problem.

None of the viewers I tried had any problems with correctly displaying
your PDF.

Les

-- 
L. R. Denham


Re: Bad equation renderings

2016-04-16 Thread Guenter Milde
On 2016-04-15, Tim Wescott wrote:

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

> I posted this paper to my website yesterday:
> http://wescottdesign.com/articles/pid/pidWithoutAPhd.pdf.

> A reader contacted me asking why I left out the equals signs in the
> equations.  It turned out that the equals signs did not render correctly
> in his web reader plug-in, but did render correctly in the related
> stand-alone reader.  Here's what he said:

> "Hi,

> I'm attaching bmps of screenshots to this message, showing the bad
> rendering. This is through the Foxit add-on to the Firefox browser.
> I just downloaded the file, rather than looking at it in the browser,
> and when the file is opened by Foxit, the equals signs show up just
> fine."

> This isn't a problem with Lyx per se., but (likely) some interaction
> between tex2pdf, the Foxit software, and possibly the guy's screen
> resolution.  But -- you guys are smart, so I'm asking you if you (A)
> know what's going on, and (B) have any suggestions for how I could work
> around this for Foxit users without making my pdf files too ugly for
> normal humans to want to read.

I assume you are speaking about LyX-produced PDF output, right?

My guess is, that the user used a resolution/magnification so small, that
the thickness of the lines in = was rounded to 0 by the software.

There is no easy cure, some suggestions:

* whenever details are missing, magnify the document and see whether they
  turn up.
  
* use a font with bolder symbols (e.g. newtxmath)

* use a larger font size (Document>Settings>Fonts>Base Size)

Günter



Re: Bad equation renderings

2016-04-15 Thread Joel Kulesza
The equal sign shows up well for me in both Chrome and Safari.  I've had
good luck with Foxit on Windows; however, I suspect this is can be blamed
on it.

It might be interesting to force embedding the fonts in the PDF and see if
the user can see the equal signs then.

On Fri, Apr 15, 2016 at 4:29 PM, Scott Kostyshak  wrote:

> On Fri, Apr 15, 2016 at 11:40:24PM +0530, Madhusudan Singh wrote:
> > Have you considered the use of MathJax?
> >
> > If your math is web only, that is a compelling alternative.
> > On Apr 15, 2016 10:37 PM, "Tim Wescott"  wrote:
> >
> > > I posted this paper to my website yesterday:
> > > http://wescottdesign.com/articles/pid/pidWithoutAPhd.pdf.
> > >
> > > A reader contacted me asking why I left out the equals signs in the
> > > equations.  It turned out that the equals signs did not render
> correctly
> > > in his web reader plug-in, but did render correctly in the related
> > > stand-alone reader.  Here's what he said:
> > >
> > > "Hi,
> > >
> > > I'm attaching bmps of screenshots to this message, showing the bad
> > > rendering. This is through the Foxit add-on to the Firefox browser.
> > > I just downloaded the file, rather than looking at it in the browser,
> > > and when the file is opened by Foxit, the equals signs show up just
> > > fine."
> > >
> > > This isn't a problem with Lyx per se., but (likely) some interaction
> > > between tex2pdf, the Foxit software, and possibly the guy's screen
> > > resolution.  But -- you guys are smart, so I'm asking you if you (A)
> > > know what's going on, and (B) have any suggestions for how I could work
> > > around this for Foxit users without making my pdf files too ugly for
> > > normal humans to want to read.
>
> I don't have an idea of how to fix the problem, but in case it helps:
> the equals signs show fine for me in Chromium.
>
> Scott
>


Re: Bad equation renderings

2016-04-15 Thread Scott Kostyshak
On Fri, Apr 15, 2016 at 11:40:24PM +0530, Madhusudan Singh wrote:
> Have you considered the use of MathJax?
> 
> If your math is web only, that is a compelling alternative.
> On Apr 15, 2016 10:37 PM, "Tim Wescott"  wrote:
> 
> > I posted this paper to my website yesterday:
> > http://wescottdesign.com/articles/pid/pidWithoutAPhd.pdf.
> >
> > A reader contacted me asking why I left out the equals signs in the
> > equations.  It turned out that the equals signs did not render correctly
> > in his web reader plug-in, but did render correctly in the related
> > stand-alone reader.  Here's what he said:
> >
> > "Hi,
> >
> > I'm attaching bmps of screenshots to this message, showing the bad
> > rendering. This is through the Foxit add-on to the Firefox browser.
> > I just downloaded the file, rather than looking at it in the browser,
> > and when the file is opened by Foxit, the equals signs show up just
> > fine."
> >
> > This isn't a problem with Lyx per se., but (likely) some interaction
> > between tex2pdf, the Foxit software, and possibly the guy's screen
> > resolution.  But -- you guys are smart, so I'm asking you if you (A)
> > know what's going on, and (B) have any suggestions for how I could work
> > around this for Foxit users without making my pdf files too ugly for
> > normal humans to want to read.

I don't have an idea of how to fix the problem, but in case it helps:
the equals signs show fine for me in Chromium.

Scott


signature.asc
Description: PGP signature


Re: Bad equation renderings

2016-04-15 Thread Madhusudan Singh
Have you considered the use of MathJax?

If your math is web only, that is a compelling alternative.
On Apr 15, 2016 10:37 PM, "Tim Wescott"  wrote:

> I posted this paper to my website yesterday:
> http://wescottdesign.com/articles/pid/pidWithoutAPhd.pdf.
>
> A reader contacted me asking why I left out the equals signs in the
> equations.  It turned out that the equals signs did not render correctly
> in his web reader plug-in, but did render correctly in the related
> stand-alone reader.  Here's what he said:
>
> "Hi,
>
> I'm attaching bmps of screenshots to this message, showing the bad
> rendering. This is through the Foxit add-on to the Firefox browser.
> I just downloaded the file, rather than looking at it in the browser,
> and when the file is opened by Foxit, the equals signs show up just
> fine."
>
> This isn't a problem with Lyx per se., but (likely) some interaction
> between tex2pdf, the Foxit software, and possibly the guy's screen
> resolution.  But -- you guys are smart, so I'm asking you if you (A)
> know what's going on, and (B) have any suggestions for how I could work
> around this for Foxit users without making my pdf files too ugly for
> normal humans to want to read.
>
> Thanks!
>
> --
>
> Tim Wescott
> www.wescottdesign.com
> Control & Communications systems, circuit & software design.
> Phone: 503.631.7815
> Cell:  503.349.8432
>
>


Re: Equation numbering variants

2015-12-16 Thread Franci Žižek
> Use \tag* instead: \stepcounter{equation}\tag*{(\theequation)\Delta}
> 
> Guillaume
> 

Beautiful! Thank you Guillaume!

Best regards






Re: Equation numbering variants

2015-12-16 Thread Guillaume Munch

Le 16/12/2015 23:05, Franci Žižek a écrit :

Paul A. Rubin  msu.edu> writes:


I'm going to assume that you want the marked equations not to interrupt the
equation numbering scheme. In other words, you want (2.3.3)DELTA consecutive
between (2.3.2) and (2.3.4), rather than having both a (2.3.3) and a
(2.3.3)DELTA.

Create a math macro (Insert > Math > Macro), name it something like \mytag,
and fill the TeX code slot with

\stepcounter{equation}\tag{\theequation\Delta}

and the LyX display slot with ?\Delta?. There's nothing sacred about what
goes in the LyX slot; feel free to change it at will. More about that in a
second.

Then, in any equation you want to flag, just type \mytag in the equation
body. LyX will display ?\Delta? (or whatever you substituted) in the
equation, and will annotate the equation number correctly in the output. If
you leave the LyX portion of the macro empty, LyX will expand the macro
inside the equation. That still works, but it makes for some remarkably ugly
equations in the LyX GUI.

Paul



Thank you Paul!

I tried it and it works good. I see what you mean with the Lyx portion of
the macro - it is only for my reference.

But the DELTA is inside the round brackets. Is there a way to have it
outside the brackets?



Use \tag* instead: \stepcounter{equation}\tag*{(\theequation)\Delta}

Guillaume



Re: Equation numbering variants

2015-12-16 Thread Franci Žižek
Paul A. Rubin  msu.edu> writes:
 
> I'm going to assume that you want the marked equations not to interrupt the
> equation numbering scheme. In other words, you want (2.3.3)DELTA consecutive
> between (2.3.2) and (2.3.4), rather than having both a (2.3.3) and a
> (2.3.3)DELTA.
> 
> Create a math macro (Insert > Math > Macro), name it something like \mytag,
> and fill the TeX code slot with
> 
> \stepcounter{equation}\tag{\theequation\Delta}
> 
> and the LyX display slot with ?\Delta?. There's nothing sacred about what
> goes in the LyX slot; feel free to change it at will. More about that in a
> second.
> 
> Then, in any equation you want to flag, just type \mytag in the equation
> body. LyX will display ?\Delta? (or whatever you substituted) in the
> equation, and will annotate the equation number correctly in the output. If
> you leave the LyX portion of the macro empty, LyX will expand the macro
> inside the equation. That still works, but it makes for some remarkably ugly
> equations in the LyX GUI.
> 
> Paul
> 

Thank you Paul!

I tried it and it works good. I see what you mean with the Lyx portion of
the macro - it is only for my reference.

But the DELTA is inside the round brackets. Is there a way to have it
outside the brackets?

Franci




Re: Equation numbering variants

2015-12-15 Thread Paul A . Rubin
Franci Žižek  gmail.com> writes:

> 
> Hi
> 
> Can someone give me a hint how I could create a different equation numbering
> variant?
> 
> Currently all my equations are numbered like: (2.3.2)
> 
> For some select equations I would like this to change to: (2.3.3)Δ
> The counting is continuous, some equations just have an additional DELTA at
> the end.
> 
> Any help is appreciated.
> 
> Franci Žižek

I'm going to assume that you want the marked equations not to interrupt the
equation numbering scheme. In other words, you want (2.3.3)DELTA consecutive
between (2.3.2) and (2.3.4), rather than having both a (2.3.3) and a
(2.3.3)DELTA.

Create a math macro (Insert > Math > Macro), name it something like \mytag,
and fill the TeX code slot with

\stepcounter{equation}\tag{\theequation\Delta}

and the LyX display slot with ?\Delta?. There's nothing sacred about what
goes in the LyX slot; feel free to change it at will. More about that in a
second.

Then, in any equation you want to flag, just type \mytag in the equation
body. LyX will display ?\Delta? (or whatever you substituted) in the
equation, and will annotate the equation number correctly in the output. If
you leave the LyX portion of the macro empty, LyX will expand the macro
inside the equation. That still works, but it makes for some remarkably ugly
equations in the LyX GUI.

Paul


Equation numbering variants

2015-12-13 Thread Franci Žižek
Hi

Can someone give me a hint how I could create a different equation numbering
variant?

Currently all my equations are numbered like: (2.3.2)

For some select equations I would like this to change to: (2.3.3)Δ
The counting is continuous, some equations just have an additional DELTA at
the end.

Any help is appreciated.

Franci Žižek

Re: how can i set up a shortcut for equation label?

2015-08-10 Thread gadmm

Dear Chen,

See in Preferences > Keyboard shortcuts. The action is label-insert and 
you can define a shortcut of your choice for it. In your case you will 
find label-copy-as-reference useful too, to later paste the reference.


GM


Le 10/08/2015 17:58, Chen Lian a écrit :

Hi there,

I need to use the function of equation labelling everyday. How can i set up a 
shortcut for it? I google a lot and fail to find a solution. Thanks a lot!

Best,
Chen






Re: how can i set up a shortcut for equation label?

2015-08-10 Thread Scott Kostyshak
On Mon, Aug 10, 2015 at 12:58 PM, Chen Lian  wrote:
> Hi there,
>
> I need to use the function of equation labelling everyday. How can i set up a 
> shortcut for it? I google a lot and fail to find a solution. Thanks a lot!
>
> Best,
> Chen

Hi Chen,

See the answer here. It is written in a general way so that you can
find out how to make shorcuts for many different LyX actions.

http://tex.stackexchange.com/questions/208510/lyx-commands-to-insert-wysiwyg-horizontal-line-for-keyboard-shortcut/208531#208531

Best,

Scott


how can i set up a shortcut for equation label?

2015-08-10 Thread Chen Lian
Hi there,

I need to use the function of equation labelling everyday. How can i set up a 
shortcut for it? I google a lot and fail to find a solution. Thanks a lot!

Best,
Chen

Re: Copy LaTeX source of an equation

2015-05-26 Thread Marduk Bolaños
It works now. Last time I checked (a few months ago) it did not.

Thank you!


Re: Copy LaTeX source of an equation

2015-05-26 Thread Liviu Andronic
On Tue, May 26, 2015 at 8:13 PM, Marduk Bolaños  wrote:
> I would like to copy the LaTeX source of an equation to the clipboard
> without having to open the source pane.
>
This should work from within LyX. Simply select the math inset and
copy it. Then you should get the LaTeX code on the clipboard (minus
the $$ signs).

Liviu



> If this is not possible without
> modification to the source code of LyX, at least I would like to know
> how to call an arbitrary external script "myscript" with math-extern. I
> already tried adding the path of "myscript" to the PATH prefix of LyX
> and also tried putting it in ~/.lyx/scripts. I also used lyx -dbg gui
> and it complained that there is no converter called "myscript".
>
> Thank you!



-- 
Do you think you know what math is?
http://www.ideasroadshow.com/issues/ian-stewart-2013-08-02
Or what it means to be intelligent?
http://www.ideasroadshow.com/issues/john-duncan-2013-08-30
Think again:
http://www.ideasroadshow.com/library


Copy LaTeX source of an equation

2015-05-26 Thread Marduk Bolaños
I would like to copy the LaTeX source of an equation to the clipboard
without having to open the source pane. If this is not possible without
modification to the source code of LyX, at least I would like to know
how to call an arbitrary external script "myscript" with math-extern. I
already tried adding the path of "myscript" to the PATH prefix of LyX
and also tried putting it in ~/.lyx/scripts. I also used lyx -dbg gui
and it complained that there is no converter called "myscript".

Thank you!


Bad auto-splitting when switching to equation array

2014-05-31 Thread Christoph Burschka
In a math environment (display or environment), you can switch to an
EqnArray environment with Ctrl Enter or Shift Enter.

If there is already an equation, it will be automatically split into columns
on particular symbols, including "=" and a few other operators and arrows.

Unfortunately, it passes right over some symbols (such as \coloneqq or
\dblcolon). It also splits on the first symbol, so "a = b \Leftrightarrow c
= d" will become "a&=&b\Leftrightarrow c=d" rather than "a=b &
\Leftrightarrow & c=d", but at least that can be avoided with parentheses.

Is there some way to add operators like \coloneqq and \dblcolon to the list
of symbols that equations will be split on?



Re: resize equation output

2014-04-29 Thread Jacob Bishop
On Tue, Apr 22, 2014 at 1:39 PM, Neal Becker  wrote:

> Neal Becker wrote:
>
> > I have the misfortune to be commanded to produce ppt.  So I took one of
> my
> > equations, in lyx.  I chose beamer so I get something that'll look good
> on a
> > slide.  I put
> > \beamertemplatenavigationsymbolsempty
> >
> > so crop will work.
> >
> > When exported export/pdf(crop), it looks OK, but it's too small.  I
> import to
> > M$ PPT by opening in acroread and copy file to clipboard.
> >
> > So I need something that'll resize the pdf (or convince lyx/beamer to
> output
> > something bigger in the first place).
>

Not so much a "real" solution as another hack, but one thing I sometimes
have to do which I see as similar is to import tables and figures produced
in LyX into MS Word or the like. What I do is split the .pdf into separate
pages using pdftk (i.e., $pdftk figures.pdf burst ). Then, I convert the
resulting pages into high res images with convert. I use a command such as:
$convert -colorspace RGB -interlace none -density 800 -quality 100
pg_0003.pdf figure01.jpg

Then, I crop the images as needed. That way, I have the separate images
saved, and they are in a format that plays well with MS.

-Jacob


Re: resize equation output

2014-04-22 Thread Neal Becker
Neal Becker wrote:

> I have the misfortune to be commanded to produce ppt.  So I took one of my
> equations, in lyx.  I chose beamer so I get something that'll look good on a
> slide.  I put
> \beamertemplatenavigationsymbolsempty
> 
> so crop will work.
> 
> When exported export/pdf(crop), it looks OK, but it's too small.  I import to
> M$ PPT by opening in acroread and copy file to clipboard.
> 
> So I need something that'll resize the pdf (or convince lyx/beamer to output
> something bigger in the first place).
> 
> I tried the latter without success.
> 
> Putting in preamble
> \geometry{paper=a4paper}
> 
> didn't seem help.
> 
> Finally, I found this magic incantation:
> 
> gs -sDEVICE=pdfwrite -sPAPERSIZE=a5 -dFIXEDMEDIA -dPDFFitPage -
> dCompatibilityLevel=1.4 -o eq1_2.pdf eq1.pdf
> 
> Then run through
> pdfcrop
> 
> Finally, not a bad result (oh, did you want that centered on the slide?)
> 
> Any better ideas?

I found another solution:

\usepackage{pgfpages}
\pgfpagesuselayout{resize to}[a4paper,landscape,border shrink=5mm]

although this is not quite as large as I'd like.  Maybe I can learn the 
pdfpages 
options and improve it.



resize equation output

2014-04-22 Thread Neal Becker
I have the misfortune to be commanded to produce ppt.  So I took one of my 
equations, in lyx.  I chose beamer so I get something that'll look good on a 
slide.  I put 
\beamertemplatenavigationsymbolsempty

so crop will work.

When exported export/pdf(crop), it looks OK, but it's too small.  I import to 
M$ 
PPT by opening in acroread and copy file to clipboard.

So I need something that'll resize the pdf (or convince lyx/beamer to output 
something bigger in the first place).

I tried the latter without success.

Putting in preamble
\geometry{paper=a4paper}

didn't seem help.

Finally, I found this magic incantation:

gs -sDEVICE=pdfwrite -sPAPERSIZE=a5 -dFIXEDMEDIA -dPDFFitPage -
dCompatibilityLevel=1.4 -o eq1_2.pdf eq1.pdf

Then run through
pdfcrop

Finally, not a bad result (oh, did you want that centered on the slide?)

Any better ideas?



Re: automatic equation numbering

2013-12-20 Thread Guenter Milde
On 2013-12-20, Patrick Dupre wrote:
> Hello,

> Is there an option to have all the equations automatically numbered if
> I only label some of them ?

For this, I have in my "latex preamble":

% Gleichungen
% ---
% Alle Gleichungen nummerieren
\renewcommand\[{\begin{equation}}
\renewcommand\]{\end{equation}}

And additionally to number by chapter (do not add this if you want
consecutive numbering over the whole document):

% Starte Gleichungsnummern für jedes Kapitel neu (mit AMS mathe)
\numberwithin{equation}{chapter}


Günter



automatic equation numbering

2013-12-20 Thread Patrick Dupre
Hello,

Is there an option to have all the equations automatically numbered if
I only label some of them ?

Thank.

===
 Patrick DUPRÉ                                 | | email: pdu...@gmx.com
 Laboratoire de Physico-Chimie de l'Atmosphère | |
 Université du Littoral-Côte d'Opale           | |
 Tel.  (33)-(0)3 28 23 76 12                   | | Fax: 03 28 65 82 44
 189A, avenue Maurice Schumann                 | | 59140 Dunkerque, France
===


Re: Error compilating equation on PDF

2012-04-03 Thread Richard Heck

On 04/02/2012 08:38 PM, Kenedy Torcatt wrote:

Hello...

Idon't know why when I'm trying to compile the pdf after creating a
formula or equation in lyx I'm getting an error and I can't see the
pdf.

The  description i attached in txt file. Thankyou in advance!
It'd be more helpful to see the LyX file. Better yet, a LyX file with 
nothing but the offending equation in it. I can't tell anything from that.


Richard



Error compilating equation on PDF

2012-04-02 Thread Kenedy Torcatt
Hello...

Idon't know why when I'm trying to compile the pdf after creating a
formula or equation in lyx I'm getting an error and I can't see the
pdf.

The  description i attached in txt file. Thankyou in advance!
This is pdfTeX, Version 3.1415926-2.3-1.40.12 (MiKTeX 2.9) (preloaded 
format=pdflatex 2011.11.6)  2 APR 2012 20:03
entering extended mode
**archivo_nuevo1.tex

(C:\Users\Kenedy\AppData\Local\Temp\lyx_tmpdir.p50616\lyx_tmpbuf2\archivo_nuevo
1.tex
LaTeX2e <2011/06/27>
Babel  and hyphenation patterns for english, afrikaans, ancientgreek, ar
abic, armenian, assamese, basque, bengali, bokmal, bulgarian, catalan, coptic, 
croatian, czech, danish, dutch, esperanto, estonian, farsi, finnish, french, ga
lician, german, german-x-2009-06-19, greek, gujarati, hindi, hungarian, iceland
ic, indonesian, interlingua, irish, italian, kannada, kurmanji, lao, latin, lat
vian, lithuanian, malayalam, marathi, mongolian, mongolianlmc, monogreek, ngerm
an, ngerman-x-2009-06-19, nynorsk, oriya, panjabi, pinyin, polish, portuguese, 
romanian, russian, sanskrit, serbian, slovak, slovenian, spanish, swedish, swis
sgerman, tamil, telugu, turkish, turkmen, ukenglish, ukrainian, uppersorbian, u
senglishmax, welsh, loaded.

("C:\Program Files\MiKTeX 2.9\tex\latex\base\report.cls"
Document Class: report 2007/10/19 v1.4h Standard LaTeX document class
("C:\Program Files\MiKTeX 2.9\tex\latex\base\size12.clo"
File: size12.clo 2007/10/19 v1.4h Standard LaTeX file (size option)
)
\c@part=\count79
\c@chapter=\count80
\c@section=\count81
\c@subsection=\count82
\c@subsubsection=\count83
\c@paragraph=\count84
\c@subparagraph=\count85
\c@figure=\count86
\c@table=\count87
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
) ("C:\Program Files\MiKTeX 2.9\tex\latex\psnfss\helvet.sty"
Package: helvet 2005/04/12 PSNFSS-v9.2a (WaS) 
("C:\Program Files\MiKTeX 2.9\tex\latex\graphics\keyval.sty"
Package: keyval 1999/03/16 v1.13 key=value parser (DPC)
\KV@toks@=\toks14
)) ("C:\Program Files\MiKTeX 2.9\tex\latex\base\fontenc.sty"
Package: fontenc 2005/09/27 v1.99g Standard LaTeX package
("C:\Program Files\MiKTeX 2.9\tex\latex\base\t1enc.def"
File: t1enc.def 2005/09/27 v1.99g Standard LaTeX file
LaTeX Font Info:Redeclaring font encoding T1 on input line 43.
)) ("C:\Program Files\MiKTeX 2.9\tex\latex\base\inputenc.sty"
Package: inputenc 2008/03/30 v1.1d Input encoding file
\inpenc@prehook=\toks15
\inpenc@posthook=\toks16
("C:\Program Files\MiKTeX 2.9\tex\latex\base\latin9.def"
File: latin9.def 2008/03/30 v1.1d Input encoding file
)) ("C:\Program Files\MiKTeX 2.9\tex\latex\geometry\geometry.sty"
Package: geometry 2010/09/12 v5.6 Page Geometry
("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\ifpdf.sty"
Package: ifpdf 2011/01/30 v2.3 Provides the ifpdf switch (HO)
Package ifpdf Info: pdfTeX in PDF mode is detected.
) ("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\ifvtex.sty"
Package: ifvtex 2010/03/01 v1.5 Switches for detecting VTeX and its modes (HO)
Package ifvtex Info: VTeX not detected.
) ("C:\Program Files\MiKTeX 2.9\tex\generic\ifxetex\ifxetex.sty"
Package: ifxetex 2010/09/12 v0.6 Provides ifxetex conditional
)
\Gm@cnth=\count88
\Gm@cntv=\count89
\c@Gm@tempcnt=\count90
\Gm@bindingoffset=\dimen103
\Gm@wd@mp=\dimen104
\Gm@odd@mp=\dimen105
\Gm@even@mp=\dimen106
\Gm@layoutwidth=\dimen107
\Gm@layoutheight=\dimen108
\Gm@layouthoffset=\dimen109
\Gm@layoutvoffset=\dimen110
\Gm@dimlist=\toks17
("C:\Program Files\MiKTeX 2.9\tex\latex\geometry\geometry.cfg")) ("C:\Program F
iles\MiKTeX 2.9\tex\generic\babel\babel.sty"
Package: babel 2008/07/08 v3.8m The Babel package
*
* Local config file bblopts.cfg used
*
(C:\Users\Kenedy\AppData\Roaming\MiKTeX\2.9\tex\latex\arabi\bblopts.cfg
File: bblopts.cfg 2005/09/08 v0.1 add Arabic and Farsi to "declared" options of
 babel
) ("C:\Program Files\MiKTeX 2.9\tex\generic\babel\spanish.ldf"
Language: spanish.ldf 2009/01/02 v5.0h Spanish support from the babel system
("C:\Program Files\MiKTeX 2.9\tex\generic\babel\babel.def"
File: babel.def 2008/07/08 v3.8m Babel common definitions
\babel@savecnt=\count91
\U@D=\dimen111
)
\es@datefmt=\count92
\es@quottoks=\toks18
\es@quotdepth=\count93
Package babel Info: Making " an active character on input line 492.
Package babel Info: Making . an active character on input line 585.
Package babel Info: Making < an active character on input line 630.
Package babel Info: Making > an active character on input line 630.
)) ("C:\Program Files\MiKTeX 2.9\tex\latex\float\float.sty"
Package: float 2001/11/08 v1.3d Float enhancements (AL)
\c@float@type=\count94
\float@exts=\toks19
\float@box=\box26
\@float@everytoks=\toks20
\@floatcapt=\box27
) (C:\Users\Kenedy\AppData\Roaming\MiKTeX\2.9\tex\latex\esint\esint.s

Re: Inserting Space in Mathematical Equation

2012-03-29 Thread Rich Shepard

On Thu, 29 Mar 2012, Richard Heck wrote:


Well, this does give you a space, but it doesn't conform to typesetting
conventions, because the text is treated as a bunch of variables. You can
enter math-text mode by hitting Ctrl-M, then type normally. The font
choices are also availalbe under Edit> Math>Text Style. And you can also
just enter the LaTeX directly: \mbox or, if you prefer, \textnormal.


Richard,

  OK.

Thanks,

Rich



Re: Inserting Space in Mathematical Equation

2012-03-29 Thread Richard Heck

On 03/29/2012 09:20 AM, Rich Shepard wrote:

On Wed, 28 Mar 2012, David L. Johnson wrote:

You have several options.  When in math-mode, you might have a 
menubar on

the bottom of the window.  One option looks like \_/ in red. That gives
various spaces.  Ctrl-Shift-Space should also give you a medium space.


  Thank you, David. I prefer the keyboard to the pointy thing so 
C-S-space

will work for me. While I tried C-space I didn't think of adding another
modifying key.

Well, this does give you a space, but it doesn't conform to typesetting 
conventions,
because the text is treated as a bunch of variables. You can enter 
math-text mode by
hitting Ctrl-M, then type normally. The font choices are also availalbe 
under Edit>
Math>Text Style. And you can also just enter the LaTeX directly: \mbox 
or, if you

prefer, \textnormal.

Richard



Re: Inserting Space in Mathematical Equation

2012-03-29 Thread Rich Shepard

On Wed, 28 Mar 2012, David L. Johnson wrote:


You have several options.  When in math-mode, you might have a menubar on
the bottom of the window.  One option looks like \_/ in red. That gives
various spaces.  Ctrl-Shift-Space should also give you a medium space.


  Thank you, David. I prefer the keyboard to the pointy thing so C-S-space
will work for me. While I tried C-space I didn't think of adding another
modifying key.

Much appreciated,

Rich



Re: Inserting Space in Mathematical Equation

2012-03-28 Thread David L. Johnson

On 03/28/2012 08:03 PM, Rich Shepard wrote:

  I have an equation that contains words, such as '0.75 * Total Stream
Length'. I looked in Herbert's "Typesetting Mathematics with LaTeX" and
found a single index reference to 'space' that referred to something
different. Ctrl-space does nothing.

  How do I insert a space within an equation?
You have several options.  When in math-mode, you might have a menubar 
on the bottom of the window.  One option looks like \_/ in red. That 
gives various spaces.  Ctrl-Shift-Space should also give you a medium space.


But, while you are in math-mode, you can enter a text box by clicking on 
the "insert math" icon again.  You see a blue-outlined rectangle, and 
what you type in that is regular, upright, text.  Including spaces.  So 
you can get "Total Stream Length" by just typing that, in this text box 
inside of math-mode.


--

David L. Johnson

It is probable that television drama of high caliber and produced by
first-rate artists will materially raise the level of dramatic taste
in the nation.
-- David Sarnoff, 1939



Inserting Space in Mathematical Equation

2012-03-28 Thread Rich Shepard

  I have an equation that contains words, such as '0.75 * Total Stream
Length'. I looked in Herbert's "Typesetting Mathematics with LaTeX" and
found a single index reference to 'space' that referred to something
different. Ctrl-space does nothing.

  How do I insert a space within an equation?

Rich



Re: multiline equation with a single number

2012-03-20 Thread Richard Heck

On 03/20/2012 07:34 AM, Bieniasz wrote:

Hi,

I have a new problem. I have a long, numbered equation, that does not
fit into the page width, so that I need to break it into two lines.
LyX has some provisions for doing this, but I cannot figure out how exactly
to proceed. If I press CTRL-ENTER within the numbered formula, I get two
numbered lines, but I need two lines with only one number. If I choose the
"multiline environment" I get indeed a formula with several lines, but no
numbering at all. So, my question is how to obtain a single equation, but
consisting of two lines, and with one number (at the end of the second line)?
Try the gather environment, and choose to number the second line: Edit> 
Math> Number This Line.


Richard



multiline equation with a single number

2012-03-20 Thread Bieniasz

Hi,

I have a new problem. I have a long, numbered equation, that does not
fit into the page width, so that I need to break it into two lines.
LyX has some provisions for doing this, but I cannot figure out how exactly
to proceed. If I press CTRL-ENTER within the numbered formula, I get two 
numbered lines, but I need two lines with only one number. If I choose the
"multiline environment" I get indeed a formula with several lines, but no 
numbering at all. So, my question is how to obtain a single equation, but 
consisting of two lines, and with one number (at the end of the second line)?

Leslaw



Re: question about math equation editing

2012-01-18 Thread Richard Heck

On 01/18/2012 05:06 AM, Lesław Bieniasz wrote:


Hi,

I am trying to learn how to use the math equation editor in LyX,
and I have encontered a problem. The manual says that while writing integrals
one should pay special attention to correctly writing the "d" letter, which
is an operator, hence it should be written as an upright letter. In order
to achieve the effect, the manual suggests to highlight the letter "d", and
then use the keyboard shortcut ALT+C R. I am trying this, but this does not
work. Instead of changing the style of the highlighted "d", I get the whole
equation highlighted (blue colour). The same happens if, alternatively, I
choose the main menu options Edit/Text style/Capitalics. So, what should I do?

Try Edit>Math>Text Style>Math Roman Family.

Richard



question about math equation editing

2012-01-18 Thread Lesław Bieniasz


Hi,

I am trying to learn how to use the math equation editor in LyX,
and I have encontered a problem. The manual says that while writing integrals
one should pay special attention to correctly writing the "d" letter, which
is an operator, hence it should be written as an upright letter. In order
to achieve the effect, the manual suggests to highlight the letter "d", and
then use the keyboard shortcut ALT+C R. I am trying this, but this does not 
work. Instead of changing the style of the highlighted "d", I get the whole
equation highlighted (blue colour). The same happens if, alternatively, I 
choose the main menu options Edit/Text style/Capitalics. So, what should I do?

Leslaw



Re: "Equation editor" (was Bounding box for pstricks graphics with LyX)

2012-01-18 Thread Guenter Milde
On 2012-01-16, Andrew Parsloe wrote:

> I've now tried your "equation editor/picture cropper" at 
> http://www.lyx.org/trac/ticket/7839 using GSview for postscript and 
> Acroreader for pdf.

> For both template files, EPS.lyx and PDF-cropped.lyx, I had to reduce 
> the \lyxformat from 416 to 413 for them to be accepted by LyX 2.0.2 on 
> my system.

The templates were written with the development version. For the Wiki,
"downgraded" variants that work with the release version would be better,
indeed.

> For both ps and pdf I tried an equation (Pythagoras' theorem, 
> a^2+b^2=c^2) and a pstricks graphic (a labelled right-angled triangle).

> Postscript: in GSview, the equation is cropped just right. That's neat. 
> I like it. The triangle however is cropped too severely, so that the 
> labels for the vertices and two of the sides are largely cropped out of 
> the picture. The cropping is targeted at the geometric stuff as if the 
> text stuff isn't there. 

This seems to be a limitation of ps2eps.
AFAIK, there is an alternative converter that works around this issue.
(But I don't know the details now.)

> PDF: Compiling with pdflatex, which I presume is what is intended, I get 
> an error message in LyX at the cropping stage:

> An error occurred while running: pdfcrop "equation.pdf" "tmpfile.out"

> Looking in the temporary directory shows the aux, log, tex, and 
> tex.dep-pdf files. The log file claims "Output written on equation.pdf" 
> but there is no equation.pdf there.


Strange.

An equation works here.

Just to be sure: do you know that pstricks does not work with pdflatex?

Could you try with a new document and View>Other formats>PDF (pdfcrop)?

If this fails, export an example to PDF and try to crop with pdfcrop on the
command line.

Günter





"Equation editor" (was Bounding box for pstricks graphics with LyX)

2012-01-16 Thread Andrew Parsloe

Hullo Liviu,

I've now tried your "equation editor/picture cropper" at 
http://www.lyx.org/trac/ticket/7839 using GSview for postscript and 
Acroreader for pdf.


For both template files, EPS.lyx and PDF-cropped.lyx, I had to reduce 
the \lyxformat from 416 to 413 for them to be accepted by LyX 2.0.2 on 
my system.


For both ps and pdf I tried an equation (Pythagoras' theorem, 
a^2+b^2=c^2) and a pstricks graphic (a labelled right-angled triangle).


Postscript: in GSview, the equation is cropped just right. That's neat. 
I like it. The triangle however is cropped too severely, so that the 
labels for the vertices and two of the sides are largely cropped out of 
the picture. The cropping is targeted at the geometric stuff as if the 
text stuff isn't there. I used:


\pspicture*(4,3)
%draw the triangle
\pspolygon(.5,.5)(3.5,.5)(.5,2.5)
%draw the right angle
\psline[linewidth=.5pt](.7,.5)(.7,.7)(.5,.7)
%label vertices and sides
\uput{1pt}[0](3.5,.5){A}
\uput{2pt}[90](.5,2.5){B}
\uput{3pt}[180](.5,.5){C}
\uput{2pt}[180](.5,1.5){$a$}
\uput{2pt}[270](2,.5){$b$}
\uput{2pt}[45](2,1.5){$c$}
\endpspicture

in an ERT inset with \usepackage{pstricks} in the preamble of a LyX 
document based on the EPS.lyx template.


PDF: Compiling with pdflatex, which I presume is what is intended, I get 
an error message in LyX at the cropping stage:


An error occurred while running: pdfcrop "equation.pdf" "tmpfile.out"

Looking in the temporary directory shows the aux, log, tex, and 
tex.dep-pdf files. The log file claims "Output written on equation.pdf" 
but there is no equation.pdf there.


Andrew



Re: Long Math Equation in Table Column

2012-01-14 Thread Rich Shepard

On Sat, 14 Jan 2012, Paul A. Rubin wrote:


I've never dug into the reason for this,


Paul,

  Neither have I because I need it so infrequently.


... but I think that some packages (and "rotating" may be one of them, if
that's the correct name) only work with PDF output.


  Looks reasonable.


I occasionally forget this and get a disconcerting output with View > DVI.


  Obviously, I do, too.

Thanks,

Rich


Re: Long Math Equation in Table Column

2012-01-14 Thread Paul A . Rubin
Rich Shepard  appl-ecosys.com> writes:


>I do the above, save the document, and look at the dvi preview. It's not
> rotated but in the upper right corner of the page and off both margins. But
> ... A-ha! It is rotated in the pdflatex output.
> 
>It occurred to me that sometimes the dvi preview does not display properly
> while the compiled output does.
> 

I've never dug into the reason for this, but I think that some packages (and
"rotating" may be one of them, if that's the correct name) only work with PDF
output.  It might be that they use pstricks or equivalent magic.  I occasionally
forget this and get a disconcerting output with View > DVI.

Paul




Re: Long Math Equation in Table Column

2012-01-13 Thread Rich Shepard

On Fri, 13 Jan 2012, Enrico Forestieri wrote:


   Er, ... according to the detailed Math manual, "Only inline formulas are
allowed inside tables." So, that's that.


Nonsense. Simply set the column width or put the formula in a minipage.


  Perhaps this should be directed to whomever maintains the math help
document. That would be a useful replacement for the current statement.

Rich


Re: Long Math Equation in Table Column

2012-01-12 Thread Enrico Forestieri
Rich Shepard writes:

>Er, ... according to the detailed Math manual, "Only inline formulas are
> allowed inside tables." So, that's that.

Nonsense. Simply set the column width or put the formula in a minipage.

-- 
Enrico



Re: Long Math Equation in Table Column

2012-01-12 Thread Rich Shepard

On Thu, 12 Jan 2012, Paul A. Rubin wrote:


1. IMHO inline equations should never be long. If it's long enough to give
you margin/column width headaches, I'd do it display mode, which gives you
access to multiline equation formats.


Paul,

  Er, ... according to the detailed Math manual, "Only inline formulas are
allowed inside tables." So, that's that.


2. Rotating a table in a float should be simple (no ERT required). Put the table
in a table float, right click the handle of the float, pick Settings, and check
"Rotate sideways".


  That was my problem: I kept looking for the settings by clicking on the
table itself or the table tools that display when the cursor is within the
table. I don't think that in all the years I've been using LyX that I ever
right-clicked on the grey square reading 'Figure' or 'Table'. How
interesting!

  I do the above, save the document, and look at the dvi preview. It's not
rotated but in the upper right corner of the page and off both margins. But
... A-ha! It is rotated in the pdflatex output.

  It occurred to me that sometimes the dvi preview does not display properly
while the compiled output does.

Thanks for the lesson,

Rich


Re: Long Math Equation in Table Column

2012-01-12 Thread Rich Shepard

On Thu, 12 Jan 2012, Paul A. Rubin wrote:


Not sure to which of these I should respond. :-)  In approximately chronological
order:

1. IMHO inline equations should never be long. If it's long enough to give you
margin/column width headaches, I'd do it display mode, which gives you access to
multiline equation formats.


Paul,

  In the text the equations fit well as inline. I was copying them to the
table cells. I can retype them as multiline and see if that works. It
should. I looked to see if I could convert from inline to multiline but did
not see how to do this.


2. Rotating a table in a float should be simple (no ERT required). Put the table
in a table float, right click the handle of the float, pick Settings, and check
"Rotate sideways".


  Hmm-m-m. I didn't think to look in the settings.


3. Don't know about putting captions above rotated tables.  Too kinky for me.


  That's the standard; figure captions are below.

Thanks,

Rich


Re: Long Math Equation in Table Column

2012-01-12 Thread Paul A . Rubin
Not sure to which of these I should respond. :-)  In approximately chronological
order:

1. IMHO inline equations should never be long. If it's long enough to give you
margin/column width headaches, I'd do it display mode, which gives you access to
multiline equation formats.

2. Rotating a table in a float should be simple (no ERT required). Put the table
in a table float, right click the handle of the float, pick Settings, and check
"Rotate sideways".

3. Don't know about putting captions above rotated tables.  Too kinky for me.



Re: Long Math Equation in Table Column

2012-01-12 Thread Rich Shepard

On Thu, 12 Jan 2012, Rich Shepard wrote:


table within \being{sidewaystable} and \end{sidewaystable}, or
\being{landscape} and \end{landscape}.


  See? It's that sort of a day. Those should be \begin{... and not
\being{...

Sigh,

Rich



Re: Long Math Equation in Table Column

2012-01-12 Thread Rich Shepard

On Thu, 12 Jan 2012, Rich Shepard wrote:


 I've looked in TLC2 without finding the solution to splitting an inline
equation when it's in a table column. I have two long equations in a
2-column table and they make the table much too wide; it extends past the
text width on the right.


  I've given up and re-did the table as non-floating. I cannot use the
captionabove environment because LyX tells me that makes no sense. That
response makes no sense to me.

  I've not been able to use the rotate or lscape packages to turn this one
wide table 90 degrees. I would appreciate learning how to place a float
table within \being{sidewaystable} and \end{sidewaystable}, or
\being{landscape} and \end{landscape}.

  It's been a frustrating couple of hours reading the appropriate sections
of TLC2 and not getting it to work. Haven't had such recalcitrant issues
with LyX for many years.

Rich


Re: Long Math Equation in Table Column

2012-01-12 Thread Rich Shepard

On Thu, 12 Jan 2012, Rich Shepard wrote:


 Is there a way to do this?


  I found the rotating package, but I'm having difficulty using it. Perhaps
I need to modify the LaTeX output manually?

Rich


Long Math Equation in Table Column

2012-01-12 Thread Rich Shepard

  I've looked in TLC2 without finding the solution to splitting an inline
equation when it's in a table column. I have two long equations in a
2-column table and they make the table much too wide; it extends past the
text width on the right.

  Making the font a smaller size is one solution, but I'd prefer to have the
equation span multiple lines within a single table cell.

  Is there a way to do this?

TIA,

Rich


Re: Cross-reference in equation in lyx 2

2011-10-06 Thread Paul A . Rubin
David B  gmail.com> writes:

> 
> 
> Hello,In LyX pre-2.0 I was able to put a cross-reference to an equation
 inside a
>  formula, so that it would look something like in this
image:
http://www.latex-community.org/forum/download/file.php?id=4130If I try to
do this in LyX 2.0 the reference ends up immediately 
> above the formula, but outside of it. Does anyone know how to put 
> cross-references in formulas in 2.0?Best Regards,David
> 
> 

Is the following what you want?

Paul

#LyX 2.0 created this file. For more info see http://www.lyx.org/
\lyxformat 413
\begin_document
\begin_header
\textclass article
\use_default_options true
\maintain_unincluded_children false
\language english
\language_package default
\inputencoding auto
\fontencoding global
\font_roman default
\font_sans default
\font_typewriter default
\font_default_family default
\use_non_tex_fonts false
\font_sc false
\font_osf false
\font_sf_scale 100
\font_tt_scale 100

\graphics default
\default_output_format default
\output_sync 0
\bibtex_command default
\index_command default
\paperfontsize default
\spacing single
\use_hyperref false
\papersize letterpaper
\use_geometry true
\use_amsmath 1
\use_esint 1
\use_mhchem 1
\use_mathdots 1
\cite_engine basic
\use_bibtopic false
\use_indices false
\paperorientation portrait
\suppress_date false
\use_refstyle 1
\index Index
\shortcut idx
\color #008000
\end_index
\leftmargin 1in
\topmargin 1in
\rightmargin 1in
\bottommargin 1in
\secnumdepth 3
\tocdepth 3
\paragraph_separation skip
\defskip smallskip
\quotes_language english
\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 Standard
First equation: 
\begin_inset Formula 
\begin{equation}
y=mx+b\label{eq:eq1}
\end{equation}

\end_inset

followed by second equation:
\begin_inset Formula 
\begin{eqnarray}
 & (\ref{eq:eq1})\nonumber \\
b & = & y-mx
\end{eqnarray}

\end_inset


\end_layout

\end_body
\end_document




Re: numbering of an equation

2011-10-06 Thread Paul A . Rubin
Wolfgang Engelmann  uni-tuebingen.de> writes:


> > 
> > Maybe you tried in text mode?
> > It works only if the cursor is inside the
> > equation.
> > 
> > Günter
> 
> Thanks, Günther,
> 
> but doing this does not help, and I tried it 
> before. Do I have to include something in the 
> preamble?
> 

No, nothing special is needed; it should work "out of the box".  Does this occur
in a new document (article class, no modules)?

In Tools > Preferences > Editing > Shortcuts, if you put "alt+m n" in the "Show
..." search box, is math-number-toggle the only result you get?  Also, are you
perhaps using a customized UI file that might be remapping Alt+M+N?

The only other thing that I can think of is to type Alt+M+N in different parts
of a document (text area, heading, title, ...) until you find out what LyX
thinks it maps to (assuming LyX thinks it maps to a different command).

Paul



Re: numbering of an equation

2011-10-06 Thread Wolfgang Engelmann
On Thursday 06 October 2011 09:39:50 Guenter Milde 
wrote:
> On 2011-10-05, Wolfgang Engelmann wrote:
> > For
> > Bearbeiten->Mathe->Nummerierung an/aus
> > (Tastenkürzel Alt+M N)
> > 
> > I get:
> >  command deactivated
> > 
> > but the list of shortcuts shows Alt+M N
> > 
> > I am using Lyx 2.0.1 and Debian squeeze
> > 
> > Whats wrong?
> 
> Maybe you tried in text mode?
> It works only if the cursor is inside the
> equation.
> 
> Günter

Thanks, Günther,

but doing this does not help, and I tried it 
before. Do I have to include something in the 
preamble?

Wolfgang


Re: numbering of an equation

2011-10-06 Thread Guenter Milde
On 2011-10-05, Wolfgang Engelmann wrote:
> For
> Bearbeiten->Mathe->Nummerierung an/aus 
> (Tastenkürzel Alt+M N)
> I get:
>  command deactivated
> but the list of shortcuts shows Alt+M N

> I am using Lyx 2.0.1 and Debian squeeze

> Whats wrong?

Maybe you tried in text mode?
It works only if the cursor is inside the equation.

Günter



Cross-reference in equation in lyx 2

2011-10-05 Thread David B
Hello,

In LyX pre-2.0 I was able to put a cross-reference to an equation inside a
formula, so that it would look something like in this image:
http://www.latex-community.org/forum/download/file.php?id=4130

If I try to do this in LyX 2.0 the reference ends up immediately above the
formula, but outside of it. Does anyone know how to put cross-references in
formulas in 2.0?

Best Regards,
David


numbering of an equation

2011-10-05 Thread Wolfgang Engelmann
For
Bearbeiten->Mathe->Nummerierung an/aus 
(Tastenkürzel Alt+M N)
I get:
 command deactivated
but the list of shortcuts shows Alt+M N

I am using Lyx 2.0.1 and Debian squeeze

Whats wrong?

Wolfgang


Re: Equation annotations in a multiline equation

2011-10-03 Thread Julien Rioux

On 03/10/2011 10:25 PM, David L. Johnson wrote:

The justification is different in LyX than it is in the output, which
might be something to worry about in the future.


I also have found that the display in LyX of the alignment of math 
columns can get confused, although when you close and reopen the file it 
will be correct. We should fix this.


--
Julien



Re: Equation annotations in a multiline equation

2011-10-03 Thread David L. Johnson

On 10/03/2011 11:45 AM, Abiel Reinhart wrote:

Thanks, after pasting in the text and then examining it I was able to
figure out the correct approach. It appears my earlier alignment
difficulty stemmed from placing the equals sign in its own column. Now
I create a four-column structure in the align environment, with
equation= in the first column, equation in the second column, nothing
in the third column, and the annotation in the last column. This gets
me exactly what I had in pure LaTeX, which makes sense.
The problem really is in the default alignments that AMS-LaTeX uses 
here.  I don't know offhand what the rules are supposed to be, but the 
problem is that some of the columns are right-justified, and others are 
left-justified.  I'm sure that the algorithms are available somewhere.  
You placing the = in the first column, rather than in a column by 
itself, changed the count of columns, and thus the justification.


The justification is different in LyX than it is in the output, which 
might be something to worry about in the future.


--

David L. Johnson

The lottery is a tax on those who fail to understand mathematics.



Re: Equation annotations in a multiline equation

2011-10-03 Thread Abiel Reinhart
Thanks, after pasting in the text and then examining it I was able to
figure out the correct approach. It appears my earlier alignment
difficulty stemmed from placing the equals sign in its own column. Now
I create a four-column structure in the align environment, with
equation= in the first column, equation in the second column, nothing
in the third column, and the annotation in the last column. This gets
me exactly what I had in pure LaTeX, which makes sense.

On Mon, Oct 3, 2011 at 11:30 AM, Richard Heck  wrote:
> On 10/03/2011 11:23 AM, Abiel Reinhart wrote:
>>
>> I'm able to type plain text as you've suggested but I'm still unable
>> to get the alignment and spacing right. I can  type text to the right
>> of an equation on a given line, spacing it out from the equation using
>> something like \quad. However, then the annotations from different
>> lines of the equation won't necessarily align. Alternately I can add a
>> column to the aligned environment. That takes care of horizontal
>> alignment but unfortunately then I run into problems with spacing, as
>> there is little spacing between the annotation and the math part of
>> the equation. This can sometimes be solved by adding a blank column to
>> the aligned environment, but in other cases the blank column doesn't
>> seem to do much and may in fact affect the alignment in other columns.
>
> All of these things can happen, to be sure. But won't they happen with the
> plain LaTeX you mentioned
>
>> \begin{align*}
>>    h(x)&= \int_a^b{[f(x)+g(x)]dx}&&    \text{(Some annotation)}\\
>> &= \int_a^b{y(x)dx}&&    \text{(Another annotation)}
>> \end{align*}
>>
>
> just as well?
>
> Try this: Copy that very text and paste it into LyX (as plain text). Now
> highlight
> that same text and hit Ctrl-M. Look at View>Source to see what LyX will now
> generate.
>
> Richard
>
>


  1   2   3   4   5   6   7   8   >