summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/metapost/mcf2graph/mcf_example.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2016-04-02 21:42:47 +0000
committerKarl Berry <karl@freefriends.org>2016-04-02 21:42:47 +0000
commit0add57ee639971ed36026142db8ace9bb613d7af (patch)
tree74e65cdc7819210f1e7e2b4b24a5437d73dff0ec /Master/texmf-dist/doc/metapost/mcf2graph/mcf_example.tex
parent2d629dc1657a546dbe79d71fbfe89d81f15a5aec (diff)
mcf2graph (2apr16)
git-svn-id: svn://tug.org/texlive/trunk@40212 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/metapost/mcf2graph/mcf_example.tex')
-rw-r--r--Master/texmf-dist/doc/metapost/mcf2graph/mcf_example.tex16
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}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%