|Conversion from TeXmacs to LaTeX|
A TeXmacs document can be exported to LaTeX using
Notice that the exportation of a TeXmacs document with images may
cause the creation of additional image files. If your destination file
is called name.tex, these files are named name-1.eps,
name-2.eps, etc. and they are stored in
the same directory. In particular, all pictures drawn with the editor,
and all images which are not already in
In order to ensure that the generated LaTeX document compiles, style
files and packages or macros with no LaTeX equivalents are either
ignored or replaced by a reasonable substitute. The precise behaviour
of the converter may be customized using several user preferences in
This option (which is set by default) tells TeXmacs to replace style files with no LaTeX equivalents by the letter style. Furthermore, all additional style packages are ignored.
In the case when you know how to write your own style files, then you might wish to create TeXmacs equivalents of certain journal styles which you often use. Similarly, you might wish to create a style package with your own macros together with its LaTeX counterpart. In both cases, you might want to disable the style replacement option.
By default, all TeXmacs macros are expanded until they admit direct LaTeX counterparts. Primitives with no LaTeX counterparts (like graphics or trees) are ignored. Moreover, in order to convert certain frequently used macros like theorem or strong, TeXmacs may put additional definitions in the preamble.
In some cases, the user may wish to keep unrecognized macros in their unexpanded form. For instance, this may be convenient if you want to import the generated document back into TeXmacs. Another typical situation is when you defined additional macros in a style package. In these cases, you may disable to macro replacement option. Of course, any missing macro definitions may result in LaTeX errors during the compilation.
Certain TeXmacs macros like
However, certain journals instruct authors to refrain from the definition of additional macros in the preamble. When disallowing for macro definitions in preambles, TeXmacs will automatically expand all corresponding macro applications.
Sometimes, the converter does not produce a satisfactory LaTeX file
even after some twiddling with the above preferences. The most
frequent problem concerns bad line breaks. Occasionally, certain
document fragments are also better converted by hand. In order to
minimize the need for corrections in the generated LaTeX file (which
would be lost when re-exporting the TeXmacs source file after some
modifications), TeXmacs provides a mechanism to specify manual
conversions to LaTeX in the TeXmacs source file: using
For instance, assume that the word “blauwbilgorgel” is hyphenated correctly in the TeXmacs source, but not in the LaTeX conversion. Then you may proceed as follows:
In a similar fashion, you may insert LaTeX-specific line breaks, page
breaks, vertical space, style parameter modifications, etc. You may
also force arbitrary content to be exported as an image using