|
From: | Gubinelli Massimiliano |
Subject: | [Texmacs-dev] Re: [TeXmacs] TeX export problem |
Date: | Fri, 10 Sep 2010 10:10:39 +0200 |
Hi all,
Actually after some more digging, it seems to be a problem which does not depend on latex conversion routines, The following simplified document --------------------------------------------------------- <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> --------------------------------------------------------- produce the following call to the texmacs->latex scheme routine in TeXmacs/progs/convert/latex/tmtex.scm texmacs->latex [((last? . #f) (texmacs->latex:use-macros . on) (texmacs->latex:use-catcodes . off) (texmacs->latex:indirect-bib . off) (texmacs->latex:expand-user-macros . off) (texmacs->latex:expand-macros . on) (texmacs->latex:replace-style . on))], (document (TeXmacs 1.0.7.6) (style (tuple article)) (body (document (hide-preamble (document (with info-flag paper preamble true (document (concat (assign bra (quote (macro x (with mode math (concat (left langle) (arg x) (right |)))))) (assign ket (quote (macro x (with mode math (concat (left |) (arg x) (right rangle)))))) (assign braket (quote (macro x y (with mode math (concat (left langle) (arg x) (mid |) (arg y) (right rangle)))))) (assign braket-element (quote (macro x A y (with mode math (concat (left langle) (arg x) (mid |) (arg A) (mid |) (arg y) (right rangle)))))) (assign ketbra (quote (macro x y (with mode math (concat (left |) (arg x) (mid rangle) (mid langle) (arg y) (right |))))))) )) )) (concat The ket (error compound ket) will not export to tex.))) (initial (collection (associate info-flag short) (associate language english) (associate page-even 1.8cm) (associate page-medium paper) (associate page-odd 1.8cm) (associate page-right 1.8cm) (associate page-screen-margin false) (associate page-show-hf true) (associate page-type letter) (associate preamble false) (associate sfactor 6)))) texmacs->latex [((last? . #f) (texmacs->latex:use-macros . on) (texmacs->latex:use-catcodes . off) (texmacs->latex:indirect-bib . off) (texmacs->latex:expand-user-macros . off) (texmacs->latex:expand-macros . on) (texmacs->latex:replace-style . on))], (!file (document (hide-preamble (document (with info-flag paper preamble true (document (concat (assign bra (quote (macro x (with mode math (concat (left langle) (arg x) (right |)))))) (assign ket (quote (macro x (with mode math (concat (left |) (arg x) (right rangle)))))) (assign braket (quote (macro x y (with mode math (concat (left langle) (arg x) (mid |) (arg y) (right rangle)))))) (assign braket-element (quote (macro x A y (with mode math (concat (left langle) (arg x) (mid |) (arg A) (mid |) (arg y) (right rangle)))))) (assign ketbra (quote (macro x y (with mode math (concat (left |) (arg x) (mid rangle) (mid langle) (arg y) (right |))))))) )) )) (concat The ket (error compound ket) will not export to tex.)) (article) english (collection (associate info-flag short) (associate language english) (associate page-even 1.8cm) (associate page-medium paper) (associate page-odd 1.8cm) (associate page-right 1.8cm) (associate page-screen-margin false) (associate page-show-hf true) (associate page-type letter) (associate preamble false) (associate sfactor 6)) /Users/mgubi/t/clean32/TeXmacs) (concat The ket (error compound ket) will not export to tex.) where the macro call has been replaced by error, so the converter routine simply discard the information. There should be some problem when converting the tree to a scheme _expression_. Joris? max |
[Prev in Thread] | Current Thread | [Next in Thread] |