diff options
Diffstat (limited to 'Master/texmf-dist/source/latex/formula/prepverz.bat')
-rw-r--r-- | Master/texmf-dist/source/latex/formula/prepverz.bat | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/Master/texmf-dist/source/latex/formula/prepverz.bat b/Master/texmf-dist/source/latex/formula/prepverz.bat new file mode 100644 index 00000000000..71778d0bace --- /dev/null +++ b/Master/texmf-dist/source/latex/formula/prepverz.bat @@ -0,0 +1,30 @@ +
+
+@echo off
+set name=zw$$$
+echo \documentclass{article} > %name%
+echo %%%%%% uncomment this if you want descriptions in German language >> %name%
+echo %% \usepackage{german} >> %name%
+echo \usepackage[T1]{fontenc} >> %name%
+echo \usepackage{formula,longtable,vmargin} >> %name%
+echo \setpapersize{A4} >> %name%
+echo \setmargins{20mm}{9mm}{180mm}{240mm}{12pt}{11mm}{0pt}{11mm} >> %name%
+echo \input %1 >> %name%
+echo \setlongtables >> %name%
+echo \begin{document} >> %name%
+echo \begin{longtable}{llp{10cm}} >> %name%
+grep "^ *\\formula" %1 >> %name%
+echo \end{longtable} >> %name%
+echo \end{document} >> %name%
+type %name% | sed -e "/^\\formula[^ ]* *{*\([A-Za-z]*\)}* .*/s//\\\1my/" > zw$$$$
+sed -e "/^File /d" zw$$$$ > abverz.tex
+del %name%
+del zw$$$$
+rem mit GnuGrep kann "grep -h" aufgerufen werden - kein Filename - zweiter
+rem sed-Aufruf entf"allt
+rem eleganter w"are (ohne Zwischendatei zz$$$):
+rem grep -h "^ *\\formula" %1 | sed -e "/^\\formula[^ ]* *{*\([A-Za-z]*\)}* .*/s//\\\1my/"
+rem irgendwie m"ochte DOS die Pipe nicht so richtig und es funktionukelt
+rem so nur im OS/2
+
+
|