Daniel Vainsencher wrote:

>     Update:
>       I have found that my current examples for "macros that are lost"
>       are all explained (and fixed) by movement between the preamble and
>       the document. That is, at some point they moved above the
>       \begin{document} in the latex, I would guess I did that manually.
>       So this is not strictly a round trip issue, and I think I'm
>       dropping it for now. For now I closed the bug report I'd started
>       putting together.
>
>       Another issue is whether the location of a command definition
>       before or after the \begin{document} should make a difference to
>       it becoming a macro; I would guess not, but I don't know if anyone
>       cares. As it is parse_text calls is_macro, and Preamble.cpp does
>       not seem to, so that's not a mystery.

The location of the macro definition can make a big difference (e.g. if 
packages are loaded afterwards). Since LyX writes the defintions of math 
macros aftre the preamble, tex2lyx tries only translate those into math 
macros.


Georg

Reply via email to