I have a document in LyX, and I would like to convert the typeset to AmS-LaTeX amsart) (if it is not in that form already).
- Document > Settings ... > Document Class > article (AMS) > This select the LaTeX
amasart document class.
- May be you need edit the LyX text and/or the LaTeX preamble (also in Document > Settings ...) to be 100% compatible with
amsart document class. The change of the document class, could left some LaTeX command undefined. In the best case Lyx will ignore the unkonw command and pass their argument as plain text, otherwise (for example, because is inside an ERT box), the command is passed to LaTeX code and produce a compilation error.
Also some packages as
relsize in the preamble could be incompatible with the new document class. Your mileage may vary.
- File > Import > LaTeX (plain) .... In complex documents some parts could be left as ERT boxes (your mileage may vary again).
- Save the
.lyx file and make the necessary changes as above.
Or may be better, make first the changes, then import:
- With your text/LaTeX editor, change the document class to
- Try to compile with
- Remove/modify all source of errors, if any.
- Save with
.tex extension, go to Lyx and import this file (File > Import > LaTeX (plain) ...).
What typeset does LyX naturally use?
LyX write files with the
.lyx extension in a special format, that has nothing to do with LaTeX.
Although many people think that LyX is a LaTeX editor, LyX is really a document preparation system that is, among other things, a very good LaTeX exporter (
.tex). But if you select a DocBook document class, for example, the source is a
.lyx file and the ouput is a .
xhtml file, and both are not related with LaTeX in any form.