mailing-list for TeXmacs Users

Text archives Help


strange behaviour of macros


Chronological Thread 
  • From: Immanuel Normann <address@hidden>
  • To: address@hidden
  • Subject: strange behaviour of macros
  • Date: Fri, 10 Sep 2004 13:17:27 +0200

two strange behaviours of macros

1) they behave unexpected in itemize context!

For instance take the macro
<assign|red|<macro|text|<with|color|red|text>>>

1.1) If you are going to apply this macro with itemize as argument then at first a blank line appears before the first item bullet. This is not the case when you apply itemize without this macro arround it.

1.2) Even more strange: If you are already inside an itemize block (without macro) then it is even impossible to insert a red sub itemize block.

2) they don't handle line breaks correctly!

Take the macro
<assign|bla|<macro|text|bla: <arg|text>>>

2.1) If you apply this macro to some text which contains a line break, e.g.

my text
with line break

then TeXmacs renders

bla: my text
with line break

instead of

bla: my text
with line break

2.2) Even worse: One should expect that TeXmacs always renders line breaks before text length exceeds page width. But this is not always the case when you have nested macros auch as "bla". Unfortunately I can't reproduce that reliably: sometimes it happens sometimes it doesn't that TeXmacs renders out of page width.

Immanuel




Archive powered by MHonArc 2.6.19.

Top of page