Difference between revisions of "Line breaks marker"
Jump to navigation
Jump to search
(added end of line marker from Hans) |
(Former example didn't work any more (2024/02). Removed part of example whose purpose I could not devine and made the rest work.) |
||
(7 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
− | |||
− | |||
== End of line marker in verbatim texts == | == End of line marker in verbatim texts == | ||
from the wizard himself: | from the wizard himself: | ||
− | < | + | <context source="yes" text="looks like this:"> |
− | + | \startreusableMPgraphic{return} | |
drawarrow | drawarrow | ||
(0,0)-- | (0,0)-- | ||
Line 17: | Line 15: | ||
\setupcolors[state=start] | \setupcolors[state=start] | ||
− | |||
− | |||
\def\vcrlf{\symbol[return]\crlf\strut\kern1em\strut\ignorespaces} | \def\vcrlf{\symbol[return]\crlf\strut\kern1em\strut\ignorespaces} | ||
− | \setuptyping[ | + | \setuptyping[TEX][escape=yes] |
− | \ | + | \startTEX |
− | test test test /vcrlf test test | + | test test test /BTEX\vcrlf/ETEX test test |
− | \ | + | \stopTEX |
− | + | </context> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | </ | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | [[Category:Basics]] | |
− | + | [[Category:Tools]] | |
− | |||
− | |||
− | |||
− |
Latest revision as of 15:02, 3 February 2024
End of line marker in verbatim texts
from the wizard himself:
\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[TEX][escape=yes] \startTEX test test test /BTEX\vcrlf/ETEX test test \stopTEX
looks like this: