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 | 56 |
1 files changed, 30 insertions, 26 deletions
diff --git a/Master/texmf-dist/doc/metapost/mcf2graph/mcf_manual.tex b/Master/texmf-dist/doc/metapost/mcf2graph/mcf_manual.tex index 8fdb87a1527..fa6407cebaf 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 2017.06.04 +% Molecular Coding Format manual by Akira Yamaji 2017.07.17 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \documentclass[a4paper]{article} %%%%\usepackage{graphicx} @@ -534,16 +534,24 @@ pk font,PNG,SVG,EPS or MDL MOL file(V2000).\\ \end{verbatim} \MCFstructure %----------------------------------------------------------------------------- -\subsubsection{Change color} +\subsubsection{Change color, atom font} \begin{verbatim} - 5:green : change color of A5 green - 3=red : change color of B3 red - ** METAFONT ignore color command + 1=green : change color of B1 green + 3:red : change color of A3 red + atomfont:="cmr8" : use cmr8 for atom font - <30,Ph,{2,5}:N,2:red,5:blue,3=green + defaultfont:="uhvr8r"; + defaultsize:=8bp; + MCa(0,0.5)(<30,Ph,{1,5}:N,3:/COOH,4:/NO2, + 1:red,5:blue,3=green) + ext(label.urt("(draw)",p0+(0,ht));) + atomfont:="cmr8"; % default:"draw" + atomfontsize:=8bp; % default:8bp + MCa(1,0.5)(<30,Ph,{1,5}:N,3:/COOH,4:/NO2) + ext(label.urt("(cmr8)",p0+(0,ht));) \end{verbatim} +\hspace{5mm}\includegraphics{mcf_man_soc-064.eps}% for dvipdfmx %%%%\MCFstructure % for Metafont -\includegraphics{mcf_man_soc-064.eps}% for dvipdfmx \advance\fontnum\@ne\relax\advance\tempnum\@ne\relax% %----------------------------------------------------------------------------- \subsubsection{Make block} @@ -570,18 +578,15 @@ pk font,PNG,SVG,EPS or MDL MOL file(V2000).\\ %----------------------------------------------------------------------------- \subsubsection{User definition} \begin{verbatim} - iBuOH : user defined substructure - - iBuOH:='(!,/_,!,OH) - MCf(<30,?6,{4,6}:/iBuOH) + user defined substructure + iBuOH:='(!,/_,!,OH) + <30,?6,{4,6}:/iBuOH \end{verbatim} \MCFstructure %----------------------------------------------------------------------------- -\subsubsection{Inline definition} \begin{verbatim} Insert user defined substructure - - <30,!3,/'(!,/_,!,OH),!3 + <30,!3,/'(!,/_,!,OH),!3 \end{verbatim} \MCFstructure %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -1067,7 +1072,7 @@ beginfont() defaultscale:=0.7; label("+",(0.25w,0.5h)); label.bot("Diels-Alder Reaction", - (0.5w,1h)); + (0.5w,h)); ) %--------------------------------------- endfont @@ -1103,8 +1108,7 @@ beginfont() ext( label.top("+",A7); B7:=0.37[Bs7,Be7]; - drawarrow B3..((B7-B3) scaled 0.6 - rotated -45 shifted B3)..B7; + drawarrow B3{dir 0}..{dir 150}B7; ) %--------------------------------------- MCd(1,0.7)(1,0.5)(<30,?6,4://CH3) @@ -1122,9 +1126,9 @@ endfont \MCFstructure \begin{verbatim} label: - sw_label=0: emulation mode - sw_label=1: plain.mp mode - **default sw_label=0 + defaultfont: label font + defaultfont="draw": draw font + **default defaultfont="draw" drawarrow & drawdblarrow: sw_arrow=0: emulation mode @@ -1311,14 +1315,14 @@ beginfont("NO:1","EN:Ampicillin") > begin font(information) MCf(<45,?4,2:N,2=?5,-1:S, > begin MCF (1) {3^45,4^-45}:/*H,1://O^15,5:/*COOH^-18, > {6^35,6^-35}:/_, > - 4:@,75,NH,!,//O,!,/*NH,!,Ph) > end MCF + 4:@,75,NH,!,//O,!,/*NH,!,Ph) > end MCF endfont > end font %------------------------------------------------------------------------ beginfont("NO:2","EN:Cholesterol") > begin font(information) MCf(<30,?6,{-4,-2}=?6,-4=?5,7=dl, > begin MCF (2) 1:*/OH,{4,12}:*/_^60,9:*/H^60, > 10:/*H^180,{11,-1}:/*H^-60, > - -1:@,17,/*_,!4,/_,!) > end MCF + -1:@,17,/*_,!4,/_,!) > end MCF endfont > end font %------------------------------------------------------------------------ beginfont("NO:3","EN:Limonin") > begin font(information) @@ -1327,20 +1331,20 @@ beginfont("NO:3","EN:Limonin") > begin font(information) {13,15,17,20}:O,{3,12,21}://O, > {4~wf^60,8~zf^60,18^35,18^-35}:/_, > {1^60,5^180,16^60}:/*H, > - 14:\*,|,?5,{1,4}=dl,3:O) > end MCF + 14:\*,|,?5,{1,4}=dl,3:O) > end MCF endfont > end font %------------------------------------------------------------------------ beginfont("NO:4","EN:beta-carotene) > begin font(information) MCf(<30,?6,3=dl,{3,5^35,5^-35}:/_, > begin MCF (4) - 4:\,|,!18,{1,3,5,7,9,11,13,15,17}=dr, > + 4:\,|,!18,{1,3,5,7,9,11,13,15,17}=dr, > {3,7,12,16}:/_, > |,?6,6=dl,{6,2^35,2^-35}:/_) > end MCF endfont > end font %------------------------------------------------------------------------ beginfont("NO:5","EN:Gibberellin A3"); > begin font(information) MCf(<18,?5,3=?7,5=?6[12], > begin MCF (5) - 8:@,160`1.3,&3,13=dl,6=wf,8=wb, > - 5:@,40~zf`1,O,60,//O^180,&14~zb, > + 8:@,160`1.3,&3,13=dl,6=wf,8=wb, > + 5:@,40~zf`1,O,60,//O^180,&14~zb, > 2:/COOH,7://_,13:*/OH,8:/*OH, > 14:*/_,{1^60,4^60}:*/H) > end MCF endfont; > end font |