%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Molecular Coding Format file for mcf_examples.tex   by A.Yamaji   2015.7
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[a4paper]{article}
\usepackage{graphicx}
\pagestyle{empty}
\topmargin=-20mm
\oddsidemargin=-14mm
\textwidth=210mm
\textheight=290mm
\parindent=0mm
\setlength\columnsep{8mm}
%-------------------------------------------------------------------------------
\makeatletter%
\newbox   \@stringbox%
\newcount \fontnum%
\newcount \tnum%
\newcount \Cnt@xlen%
\newcount \Cnt@row%
\newcount \fontw%
\newdimen \font@dim%
%-------------------------------------------------------------------------------
\def\mol@sel#1{%
  \if#1\empty\relax\else%
    \edef\@first{\expandafter\@first@param#1;}%
    \edef\@second{\expandafter\@second@param#1;}%
    \ifx\@first\@EN@    \edef\MOL@nameE{\@second}\fi%
    \ifx\@first\@JN@    \edef\MOL@nameJ{\@second}\fi%
    \ifx\@first\@NO@    \edef\MOL@number{\@second}\fi%
    \ifx\@first\@CAS@   \edef\MOL@CAS{\@second}\fi%
    \ifx\@first\@MW@    \edef\MOL@MW{\@second}\fi%
    \ifx\@first\@FM@    \edef\MOL@fomura{\@second}\fi%
    \ifx\@first\@USE@   \edef\MOL@use{\@second}\fi%
    \ifx\@first\@XLogP@ \edef\MOL@XLogP{\@second}\fi%
    \ifx\@first\@EXA@   \edef\MOL@extA{\@second}\fi%
    \ifx\@first\@EXB@   \edef\MOL@extB{\@second}\fi%
  \fi%
}%
%-------------------------------------------------------------------------------
\def\@first@param#1:#2;{#1}\def\@second@param#1:#2;{#2}%
\def\MOLinfo#1#2#3#4#5#6#7#8#9{%
\def\@EN@{EN}\def\@JN@{JN}\def\@CAS@{CAS}\def\@NO@{NO}\def\@MW@{MW}\def\@FM@{FM}%
\def\@USE@{USE}\def\@XLogP@{XLogP}\def\@EXA@{EXA}\def\@EXB@{EXB}%
\edef\MOL@nameE{}\edef\MOL@nameJ{}\edef\MOL@number{}\edef\MOL@CAS{}\edef\MOL@MW{}%
\edef\MOL@fomura{}\edef\MOL@use{}\edef\MOL@XLogP{}\edef\MOL@extA{}\edef\MOL@extB{}%
\mol@sel{#1}\mol@sel{#2}\mol@sel{#3}\mol@sel{#4}\mol@sel{#5}\mol@sel{#6}%
\mol@sel{#7}\mol@sel{#8}\mol@sel{#9}\MOLaux}%
\def\MOLaux#1#2#3{\mol@sel{#1}\mol@sel{#2}\mol@sel{#3}}%
%--------------------------------------------------------------------------------
\def\@stru#1[#2]{\font\@strufont=#1\relax\hbox{\@strufont\char#2}}%
\def\MCFinfo#1#2#3#4#5#6#7#8#9{%
  \unitlength=0.01mm\relax \@tempcnta=3200\relax \@tempcntb=3800\relax%
  \begin{picture}(\@tempcntb,\@tempcnta)%
     \advance\@tempcnta -300\relax%
     \put(20,\@tempcnta){\tiny\bf [\the\fontnum] \MOL@nameE}%
%---------------------------------------------------------------------------
% for METAFONT
   \put( 0,0){\makebox(\@tempcntb,\@tempcnta){\@stru{#1}[#2]}}%
%%%% for METAPOST
%%%%   \put( 0,0){\makebox(\@tempcntb,\@tempcnta){\includegraphics{#3}}}%
%---------------------------------------------------------------------------
  \end{picture}%
  \advance\fontnum\@ne\relax\advance\tnum\@ne\relax%
  \ifnum\tnum=5 \\ \tnum=0\relax \fi%
  }%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
{\hspace{20mm} \LARGE\bf Molecular Coding Format examples \hspace{20mm} }%
{\footnotesize\bf by Akira Yamaji  2015.7} \vspace{5mm}\\
\fontnum=1%
\noindent%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%% Copy & Paste here from log-file           %%%%%%%%%%%%%%%
%%%%%%%%% or \input 'filename'-info.log             %%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%------------------------------------------------------------------------
\input mcf_exa_soc-info.log
%------------------------------------------------------------------------
\end{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
