diff options
Diffstat (limited to 'Master/texmf-doc/doc/german/latex-tipps-und-tricks/m2verb.sty')
-rw-r--r-- | Master/texmf-doc/doc/german/latex-tipps-und-tricks/m2verb.sty | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Master/texmf-doc/doc/german/latex-tipps-und-tricks/m2verb.sty b/Master/texmf-doc/doc/german/latex-tipps-und-tricks/m2verb.sty new file mode 100644 index 00000000000..366302c2d55 --- /dev/null +++ b/Master/texmf-doc/doc/german/latex-tipps-und-tricks/m2verb.sty @@ -0,0 +1,20 @@ +% M2VERB.STY +\RequirePackage{verbatim} + +% Oeffnet/schliesst das Ausgabefile +\newcommand*{\openfile}[2] + {\expandafter\newwrite\csname verb@#2\endcsname + \immediate\openout\csname verb@#2\endcsname #1} +\newcommand*{\closefile}[1] + {\immediate\closeout\csname verb@#1\endcsname} + +% Addiert den Inhalt dieser Umgebung zum File dazu +\newenvironment{writefile}[1] + {\@bsphack + \let\do\@makeother\dospecials + \catcode`\^^M\active \catcode`\^^I=12 + \def\verbatim@processline{% + \immediate\write\csname verb@#1\endcsname + {\the\verbatim@line}}% + \verbatim@start} + {\@esphack} |