[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Texmacs-dev] Strange behaviour of converters (related to LaTeX macros p
From: |
Gubinelli Massimiliano |
Subject: |
[Texmacs-dev] Strange behaviour of converters (related to LaTeX macros problem) |
Date: |
Fri, 10 Sep 2010 10:57:29 +0200 |
Hi Joris,
I've digged a bit further into Peter's problem with exporting macros to LaTeX.
I found the following strange behaviour by first trying to export to scheme
(OK) and the trying to export to LaTeX (the document is corrupted before
arriving to the main texmacs->latex routine). To obtain it I've just
uncommented some tracing statements in the scheme code. You can see that the
TeXMacs tree is OK in the scheme conversion
The ket <ket|\<psi\>> will not export to tex.
but is corrupted in the LaTeX one
The ket <error|compound ket> will not export to tex.
Best
max
------------------------------------
#### convert <tree <TeXmacs|1.0.7.6>
<style|article>
<\body>
<\hide-preamble>
<include|./texmacs_macros/macro_definitions.tm>
\;
</hide-preamble>
The ket <ket|\<psi\>> will not export to tex.
</body>>, texmacs-tree, stm-document, ()
#### convert-walk texmacs-tree, ((texmacs-tree 0.0 (texmacs-tree)))
#### convert-walk texmacs-tree, ()
#### convert-via <tree <TeXmacs|1.0.7.6>
<style|article>
<\body>
<\hide-preamble>
<include|./texmacs_macros/macro_definitions.tm>
\;
</hide-preamble>
The ket <ket|\<psi\>> will not export to tex.
</body>>, texmacs-tree, (stm-document), ()
#### convert-via (document (TeXmacs "1.0.7.6") (style (tuple "article")) (body
(document (hide-preamble (document (include
"./texmacs_macros/macro_definitions.tm") "")) (concat "The ket " (ket "<psi>")
" will not export to tex.")))), stm-document, (), ()
#### convert <tree <TeXmacs|1.0.7.6>
<style|article>
<\body>
<\hide-preamble>
<\with|info-flag|paper|preamble|true>
<assign|bra|<quote|<macro|x|<with|mode|math|<left|langle><arg|x><right|\|>>>>><assign|ket|<quote|<macro|x|<with|mode|math|<left|\|><arg|x><right|rangle>>>>><assign|braket|<quote|<macro|x|y|<with|mode|math|<left|langle><arg|x><mid|\|><arg|y><right|rangle>>>>><assign|braket-element|<quote|<macro|x|A|y|<with|mode|math|<left|langle><arg|x><mid|\|><arg|A><mid|\|><arg|y><right|rangle>>>>><assign|ketbra|<quote|<macro|x|y|<with|mode|math|<left|\|><arg|x><mid|rangle><mid|langle><arg|y><right|\|>>>>>
\;
</with>
\;
</hide-preamble>
The ket <error|compound ket> will not export to tex.
</body>>, texmacs-tree, latex-document, ()
#### convert-walk texmacs-tree, ((texmacs-tree 0.0 (texmacs-tree)))
#### convert-walk texmacs-tree, ()
#### convert-via <tree <TeXmacs|1.0.7.6>
<style|article>
<\body>
<\hide-preamble>
<\with|info-flag|paper|preamble|true>
<assign|bra|<quote|<macro|x|<with|mode|math|<left|langle><arg|x><right|\|>>>>><assign|ket|<quote|<macro|x|<with|mode|math|<left|\|><arg|x><right|rangle>>>>><assign|braket|<quote|<macro|x|y|<with|mode|math|<left|langle><arg|x><mid|\|><arg|y><right|rangle>>>>><assign|braket-element|<quote|<macro|x|A|y|<with|mode|math|<left|langle><arg|x><mid|\|><arg|A><mid|\|><arg|y><right|rangle>>>>><assign|ketbra|<quote|<macro|x|y|<with|mode|math|<left|\|><arg|x><mid|rangle><mid|langle><arg|y><right|\|>>>>>
\;
</with>
\;
</hide-preamble>
The ket <error|compound ket> will not export to tex.
</body>>, texmacs-tree, (texmacs-stree latex-stree latex-document), ()
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Texmacs-dev] Strange behaviour of converters (related to LaTeX macros problem),
Gubinelli Massimiliano <=