[NTG-context] \obeyspaces

Herbert Voss Herbert.Voss at FU-Berlin.DE
Fri Apr 8 13:08:40 CEST 2011


The spaces in front of the lines are not taken
into account for the two defined macros. What to do that
\obeyspaces is also valid for these ones?

\def\TextWithSpaces{\bgroup\obeyspaces\doTextWithSpaces}
\def\FramedTextWithSpaces{\framed\bgroup\obeyspaces\doTextWithSpaces}
\def\doTextWithSpaces#1{#1\egroup}

starttext
     A gap from here        to here!\par
\TextWithSpaces{   A gap from        here      to here!}

\framed{   A gap from here         to  here!}\par
\FramedTextWithSpaces{   A gap from        here      to here!}
\stoptext

current minimal

Herbert


More information about the ntg-context mailing list