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 | 122 |
1 files changed, 61 insertions, 61 deletions
diff --git a/Master/texmf-dist/doc/metapost/mcf2graph/mcf_manual.tex b/Master/texmf-dist/doc/metapost/mcf2graph/mcf_manual.tex index d6d8bab65b7..d4de4fc7810 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 2019.03.03 +% Molecular Coding Format manual by Akira Yamaji 2019.05.11 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \documentclass[a4paper]{article} %%%%\documentclass[a4paper,twoside]{article} @@ -588,10 +588,10 @@ pk font,PNG,SVG,EPS or MDL MOL file. defaultsize:=8bp; MCat(0.25,0)(<30,Ph,{2,5}:N,3:/NH2, 2:red,5:blue,3=green) - ext(label.lft("(draw)",p0+(0,0.9h));) + add(label.lft("(draw)",p0+(0,0.9h));) atomfont:="cmr8"; % default:"draw" MCat(1,0)(<30,Ph,{2,5}:N,3:/NH2) - ext(label.lft("(cmr8)",p0+(0,0.9h));) + add(label.lft("(cmr8)",p0+(0,0.9h));) \end{verbatim} {\MCFformat=0 \MCFgraph} %----------------------------------------------------------------------------- @@ -1039,7 +1039,7 @@ MCat(1, .5)(<30,Ph,4:/COOH,3:/NH2) for i=1 step -0.25 until 0: for j=0 step 0.25 until 1: MCat(j,i)(Ph,4:N) - ext( + add( drawarrow((A1 shifted (aw,0)) rotated A1dir..A1); label(decimal(mangle), @@ -1054,61 +1054,9 @@ MCat(1, .5)(<30,Ph,4:/COOH,3:/NH2) \MCFgraph %=============================================================================== \newpage -\subsection{Function EXT()} +\subsection{Function add()} \begin{verbatim} -(Add extra graphic to font) - - w: font width - h: font height - w0: font width-2xpart(fmargin) - h0: font height-2ypart(fmargin) - aw: atom font size - em: label font size - p0: fmargin - n: molecular number - p[m]: molecular origin position - w[m]: molecular width - h[m]: molecular height - ratio_thickness_char: - pen thickness / char width - -%---------------------------------------- -beginfont() - fsize:=(70mm,30mm;) - ratio_bond_width:=0.065; - sw_solid:=1; - %--------------------------------------- - MCat(0.1,0.5) - (<-210,60`1,60`1,60`1,{1,3}=dl, - 1:/R1,4:/R2^-60) - ext(defaultscale:=0.6; - label.bot("Diene",p0+(0.5w,0));) - %--------------------------------------- - MCat(0.4,0.5) - (<-30,-60`1,1=dl,1:/R3,2:/R4^60) - ext(defaultscale:=0.6; - label.bot("Dienophile",p0+(0.5w,0));) - %--------------------------------------- - MCat(0.9,0.5) - (<30,?6,6=dl,2:/R2,3:/R4,4:/R3,5:/R1) - %--------------------------------------- - EXT( - drawarrow (0.52w,0.5h)..(0.6w,0.5h); - defaultscale:=0.7; - label("+",(0.25w,0.5h)); - ratio_thickness_char:=0.125; - label.bot("Diels-Alder Reaction", - (0.5w,h)); - ) - %--------------------------------------- -endfont -\end{verbatim} -\MCFgraph -%----------------------------------------------------------------------------- -\newpage -\subsection{Function ext()} -\begin{verbatim} -(Add extra graphic to molecule) +(Add graphic to molecule) w: molecular width h: molecular height @@ -1131,19 +1079,19 @@ beginfont() %--------------------------------------- msize:=(1,0.7); MCat(0,0.5)(<30,?6,3=dl,4:/CH3) - ext( + add( label.top("+",A7); drawarrow B3{dir(B3dir-90)}.. {dir(B7dir+90)}0.4[B7s,B7e]; ) %--------------------------------------- MCat(1,0.5)(<30,?6,4://CH3) - ext( + add( labeloffset:=0bp; label.lrt("+",A3); ) %--------------------------------------- - EXT( + ext( drawdblarrow (0.4w,0.5h)..(0.55w,0.5h); ) %--------------------------------------- @@ -1163,6 +1111,58 @@ drawarrow & drawdblarrow: \end{verbatim} %----------------------------------------------------------------------------- \newpage +\subsection{Function ext()} +\begin{verbatim} +(Extra graphic to font) + + w: font width + h: font height + w0: font width-2xpart(fmargin) + h0: font height-2ypart(fmargin) + aw: atom font size + em: label font size + p0: fmargin + n: molecular number + p[m]: molecular origin position + w[m]: molecular width + h[m]: molecular height + ratio_thickness_char: + pen thickness / char width + +%======================================== +ext(label(inf_EN,(.5w,0));) => all font +%======================================== +beginfont() + fsize:=(70mm,30mm;); blength:=0.065; + %--------------------------------------- + MCat(0.1,0.5) + (<-210,60`1,60`1,60`1,{1,3}=dl, + 1:/R1,4:/R2^-60) + add(defaultscale:=0.6; + label.bot("Diene",p0+(0.5w,0));) + %--------------------------------------- + MCat(0.4,0.5) + (<-30,-60`1,1=dl,1:/R3,2:/R4^60) + add(defaultscale:=0.6; + label.bot("Dienophile",p0+(0.5w,0));) + %--------------------------------------- + MCat(0.9,0.5) + (<30,?6,6=dl,2:/R2,3:/R4,4:/R3,5:/R1) + %--------------------------------------- + ext( + drawarrow (0.52w,0.5h)..(0.6w,0.5h); + defaultscale:=0.7; + label("+",(0.25w,0.5h)); + ratio_thickness_char:=0.125; + label.bot("Diels-Alder Reaction", + (0.5w,h)); + ) + %--------------------------------------- +endfont +\end{verbatim} +\MCFgraph +%----------------------------------------------------------------------------- +\newpage \section{MCF example} %----------------------------------------------------------------------------- \subsection{Acetamiprid} |