Download GNU TEXMACS user manual

Transcript
Chapter 12
Compatibility with other formats
TEXMACS is fully compatible with postscript, which is used as the format in order to print
documents. TEXMACS also provides converters from and to LATEX and an input lter for
Html.
12.1. Compatibility with LATEX
Although TEXMACS has not been designed to be fully compatible with LATEX, it is possible
to convert documents from TEXMACS to LATEX and vice versa , although the result will not
always be perfect. Also, conversions from TEXMACS to LATEX will generally yield better
results than conversions the other way around. In particular, TEXMACS may reasonably well
be used to write articles, which need to be converted to LATEX for submission purposes.
In this chapter, we will describe more precisely the conversion mechanisms, which will help
you to obtain a result as satisfactory as possible.
12.1.1. Conversion from TEXMACS to LATEX
The most common situation is that you want to convert an article from TEXMACS to LATEX,
in order to submit it to some journal. Given a TEXMACS le name.tm, you may convert it
into a LATEX le name.tex using File ! Export ! Latex. At a rst stage, you may try to
run LATEX on name.tex, and see whether you obtain a satisfactory result. If so, then you
should submit name.tex together with the style le TeXmacs.sty, which can be found in
the directory $TEXMACS_PATH/misc/latex.
Often, the journal to which you submit uses its own style le, say journal.sty. In that
case, you should also copy the le
$TEXMACS_PATH/styles/article.ts
to
~/.TeXmacs/styles/journal.ts
and use journal as your document style in Document ! Style ! Other. You may optionally edit journal.ts, so that the article layout becomes closer to the journal's style. In
some cases, you also have to create a new copy of TeXmacs.sty, and modify some of the
environments for compatibility with the journal's style le journal.sty.
If your rst try to convert your document into LATEX did not yield a satisfactory result,
then you will usually observe that only minor parts of the texts were not converted correctly. This may be due to three main reasons:
Your text uses some specic TEXMACS features.
51