Re: Equation
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
El jue, 22 sept 2022 a las 1:26, Carlos Knauer () escribió: > How do I highlight an equation in LyX? > To change the text 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
Re: Equation Center Alignment Relative to Beamer Frame
On Thu, Apr 6, 2017 at 8:32 AM, Paul A. Rubinwrote: > 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
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
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
On Wed, Apr 5, 2017 at 2:55 PM, Paul A. Rubinwrote: > 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
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
Re: Equation numbering variants
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
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
> Use \tag* instead: \stepcounter{equation}\tag*{(\theequation)\Delta} > > Guillaume > Beautiful! Thank you Guillaume! Best regards
Re: Equation numbering variants
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
Re: Equation editor (was Bounding box for pstricks graphics with LyX)
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 ViewOther formatsPDF (pdfcrop)? If this fails, export an example to PDF and try to crop with pdfcrop on the command line. Günter
Re: Equation editor (was Bounding box for pstricks graphics with LyX)
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 ViewOther formatsPDF (pdfcrop)? If this fails, export an example to PDF and try to crop with pdfcrop on the command line. Günter
Re: "Equation editor" (was Bounding box for pstricks graphics with LyX)
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
Re: Equation annotations in a multiline equation
On 10/02/2011 10:54 PM, David L. Johnson wrote: On 10/02/2011 08:27 PM, Abiel Reinhart wrote: I'm trying to understand how I can add annotations that sit to the right of each line of a multiline equation. For example, in a proof, such annotations might provide justification for each step in the proof. In pure LaTeX I could accomplish this like so: \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*}' However, I'm not sure how to achieve the same effect in LyX. Abiel Try, within an aligned environment, entering a standard inline math environment. This will give you a blue rectangle, and if you type something there, it will be in standard Roman text. It is a \text{} environment. Alternately, heck, you can type \text and hit the Enter key; you will then be in the text environment you want, but I have enter an inline math environment linked to F10, so I just hit F10. You can leave that environment by moving the cursor. This is normally bound to Ctrl-M. In math, it has the effect of introducing a text box. Richard
Re: Equation annotations in a multiline equation
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. On Mon, Oct 3, 2011 at 11:05 AM, Richard Heck rgh...@comcast.net wrote: On 10/02/2011 10:54 PM, David L. Johnson wrote: On 10/02/2011 08:27 PM, Abiel Reinhart wrote: I'm trying to understand how I can add annotations that sit to the right of each line of a multiline equation. For example, in a proof, such annotations might provide justification for each step in the proof. In pure LaTeX I could accomplish this like so: \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*}' However, I'm not sure how to achieve the same effect in LyX. Abiel Try, within an aligned environment, entering a standard inline math environment. This will give you a blue rectangle, and if you type something there, it will be in standard Roman text. It is a \text{} environment. Alternately, heck, you can type \text and hit the Enter key; you will then be in the text environment you want, but I have enter an inline math environment linked to F10, so I just hit F10. You can leave that environment by moving the cursor. This is normally bound to Ctrl-M. In math, it has the effect of introducing a text box. Richard
Re: Equation annotations in a multiline equation
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 ViewSource to see what LyX will now generate. Richard
Re: Equation annotations in a multiline equation
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 rgh...@comcast.net 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 ViewSource to see what LyX will now generate. Richard
Re: Equation annotations in a multiline equation
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
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
On 10/02/2011 10:54 PM, David L. Johnson wrote: On 10/02/2011 08:27 PM, Abiel Reinhart wrote: I'm trying to understand how I can add annotations that sit to the right of each line of a multiline equation. For example, in a proof, such annotations might provide justification for each step in the proof. In pure LaTeX I could accomplish this like so: \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*}' However, I'm not sure how to achieve the same effect in LyX. Abiel Try, within an aligned environment, entering a standard inline math environment. This will give you a blue rectangle, and if you type something there, it will be in standard Roman text. It is a \text{} environment. Alternately, heck, you can type \text and hit the Enter key; you will then be in the text environment you want, but I have enter an inline math environment linked to F10, so I just hit F10. You can leave that environment by moving the cursor. This is normally bound to Ctrl-M. In math, it has the effect of introducing a text box. Richard
Re: Equation annotations in a multiline equation
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. On Mon, Oct 3, 2011 at 11:05 AM, Richard Heck rgh...@comcast.net wrote: On 10/02/2011 10:54 PM, David L. Johnson wrote: On 10/02/2011 08:27 PM, Abiel Reinhart wrote: I'm trying to understand how I can add annotations that sit to the right of each line of a multiline equation. For example, in a proof, such annotations might provide justification for each step in the proof. In pure LaTeX I could accomplish this like so: \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*}' However, I'm not sure how to achieve the same effect in LyX. Abiel Try, within an aligned environment, entering a standard inline math environment. This will give you a blue rectangle, and if you type something there, it will be in standard Roman text. It is a \text{} environment. Alternately, heck, you can type \text and hit the Enter key; you will then be in the text environment you want, but I have enter an inline math environment linked to F10, so I just hit F10. You can leave that environment by moving the cursor. This is normally bound to Ctrl-M. In math, it has the effect of introducing a text box. Richard
Re: Equation annotations in a multiline equation
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 ViewSource to see what LyX will now generate. Richard
Re: Equation annotations in a multiline equation
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 rgh...@comcast.net 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 ViewSource to see what LyX will now generate. Richard
Re: Equation annotations in a multiline equation
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
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
On 10/02/2011 10:54 PM, David L. Johnson wrote: On 10/02/2011 08:27 PM, Abiel Reinhart wrote: I'm trying to understand how I can add annotations that sit to the right of each line of a multiline equation. For example, in a proof, such annotations might provide justification for each step in the proof. In pure LaTeX I could accomplish this like so: \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*}' However, I'm not sure how to achieve the same effect in LyX. Abiel Try, within an aligned environment, "entering" a standard inline math environment. This will give you a blue rectangle, and if you type something there, it will be in standard Roman text. It is a \text{} environment. Alternately, heck, you can type \text and hit the Enter key; you will then be in the text environment you want, but I have "enter an inline math environment" linked to F10, so I just hit F10. You can leave that environment by moving the cursor. This is normally bound to Ctrl-M. In math, it has the effect of introducing a text box. Richard
Re: Equation annotations in a multiline equation
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. On Mon, Oct 3, 2011 at 11:05 AM, Richard Heckwrote: > On 10/02/2011 10:54 PM, David L. Johnson wrote: >> >> On 10/02/2011 08:27 PM, Abiel Reinhart wrote: >>> >>> I'm trying to understand how I can add annotations that sit to the >>> right of each line of a multiline equation. For example, in a proof, >>> such annotations might provide justification for each step in the >>> proof. >>> >>> In pure LaTeX I could accomplish this like so: >>> >>> \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*}' >>> >>> However, I'm not sure how to achieve the same effect in LyX. >>> >>> Abiel >> >> Try, within an aligned environment, "entering" a standard inline math >> environment. This will give you a blue rectangle, and if you type something >> there, it will be in standard Roman text. It is a \text{} environment. >> Alternately, heck, you can type \text and hit the Enter key; you will then >> be in the text environment you want, but I have "enter an inline math >> environment" linked to F10, so I just hit F10. You can leave that >> environment by moving the cursor. >> > This is normally bound to Ctrl-M. In math, it has the effect of introducing > a text box. > > Richard > > >
Re: Equation annotations in a multiline equation
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
Re: Equation annotations in a multiline equation
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 Heckwrote: > 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 > >
Re: Equation annotations in a multiline equation
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
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
On 10/02/2011 08:27 PM, Abiel Reinhart wrote: I'm trying to understand how I can add annotations that sit to the right of each line of a multiline equation. For example, in a proof, such annotations might provide justification for each step in the proof. In pure LaTeX I could accomplish this like so: \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*}' However, I'm not sure how to achieve the same effect in LyX. Abiel Try, within an aligned environment, entering a standard inline math environment. This will give you a blue rectangle, and if you type something there, it will be in standard Roman text. It is a \text{} environment. Alternately, heck, you can type \text and hit the Enter key; you will then be in the text environment you want, but I have enter an inline math environment linked to F10, so I just hit F10. You can leave that environment by moving the cursor. -- David L. Johnson As far as the laws of mathematics refer to reality, they are not certain, and as far as they are certain, they do not refer to reality. -- Albert Einstein
Re: Equation annotations in a multiline equation
On 10/02/2011 08:27 PM, Abiel Reinhart wrote: I'm trying to understand how I can add annotations that sit to the right of each line of a multiline equation. For example, in a proof, such annotations might provide justification for each step in the proof. In pure LaTeX I could accomplish this like so: \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*}' However, I'm not sure how to achieve the same effect in LyX. Abiel Try, within an aligned environment, entering a standard inline math environment. This will give you a blue rectangle, and if you type something there, it will be in standard Roman text. It is a \text{} environment. Alternately, heck, you can type \text and hit the Enter key; you will then be in the text environment you want, but I have enter an inline math environment linked to F10, so I just hit F10. You can leave that environment by moving the cursor. -- David L. Johnson As far as the laws of mathematics refer to reality, they are not certain, and as far as they are certain, they do not refer to reality. -- Albert Einstein
Re: Equation annotations in a multiline equation
On 10/02/2011 08:27 PM, Abiel Reinhart wrote: I'm trying to understand how I can add annotations that sit to the right of each line of a multiline equation. For example, in a proof, such annotations might provide justification for each step in the proof. In pure LaTeX I could accomplish this like so: \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*}' However, I'm not sure how to achieve the same effect in LyX. Abiel Try, within an aligned environment, "entering" a standard inline math environment. This will give you a blue rectangle, and if you type something there, it will be in standard Roman text. It is a \text{} environment. Alternately, heck, you can type \text and hit the Enter key; you will then be in the text environment you want, but I have "enter an inline math environment" linked to F10, so I just hit F10. You can leave that environment by moving the cursor. -- David L. Johnson As far as the laws of mathematics refer to reality, they are not certain, and as far as they are certain, they do not refer to reality. -- Albert Einstein
Re: Equation numbering
alpking alpking at hotmail.com writes: Hello, I'm currently writing my master's thesis with Lyx and I have a question : Is it possible to number the equations without the number of the section before ? For now, when I insert a new numbered formula, it is numbered like that : (4.13), meaning the 13th equation in the fourth section. But I want it in the following format : (13), meaning the 13th equation of all the document. For info, I use Lyx 1.6.6.1 and the AMSmath package. Thanks in advance for your help See you, please, if the module Number Equations by Section is loaded in Document Settings. Then you can try to delete it. Some document classes load some modules by default. Maybe you are using one of these classes, e.g. book(AMS) You can find a detailed info about Formula Numbering in the section 19 of the Math manual in the Help menu Regards Ignacio
Re: Equation numbering
alpking alpking at hotmail.com writes: Hello, I'm currently writing my master's thesis with Lyx and I have a question : Is it possible to number the equations without the number of the section before ? For now, when I insert a new numbered formula, it is numbered like that : (4.13), meaning the 13th equation in the fourth section. But I want it in the following format : (13), meaning the 13th equation of all the document. For info, I use Lyx 1.6.6.1 and the AMSmath package. Thanks in advance for your help See you, please, if the module Number Equations by Section is loaded in Document Settings. Then you can try to delete it. Some document classes load some modules by default. Maybe you are using one of these classes, e.g. book(AMS) You can find a detailed info about Formula Numbering in the section 19 of the Math manual in the Help menu Regards Ignacio
Re: Equation numbering
alpking hotmail.com> writes: > > > Hello, > > I'm currently writing my master's thesis with Lyx and I have a question : > > Is it possible to number the equations without the number of the section > before ? For now, when I insert a new numbered formula, it is numbered like > that : (4.13), meaning the 13th equation in the fourth section. But I want > it in the following format : (13), meaning the 13th equation of all the > document. > > For info, I use Lyx 1.6.6.1 and the AMSmath package. > > Thanks in advance for your help See you, please, if the module "Number Equations by Section" is loaded in "Document Settings". Then you can try to delete it. Some document classes load some modules by default. Maybe you are using one of these classes, e.g. book(AMS) You can find a detailed info about Formula Numbering in the section 19 of the Math manual in the Help menu Regards Ignacio
Re: Equation in brackets too long
On 6/15/2010 6:41 AM, Michael Dzjaparidze wrote: Hi, I'm very new to Lyx and I have a problem I can't solve on my own. I've searched on the internet for a solution, but could not really find it, although it is pretty obvious I think. The problem is that I have several long mathematical expressions in brackets that don't get displayed fully (doesn't jump to a newline automatically). Is there a way to force a newline inside a bracket somehow? Thanks in advance, Michael Have a look at Help Math sections 18.1.3 and 18.1.4. /Paul
Re: Equation in brackets too long
On 06/15/2010 12:39 PM, Michael Dzjaparidze wrote: Hi Richard, I hope you dont mind me mailing you directly, but I'm not on the mailing list. That's fine, but I'll see it on the list, too. I tried to fake the brackets like you suggested. The strange thing is that in math mode you can make big single brackets (no delimitation) by typing \Bigggl [ for instance. This gives you a big square bracket, just like I want. However, when I now try to watch the result I get an error saying: undefined control sequence. If \Bigggl is defined, that will work, but it isn't. If you define it, as e.g. here http://www2.math.kyushu-u.ac.jp/~ssaito/eng/tex/tips.html then you can use it. If you just type e.g. \Big[, then it works. That seems rather strange to me... I mean, why does Lyx gives you this option, but then when it comes down to it throws an error??? LyX will let you do what you want as far as raw TeX goes, and it has no way to check it, except by attempting to compile the document. You want to type \this\is\undefined? LyX will let you do that. Maybe it's all defined in some package somewhere. I don't know if you can help any further, but I'm getting a bit frustrated and can't find any real usefull information about this on the web or in the Lyx documentation... I thought Lyx would make my life easier, but at the moment it is doing the opposite. LyX makes life easier by handling the simple stuff. What's true here, I think, is that it ought to be possible to produce single delimiters natively. Richard
Re: Equation in brackets too long
On 6/15/2010 6:41 AM, Michael Dzjaparidze wrote: Hi, I'm very new to Lyx and I have a problem I can't solve on my own. I've searched on the internet for a solution, but could not really find it, although it is pretty obvious I think. The problem is that I have several long mathematical expressions in brackets that don't get displayed fully (doesn't jump to a newline automatically). Is there a way to force a newline inside a bracket somehow? Thanks in advance, Michael Have a look at Help Math sections 18.1.3 and 18.1.4. /Paul
Re: Equation in brackets too long
On 06/15/2010 12:39 PM, Michael Dzjaparidze wrote: Hi Richard, I hope you dont mind me mailing you directly, but I'm not on the mailing list. That's fine, but I'll see it on the list, too. I tried to fake the brackets like you suggested. The strange thing is that in math mode you can make big single brackets (no delimitation) by typing \Bigggl [ for instance. This gives you a big square bracket, just like I want. However, when I now try to watch the result I get an error saying: undefined control sequence. If \Bigggl is defined, that will work, but it isn't. If you define it, as e.g. here http://www2.math.kyushu-u.ac.jp/~ssaito/eng/tex/tips.html then you can use it. If you just type e.g. \Big[, then it works. That seems rather strange to me... I mean, why does Lyx gives you this option, but then when it comes down to it throws an error??? LyX will let you do what you want as far as raw TeX goes, and it has no way to check it, except by attempting to compile the document. You want to type \this\is\undefined? LyX will let you do that. Maybe it's all defined in some package somewhere. I don't know if you can help any further, but I'm getting a bit frustrated and can't find any real usefull information about this on the web or in the Lyx documentation... I thought Lyx would make my life easier, but at the moment it is doing the opposite. LyX makes life easier by handling the simple stuff. What's true here, I think, is that it ought to be possible to produce single delimiters natively. Richard
Re: Equation in brackets too long
On 6/15/2010 6:41 AM, Michael Dzjaparidze wrote: Hi, I'm very new to Lyx and I have a problem I can't solve on my own. I've searched on the internet for a solution, but could not really find it, although it is pretty obvious I think. The problem is that I have several long mathematical expressions in brackets that don't get displayed fully (doesn't jump to a newline automatically). Is there a way to force a newline inside a bracket somehow? Thanks in advance, Michael Have a look at Help > Math sections 18.1.3 and 18.1.4. /Paul
Re: Equation in brackets too long
On 06/15/2010 12:39 PM, Michael Dzjaparidze wrote: Hi Richard, I hope you dont mind me mailing you directly, but I'm not on the mailing list. That's fine, but I'll see it on the list, too. I tried to "fake" the brackets like you suggested. The strange thing is that in math mode you can make big single brackets (no delimitation) by typing \Bigggl [ for instance. This gives you a big square bracket, just like I want. However, when I now try to watch the result I get an error saying: undefined control sequence. If \Bigggl is defined, that will work, but it isn't. If you define it, as e.g. here http://www2.math.kyushu-u.ac.jp/~ssaito/eng/tex/tips.html then you can use it. If you just type e.g. "\Big[", then it works. That seems rather strange to me... I mean, why does Lyx gives you this option, but then when it comes down to it throws an error??? LyX will let you do what you want as far as raw TeX goes, and it has no way to check it, except by attempting to compile the document. You want to type "\this\is\undefined"? LyX will let you do that. Maybe it's all defined in some package somewhere. I don't know if you can help any further, but I'm getting a bit frustrated and can't find any real usefull information about this on the web or in the Lyx documentation... I thought Lyx would make my life easier, but at the moment it is doing the opposite. LyX makes life easier by handling the simple stuff. What's true here, I think, is that it ought to be possible to produce single delimiters natively. Richard
Re: Equation Numbering change in RTL languages
Am 17.05.2010 21:49, schrieb Nosrat Maghsoudi: Greetings, I am using LyX to typeset a book in Farsi. Equation numbers change when referenced. For example (2-12), becomes (21-2). Please help if you have a solution. Can you please provide a LyX example file? I tried to reproduce with the attached LyX file, but there it seems to work correctly. regards Uwe newfile3.lyx Description: application/lyx
Re: Equation Numbering change in RTL languages
Am 17.05.2010 21:49, schrieb Nosrat Maghsoudi: Greetings, I am using LyX to typeset a book in Farsi. Equation numbers change when referenced. For example (2-12), becomes (21-2). Please help if you have a solution. Can you please provide a LyX example file? I tried to reproduce with the attached LyX file, but there it seems to work correctly. regards Uwe newfile3.lyx Description: application/lyx
Re: Equation Numbering change in RTL languages
Am 17.05.2010 21:49, schrieb Nosrat Maghsoudi: Greetings, I am using LyX to typeset a book in Farsi. Equation numbers change when referenced. For example (2-12), becomes (21-2). Please help if you have a solution. Can you please provide a LyX example file? I tried to reproduce with the attached LyX file, but there it seems to work correctly. regards Uwe newfile3.lyx Description: application/lyx
Re: equation and tikz problem
Giovanni Bacci wrote: Hi all! I'm experiencing a strange behaviour. A bug i suppose. Anyway, i cannot compile the attached simple document. Removing /usepackage{tikz} from the preamble makes everything goes fine. It's a bug? Or i doing something wrong? The document compiles fine for me. Jürgen
Re: equation and tikz problem
sabato 07 novembre 2009, 16:27, Jürgen Spitzmüller: Giovanni Bacci wrote: Hi all! I'm experiencing a strange behaviour. A bug i suppose. Anyway, i cannot compile the attached simple document. Removing /usepackage{tikz} from the preamble makes everything goes fine. It's a bug? Or i doing something wrong? The document compiles fine for me. I've tried exporting in pdflatex and doing pdflatex file.tex directly, and i get the attached error. Maybe it depends on pdflatex or pgf/tikz version? Or there's something misconfigured in my computer? Thanks, Giovanni tikz-bug-test.log.gz Description: GNU Zip compressed data
Re: equation and tikz problem
Giovanni Bacci wrote: Hi all! I'm experiencing a strange behaviour. A bug i suppose. Anyway, i cannot compile the attached simple document. Removing /usepackage{tikz} from the preamble makes everything goes fine. It's a bug? Or i doing something wrong? btw: lyx 1.6.4 on FedoraCore 10 pdflatex --version pdfTeX using libpoppler 3.141592-1.40.3-2.2 (Web2C 7.5.6) [...] Compiled with libpng 1.2.31; using libpng 1.2.37 Compiled with zlib 1.2.3; using zlib 1.2.3 Compiled with libpoppler version 3.00 Thanks, Giovanni It compiles for me (Win XP, MiKTeX 2.7), with one slight hitch. If I change the language to English, it compiles straight up. If I leave the language Italian, MiKTeX asks me at two or three separate points (the number seems to vary for no obvious reason) to install the LaTeX cyrillic package so that it can have a particular font. Each time I say no, and in the end it compiles anyway. Removing \usepackage{tikz} has no effect here. Does the LaTeX log indicate why it fails to compile for you? Do you have the cyrillic package installed? /Paul
Re: equation and tikz problem
Giovanni Bacci wrote: I've tried exporting in pdflatex and doing pdflatex file.tex directly, and i get the attached error. FYI this error log can also be obtained directly in LyX (Document - LaTeX Log File) Maybe it depends on pdflatex or pgf/tikz version? Or there's something misconfigured in my computer? Probably an old, buggy pgf version? Here is my file list (you get such a list in the log file by inserting \listfiles to the preamble): *File List* article.cls2007/10/19 v1.4h Standard LaTeX document class size10.clo2007/10/19 v1.4h Standard LaTeX file (size option) fontenc.sty t1enc.def2005/09/27 v1.99g Standard LaTeX file inputenc.sty2008/03/30 v1.1d Input encoding file latin9.def2008/03/30 v1.1d Input encoding file tikz.sty2008/02/13 v2.00 (rcs-revision 1.27) pgf.sty2008/01/15 v2.00 (rcs-revision 1.12) pgfrcs.sty2008/02/20 v2.00 (rcs-revision 1.21) pgfrcs.code.tex pgfcore.sty2008/01/15 v2.00 (rcs-revision 1.6) graphicx.sty1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR) keyval.sty1999/03/16 v1.13 key=value parser (DPC) graphics.sty2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR) trig.sty1999/03/16 v1.09 sin cos tan (DPC) graphics.cfg2009/08/28 v1.8 graphics configuration of TeX Live pdftex.def2009/08/25 v0.04m Graphics/color for pdfTeX pgfsys.sty2008/02/07 v2.00 (rcs-revision 1.31) pgfsys.code.tex pgfsyssoftpath.code.tex2008/01/23 (rcs-revision 1.6) pgfsysprotocol.code.tex2006/10/16 (rcs-revision 1.4) xcolor.sty2007/01/21 v2.11 LaTeX color extensions (UK) color.cfg2007/01/18 v1.5 color configuration of teTeX/TeXLive pgfcore.code.tex pgfcomp-version-0-65.sty2007/07/03 v2.00 (rcs-revision 1.7) pgfcomp-version-1-18.sty2007/07/23 v2.00 (rcs-revision 1.1) pgffor.sty2007/11/07 v2.00 (rcs-revision 1.8) pgffor.code.tex tikz.code.tex babel.sty2008/07/06 v3.8l The Babel package italian.ldf2008/03/14 v1.2t Italian support from the babel system supp-pdf.mkii *** Jürgen
Re: equation and tikz problem
sabato 07 novembre 2009, 16:42, Jürgen Spitzmüller: Giovanni Bacci wrote: I've tried exporting in pdflatex and doing pdflatex file.tex directly, and i get the attached error. FYI this error log can also be obtained directly in LyX (Document - LaTeX Log File) I'm not aware of this. Thank for the info. Maybe it depends on pdflatex or pgf/tikz version? Or there's something misconfigured in my computer? Probably an old, buggy pgf version? Here is my file list (you get such a list in the log file by inserting \listfiles to the preamble): Yes, probably it's the case. Here's: tikz.sty2006/10/17 v1.10 (rcs-revision 1.68) pgf.sty2006/10/11 v1.10 (rcs-revision 1.7) I'll try to upgrade. Thanks for pointing me in the right direction. Giovanni
Re: equation and tikz problem
Giovanni Bacci wrote: Hi all! I'm experiencing a strange behaviour. A bug i suppose. Anyway, i cannot compile the attached simple document. Removing /usepackage{tikz} from the preamble makes everything goes fine. It's a bug? Or i doing something wrong? The document compiles fine for me. Jürgen
Re: equation and tikz problem
sabato 07 novembre 2009, 16:27, Jürgen Spitzmüller: Giovanni Bacci wrote: Hi all! I'm experiencing a strange behaviour. A bug i suppose. Anyway, i cannot compile the attached simple document. Removing /usepackage{tikz} from the preamble makes everything goes fine. It's a bug? Or i doing something wrong? The document compiles fine for me. I've tried exporting in pdflatex and doing pdflatex file.tex directly, and i get the attached error. Maybe it depends on pdflatex or pgf/tikz version? Or there's something misconfigured in my computer? Thanks, Giovanni tikz-bug-test.log.gz Description: GNU Zip compressed data
Re: equation and tikz problem
Giovanni Bacci wrote: Hi all! I'm experiencing a strange behaviour. A bug i suppose. Anyway, i cannot compile the attached simple document. Removing /usepackage{tikz} from the preamble makes everything goes fine. It's a bug? Or i doing something wrong? btw: lyx 1.6.4 on FedoraCore 10 pdflatex --version pdfTeX using libpoppler 3.141592-1.40.3-2.2 (Web2C 7.5.6) [...] Compiled with libpng 1.2.31; using libpng 1.2.37 Compiled with zlib 1.2.3; using zlib 1.2.3 Compiled with libpoppler version 3.00 Thanks, Giovanni It compiles for me (Win XP, MiKTeX 2.7), with one slight hitch. If I change the language to English, it compiles straight up. If I leave the language Italian, MiKTeX asks me at two or three separate points (the number seems to vary for no obvious reason) to install the LaTeX cyrillic package so that it can have a particular font. Each time I say no, and in the end it compiles anyway. Removing \usepackage{tikz} has no effect here. Does the LaTeX log indicate why it fails to compile for you? Do you have the cyrillic package installed? /Paul
Re: equation and tikz problem
Giovanni Bacci wrote: I've tried exporting in pdflatex and doing pdflatex file.tex directly, and i get the attached error. FYI this error log can also be obtained directly in LyX (Document - LaTeX Log File) Maybe it depends on pdflatex or pgf/tikz version? Or there's something misconfigured in my computer? Probably an old, buggy pgf version? Here is my file list (you get such a list in the log file by inserting \listfiles to the preamble): *File List* article.cls2007/10/19 v1.4h Standard LaTeX document class size10.clo2007/10/19 v1.4h Standard LaTeX file (size option) fontenc.sty t1enc.def2005/09/27 v1.99g Standard LaTeX file inputenc.sty2008/03/30 v1.1d Input encoding file latin9.def2008/03/30 v1.1d Input encoding file tikz.sty2008/02/13 v2.00 (rcs-revision 1.27) pgf.sty2008/01/15 v2.00 (rcs-revision 1.12) pgfrcs.sty2008/02/20 v2.00 (rcs-revision 1.21) pgfrcs.code.tex pgfcore.sty2008/01/15 v2.00 (rcs-revision 1.6) graphicx.sty1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR) keyval.sty1999/03/16 v1.13 key=value parser (DPC) graphics.sty2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR) trig.sty1999/03/16 v1.09 sin cos tan (DPC) graphics.cfg2009/08/28 v1.8 graphics configuration of TeX Live pdftex.def2009/08/25 v0.04m Graphics/color for pdfTeX pgfsys.sty2008/02/07 v2.00 (rcs-revision 1.31) pgfsys.code.tex pgfsyssoftpath.code.tex2008/01/23 (rcs-revision 1.6) pgfsysprotocol.code.tex2006/10/16 (rcs-revision 1.4) xcolor.sty2007/01/21 v2.11 LaTeX color extensions (UK) color.cfg2007/01/18 v1.5 color configuration of teTeX/TeXLive pgfcore.code.tex pgfcomp-version-0-65.sty2007/07/03 v2.00 (rcs-revision 1.7) pgfcomp-version-1-18.sty2007/07/23 v2.00 (rcs-revision 1.1) pgffor.sty2007/11/07 v2.00 (rcs-revision 1.8) pgffor.code.tex tikz.code.tex babel.sty2008/07/06 v3.8l The Babel package italian.ldf2008/03/14 v1.2t Italian support from the babel system supp-pdf.mkii *** Jürgen
Re: equation and tikz problem
sabato 07 novembre 2009, 16:42, Jürgen Spitzmüller: Giovanni Bacci wrote: I've tried exporting in pdflatex and doing pdflatex file.tex directly, and i get the attached error. FYI this error log can also be obtained directly in LyX (Document - LaTeX Log File) I'm not aware of this. Thank for the info. Maybe it depends on pdflatex or pgf/tikz version? Or there's something misconfigured in my computer? Probably an old, buggy pgf version? Here is my file list (you get such a list in the log file by inserting \listfiles to the preamble): Yes, probably it's the case. Here's: tikz.sty2006/10/17 v1.10 (rcs-revision 1.68) pgf.sty2006/10/11 v1.10 (rcs-revision 1.7) I'll try to upgrade. Thanks for pointing me in the right direction. Giovanni
Re: equation and tikz problem
Giovanni Bacci wrote: > Hi all! I'm experiencing a strange behaviour. A bug i suppose. > Anyway, i cannot compile the attached simple document. > Removing /usepackage{tikz} from the preamble makes everything goes > fine. It's a bug? Or i doing something wrong? The document compiles fine for me. Jürgen
Re: equation and tikz problem
sabato 07 novembre 2009, 16:27, Jürgen Spitzmüller: > Giovanni Bacci wrote: > > Hi all! I'm experiencing a strange behaviour. A bug i suppose. > > Anyway, i cannot compile the attached simple document. > > Removing /usepackage{tikz} from the preamble makes everything goes > > fine. It's a bug? Or i doing something wrong? > > The document compiles fine for me. I've tried exporting in pdflatex and doing pdflatex file.tex directly, and i get the attached error. Maybe it depends on pdflatex or pgf/tikz version? Or there's something misconfigured in my computer? Thanks, Giovanni tikz-bug-test.log.gz Description: GNU Zip compressed data
Re: equation and tikz problem
Giovanni Bacci wrote: Hi all! I'm experiencing a strange behaviour. A bug i suppose. Anyway, i cannot compile the attached simple document. Removing /usepackage{tikz} from the preamble makes everything goes fine. It's a bug? Or i doing something wrong? btw: lyx 1.6.4 on FedoraCore 10 pdflatex --version pdfTeX using libpoppler 3.141592-1.40.3-2.2 (Web2C 7.5.6) [...] Compiled with libpng 1.2.31; using libpng 1.2.37 Compiled with zlib 1.2.3; using zlib 1.2.3 Compiled with libpoppler version 3.00 Thanks, Giovanni It compiles for me (Win XP, MiKTeX 2.7), with one slight hitch. If I change the language to English, it compiles straight up. If I leave the language Italian, MiKTeX asks me at two or three separate points (the number seems to vary for no obvious reason) to install the LaTeX cyrillic package so that it can have a particular font. Each time I say no, and in the end it compiles anyway. Removing \usepackage{tikz} has no effect here. Does the LaTeX log indicate why it fails to compile for you? Do you have the cyrillic package installed? /Paul
Re: equation and tikz problem
Giovanni Bacci wrote: > I've tried exporting in pdflatex and doing pdflatex file.tex > directly, and i get the attached error. FYI this error log can also be obtained directly in LyX (Document -> LaTeX Log File) > Maybe it depends on pdflatex or > pgf/tikz version? Or there's something misconfigured in my computer? Probably an old, buggy pgf version? Here is my file list (you get such a list in the log file by inserting \listfiles to the preamble): *File List* article.cls2007/10/19 v1.4h Standard LaTeX document class size10.clo2007/10/19 v1.4h Standard LaTeX file (size option) fontenc.sty t1enc.def2005/09/27 v1.99g Standard LaTeX file inputenc.sty2008/03/30 v1.1d Input encoding file latin9.def2008/03/30 v1.1d Input encoding file tikz.sty2008/02/13 v2.00 (rcs-revision 1.27) pgf.sty2008/01/15 v2.00 (rcs-revision 1.12) pgfrcs.sty2008/02/20 v2.00 (rcs-revision 1.21) pgfrcs.code.tex pgfcore.sty2008/01/15 v2.00 (rcs-revision 1.6) graphicx.sty1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR) keyval.sty1999/03/16 v1.13 key=value parser (DPC) graphics.sty2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR) trig.sty1999/03/16 v1.09 sin cos tan (DPC) graphics.cfg2009/08/28 v1.8 graphics configuration of TeX Live pdftex.def2009/08/25 v0.04m Graphics/color for pdfTeX pgfsys.sty2008/02/07 v2.00 (rcs-revision 1.31) pgfsys.code.tex pgfsyssoftpath.code.tex2008/01/23 (rcs-revision 1.6) pgfsysprotocol.code.tex2006/10/16 (rcs-revision 1.4) xcolor.sty2007/01/21 v2.11 LaTeX color extensions (UK) color.cfg2007/01/18 v1.5 color configuration of teTeX/TeXLive pgfcore.code.tex pgfcomp-version-0-65.sty2007/07/03 v2.00 (rcs-revision 1.7) pgfcomp-version-1-18.sty2007/07/23 v2.00 (rcs-revision 1.1) pgffor.sty2007/11/07 v2.00 (rcs-revision 1.8) pgffor.code.tex tikz.code.tex babel.sty2008/07/06 v3.8l The Babel package italian.ldf2008/03/14 v1.2t Italian support from the babel system supp-pdf.mkii *** Jürgen
Re: equation and tikz problem
sabato 07 novembre 2009, 16:42, Jürgen Spitzmüller: > Giovanni Bacci wrote: > > I've tried exporting in pdflatex and doing pdflatex file.tex > > directly, and i get the attached error. > > FYI this error log can also be obtained directly in LyX (Document -> > LaTeX Log File) I'm not aware of this. Thank for the info. > > Maybe it depends on pdflatex or > > pgf/tikz version? Or there's something misconfigured in my computer? > > Probably an old, buggy pgf version? Here is my file list (you get > such a list in the log file by inserting \listfiles to the preamble): Yes, probably it's the case. Here's: tikz.sty2006/10/17 v1.10 (rcs-revision 1.68) pgf.sty2006/10/11 v1.10 (rcs-revision 1.7) I'll try to upgrade. Thanks for pointing me in the right direction. Giovanni
Re: Equation Array
Julio Rojas jcredbe...@... writes: Dear all, is there a way to individually label some equations of an equation array? Or some rows from an array? - Julio Rojas jcredbe...@... Please have a look at HelpMath (or Ecuaciones) where you can find a very fine description of this issue in the section 19, 19.3 and/or 19.4. IG
Re: Equation Array
Thanks, I've already done that, but no option seems to be of help. I'm trying to put an integer programing model and every restriction should be numbered and aligned like: Maximize Z (1) Subject to: Z=sum(Xi) (2) Xi+Xj=1 for all i,j in P, ij (3) Xi,Xj in {0,1}for all i,j in P (4) So, some rows are numbered, the left column is left aligned and the right column is right aligned. How can this numbered array be done? - Julio Rojas jcredbe...@gmail.com 2009/9/2 Ignacio García ignacio.gmora...@gmail.com: Julio Rojas jcredbe...@... writes: Dear all, is there a way to individually label some equations of an equation array? Or some rows from an array? - Julio Rojas jcredbe...@... Please have a look at HelpMath (or Ecuaciones) where you can find a very fine description of this issue in the section 19, 19.3 and/or 19.4. IG
Re: Equation Array
Julio Rojas wrote: Thanks, I've already done that, but no option seems to be of help. I'm trying to put an integer programing model and every restriction should be numbered and aligned like: Maximize Z (1) Subject to: Z=sum(Xi) (2) Xi+Xj=1 for all i,j in P, ij (3) Xi,Xj in {0,1}for all i,j in P (4) So, some rows are numbered, the left column is left aligned and the right column is right aligned. How can this numbered array be done? - Julio Rojas jcredbe...@gmail.com 2009/9/2 Ignacio García ignacio.gmora...@gmail.com: Julio Rojas jcredbe...@... writes: Dear all, is there a way to individually label some equations of an equation array? Or some rows from an array? - Julio Rojas jcredbe...@... Please have a look at HelpMath (or Ecuaciones) where you can find a very fine description of this issue in the section 19, 19.3 and/or 19.4. Julio, Actually, I think what you want is in section 19.1. Inside an equation array environment, Alt-m n toggles numbering of the entire array (separate number on each line), while Alt-m Shift-n toggles numbering of just the line the cursor occupies. BTW, I too write integer programs. A while back I came across a reference to an article (Avoid eqnarray! by Lars Madsen, The PracTeX Journal #4, 2006) that claims that eqnarray is somehow evil. The complaints are mainly about spacing (including the possibility that equation numbers are overwritten or crowded off the line). He recommends AMS math environments or the mathenv package. Then again, I came across a post on sci.op-research that as I recall advocated eqnarray. Anyway, here's an alternative I found somewhere: \begin{alignat*}{7} \text{maximize } z=2x_{1}+3x_{2}+ 4x_{3}\\ \text{subject to: } 44x_{1}+50x_{3} \ge900\\ \llap{\ensuremath{x_{1},x_{2},x_{3}}} \ge0 \end{alignat*} FWIW, Paul
Re: Equation Array
Thanks Paul, I've tried it but the first column is right aligned and the third is left aligned. I'm kind of new on the subject and the references I have from a friend make them left and right aligned, respectively. Is there an standard way of aligning them? - Julio Rojas jcredbe...@gmail.com On Wed, Sep 2, 2009 at 5:11 PM, Paul A. Rubinru...@msu.edu wrote: Julio Rojas wrote: Thanks, I've already done that, but no option seems to be of help. I'm trying to put an integer programing model and every restriction should be numbered and aligned like: Maximize Z (1) Subject to: Z=sum(Xi) (2) Xi+Xj=1 for all i,j in P, ij (3) Xi,Xj in {0,1} for all i,j in P (4) So, some rows are numbered, the left column is left aligned and the right column is right aligned. How can this numbered array be done? - Julio Rojas jcredbe...@gmail.com 2009/9/2 Ignacio García ignacio.gmora...@gmail.com: Julio Rojas jcredbe...@... writes: Dear all, is there a way to individually label some equations of an equation array? Or some rows from an array? - Julio Rojas jcredbe...@... Please have a look at HelpMath (or Ecuaciones) where you can find a very fine description of this issue in the section 19, 19.3 and/or 19.4. Julio, Actually, I think what you want is in section 19.1. Inside an equation array environment, Alt-m n toggles numbering of the entire array (separate number on each line), while Alt-m Shift-n toggles numbering of just the line the cursor occupies. BTW, I too write integer programs. A while back I came across a reference to an article (Avoid eqnarray! by Lars Madsen, The PracTeX Journal #4, 2006) that claims that eqnarray is somehow evil. The complaints are mainly about spacing (including the possibility that equation numbers are overwritten or crowded off the line). He recommends AMS math environments or the mathenv package. Then again, I came across a post on sci.op-research that as I recall advocated eqnarray. Anyway, here's an alternative I found somewhere: \begin{alignat*}{7} \text{maximize } z= 2x_{1} + 3x_{2} + 4x_{3}\\ \text{subject to: } 44x_{1} + 50x_{3} \ge900\\ \llap{\ensuremath{x_{1},x_{2},x_{3}}} \ge0 \end{alignat*} FWIW, Paul
Re: Equation Array
Julio, Julio Rojas wrote: Thanks Paul, I've tried it but the first column is right aligned and the third is left aligned. In the alignat* example? Shouldn't be -- the alignment alternates right-left-right, so the first and third columns should have the same alignment. Note that the first column is intentionally left empty, so that the 'maximize' and 'subject to' are in the second column (and hence left-aligned). I'm kind of new on the subject and the references I have from a friend make them left and right aligned, respectively. Is there an standard way of aligning them? I'm not sure there's a generally accepted standard. I like to put the keywords (maximize, s.t.) in one column, the objective function and LHS of constraints in a second column, the constraint direction (=,,) in a third column, the RHS in the fourth column and any indexing stuff in a fifth column, so I usually use eqnarray (critics be damned). If I'm going to use alignat, then I'll put max/s.t. in column 2 (left aligned), the LHS _and_ =// in the third column (right aligned), the RHS in the fourth column (left aligned) and indexing in the fifth column (right aligned), which should work pretty well (it avoids gratuitous space in the middle of the constraints). I guess it's a matter of taste (unless the constraints get long enough that eqnarray sends the equation numbers into another galaxy). /Paul - Julio Rojas jcredbe...@gmail.com On Wed, Sep 2, 2009 at 5:11 PM, Paul A. Rubinru...@msu.edu wrote: Julio Rojas wrote: Thanks, I've already done that, but no option seems to be of help. I'm trying to put an integer programing model and every restriction should be numbered and aligned like: Maximize Z (1) Subject to: Z=sum(Xi) (2) Xi+Xj=1 for all i,j in P, ij (3) Xi,Xj in {0,1}for all i,j in P (4) So, some rows are numbered, the left column is left aligned and the right column is right aligned. How can this numbered array be done? - Julio Rojas jcredbe...@gmail.com 2009/9/2 Ignacio García ignacio.gmora...@gmail.com: Julio Rojas jcredbe...@... writes: Dear all, is there a way to individually label some equations of an equation array? Or some rows from an array? - Julio Rojas jcredbe...@... Please have a look at HelpMath (or Ecuaciones) where you can find a very fine description of this issue in the section 19, 19.3 and/or 19.4. Julio, Actually, I think what you want is in section 19.1. Inside an equation array environment, Alt-m n toggles numbering of the entire array (separate number on each line), while Alt-m Shift-n toggles numbering of just the line the cursor occupies. BTW, I too write integer programs. A while back I came across a reference to an article (Avoid eqnarray! by Lars Madsen, The PracTeX Journal #4, 2006) that claims that eqnarray is somehow evil. The complaints are mainly about spacing (including the possibility that equation numbers are overwritten or crowded off the line). He recommends AMS math environments or the mathenv package. Then again, I came across a post on sci.op-research that as I recall advocated eqnarray. Anyway, here's an alternative I found somewhere: \begin{alignat*}{7} \text{maximize } z=2x_{1}+3x_{2}+4x_{3}\\ \text{subject to: } 44x_{1}+50x_{3} \ge900\\ \llap{\ensuremath{x_{1},x_{2},x_{3}}} \ge0 \end{alignat*} FWIW, Paul
Re: Equation Array
I made it with eqarray, but it only allows me to have 3 columns. How did you add more columns? I tried using alignat and it works ok, except for the fact that LyX doesn't show proper alignment (only the first column is right aligned, while all of the others are left aligned. Thanks for your help. - Julio Rojas jcredbe...@gmail.com On Wed, Sep 2, 2009 at 6:00 PM, Paul A. Rubinru...@msu.edu wrote: Julio, Julio Rojas wrote: Thanks Paul, I've tried it but the first column is right aligned and the third is left aligned. In the alignat* example? Shouldn't be -- the alignment alternates right-left-right, so the first and third columns should have the same alignment. Note that the first column is intentionally left empty, so that the 'maximize' and 'subject to' are in the second column (and hence left-aligned). I'm kind of new on the subject and the references I have from a friend make them left and right aligned, respectively. Is there an standard way of aligning them? I'm not sure there's a generally accepted standard. I like to put the keywords (maximize, s.t.) in one column, the objective function and LHS of constraints in a second column, the constraint direction (=,,) in a third column, the RHS in the fourth column and any indexing stuff in a fifth column, so I usually use eqnarray (critics be damned). If I'm going to use alignat, then I'll put max/s.t. in column 2 (left aligned), the LHS _and_ =// in the third column (right aligned), the RHS in the fourth column (left aligned) and indexing in the fifth column (right aligned), which should work pretty well (it avoids gratuitous space in the middle of the constraints). I guess it's a matter of taste (unless the constraints get long enough that eqnarray sends the equation numbers into another galaxy). /Paul - Julio Rojas jcredbe...@gmail.com On Wed, Sep 2, 2009 at 5:11 PM, Paul A. Rubinru...@msu.edu wrote: Julio Rojas wrote: Thanks, I've already done that, but no option seems to be of help. I'm trying to put an integer programing model and every restriction should be numbered and aligned like: Maximize Z (1) Subject to: Z=sum(Xi) (2) Xi+Xj=1 for all i,j in P, ij (3) Xi,Xj in {0,1} for all i,j in P (4) So, some rows are numbered, the left column is left aligned and the right column is right aligned. How can this numbered array be done? - Julio Rojas jcredbe...@gmail.com 2009/9/2 Ignacio García ignacio.gmora...@gmail.com: Julio Rojas jcredbe...@... writes: Dear all, is there a way to individually label some equations of an equation array? Or some rows from an array? - Julio Rojas jcredbe...@... Please have a look at HelpMath (or Ecuaciones) where you can find a very fine description of this issue in the section 19, 19.3 and/or 19.4. Julio, Actually, I think what you want is in section 19.1. Inside an equation array environment, Alt-m n toggles numbering of the entire array (separate number on each line), while Alt-m Shift-n toggles numbering of just the line the cursor occupies. BTW, I too write integer programs. A while back I came across a reference to an article (Avoid eqnarray! by Lars Madsen, The PracTeX Journal #4, 2006) that claims that eqnarray is somehow evil. The complaints are mainly about spacing (including the possibility that equation numbers are overwritten or crowded off the line). He recommends AMS math environments or the mathenv package. Then again, I came across a post on sci.op-research that as I recall advocated eqnarray. Anyway, here's an alternative I found somewhere: \begin{alignat*}{7} \text{maximize } z= 2x_{1} + 3x_{2} + 4x_{3}\\ \text{subject to: } 44x_{1} + 50x_{3} \ge900\\ \llap{\ensuremath{x_{1},x_{2},x_{3}}} \ge0 \end{alignat*} FWIW, Paul
Re: Equation Array
Julio Rojas wrote: I made it with eqarray, but it only allows me to have 3 columns. How did you add more columns? Oops -- forgot about that. I'm not very consistent in what I use (I just went back and loaded some old papers to look). Sometimes I use eqnarray (which is locked into three columns), in which case I put maximize and subject to in the left column, indexing in the right column and everything else in the middle. Most times I create a display equation, then create an array with five columns, and go from there. I think I've used alignat once or twice. Seems to me there's some objection to using a plain old array, I think maybe relating to vertical space (not sure), but I'm not much concerned with aesthetics, and array is for me the easiest route. I tried using alignat and it works ok, except for the fact that LyX doesn't show proper alignment (only the first column is right aligned, while all of the others are left aligned. But it comes out right in the DVI/PDF output, which is all I worry about. Thanks for your help. My pleasure, Paul
Re: Equation Array
Julio Rojas jcredbe...@... writes: Dear all, is there a way to individually label some equations of an equation array? Or some rows from an array? - Julio Rojas jcredbe...@... Please have a look at HelpMath (or Ecuaciones) where you can find a very fine description of this issue in the section 19, 19.3 and/or 19.4. IG
Re: Equation Array
Thanks, I've already done that, but no option seems to be of help. I'm trying to put an integer programing model and every restriction should be numbered and aligned like: Maximize Z (1) Subject to: Z=sum(Xi) (2) Xi+Xj=1 for all i,j in P, ij (3) Xi,Xj in {0,1}for all i,j in P (4) So, some rows are numbered, the left column is left aligned and the right column is right aligned. How can this numbered array be done? - Julio Rojas jcredbe...@gmail.com 2009/9/2 Ignacio García ignacio.gmora...@gmail.com: Julio Rojas jcredbe...@... writes: Dear all, is there a way to individually label some equations of an equation array? Or some rows from an array? - Julio Rojas jcredbe...@... Please have a look at HelpMath (or Ecuaciones) where you can find a very fine description of this issue in the section 19, 19.3 and/or 19.4. IG
Re: Equation Array
Julio Rojas wrote: Thanks, I've already done that, but no option seems to be of help. I'm trying to put an integer programing model and every restriction should be numbered and aligned like: Maximize Z (1) Subject to: Z=sum(Xi) (2) Xi+Xj=1 for all i,j in P, ij (3) Xi,Xj in {0,1}for all i,j in P (4) So, some rows are numbered, the left column is left aligned and the right column is right aligned. How can this numbered array be done? - Julio Rojas jcredbe...@gmail.com 2009/9/2 Ignacio García ignacio.gmora...@gmail.com: Julio Rojas jcredbe...@... writes: Dear all, is there a way to individually label some equations of an equation array? Or some rows from an array? - Julio Rojas jcredbe...@... Please have a look at HelpMath (or Ecuaciones) where you can find a very fine description of this issue in the section 19, 19.3 and/or 19.4. Julio, Actually, I think what you want is in section 19.1. Inside an equation array environment, Alt-m n toggles numbering of the entire array (separate number on each line), while Alt-m Shift-n toggles numbering of just the line the cursor occupies. BTW, I too write integer programs. A while back I came across a reference to an article (Avoid eqnarray! by Lars Madsen, The PracTeX Journal #4, 2006) that claims that eqnarray is somehow evil. The complaints are mainly about spacing (including the possibility that equation numbers are overwritten or crowded off the line). He recommends AMS math environments or the mathenv package. Then again, I came across a post on sci.op-research that as I recall advocated eqnarray. Anyway, here's an alternative I found somewhere: \begin{alignat*}{7} \text{maximize } z=2x_{1}+3x_{2}+ 4x_{3}\\ \text{subject to: } 44x_{1}+50x_{3} \ge900\\ \llap{\ensuremath{x_{1},x_{2},x_{3}}} \ge0 \end{alignat*} FWIW, Paul
Re: Equation Array
Thanks Paul, I've tried it but the first column is right aligned and the third is left aligned. I'm kind of new on the subject and the references I have from a friend make them left and right aligned, respectively. Is there an standard way of aligning them? - Julio Rojas jcredbe...@gmail.com On Wed, Sep 2, 2009 at 5:11 PM, Paul A. Rubinru...@msu.edu wrote: Julio Rojas wrote: Thanks, I've already done that, but no option seems to be of help. I'm trying to put an integer programing model and every restriction should be numbered and aligned like: Maximize Z (1) Subject to: Z=sum(Xi) (2) Xi+Xj=1 for all i,j in P, ij (3) Xi,Xj in {0,1} for all i,j in P (4) So, some rows are numbered, the left column is left aligned and the right column is right aligned. How can this numbered array be done? - Julio Rojas jcredbe...@gmail.com 2009/9/2 Ignacio García ignacio.gmora...@gmail.com: Julio Rojas jcredbe...@... writes: Dear all, is there a way to individually label some equations of an equation array? Or some rows from an array? - Julio Rojas jcredbe...@... Please have a look at HelpMath (or Ecuaciones) where you can find a very fine description of this issue in the section 19, 19.3 and/or 19.4. Julio, Actually, I think what you want is in section 19.1. Inside an equation array environment, Alt-m n toggles numbering of the entire array (separate number on each line), while Alt-m Shift-n toggles numbering of just the line the cursor occupies. BTW, I too write integer programs. A while back I came across a reference to an article (Avoid eqnarray! by Lars Madsen, The PracTeX Journal #4, 2006) that claims that eqnarray is somehow evil. The complaints are mainly about spacing (including the possibility that equation numbers are overwritten or crowded off the line). He recommends AMS math environments or the mathenv package. Then again, I came across a post on sci.op-research that as I recall advocated eqnarray. Anyway, here's an alternative I found somewhere: \begin{alignat*}{7} \text{maximize } z= 2x_{1} + 3x_{2} + 4x_{3}\\ \text{subject to: } 44x_{1} + 50x_{3} \ge900\\ \llap{\ensuremath{x_{1},x_{2},x_{3}}} \ge0 \end{alignat*} FWIW, Paul
Re: Equation Array
Julio, Julio Rojas wrote: Thanks Paul, I've tried it but the first column is right aligned and the third is left aligned. In the alignat* example? Shouldn't be -- the alignment alternates right-left-right, so the first and third columns should have the same alignment. Note that the first column is intentionally left empty, so that the 'maximize' and 'subject to' are in the second column (and hence left-aligned). I'm kind of new on the subject and the references I have from a friend make them left and right aligned, respectively. Is there an standard way of aligning them? I'm not sure there's a generally accepted standard. I like to put the keywords (maximize, s.t.) in one column, the objective function and LHS of constraints in a second column, the constraint direction (=,,) in a third column, the RHS in the fourth column and any indexing stuff in a fifth column, so I usually use eqnarray (critics be damned). If I'm going to use alignat, then I'll put max/s.t. in column 2 (left aligned), the LHS _and_ =// in the third column (right aligned), the RHS in the fourth column (left aligned) and indexing in the fifth column (right aligned), which should work pretty well (it avoids gratuitous space in the middle of the constraints). I guess it's a matter of taste (unless the constraints get long enough that eqnarray sends the equation numbers into another galaxy). /Paul - Julio Rojas jcredbe...@gmail.com On Wed, Sep 2, 2009 at 5:11 PM, Paul A. Rubinru...@msu.edu wrote: Julio Rojas wrote: Thanks, I've already done that, but no option seems to be of help. I'm trying to put an integer programing model and every restriction should be numbered and aligned like: Maximize Z (1) Subject to: Z=sum(Xi) (2) Xi+Xj=1 for all i,j in P, ij (3) Xi,Xj in {0,1}for all i,j in P (4) So, some rows are numbered, the left column is left aligned and the right column is right aligned. How can this numbered array be done? - Julio Rojas jcredbe...@gmail.com 2009/9/2 Ignacio García ignacio.gmora...@gmail.com: Julio Rojas jcredbe...@... writes: Dear all, is there a way to individually label some equations of an equation array? Or some rows from an array? - Julio Rojas jcredbe...@... Please have a look at HelpMath (or Ecuaciones) where you can find a very fine description of this issue in the section 19, 19.3 and/or 19.4. Julio, Actually, I think what you want is in section 19.1. Inside an equation array environment, Alt-m n toggles numbering of the entire array (separate number on each line), while Alt-m Shift-n toggles numbering of just the line the cursor occupies. BTW, I too write integer programs. A while back I came across a reference to an article (Avoid eqnarray! by Lars Madsen, The PracTeX Journal #4, 2006) that claims that eqnarray is somehow evil. The complaints are mainly about spacing (including the possibility that equation numbers are overwritten or crowded off the line). He recommends AMS math environments or the mathenv package. Then again, I came across a post on sci.op-research that as I recall advocated eqnarray. Anyway, here's an alternative I found somewhere: \begin{alignat*}{7} \text{maximize } z=2x_{1}+3x_{2}+4x_{3}\\ \text{subject to: } 44x_{1}+50x_{3} \ge900\\ \llap{\ensuremath{x_{1},x_{2},x_{3}}} \ge0 \end{alignat*} FWIW, Paul
Re: Equation Array
I made it with eqarray, but it only allows me to have 3 columns. How did you add more columns? I tried using alignat and it works ok, except for the fact that LyX doesn't show proper alignment (only the first column is right aligned, while all of the others are left aligned. Thanks for your help. - Julio Rojas jcredbe...@gmail.com On Wed, Sep 2, 2009 at 6:00 PM, Paul A. Rubinru...@msu.edu wrote: Julio, Julio Rojas wrote: Thanks Paul, I've tried it but the first column is right aligned and the third is left aligned. In the alignat* example? Shouldn't be -- the alignment alternates right-left-right, so the first and third columns should have the same alignment. Note that the first column is intentionally left empty, so that the 'maximize' and 'subject to' are in the second column (and hence left-aligned). I'm kind of new on the subject and the references I have from a friend make them left and right aligned, respectively. Is there an standard way of aligning them? I'm not sure there's a generally accepted standard. I like to put the keywords (maximize, s.t.) in one column, the objective function and LHS of constraints in a second column, the constraint direction (=,,) in a third column, the RHS in the fourth column and any indexing stuff in a fifth column, so I usually use eqnarray (critics be damned). If I'm going to use alignat, then I'll put max/s.t. in column 2 (left aligned), the LHS _and_ =// in the third column (right aligned), the RHS in the fourth column (left aligned) and indexing in the fifth column (right aligned), which should work pretty well (it avoids gratuitous space in the middle of the constraints). I guess it's a matter of taste (unless the constraints get long enough that eqnarray sends the equation numbers into another galaxy). /Paul - Julio Rojas jcredbe...@gmail.com On Wed, Sep 2, 2009 at 5:11 PM, Paul A. Rubinru...@msu.edu wrote: Julio Rojas wrote: Thanks, I've already done that, but no option seems to be of help. I'm trying to put an integer programing model and every restriction should be numbered and aligned like: Maximize Z (1) Subject to: Z=sum(Xi) (2) Xi+Xj=1 for all i,j in P, ij (3) Xi,Xj in {0,1} for all i,j in P (4) So, some rows are numbered, the left column is left aligned and the right column is right aligned. How can this numbered array be done? - Julio Rojas jcredbe...@gmail.com 2009/9/2 Ignacio García ignacio.gmora...@gmail.com: Julio Rojas jcredbe...@... writes: Dear all, is there a way to individually label some equations of an equation array? Or some rows from an array? - Julio Rojas jcredbe...@... Please have a look at HelpMath (or Ecuaciones) where you can find a very fine description of this issue in the section 19, 19.3 and/or 19.4. Julio, Actually, I think what you want is in section 19.1. Inside an equation array environment, Alt-m n toggles numbering of the entire array (separate number on each line), while Alt-m Shift-n toggles numbering of just the line the cursor occupies. BTW, I too write integer programs. A while back I came across a reference to an article (Avoid eqnarray! by Lars Madsen, The PracTeX Journal #4, 2006) that claims that eqnarray is somehow evil. The complaints are mainly about spacing (including the possibility that equation numbers are overwritten or crowded off the line). He recommends AMS math environments or the mathenv package. Then again, I came across a post on sci.op-research that as I recall advocated eqnarray. Anyway, here's an alternative I found somewhere: \begin{alignat*}{7} \text{maximize } z= 2x_{1} + 3x_{2} + 4x_{3}\\ \text{subject to: } 44x_{1} + 50x_{3} \ge900\\ \llap{\ensuremath{x_{1},x_{2},x_{3}}} \ge0 \end{alignat*} FWIW, Paul
Re: Equation Array
Julio Rojas wrote: I made it with eqarray, but it only allows me to have 3 columns. How did you add more columns? Oops -- forgot about that. I'm not very consistent in what I use (I just went back and loaded some old papers to look). Sometimes I use eqnarray (which is locked into three columns), in which case I put maximize and subject to in the left column, indexing in the right column and everything else in the middle. Most times I create a display equation, then create an array with five columns, and go from there. I think I've used alignat once or twice. Seems to me there's some objection to using a plain old array, I think maybe relating to vertical space (not sure), but I'm not much concerned with aesthetics, and array is for me the easiest route. I tried using alignat and it works ok, except for the fact that LyX doesn't show proper alignment (only the first column is right aligned, while all of the others are left aligned. But it comes out right in the DVI/PDF output, which is all I worry about. Thanks for your help. My pleasure, Paul
Re: Equation Array
Julio Rojaswrites: > > Dear all, is there a way to individually label some equations of an > equation array? Or some rows from an array? > - > Julio Rojas > jcredbe...@... > Please have a look at Help>Math (or Ecuaciones) where you can find a very fine description of this issue in the section 19, 19.3 and/or 19.4. IG
Re: Equation Array
Thanks, I've already done that, but no option seems to be of help. I'm trying to put an integer programing model and every restriction should be numbered and aligned like: Maximize Z (1) Subject to: Z=sum(Xi) (2) Xi+Xj<=1 for all i,j in P, i: > Julio Rojaswrites: > >> >> Dear all, is there a way to individually label some equations of an >> equation array? Or some rows from an array? >> - >> Julio Rojas >> jcredbe...@... >> > > Please have a look at Help>Math (or Ecuaciones) where you can > find a very fine description of this issue in the section 19, > 19.3 and/or 19.4. > > IG > > > > > >
Re: Equation Array
Julio Rojas wrote: Thanks, I've already done that, but no option seems to be of help. I'm trying to put an integer programing model and every restriction should be numbered and aligned like: Maximize Z (1) Subject to: Z=sum(Xi) (2) Xi+Xj<=1 for all i,j in P, i: Julio Rojaswrites: Dear all, is there a way to individually label some equations of an equation array? Or some rows from an array? - Julio Rojas jcredbe...@... Please have a look at Help>Math (or Ecuaciones) where you can find a very fine description of this issue in the section 19, 19.3 and/or 19.4. Julio, Actually, I think what you want is in section 19.1. Inside an equation array environment, Alt-m n toggles numbering of the entire array (separate number on each line), while Alt-m Shift-n toggles numbering of just the line the cursor occupies. BTW, I too write integer programs. A while back I came across a reference to an article ("Avoid eqnarray!" by Lars Madsen, The PracTeX Journal #4, 2006) that claims that eqnarray is somehow evil. The complaints are mainly about spacing (including the possibility that equation numbers are overwritten or crowded off the line). He recommends AMS math environments or the mathenv package. Then again, I came across a post on sci.op-research that as I recall advocated eqnarray. Anyway, here's an alternative I found somewhere: \begin{alignat*}{7} & \text{maximize } & z= & & 2x_{1} & & + & & 3x_{2} & & + & & 4x_{3}\\ & \text{subject to: } & & & 44x_{1} & & & & & & + & & 50x_{3} & \ge900\\ & & & & & & & & & & & & \llap{\ensuremath{x_{1},x_{2},x_{3}}} & \ge0 \end{alignat*} FWIW, Paul
Re: Equation Array
Thanks Paul, I've tried it but the first column is right aligned and the third is left aligned. I'm kind of new on the subject and the references I have from a friend make them left and right aligned, respectively. Is there an standard way of aligning them? - Julio Rojas jcredbe...@gmail.com On Wed, Sep 2, 2009 at 5:11 PM, Paul A. Rubinwrote: > Julio Rojas wrote: >> >> Thanks, I've already done that, but no option seems to be of help. I'm >> trying to put an integer programing model and every restriction should >> be numbered and aligned like: >> >> Maximize Z (1) >> Subject to: >> Z=sum(Xi) (2) >> Xi+Xj<=1 for all i,j in P, i> Xi,Xj in {0,1} for all i,j in P (4) >> >> So, some rows are numbered, the left column is left aligned and the >> right column is right aligned. How can this numbered array be done? >> - >> Julio Rojas >> jcredbe...@gmail.com >> >> >> >> 2009/9/2 Ignacio García : >>> >>> Julio Rojas writes: >>> Dear all, is there a way to individually label some equations of an equation array? Or some rows from an array? - Julio Rojas jcredbe...@... >>> Please have a look at Help>Math (or Ecuaciones) where you can >>> find a very fine description of this issue in the section 19, >>> 19.3 and/or 19.4. >>> > > Julio, > > Actually, I think what you want is in section 19.1. Inside an equation > array environment, Alt-m n toggles numbering of the entire array (separate > number on each line), while Alt-m Shift-n toggles numbering of just the line > the cursor occupies. > > BTW, I too write integer programs. A while back I came across a reference > to an article ("Avoid eqnarray!" by Lars Madsen, The PracTeX Journal #4, > 2006) that claims that eqnarray is somehow evil. The complaints are mainly > about spacing (including the possibility that equation numbers are > overwritten or crowded off the line). He recommends AMS math environments > or the mathenv package. Then again, I came across a post on sci.op-research > that as I recall advocated eqnarray. > > Anyway, here's an alternative I found somewhere: > > \begin{alignat*}{7} > & \text{maximize } & z= & & 2x_{1} & & + & & 3x_{2} & & + & & 4x_{3}\\ > & \text{subject to: } & & & 44x_{1} & & & & & & + & & 50x_{3} & > \ge900\\ > & & & & & & & & & & & & \llap{\ensuremath{x_{1},x_{2},x_{3}}} & > \ge0 > \end{alignat*} > > FWIW, > Paul > >
Re: Equation Array
Julio, Julio Rojas wrote: Thanks Paul, I've tried it but the first column is right aligned and the third is left aligned. In the alignat* example? Shouldn't be -- the alignment alternates right-left-right, so the first and third columns should have the same alignment. Note that the first column is intentionally left empty, so that the 'maximize' and 'subject to' are in the second column (and hence left-aligned). I'm kind of new on the subject and the references I have from a friend make them left and right aligned, respectively. Is there an standard way of aligning them? I'm not sure there's a generally accepted standard. I like to put the keywords (maximize, s.t.) in one column, the objective function and LHS of constraints in a second column, the constraint direction (=,<,>) in a third column, the RHS in the fourth column and any indexing stuff in a fifth column, so I usually use eqnarray (critics be damned). If I'm going to use alignat, then I'll put max/s.t. in column 2 (left aligned), the LHS _and_ =/>/< in the third column (right aligned), the RHS in the fourth column (left aligned) and indexing in the fifth column (right aligned), which should work pretty well (it avoids gratuitous space in the middle of the constraints). I guess it's a matter of taste (unless the constraints get long enough that eqnarray sends the equation numbers into another galaxy). /Paul - Julio Rojas jcredbe...@gmail.com On Wed, Sep 2, 2009 at 5:11 PM, Paul A. Rubinwrote: Julio Rojas wrote: Thanks, I've already done that, but no option seems to be of help. I'm trying to put an integer programing model and every restriction should be numbered and aligned like: Maximize Z (1) Subject to: Z=sum(Xi) (2) Xi+Xj<=1 for all i,j in P, i: Julio Rojas writes: Dear all, is there a way to individually label some equations of an equation array? Or some rows from an array? - Julio Rojas jcredbe...@... Please have a look at Help>Math (or Ecuaciones) where you can find a very fine description of this issue in the section 19, 19.3 and/or 19.4. Julio, Actually, I think what you want is in section 19.1. Inside an equation array environment, Alt-m n toggles numbering of the entire array (separate number on each line), while Alt-m Shift-n toggles numbering of just the line the cursor occupies. BTW, I too write integer programs. A while back I came across a reference to an article ("Avoid eqnarray!" by Lars Madsen, The PracTeX Journal #4, 2006) that claims that eqnarray is somehow evil. The complaints are mainly about spacing (including the possibility that equation numbers are overwritten or crowded off the line). He recommends AMS math environments or the mathenv package. Then again, I came across a post on sci.op-research that as I recall advocated eqnarray. Anyway, here's an alternative I found somewhere: \begin{alignat*}{7} & \text{maximize } & z= & & 2x_{1} & & + & & 3x_{2} & & + & & 4x_{3}\\ & \text{subject to: } & & & 44x_{1} & & & & & & + & & 50x_{3} & \ge900\\ & & & & & & & & & & & & \llap{\ensuremath{x_{1},x_{2},x_{3}}} & \ge0 \end{alignat*} FWIW, Paul
Re: Equation Array
I made it with eqarray, but it "only" allows me to have 3 columns. How did you add more columns? I tried using alignat and it works ok, except for the fact that LyX doesn't show proper alignment (only the first column is right aligned, while all of the others are left aligned. Thanks for your help. - Julio Rojas jcredbe...@gmail.com On Wed, Sep 2, 2009 at 6:00 PM, Paul A. Rubinwrote: > Julio, > > Julio Rojas wrote: >> >> Thanks Paul, I've tried it but the first column is right aligned and >> the third is left aligned. > > In the alignat* example? Shouldn't be -- the alignment alternates > right-left-right, so the first and third columns should have the same > alignment. Note that the first column is intentionally left empty, so that > the 'maximize' and 'subject to' are in the second column (and hence > left-aligned). > >> I'm kind of new on the subject and the >> references I have from a friend make them left and right aligned, >> respectively. Is there an standard way of aligning them? > > I'm not sure there's a generally accepted standard. I like to put the > keywords (maximize, s.t.) in one column, the objective function and LHS of > constraints in a second column, the constraint direction (=,<,>) in a third > column, the RHS in the fourth column and any indexing stuff in a fifth > column, so I usually use eqnarray (critics be damned). If I'm going to use > alignat, then I'll put max/s.t. in column 2 (left aligned), the LHS _and_ > =/>/< in the third column (right aligned), the RHS in the fourth column > (left aligned) and indexing in the fifth column (right aligned), which > should work pretty well (it avoids gratuitous space in the middle of the > constraints). > > I guess it's a matter of taste (unless the constraints get long enough that > eqnarray sends the equation numbers into another galaxy). > > /Paul > >> - >> Julio Rojas >> jcredbe...@gmail.com >> >> >> >> On Wed, Sep 2, 2009 at 5:11 PM, Paul A. Rubin wrote: >>> >>> Julio Rojas wrote: Thanks, I've already done that, but no option seems to be of help. I'm trying to put an integer programing model and every restriction should be numbered and aligned like: Maximize Z (1) Subject to: Z=sum(Xi) (2) Xi+Xj<=1 for all i,j in P, i>>> Xi,Xj in {0,1} for all i,j in P (4) So, some rows are numbered, the left column is left aligned and the right column is right aligned. How can this numbered array be done? - Julio Rojas jcredbe...@gmail.com 2009/9/2 Ignacio García : > > Julio Rojas writes: > >> Dear all, is there a way to individually label some equations of an >> equation array? Or some rows from an array? >> - >> Julio Rojas >> jcredbe...@... >> > Please have a look at Help>Math (or Ecuaciones) where you can > find a very fine description of this issue in the section 19, > 19.3 and/or 19.4. > >>> Julio, >>> >>> Actually, I think what you want is in section 19.1. Inside an equation >>> array environment, Alt-m n toggles numbering of the entire array >>> (separate >>> number on each line), while Alt-m Shift-n toggles numbering of just the >>> line >>> the cursor occupies. >>> >>> BTW, I too write integer programs. A while back I came across a >>> reference >>> to an article ("Avoid eqnarray!" by Lars Madsen, The PracTeX Journal #4, >>> 2006) that claims that eqnarray is somehow evil. The complaints are >>> mainly >>> about spacing (including the possibility that equation numbers are >>> overwritten or crowded off the line). He recommends AMS math >>> environments >>> or the mathenv package. Then again, I came across a post on >>> sci.op-research >>> that as I recall advocated eqnarray. >>> >>> Anyway, here's an alternative I found somewhere: >>> >>> \begin{alignat*}{7} >>> & \text{maximize } & z= & & 2x_{1} & & + & & 3x_{2} & & + & & >>> 4x_{3}\\ >>> & \text{subject to: } & & & 44x_{1} & & & & & & + & & 50x_{3} & >>> \ge900\\ >>> & & & & & & & & & & & & \llap{\ensuremath{x_{1},x_{2},x_{3}}} >>> & >>> \ge0 >>> \end{alignat*} >>> >>> FWIW, >>> Paul >>> >>> >> > >
Re: Equation Array
Julio Rojas wrote: I made it with eqarray, but it "only" allows me to have 3 columns. How did you add more columns? Oops -- forgot about that. I'm not very consistent in what I use (I just went back and loaded some old papers to look). Sometimes I use eqnarray (which is locked into three columns), in which case I put "maximize" and "subject to" in the left column, indexing in the right column and everything else in the middle. Most times I create a display equation, then create an array with five columns, and go from there. I think I've used alignat once or twice. Seems to me there's some objection to using a plain old array, I think maybe relating to vertical space (not sure), but I'm not much concerned with aesthetics, and array is for me the easiest route. I tried using alignat and it works ok, except for the fact that LyX doesn't show proper alignment (only the first column is right aligned, while all of the others are left aligned. But it comes out right in the DVI/PDF output, which is all I worry about. Thanks for your help. My pleasure, Paul
Re: Equation
On Aug 22, 2009, at 9:36 AM, Alexis Salcedo wrote: Hello. How do I align the equation, with item 1? See attached file. Thanks Can you be more specific? What do you men by align?
Re: Equation
Alexis Salcedo wrote: Hello. How do I align the equation, with item 1? See attached file. Thanks Is this what you had in mind? (Disclaimer: horrible kludge. LaTeX purists, please don't hate me!) /Paul ECUACIÓN2.lyx Description: application/lyx
Re: Equation
On Aug 22, 2009, at 9:36 AM, Alexis Salcedo wrote: Hello. How do I align the equation, with item 1? See attached file. Thanks Can you be more specific? What do you men by align?
Re: Equation
Alexis Salcedo wrote: Hello. How do I align the equation, with item 1? See attached file. Thanks Is this what you had in mind? (Disclaimer: horrible kludge. LaTeX purists, please don't hate me!) /Paul ECUACIÓN2.lyx Description: application/lyx
Re: Equation
On Aug 22, 2009, at 9:36 AM, Alexis Salcedo wrote: Hello. How do I align the equation, with item 1? See attached file. Thanks Can you be more specific? What do you men by "align?"
Re: Equation
Alexis Salcedo wrote: Hello. How do I align the equation, with item 1? See attached file. Thanks Is this what you had in mind? (Disclaimer: horrible kludge. LaTeX purists, please don't hate me!) /Paul ECUACIÓN2.lyx Description: application/lyx
Re: Equation numbering
HI Paula Piece of cake. In LyX, go into Document - Settings. On the Document Class page there is an area for class options. Put leqno in the custom options box and it will use the leqno LaTeX option which puts equations on the left. -Neil = Neil Hepburn, Economics Instructor Department of Social Sciences, Augustana Faculty University of Alberta 4901-46 Avenue Camrose, Alberta T4V 2R3 Phone (780) 679-1588 email [EMAIL PROTECTED] On 26-Nov-08, at 7:36 PM, Paulina Restrepo wrote: Hi, I use Lyx 1.5.1 on Mac OS. Right now I have all my equations numbered but the label appears to the far right of the equation, I'm wondering if its possible to make the label appear at the far left of the equation. Thank you very much for your help, Paulina
Re: Equation numbering
HI Paula Piece of cake. In LyX, go into Document - Settings. On the Document Class page there is an area for class options. Put leqno in the custom options box and it will use the leqno LaTeX option which puts equations on the left. -Neil = Neil Hepburn, Economics Instructor Department of Social Sciences, Augustana Faculty University of Alberta 4901-46 Avenue Camrose, Alberta T4V 2R3 Phone (780) 679-1588 email [EMAIL PROTECTED] On 26-Nov-08, at 7:36 PM, Paulina Restrepo wrote: Hi, I use Lyx 1.5.1 on Mac OS. Right now I have all my equations numbered but the label appears to the far right of the equation, I'm wondering if its possible to make the label appear at the far left of the equation. Thank you very much for your help, Paulina
Re: Equation numbering
HI Paula Piece of cake. In LyX, go into Document -> Settings. On the "Document Class" page there is an area for class options. Put leqno in the custom options box and it will use the leqno LaTeX option which puts equations on the left. -Neil = Neil Hepburn, Economics Instructor Department of Social Sciences, Augustana Faculty University of Alberta 4901-46 Avenue Camrose, Alberta T4V 2R3 Phone (780) 679-1588 email [EMAIL PROTECTED] On 26-Nov-08, at 7:36 PM, Paulina Restrepo wrote: Hi, I use Lyx 1.5.1 on Mac OS. Right now I have all my equations numbered but the label appears to the far right of the equation, I'm wondering if its possible to make the label appear at the far left of the equation. Thank you very much for your help, Paulina
Re: Equation array and two column layout
Hello Julio, i do not know if i've understood your question. Anyway, probably you can be interested one of this... First solution: press CTRL+L entering in ERT mode and then: \begin{eqnarray} d = a + b, if a1 \nonumber \\ = a-b, if a1 \nonumber \\ =0, if a=1 \nonumber \end{eqnarray} Second solution (i think better for you): press CTRL+L entering in ERT mode and then: $$ d = \left\{ \begin{array}{rl} a+b \mbox{ if a1} \\ a-b \mbox{ if a1} \\ 0 \mbox{ if a=1} \\ \end{array} \right. $$ I hope it'll be usefull for you. Bye, Vittorio On Tue, Nov 25, 2008 at 1:01 PM, Julio Rojas [EMAIL PROTECTED] wrote: Dear all, I'm finishing a paper with the two columned article class. I have a problem with some equation arrays that are two big for this format. They span over the other column or over the margins, even with an smaller font (\scriptstyle). What can I do to solve this problem? Should I use an even smaller font (\scriptscriptstyle)? How can I break the line in an equation array and put the right hand of the array under the first part, but slightly to the right? The kind of equation array I'm using is conditional: d= a+b, if a1 a-b, if a1 0,if a=1 Hope you can help me. - Julio Rojas [EMAIL PROTECTED] -- Vittorio Zuccalà
Re: Equation array and two column layout
Thank you Vittorio. What I would like with this matrix is that the right column can overfill the left one and viceversa. That way I can have the long equations and the cases in two lines (eq. on the left column, cases on the right column) every other line. d= a+b+c+d+e+f+g if a,b,c,d,e,f,g 1 a-b-c-d-e-f-g if a,b,c,d,e,f,g1 With this arrangement I can include the equations in just one column of the two column paper. Is this something usual to do? What is the regular way of handling the case of a series of long equations in two columned papers? Thanks in advance. - Julio Rojas [EMAIL PROTECTED] On Tue, Nov 25, 2008 at 2:50 PM, Vittorio Zuccala' [EMAIL PROTECTED] wrote: Hello Julio, i do not know if i've understood your question. Anyway, probably you can be interested one of this... First solution: press CTRL+L entering in ERT mode and then: \begin{eqnarray} d = a + b, if a1 \nonumber \\ = a-b, if a1 \nonumber \\ =0, if a=1 \nonumber \end{eqnarray} Second solution (i think better for you): press CTRL+L entering in ERT mode and then: $$ d = \left\{ \begin{array}{rl} a+b \mbox{ if a1} \\ a-b \mbox{ if a1} \\ 0 \mbox{ if a=1} \\ \end{array} \right. $$ I hope it'll be usefull for you. Bye, Vittorio On Tue, Nov 25, 2008 at 1:01 PM, Julio Rojas [EMAIL PROTECTED] wrote: Dear all, I'm finishing a paper with the two columned article class. I have a problem with some equation arrays that are two big for this format. They span over the other column or over the margins, even with an smaller font (\scriptstyle). What can I do to solve this problem? Should I use an even smaller font (\scriptscriptstyle)? How can I break the line in an equation array and put the right hand of the array under the first part, but slightly to the right? The kind of equation array I'm using is conditional: d= a+b, if a1 a-b, if a1 0,if a=1 Hope you can help me. - Julio Rojas [EMAIL PROTECTED] -- Vittorio Zuccalà
Re: Equation array and two column layout
Thanks Vittorio, but this solution is not the one I'm looking for. I would like the right column to be right aligned and the left column to be left aligned. When I do that with your solution (changing the rl to lr) this turns our to be the original matrix I started with. As I said, I need the right column to overfill the left one in order to make the equation fit inside one column of the document. Anyways, thank you very much. - Julio Rojas [EMAIL PROTECTED] On Tue, Nov 25, 2008 at 4:48 PM, Vittorio Zuccala' [EMAIL PROTECTED] wrote: If you have to go to another line, you may use \\ in ERT and you may use \: to have additional space. In this way un can use in ERT mode: $$ d = \left\{ \begin{array}{rl} a+b+c+d+e+f+g \\ \: \mbox{ if a,b,c,d,e,f,g 1} \\ a-b-c-d-e-f-g \\ \: \mbox{ if a,b,c,d,e,f,g1} \\ 0 \mbox{ if a=1} \\ \: \end{array} \right. $$ I hope this will be usefull. Bye, Vittorio On Tue, Nov 25, 2008 at 4:18 PM, Julio Rojas [EMAIL PROTECTED] wrote: Thank you Vittorio. What I would like with this matrix is that the right column can overfill the left one and viceversa. That way I can have the long equations and the cases in two lines (eq. on the left column, cases on the right column) every other line. d= a+b+c+d+e+f+g if a,b,c,d,e,f,g 1 a-b-c-d-e-f-g if a,b,c,d,e,f,g1 With this arrangement I can include the equations in just one column of the two column paper. Is this something usual to do? What is the regular way of handling the case of a series of long equations in two columned papers? Thanks in advance. - Julio Rojas [EMAIL PROTECTED] On Tue, Nov 25, 2008 at 2:50 PM, Vittorio Zuccala' [EMAIL PROTECTED] wrote: Hello Julio, i do not know if i've understood your question. Anyway, probably you can be interested one of this... First solution: press CTRL+L entering in ERT mode and then: \begin{eqnarray} d = a + b, if a1 \nonumber \\ = a-b, if a1 \nonumber \\ =0, if a=1 \nonumber \end{eqnarray} Second solution (i think better for you): press CTRL+L entering in ERT mode and then: $$ d = \left\{ \begin{array}{rl} a+b \mbox{ if a1} \\ a-b \mbox{ if a1} \\ 0 \mbox{ if a=1} \\ \end{array} \right. $$ I hope it'll be usefull for you. Bye, Vittorio On Tue, Nov 25, 2008 at 1:01 PM, Julio Rojas [EMAIL PROTECTED] wrote: Dear all, I'm finishing a paper with the two columned article class. I have a problem with some equation arrays that are two big for this format. They span over the other column or over the margins, even with an smaller font (\scriptstyle). What can I do to solve this problem? Should I use an even smaller font (\scriptscriptstyle)? How can I break the line in an equation array and put the right hand of the array under the first part, but slightly to the right? The kind of equation array I'm using is conditional: d= a+b, if a1 a-b, if a1 0,if a=1 Hope you can help me. - Julio Rojas [EMAIL PROTECTED] -- Vittorio Zuccalà -- Vittorio Zuccalà
Re: Equation array and two column layout
Hello Julio, i do not know if i've understood your question. Anyway, probably you can be interested one of this... First solution: press CTRL+L entering in ERT mode and then: \begin{eqnarray} d = a + b, if a1 \nonumber \\ = a-b, if a1 \nonumber \\ =0, if a=1 \nonumber \end{eqnarray} Second solution (i think better for you): press CTRL+L entering in ERT mode and then: $$ d = \left\{ \begin{array}{rl} a+b \mbox{ if a1} \\ a-b \mbox{ if a1} \\ 0 \mbox{ if a=1} \\ \end{array} \right. $$ I hope it'll be usefull for you. Bye, Vittorio On Tue, Nov 25, 2008 at 1:01 PM, Julio Rojas [EMAIL PROTECTED] wrote: Dear all, I'm finishing a paper with the two columned article class. I have a problem with some equation arrays that are two big for this format. They span over the other column or over the margins, even with an smaller font (\scriptstyle). What can I do to solve this problem? Should I use an even smaller font (\scriptscriptstyle)? How can I break the line in an equation array and put the right hand of the array under the first part, but slightly to the right? The kind of equation array I'm using is conditional: d= a+b, if a1 a-b, if a1 0,if a=1 Hope you can help me. - Julio Rojas [EMAIL PROTECTED] -- Vittorio Zuccalà
Re: Equation array and two column layout
Thank you Vittorio. What I would like with this matrix is that the right column can overfill the left one and viceversa. That way I can have the long equations and the cases in two lines (eq. on the left column, cases on the right column) every other line. d= a+b+c+d+e+f+g if a,b,c,d,e,f,g 1 a-b-c-d-e-f-g if a,b,c,d,e,f,g1 With this arrangement I can include the equations in just one column of the two column paper. Is this something usual to do? What is the regular way of handling the case of a series of long equations in two columned papers? Thanks in advance. - Julio Rojas [EMAIL PROTECTED] On Tue, Nov 25, 2008 at 2:50 PM, Vittorio Zuccala' [EMAIL PROTECTED] wrote: Hello Julio, i do not know if i've understood your question. Anyway, probably you can be interested one of this... First solution: press CTRL+L entering in ERT mode and then: \begin{eqnarray} d = a + b, if a1 \nonumber \\ = a-b, if a1 \nonumber \\ =0, if a=1 \nonumber \end{eqnarray} Second solution (i think better for you): press CTRL+L entering in ERT mode and then: $$ d = \left\{ \begin{array}{rl} a+b \mbox{ if a1} \\ a-b \mbox{ if a1} \\ 0 \mbox{ if a=1} \\ \end{array} \right. $$ I hope it'll be usefull for you. Bye, Vittorio On Tue, Nov 25, 2008 at 1:01 PM, Julio Rojas [EMAIL PROTECTED] wrote: Dear all, I'm finishing a paper with the two columned article class. I have a problem with some equation arrays that are two big for this format. They span over the other column or over the margins, even with an smaller font (\scriptstyle). What can I do to solve this problem? Should I use an even smaller font (\scriptscriptstyle)? How can I break the line in an equation array and put the right hand of the array under the first part, but slightly to the right? The kind of equation array I'm using is conditional: d= a+b, if a1 a-b, if a1 0,if a=1 Hope you can help me. - Julio Rojas [EMAIL PROTECTED] -- Vittorio Zuccalà
Re: Equation array and two column layout
Thanks Vittorio, but this solution is not the one I'm looking for. I would like the right column to be right aligned and the left column to be left aligned. When I do that with your solution (changing the rl to lr) this turns our to be the original matrix I started with. As I said, I need the right column to overfill the left one in order to make the equation fit inside one column of the document. Anyways, thank you very much. - Julio Rojas [EMAIL PROTECTED] On Tue, Nov 25, 2008 at 4:48 PM, Vittorio Zuccala' [EMAIL PROTECTED] wrote: If you have to go to another line, you may use \\ in ERT and you may use \: to have additional space. In this way un can use in ERT mode: $$ d = \left\{ \begin{array}{rl} a+b+c+d+e+f+g \\ \: \mbox{ if a,b,c,d,e,f,g 1} \\ a-b-c-d-e-f-g \\ \: \mbox{ if a,b,c,d,e,f,g1} \\ 0 \mbox{ if a=1} \\ \: \end{array} \right. $$ I hope this will be usefull. Bye, Vittorio On Tue, Nov 25, 2008 at 4:18 PM, Julio Rojas [EMAIL PROTECTED] wrote: Thank you Vittorio. What I would like with this matrix is that the right column can overfill the left one and viceversa. That way I can have the long equations and the cases in two lines (eq. on the left column, cases on the right column) every other line. d= a+b+c+d+e+f+g if a,b,c,d,e,f,g 1 a-b-c-d-e-f-g if a,b,c,d,e,f,g1 With this arrangement I can include the equations in just one column of the two column paper. Is this something usual to do? What is the regular way of handling the case of a series of long equations in two columned papers? Thanks in advance. - Julio Rojas [EMAIL PROTECTED] On Tue, Nov 25, 2008 at 2:50 PM, Vittorio Zuccala' [EMAIL PROTECTED] wrote: Hello Julio, i do not know if i've understood your question. Anyway, probably you can be interested one of this... First solution: press CTRL+L entering in ERT mode and then: \begin{eqnarray} d = a + b, if a1 \nonumber \\ = a-b, if a1 \nonumber \\ =0, if a=1 \nonumber \end{eqnarray} Second solution (i think better for you): press CTRL+L entering in ERT mode and then: $$ d = \left\{ \begin{array}{rl} a+b \mbox{ if a1} \\ a-b \mbox{ if a1} \\ 0 \mbox{ if a=1} \\ \end{array} \right. $$ I hope it'll be usefull for you. Bye, Vittorio On Tue, Nov 25, 2008 at 1:01 PM, Julio Rojas [EMAIL PROTECTED] wrote: Dear all, I'm finishing a paper with the two columned article class. I have a problem with some equation arrays that are two big for this format. They span over the other column or over the margins, even with an smaller font (\scriptstyle). What can I do to solve this problem? Should I use an even smaller font (\scriptscriptstyle)? How can I break the line in an equation array and put the right hand of the array under the first part, but slightly to the right? The kind of equation array I'm using is conditional: d= a+b, if a1 a-b, if a1 0,if a=1 Hope you can help me. - Julio Rojas [EMAIL PROTECTED] -- Vittorio Zuccalà -- Vittorio Zuccalà
Re: Equation array and two column layout
Hello Julio, i do not know if i've understood your question. Anyway, probably you can be interested one of this... First solution: press CTRL+L entering in ERT mode and then: \begin{eqnarray} d &=& a + b, if a>1 \nonumber \\ &=& a-b, if a<1 \nonumber \\ &=&0, if a=1 \nonumber \end{eqnarray} Second solution (i think better for you): press CTRL+L entering in ERT mode and then: $$ d = \left\{ \begin{array}{rl} a+b &\mbox{ if a>1} \\ a-b &\mbox{ if a<1} \\ 0 &\mbox{ if a=1} \\ \end{array} \right. $$ I hope it'll be usefull for you. Bye, Vittorio On Tue, Nov 25, 2008 at 1:01 PM, Julio Rojas <[EMAIL PROTECTED]> wrote: > Dear all, I'm finishing a paper with the two columned article class. I > have a problem with some equation arrays that are two big for this > format. They span over the other column or over the margins, even with > an smaller font (\scriptstyle). What can I do to solve this problem? > Should I use an even smaller font (\scriptscriptstyle)? How can I > break the line in an equation array and put the right hand of the > array under the first part, but slightly to the right? > > The kind of equation array I'm using is conditional: > > d= a+b, if a>1 > a-b, if a<1 > 0,if a=1 > > Hope you can help me. > - > Julio Rojas > [EMAIL PROTECTED] > -- Vittorio Zuccalà
Re: Equation array and two column layout
Thank you Vittorio. What I would like with this matrix is that the right column can overfill the left one and viceversa. That way I can have the long equations and the cases in two lines (eq. on the left column, cases on the right column) every other line. d= a+b+c+d+e+f+g if a,b,c,d,e,f,g >1 a-b-c-d-e-f-g if a,b,c,d,e,f,g<1 With this arrangement I can include the equations in just one column of the two column paper. Is this something usual to do? What is the "regular" way of handling the case of a series of long equations in two columned papers? Thanks in advance. - Julio Rojas [EMAIL PROTECTED] On Tue, Nov 25, 2008 at 2:50 PM, Vittorio Zuccala' <[EMAIL PROTECTED]> wrote: > Hello Julio, > i do not know if i've understood your question. > Anyway, probably you can be interested one of this... > > First solution: > press CTRL+L entering in ERT mode and then: > \begin{eqnarray} > d &=& a + b, if a>1 \nonumber \\ > &=& a-b, if a<1 \nonumber \\ > &=&0, if a=1 \nonumber > \end{eqnarray} > > Second solution (i think better for you): > press CTRL+L entering in ERT mode and then: > $$ d = \left\{ > \begin{array}{rl} a+b &\mbox{ if a>1} \\ > a-b &\mbox{ if a<1} \\ > 0 &\mbox{ if a=1} \\ > \end{array} > \right. $$ > > > I hope it'll be usefull for you. > Bye, >Vittorio > > > On Tue, Nov 25, 2008 at 1:01 PM, Julio Rojas <[EMAIL PROTECTED]> wrote: >> >> Dear all, I'm finishing a paper with the two columned article class. I >> have a problem with some equation arrays that are two big for this >> format. They span over the other column or over the margins, even with >> an smaller font (\scriptstyle). What can I do to solve this problem? >> Should I use an even smaller font (\scriptscriptstyle)? How can I >> break the line in an equation array and put the right hand of the >> array under the first part, but slightly to the right? >> >> The kind of equation array I'm using is conditional: >> >> d= a+b, if a>1 >> a-b, if a<1 >> 0,if a=1 >> >> Hope you can help me. >> - >> Julio Rojas >> [EMAIL PROTECTED] > > > > -- > Vittorio Zuccalà >