Changes

Jump to navigation Jump to search
Former example didn't work any more (2024/02). Removed part of example whose purpose I could not devine and made the rest work.
< [[The ConTeXt Way]]
 
== End of line marker in verbatim texts ==
from the wizard himself:
<texcodecontext source="yes" text="looks like this:"> \startreusableMPgraphic{return}
drawarrow
(0,0)--
\setupcolors[state=start]
 
\starttext
\def\vcrlf{\symbol[return]\crlf\strut\kern1em\strut\ignorespaces}
\setuptyping[optionTEX][escape=commandsyes]
\starttypingstartTEXtest test test /BTEX\vcrlf /ETEX test test\stoptypingstopTEX
\setuptyping[option=color] \installnewpretty r \vcrlf \starttypingtest \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] \starttypingtest test test /vcrlf test test\stoptyping \setuptyping[option=color]
\installnewpretty r \vcrlf[[Category:Basics]] \starttypingtest \test{test} %%\ r test test\stoptyping</context>[[Category:Tools]]
38

edits

Navigation menu