LaTeX forum ⇒ LyXAmsmath errors Topic is solved

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Yoran91
Posts: 3
Joined: Sat Feb 23, 2013 10:03 pm

Amsmath errors

Postby Yoran91 » Sat Feb 23, 2013 10:18 pm

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?

Tags:

User avatar
Stefan Kottwitz
Site Admin
Posts: 8262
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany
Contact:

Postby Stefan Kottwitz » Sat Feb 23, 2013 10:28 pm

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
Site admin

scottkosty
Site Moderator
Posts: 483
Joined: Sat Sep 01, 2012 6:38 am

Postby scottkosty » Sun Feb 24, 2013 12:58 am

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.


Learning LaTeX helps with using LyX a lot. In fact, Yihui Xie does not recommend LyX for beginners:

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.

http://yihui.name/en/2012/10/lyx-vs-latex/

Yoran91
Posts: 3
Joined: Sat Feb 23, 2013 10:03 pm

Postby Yoran91 » Sun Feb 24, 2013 11:50 am

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?

scottkosty
Site Moderator
Posts: 483
Joined: Sat Sep 01, 2012 6:38 am

Postby scottkosty » Sun Feb 24, 2013 12:01 pm

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?


Did you do reconfigure? (LyX > reconfigure I think if Mac), otherwise Tools > Reconfigure.

User avatar
Stefan Kottwitz
Site Admin
Posts: 8262
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany
Contact:

Postby Stefan Kottwitz » Sun Feb 24, 2013 12:14 pm

You need to install also the amscls package, amsthm belongs to it.

Stefan
Site admin

Yoran91
Posts: 3
Joined: Sat Feb 23, 2013 10:03 pm

Postby Yoran91 » Sun Feb 24, 2013 2:22 pm

Awesome, it's working! Thanks!

CSMR
Posts: 44
Joined: Fri Oct 10, 2008 10:44 pm

Postby CSMR » Tue Oct 22, 2013 7:07 pm

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!

User avatar
localghost
Site Moderator
Posts: 9206
Joined: Fri Feb 02, 2007 12:06 pm
Location: Braunschweig, Germany

Postby localghost » Tue Oct 22, 2013 7:23 pm

CSMR wrote:[…] How do I install amscls ? […] Maybe downloading the complete MikTex package and reinstalling will work?[…]

It's probably smarter to use the MiKTeX Package Manager (MPM) and do an update if necessary. A regular maintenance is recommended.

CSMR wrote:[…] LaTeX may be a great typesetter but it's terrible software!

Just because you don't know how to maintain the TeX system? Reading the MiKTeX manual certainly helps. m(

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.
LaTeX Community Moderator
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes


¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1

CSMR
Posts: 44
Joined: Fri Oct 10, 2008 10:44 pm

Postby CSMR » Wed Oct 23, 2013 4:48 pm

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.


Return to “LyX”

Who is online

Users browsing this forum: No registered users and 2 guests