LyX ⇒ Amsmath errors
Amsmath errors
Hi everyone,
I am a complete LaTeX (and computer) noob. This has motived me years ago to start using LyX because I was getting too many errors I couldn't fix in LaTeX. Now, however, I'm having some troubles in Lyx.
A couple of hours ago, LyX stopped working : when I tried pdf'ing my files, it would not respond, forcing me to close it. I reinstalled LyX (now using version 2.0.5) and MikTeX ( version 2.9), and that problem seems to have dissapeared. Instead, amsmath.sty can not be found and Lyx is also complaining about the package 'amssymb'.
I read that I should include '\usepackage{amsmath}' in the LaTeX preambule, but this doesn't work. I also read that amsmath is now included in amslatex, which I've tried adding to the LaTeX preambule, but this isn't working either. Next, I read that you could try and change the article type to article (AMS), but this isn't in the list. I have downloaded packages using MikTeX package manager. Someone mentioned I should click the 'reconfigure' button in LyX, but this didn't work either.
Being a total computer noob, I have no idea what to do anymore. I've tried googling this problem but I can't understand half of what is being said. Can someone please help?
I am a complete LaTeX (and computer) noob. This has motived me years ago to start using LyX because I was getting too many errors I couldn't fix in LaTeX. Now, however, I'm having some troubles in Lyx.
A couple of hours ago, LyX stopped working : when I tried pdf'ing my files, it would not respond, forcing me to close it. I reinstalled LyX (now using version 2.0.5) and MikTeX ( version 2.9), and that problem seems to have dissapeared. Instead, amsmath.sty can not be found and Lyx is also complaining about the package 'amssymb'.
I read that I should include '\usepackage{amsmath}' in the LaTeX preambule, but this doesn't work. I also read that amsmath is now included in amslatex, which I've tried adding to the LaTeX preambule, but this isn't working either. Next, I read that you could try and change the article type to article (AMS), but this isn't in the list. I have downloaded packages using MikTeX package manager. Someone mentioned I should click the 'reconfigure' button in LyX, but this didn't work either.
Being a total computer noob, I have no idea what to do anymore. I've tried googling this problem but I can't understand half of what is being said. Can someone please help?
NEW: TikZ book now 40% off at Amazon.com for a short time.
- Stefan Kottwitz
- Site Admin
- Posts: 10321
- Joined: Mon Mar 10, 2008 9:44 pm
Amsmath errors
Hi,
welcome to the forum!
This could be an issue with the reorganization of amsmath files in a recent MiKTeX update. Have a look at this post.
Stefan
welcome to the forum!
This could be an issue with the reorganization of amsmath files in a recent MiKTeX update. Have a look at this post.
Stefan
LaTeX.org admin
-
- Site Moderator
- Posts: 542
- Joined: Sat Sep 01, 2012 6:38 am
Amsmath errors
Learning LaTeX helps with using LyX a lot. In fact, Yihui Xie does not recommend LyX for beginners:Yoran91 wrote:Hi everyone,
I am a complete LaTeX (and computer) noob. This has motived me years ago to start using LyX because I was getting too many errors I couldn't fix in LaTeX. Now, however, I'm having some troubles in Lyx.
http://yihui.name/en/2012/10/lyx-vs-latex/Yihui wrote: Finally, I do not recommend LaTeX novices to try LyX. It is a bad idea in general to use GUI if you do not really understand it.
Re: Amsmath errors
Ok, I've read the text in your link and I've managed to install the amsmath package. Now, I can pdf empty files or files containing just letters and formulas. Thank you!
However, the file I wish to be able to pdf also contain theorems and lemmas from the ams theorem package, and LyX now can't find the amsthm.sty file. The lyx file does pdf if I remove the theorems and lemmas. As far as I know this file is included in the amslatex package, which I have updated and installed on MikTeX.
Why doesn't it work, then?
However, the file I wish to be able to pdf also contain theorems and lemmas from the ams theorem package, and LyX now can't find the amsthm.sty file. The lyx file does pdf if I remove the theorems and lemmas. As far as I know this file is included in the amslatex package, which I have updated and installed on MikTeX.
Why doesn't it work, then?
-
- Site Moderator
- Posts: 542
- Joined: Sat Sep 01, 2012 6:38 am
Amsmath errors
Did you do reconfigure? (LyX > reconfigure I think if Mac), otherwise Tools > Reconfigure.Yoran91 wrote:Ok, I've read the text in your link and I've managed to install the amsmath package. Now, I can pdf empty files or files containing just letters and formulas. Thank you!
However, the file I wish to be able to pdf also contain theorems and lemmas from the ams theorem package, and LyX now can't find the amsthm.sty file. The lyx file does pdf if I remove the theorems and lemmas. As far as I know this file is included in the amslatex package, which I have updated and installed on MikTeX.
Why doesn't it work, then?
- Stefan Kottwitz
- Site Admin
- Posts: 10321
- Joined: Mon Mar 10, 2008 9:44 pm
Amsmath errors
You need to install also the
Stefan
amscls
package, amsthm
belongs to it.Stefan
LaTeX.org admin
Re: Amsmath errors
Awesome, it's working! Thanks!
Re: Amsmath errors
I am getting this error on LyX.
How do I install amscls ?
On the ams math webpage there are extensive instructions but refers to a seemingly non-existent location "TEXMF".
Searching on google results in advice to run the MikTex package manager, but how do I locate that? The miktex folder on disk has a ridiculous number of files and folders in it and no obvious package manager.
Maybe downloading the complete MikTex package and reinstalling will work?
LaTeX may be a great typesetter but it's terrible software!
How do I install amscls ?
On the ams math webpage there are extensive instructions but refers to a seemingly non-existent location "TEXMF".
Searching on google results in advice to run the MikTex package manager, but how do I locate that? The miktex folder on disk has a ridiculous number of files and folders in it and no obvious package manager.
Maybe downloading the complete MikTex package and reinstalling will work?
LaTeX may be a great typesetter but it's terrible software!
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Amsmath errors
It's probably smarter to use the MiKTeX Package Manager (MPM) and do an update if necessary. A regular maintenance is recommended.CSMR wrote:[…] How do I install amscls ? […] Maybe downloading the complete MikTex package and reinstalling will work?[…]
Just because you don't know how to maintain the TeX system? Reading the MiKTeX manual certainly helps. m(CSMR wrote:[…] LaTeX may be a great typesetter but it's terrible software!
And next time please open a new topic before appending a follow-up question to a solved problem. This indicates that you seemingly did not read the proposed solution. It would have been no big deal to add a reference to this topic here.
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Amsmath errors
Sorry, the problems put me in a bad mood. This time it turned out to be my fault, as I didn't realize the program links that used to be in the Start Menu in Win7 are still accessible in the Win8 start screen. So Miktex Package Manager appears there.