diff options
Diffstat (limited to 'Master/texmf-dist/doc/metapost/mcf2graph/mcf_manual.tex')
-rw-r--r-- | Master/texmf-dist/doc/metapost/mcf2graph/mcf_manual.tex | 104 |
1 files changed, 51 insertions, 53 deletions
diff --git a/Master/texmf-dist/doc/metapost/mcf2graph/mcf_manual.tex b/Master/texmf-dist/doc/metapost/mcf2graph/mcf_manual.tex index ee720dc7eca..9629c6e4744 100644 --- a/Master/texmf-dist/doc/metapost/mcf2graph/mcf_manual.tex +++ b/Master/texmf-dist/doc/metapost/mcf2graph/mcf_manual.tex @@ -1,5 +1,5 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -% Molecular Coding Format manual by Akira Yamaji 2016.10.30 +% Molecular Coding Format manual by Akira Yamaji 2016.11.03 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \documentclass[a4paper]{article} %%%%\usepackage{graphicx} @@ -24,7 +24,7 @@ \htman=45mm% \wdman=94mm% \htmans=42mm% -\fontnum=20% +\fontnum=21% \tempnum=1% %---------------------------------------------------------------------------- \font\@strufont=mcf_man_soc\relax% @@ -70,11 +70,11 @@ %----------------------------------------------------------------------------- \vspace{10mm} {\@strufont% -\makebox[10mm]{}\char0\raisebox{10mm}{\char1}\char2\raisebox{10mm}{\char3}\\ -\makebox[10mm]{}\char4\raisebox{10mm}{\char5}\char6\raisebox{10mm}{\char7}\\ -\makebox[10mm]{}\char8\raisebox{10mm}{\char9}\char10\raisebox{10mm}{\char11}\\ -\makebox[10mm]{}\char12\raisebox{10mm}{\char13}\char14\raisebox{10mm}{\char15}\\ -\makebox[10mm]{}\char16\raisebox{10mm}{\char17}\char18\raisebox{10mm}{\char19}\\} +\makebox[10mm]{}\char1 \raisebox{10mm}{\char2 }\char3 \raisebox{10mm}{\char4}\\ +\makebox[10mm]{}\char5 \raisebox{10mm}{\char6 }\char7 \raisebox{10mm}{\char8}\\ +\makebox[10mm]{}\char9 \raisebox{10mm}{\char10}\char11\raisebox{10mm}{\char12}\\ +\makebox[10mm]{}\char13\raisebox{10mm}{\char14}\char15\raisebox{10mm}{\char16}\\ +\makebox[10mm]{}\char17\raisebox{10mm}{\char18}\char19\raisebox{10mm}{\char20}\\} %----------------------------------------------------------------------------- \twocolumn \tableofcontents @@ -709,26 +709,49 @@ pk font,PNG,SVG,EPS or MDL MOL file(V2000).\\ \put(0, 2){\makebox[5mm]{\tt 3}} \end{picture} %----------------------------------------------------------------------------- +\subsubsection{Clipping mode} +\begin{verbatim} + sw_clip:=0; + MCf(<30,Ph,4:/Cl,3:/F) + ** default: sw_clip=0 +\end{verbatim} +\MCFstructure +\begin{verbatim} + sw_clip:=1; + MCf(<30,Ph,4:/Cl,3:/F) +\end{verbatim} +\MCFstructure +%----------------------------------------------------------------------------- \subsubsection{Solid mode} \begin{verbatim} - (sw_solid=0 : fit to font size) - ** default + (fit to font size) + sw_solid=0 ** default \end{verbatim} \MCFstructure %----------------------------------------- \begin{verbatim} - (sw_solid=1 : solid ratio bond/font width) - ratio_bond_width=0.1 - font_width=60mm - (bond_len#=60mm#*0.1=6mm#) - ** ignore bond_len# + (solid ratio bond/font width) + sw_solid:=1; + ratio_bond_width=0.1 + font_width=60mm + (bond_len#=60mm#*0.1=6mm#) + ** ignore bond_len# \end{verbatim} \MCFstructure %----------------------------------------- \begin{verbatim} - (sw_solid=2 : solid bond length) - bond_len#=10mm# - ** ignore ratio_bond_width + (solid bond length) + sw_solid:=2; + bond_len#=10mm# + ** ignore ratio_bond_width +\end{verbatim} +\MCFstructure +%----------------------------------------- +\begin{verbatim} + (solid bond length,clipping) + sw_solid:=2; + sw_clip:=1; + bond_len#=10mm# \end{verbatim} \MCFstructure %----------------------------------------------------------------------------- @@ -759,34 +782,25 @@ pk font,PNG,SVG,EPS or MDL MOL file(V2000).\\ \makebox[30mm]{\tt 0 :default}% \makebox[30mm]{\tt 1}% %----------------------------------------------------------------------------- -\newpage \subsection{Frame} %----------------------------------------------------------------------------- \subsubsection{Font frame} \begin{verbatim} - (No font frame) + (Draw font frame) margin_left_right:=5mm; margin_top_bottom:=2mm; - sw_font_frame:=0; ** default - MCf(<30,Ph,4:/Cl,3:/F) -\end{verbatim} -\MCFstructure -\begin{verbatim} - (Draw font frame) sw_font_frame:=1; MCf(<30,Ph,4:/Cl,3:/F) \end{verbatim} \MCFstructure \begin{verbatim} (Draw frame inside margin) - sw_font_frame:=2; - MCf(<30,Ph,4:/Cl,3:/F) + sw_font_frame=2 \end{verbatim} \MCFstructure \begin{verbatim} (Draw both frame) - sw_font_frame:=3; - MCf(<30,Ph,4:/Cl,3:/F) + sw_font_frame=3 \end{verbatim} \MCFstructure %----------------------------------------------------------------------------- @@ -805,23 +819,6 @@ pk font,PNG,SVG,EPS or MDL MOL file(V2000).\\ ** default: sw_atom_frame=0 \end{verbatim} \MCFstructure -%----------------------------------------------------------------------------- -\subsection{Clipping font} -\begin{verbatim} - beginfont() - sw_clip:=0; - MCf(<30,Ph,4:/Cl,3:/F) - endfont - ** default: sw_clip=0 -\end{verbatim} -\MCFstructure -\begin{verbatim} - beginfont() - sw_clip:=1; - MCf(<30,Ph,4:/Cl,3:/F) - endfont -\end{verbatim} -\MCFstructure %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \section{Function} \subsection{Function MCd()} @@ -891,6 +888,7 @@ pk font,PNG,SVG,EPS or MDL MOL file(V2000).\\ ht: molecular height p0: origin of molecular structure n: atom number + l: bond length p[m]: atom position of A[m] a[m]: branch angle of A[m] (1<=m<=atom count) @@ -901,7 +899,7 @@ pk font,PNG,SVG,EPS or MDL MOL file(V2000).\\ MCf(<30,Ph,3:/F,4:/Cl) ext(draw p0--(p0+(wd,0)) --(p0+(wd,ht); - draw_vector(p6,a6-180,8mm); + draw_vector(p6,a6-180,l); ) endfont \end{verbatim} @@ -920,14 +918,14 @@ pk font,PNG,SVG,EPS or MDL MOL file(V2000).\\ %----------------------------------------------------------------------------- \subsection{Global parameter setting} \begin{verbatim} - ratio_thickness_bond:=0.05; beginfont() MCf(Ph) endfont + ratio_thickness_bond:=0.05; beginfont() MCf(Ph) endfont beginfont() MCf(Ph) endfont \end{verbatim} \MCFstructure\MCFstructure\MCFstructure %----------------------------------------------------------------------------- -\section{Output infomation} +\section{Output information} %----------------------------------------------------------------------------- \subsection{Output molecular information} \begin{verbatim} @@ -1333,14 +1331,14 @@ M END %-------------------------------------------------------------------- \begin{document} \unitlength=1mm% -\INFO{F:mcf_man_soc,C:103,NO:1,cMW:349.40462,cFM:C16H19N3O4S,EN:Ampicillin}% -\INFO{F:mcf_man_soc,C:104,NO:2,cMW:386.6532,cFM:C27H46O,EN:Cholesterol}% +\INFO{F:mcf_man_soc,C:114,NO:1,cMW:349.40462,cFM:C16H19N3O4S,EN:Ampicillin}% +\INFO{F:mcf_man_soc,C:115,NO:2,cMW:386.6532,cFM:C27H46O,EN:Cholesterol}% \end{document} %-------------------------------------------------------------------- \end{verbatim}% %############################################################################ %------------------------------------------------------------------------ -\INFO{F:mcf_man_soc,C:113,NO:1,cMW:349.40462,cFM:C16H19N3O4S,EN:Ampicillin}% -\INFO{F:mcf_man_soc,C:114,NO:2,cMW:386.6532,cFM:C27H46O,EN:Cholesterol}% +\INFO{F:mcf_man_soc,C:114,NO:1,cMW:349.40462,cFM:C16H19N3O4S,EN:Ampicillin}% +\INFO{F:mcf_man_soc,C:115,NO:2,cMW:386.6532,cFM:C27H46O,EN:Cholesterol}% %------------------------------------------------------------------------ \end{document} |