%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Example of MCF typeset by LaTeX   mcf_examples.tex   by A.Yamaji  2016.1.16
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[a4paper]{article}
\usepackage{graphicx}
\pagestyle{empty}
\topmargin=-20mm
\oddsidemargin=-12mm
\textwidth=190mm
\textheight=280mm
\parindent=0mm
\setlength\columnsep{8mm}
%-------------------------------------------------------------------------------
\makeatletter%
\newbox \@stringbox%
\newcount \fontnum%
\newcount \tnum%
%-------------------------------------------------------------------------------
\def\mol@sel#1{%
\if#1\empty\relax\else%
  \edef\@fst{\expandafter\@fst@param#1;}%
  \edef\@sec{\expandafter\@sec@param#1;}%
  \ifx\@fst\@F\edef\MOLfile{\@sec}\fi    \ifx\@fst\@C\edef\MOLchar{\@sec}\fi%
  \ifx\@fst\@Lx\edef\MOLlenx{\@sec}\fi   \ifx\@fst\@Ly\edef\MOLleny{\@sec}\fi%
  \ifx\@fst\@EN\edef\MOLnameE{\@sec}\fi  \ifx\@fst\@JN\edef\MOLnameJ{\@sec}\fi%
  \ifx\@fst\@CAS\edef\MOLcas{\@sec}\fi   \ifx\@fst\@USE\edef\MOLuse{\@sec}\fi%
  \ifx\@fst\@FM\edef\MOLfm{\@sec}\fi     \ifx\@fst\@FMc\edef\CALfm{\@sec}\fi%
  \ifx\@fst\@MW\edef\MOLmw{\@sec}\fi     \ifx\@fst\@MWc\edef\CALmw{\@sec}\fi%
  \ifx\@fst\@logP\edef\MOLlogP{\@sec}\fi \ifx\@fst\@EXA\edef\MOLextA{\@sec}\fi%
  \ifx\@fst\@EXB\edef\MOLextB{\@sec}\fi  \ifx\@fst\@NO\edef\MOLnum{\@sec}\fi\fi}%
%-------------------------------------------------------------------------------
\def\@F{F}\def\@C{C}\def\@EN{EN}\def\@JN{JN}\def\@CAS{CAS}%
\def\@MW{MW}\def\@MWc{MWc}\def\@FM{FM}\def\@FMc{FMc}\def\@Lx{Lx}\def\@Ly{Ly}%
\def\@NO{NO}\def\@USE@{USE}\def\@logP@{logP}\def\@EXA@{EXA}\def\@EXB@{EXB}%
%-------------------------------------------------------------------------------
\def\@fst@param#1:#2;{#1}\def\@sec@param#1:#2;{#2}%
\def\@stru#1[#2]{\font\@strufont=#1\relax\hbox{\@strufont\char#2}}%
%-------------------------------------------------------------------------------
\def\put@char{%
  \unitlength=0.01mm\relax \@tempcnta=3300\relax \@tempcntb=3750\relax%
  \begin{picture}(\@tempcntb,\@tempcnta)%
     \advance\@tempcnta -300\relax%
     \put(20,\@tempcnta){\tiny\bf [\the\fontnum] \MOLnameE}%
     \put( 0,0){\makebox(\@tempcntb,\@tempcnta){\@stru{\MOLfile}[\MOLchar]}}%
  \end{picture}%
  \advance\fontnum\@ne\relax\advance\tnum\@ne\relax%
  \ifnum\tnum=5 \\ \tnum=0\relax \fi%
}
%-------------------------------------------------------------------------------
\def\INFO#1{%
  \edef\MOLnameE{}%
  \@tfor\@temp:=#1\do{\mol@sel{\@temp}}%
  \put@char%
}%
%-------------------------------------------------------------------------------
\makeatother
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\begin{center}
 {\LARGE\bf Molecular Coding Format examples}\vspace{5mm}\\
 Author : Akira Yamaji \quad Date : \today\\
 Located at : http://www.ctan.org/pkg/mcf2graph\vspace{7mm}\\
\end{center}
\fontnum=1%
\noindent%
%------------------------------------------------------------------------
\input mcf_exa_soc-info.aux
%------------------------------------------------------------------------
\end{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
