LyX ⇒ Help with aligning math formula and numbering
Help with aligning math formula and numbering
I hope you guys can help me with this.
I have a rather lengthy formula that i would like to type in LyX. Since it stretches over multiple lines i would like to align it beneath the equal-sign of the first line. also i would like to number the formula with (1) and align that number to the very right. A screenshot of what it should look like is attached.
Can you guys please help me and tell me how to make it happen?
I have a rather lengthy formula that i would like to type in LyX. Since it stretches over multiple lines i would like to align it beneath the equal-sign of the first line. also i would like to number the formula with (1) and align that number to the very right. A screenshot of what it should look like is attached.
Can you guys please help me and tell me how to make it happen?
- Attachments
-
- The desired result.
- formula-alignment.jpg (16.08 KiB) Viewed 11195 times
Last edited by localghost on Mon May 02, 2011 11:52 am, edited 1 time in total.
Reason: Preferably no external links. Attachments go onto the forum server where possible.
Reason: Preferably no external links. Attachments go onto the forum server where possible.
NEW: TikZ book now 40% off at Amazon.com for a short time.

Help with aligning math formula and numbering
Hi. Try LyX's Math manual (Help > Math), section 18.
Re: Help with aligning math formula and numbering
Thank you very much, i will try that right now.
I have another question regarding the math:
when i want to preview the document i'm working on and i press the DVI button, the following errors occur:
Display math should end with $$.
Description:
Ebene.\begin{equation}$\log
M_{sdt}=\alpha_{sd}+\beta_{0}\log W_{st}+\...
The `$' that I just saw supposedly matches a previous `$$'.
So I shall assume that you typed `$$' both times.
And the other error:
Missing $ inserted.
Description:
Ebene.\begin{equation}$\log
M_{sdt}=\alpha_{sd}+\beta_{0}\log W_{st}+\...
I've inserted a begin-math/end-math symbol since I think
you left one out. Proceed, with fingers crossed.
But that doesn't really help me..can someone please tell me what I'm doing wrong? I simply used the math editor for my formula and typed the greek letters by using \alpha \beta and so on.
thanks!
I have another question regarding the math:
when i want to preview the document i'm working on and i press the DVI button, the following errors occur:
Display math should end with $$.
Description:
Ebene.\begin{equation}$\log
M_{sdt}=\alpha_{sd}+\beta_{0}\log W_{st}+\...
The `$' that I just saw supposedly matches a previous `$$'.
So I shall assume that you typed `$$' both times.
And the other error:
Missing $ inserted.
Description:
Ebene.\begin{equation}$\log
M_{sdt}=\alpha_{sd}+\beta_{0}\log W_{st}+\...
I've inserted a begin-math/end-math symbol since I think
you left one out. Proceed, with fingers crossed.
But that doesn't really help me..can someone please tell me what I'm doing wrong? I simply used the math editor for my formula and typed the greek letters by using \alpha \beta and so on.
thanks!
Re: Help with aligning math formula and numbering
Could you create an example .lyx file which shows the issue, put it in a ZIP archive and attach it to your next post, please?
Re: Help with aligning math formula and numbering
well now i got it to work!
i created the formula and the moment i leave \begin{equation} and \end{equation} away it works. but as soon as i put those commands back the errors comes back.
is there any other way to number the formulas?
also when exporting the file to DVI with MiKTeX Yap, i get the error that not all fonts could be loaded. alpha, beta etc. are then displayed as regular letters a, b and so on.
i created the formula and the moment i leave \begin{equation} and \end{equation} away it works. but as soon as i put those commands back the errors comes back.
is there any other way to number the formulas?
also when exporting the file to DVI with MiKTeX Yap, i get the error that not all fonts could be loaded. alpha, beta etc. are then displayed as regular letters a, b and so on.
Re: Help with aligning math formula and numbering
could it be that I'm simply missing a package for miktex that i have to install with the package installer? there are so many packages, i just don't know which one i should install.
- Stefan Kottwitz
- Site Admin
- Posts: 10345
- Joined: Mon Mar 10, 2008 9:44 pm
Help with aligning math formula and numbering
Hi maxiv,
Stefan
$ is for math in text, don't use it within an equation environment. Just write:maxiv wrote:the following errors occur:
Display math should end with $$.
Description:
Ebene.\begin{equation}$\log
...
And the other error:
Missing $ inserted.
Description:
Code: Select all
\begin{equation}\log ...
LaTeX.org admin
Help with aligning math formula and numbering
thank you, i solved that problem by leaving the {equation} commands out and just clicking the math symbol in LyX. But I still need my equations to be numerized.Stefan_K wrote:Hi maxiv,
$ is for math in text, don't use it within an equation environment. Just write:maxiv wrote:the following errors occur:
Display math should end with $$.
Description:
Ebene.\begin{equation}$\log
...
And the other error:
Missing $ inserted.
Description:
StefanCode: Select all
\begin{equation}\log ...
And how to i export it to DVI and display it properly? Are there any further packages for MiKTeX I need to install?!
Help with aligning math formula and numbering
Please, take a look at LyX's Math manual (Help > Math), section 19. Basically, you can get a numbered formula simply by using menus: Insert > Math > Numbered formula (or by pressing Ctrl+Alt+N shortcut). There is no need to enter \begin{equation} manually.
Help with aligning math formula and numbering
yes but then i don't have a formula that stretches over multiple lines with all lines subsequent to the first one being aligned to the right. or am i missing something?meho_r wrote:Please, take a look at LyX's Math manual (Help > Math), section 19. Basically, you can get a numbered formula simply by using menus: Insert > Math > Numbered formula (or by pressing Ctrl+Alt+N shortcut). There is no need to enter \begin{equation} manually.