Line breaks marker

From Wiki
Revision as of 15:02, 3 February 2024 by Zsd (talk | contribs) (Former example didn't work any more (2024/02). Removed part of example whose purpose I could not devine and made the rest work.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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: