%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Example of MCF typeset by LaTeX   mcf_examples.tex   by A.Yamaji  2020.08.30
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[a4paper]{article}
\usepackage{graphicx}
%---------------------
\usepackage{mcf_setup}
%---------------------
\pagestyle{empty}
\topmargin=-20mm
\oddsidemargin=-12mm
\textwidth=190mm
\textheight=280mm
\parindent=0mm
\setlength\columnsep{8mm}
%-----------------------------------------------------------------------------
\makeatletter%
\newbox \f@box%
\newcount \f@num%
\newcount \tnum%
\tnum=0%
\font\labelM=cmtt8 at 6pt\relax%
%-----------------------------------------------------------------------------
\newif\ifCONT@%
\newread\@auxf%
%------------------------------------------------------------------------
\f@num=1%
\unitlength=0.01mm%
%------------------------------------------------------------------------
\edef\jobname{mcf_exa_soc}%
\edef\f@ext{pk}%
%%%%\edef\f@ext{mps}%
%%%%\edef\f@ext{png}%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\begin{center}
 {\Huge\sf Molecular Coding Format examples}\vspace{5mm}\\
 Author : Akira Yamaji \quad Date : \today\\
 Located at : http://www.ctan.org/pkg/mcf2graph\vspace{3mm}\\
\end{center}
{\small ** FM:Molecular formula calculated by mcf2graph \quad
 ** MW:Molecular weight calculated by mcf2graph}\vspace{3mm}\\
%------------------------------------------------------------------------
\noindent%
\openin\@auxf=\jobname-info.aux%
\CONT@true%
\loop%
\read\@auxf to \@info%
\ifeof\@auxf\CONT@false\else\@sfor\@info{\tag@var\@list}%
  %------------------------------------------------------------
  \begin{picture}(3750,3300)%
     \put(20,3000){\footnotesize\bf \the\f@num:\EN}%
     \put(20,2750){\labelM MW:\mw { / }FM:\fm}%
     \put(20,2530){\labelM MW:\MW(data)}%
     \put( 0,0){%
       \makebox(3750,2530){%
         \ifx\f@ext\@pk{\font\@font=\jobname\@font\char\f@num}%
         \else%
           \edef\f@file{\jobname-\z@num\f@num.\f@ext}%
           \setbox\f@box=\hbox{\font\@font=\jobname\@font\char\f@num}%
           \includegraphics[width=\wd\f@box,height=\ht\f@box]{\f@file}%
%%%%            \includegraphics{\f@file}%
         \fi%
       }%
     }%
  \end{picture}%
  %------------------------------------------------------------
  \advance\f@num1\relax%
  \advance\tnum1\relax%
  \ifnum\tnum=5 \\ \tnum=0 \fi%
\fi%
\ifCONT@ \repeat%
\closein\@auxf%
%------------------------------------------------------------------------
\end{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
tnum=5 \\ \tnum=0 \fi%
\fi%
\ifCONT@ \repeat%
\closein\@auxf%
%------------------------------------------------------------------------
\end{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
