diff options
Diffstat (limited to 'Master/texmf-dist/doc/metapost/mcf2graph/mcf_example.tex')
-rw-r--r-- | Master/texmf-dist/doc/metapost/mcf2graph/mcf_example.tex | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/Master/texmf-dist/doc/metapost/mcf2graph/mcf_example.tex b/Master/texmf-dist/doc/metapost/mcf2graph/mcf_example.tex index 5520b2c7291..9752ba06246 100644 --- a/Master/texmf-dist/doc/metapost/mcf2graph/mcf_example.tex +++ b/Master/texmf-dist/doc/metapost/mcf2graph/mcf_example.tex @@ -1,5 +1,5 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -% Example of MCF typeset by LaTeX mcf_examples.tex by A.Yamaji 2016.2.27 +% Example of MCF typeset by LaTeX mcf_examples.tex by A.Yamaji 2016.4.2 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \documentclass[a4paper]{article} \usepackage{graphicx} @@ -15,6 +15,8 @@ \newbox \@stringbox% \newcount \fontnum% \newcount \tnum% +\newif\ifCONT@% +\newread\@auxf% %------------------------------------------------------------------------------- \def\mol@sel#1{% \if#1\empty\relax\else% @@ -47,7 +49,15 @@ \ifnum\tnum=5 \\ \tnum=0\relax \fi% } %------------------------------------------------------------------------------- -\def\INFO#1{\@tfor\@temp:=#1\do{\mol@sel\@temp}\put@char}% +\def\inputINFO#1{% +\openin\@auxf=#1% +\CONT@true% +\loop +\read\@auxf to \tempinfo% +\ifeof\@auxf\CONT@false\else\@for\@temp:=\tempinfo\do{\mol@sel\@temp}% +\put@char\fi% +\ifCONT@ \repeat +\closein\@auxf}% %------------------------------------------------------------------------------- \makeatother %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -60,7 +70,7 @@ \fontnum=1% \noindent% %------------------------------------------------------------------------ -\input mcf_exa_soc-info.aux +\inputINFO{mcf_exa_soc-info.aux}% %------------------------------------------------------------------------ \end{document} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |