diff options
author | Karl Berry <karl@freefriends.org> | 2022-01-17 20:54:44 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-01-17 20:54:44 +0000 |
commit | cfbda5f99f31e4fa8bb06f60ee3511be9154b2fc (patch) | |
tree | 860a28011956c491e03eab60dd35ebcbd1055955 /Master/texmf-dist/doc/metapost/mcf2graph/mcf_exa_soc.mp | |
parent | bd997a4c35d71bb2ba00908f6878953ae525d83e (diff) |
mcf2graph (17jan22)
git-svn-id: svn://tug.org/texlive/trunk@61630 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/metapost/mcf2graph/mcf_exa_soc.mp')
-rw-r--r-- | Master/texmf-dist/doc/metapost/mcf2graph/mcf_exa_soc.mp | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/metapost/mcf2graph/mcf_exa_soc.mp b/Master/texmf-dist/doc/metapost/mcf2graph/mcf_exa_soc.mp new file mode 100644 index 00000000000..9465d835bca --- /dev/null +++ b/Master/texmf-dist/doc/metapost/mcf2graph/mcf_exa_soc.mp @@ -0,0 +1,39 @@ +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% Molecular Coding Format by Akira Yamaji 2022.01.17 +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +input mcf2graph.mp; %%% it must be version 4.78 +message "* mcf_exa_soc 2022.01.17"; +message ""; +%------------------------------------------------------------------------------ +fsize:=(35mm,24mm); +max_blength:=4mm; +%%%%sw_frame:=Outside; +%%%%sw_numbering:=Bond; +%%%%sw_numbering:=Atom; +tag1:="J"; tag2:="C"; tag3:="fm"; tag4:="mw"; tag5:="EN"; tag6:="MW"; +%------------------------------------------------------------------------------ +%% outputformat:="png"; hppp:=vppp:=0.1; outputtemplate:="%j-%3c.png"; +%------------------------------------------------------------------------------ +%%%%ext(defaultfont:=mpfont; defaultscale:=.3; label.rt(inf_EN,(0,0));) +%------------------------------------------------------------------------------ +%sw_output:=Font+Info; +%ext(defaultfont:=mpfont; defaultscale:=.3; +%label.rt(inf_EN&" / "&cal_MW&" / "&decimal(num_MW-scantokens(inf_MW)),(0,0));) +%------------------------------------------------------------------------------ +%%%%query("Cat=biological","MW<200","s:MW"); +%%%%query("Cat=biological","MW<150.0","s:EN"); +%%%%query("MW>=150","MW<=250","s:MW"); +%****************************************************************************** +%%%% beginfigm("t:EN","v:Caffeine") % select EN=Caffeine +forever: +%%%% beginfigm("f:mcf_data_base","v+:*") % 'mcf_data_base.mcf'(default) +%%%% beginfigm("f:temp","v+:*") % use query output +%%%% beginfigm("v+:*") % select all + beginfigm("t:EXA","v+:1") % 'v+:1': select EXA=1 + if f_EOF=0: if check(mc)=0: MC(scantokens(mc)) fi fi + endfigm + exitif f_EOF=1; % exit if file end +endfor +%****************************************************************************** +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +bye |