Changes

Jump to navigation Jump to search
1,193 bytes added ,  20:23, 30 March 2005
added end of line marker from Hans
< [[The_ConTeXt_Way]]

== End of line marker in verbatim texts ==

from the wizard himself:

<texcode>
\startreusableMPgraphic{return}
drawarrow
(0,0)--
(1EmWidth,0)--
(1EmWidth,-.5ExHeight)--
(.5EmWidth,-.5ExHeight) ;
\stopreusableMPgraphic

\definesymbol[return][\reuseMPgraphic{return}]

\setupcolors[state=start]

\starttext

\def\vcrlf{\symbol[return]\crlf\strut\kern1em\strut\ignorespaces}

\setuptyping[option=commands]

\starttyping
test test test /vcrlf test test
\stoptyping

\setuptyping[option=color]

\installnewpretty r \vcrlf

\starttyping
test \test{test} %%\ r test test
\stoptyping
</texcode>

looks like this:

<context>
\startreusableMPgraphic{return}
drawarrow
(0,0)--
(1EmWidth,0)--
(1EmWidth,-.5ExHeight)--
(.5EmWidth,-.5ExHeight) ;
\stopreusableMPgraphic

\definesymbol[return][\reuseMPgraphic{return}]

\setupcolors[state=start]

\def\vcrlf{\symbol[return]\crlf\strut\kern1em\strut\ignorespaces}

\setuptyping[option=commands]

\starttyping
test test test /vcrlf test test
\stoptyping

\setuptyping[option=color]

\installnewpretty r \vcrlf

\starttyping
test \test{test} %%\ r test test
\stoptyping
</context>

Navigation menu