(I sent this to the wrong address for texmacs-dev, re-sending)
Joris,
Thanks. I see in texout.scm a function
(define (texout-file l)
(let* ((doc-body (car l))
...
(output-verbatim tm-uses)
...
)
Is the string tm-uses the one I should scan for "amsmath"?
By the way, my final purpose with all this is to modify
tmtex.scm to output
\begin{equation*} \end{equation*}
instead of
\[ \]
when the amsmath package is used.
Regards,
Kostas
Joris van der Hoeven wrote:
Hi Kostas,
Notice that this is really a discussion for texmacs-dev
On Thu, Sep 04, 2008 at 10:43:20PM +0200, Henri Lesourd wrote:
I want to modify some of the Scheme code for the Latex converter (i.e.
TeXmacs/progs/convert/latex/tmtex.scm).
My question is: how can I detect in my code when TeXmacs is going to
export the document to LaTeX and include the amsmath package?
Second approach (probably easier): just before the output
of the exporter (which is an s-expression) is sent back
to the function which writes the actual LaTeX code, scan
this output, and (set-cdr!)-ize it to insert amsmath in
the list of included packages (if it's what you want) ;
The packages to be used are meta-information and generated automatically
as a function of the final s-expression. I would simply intercept
the final string with the LaTeX conversion and scan the header for
the \usepackage command.
Best wishes, Joris
_______________________________________________
Texmacs-dev mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/texmacs-dev