diff options
author | Karl Berry <karl@freefriends.org> | 2015-07-13 22:19:02 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2015-07-13 22:19:02 +0000 |
commit | c7f2ce5fcf476bf2b530bd5dcbeb4fc3e7b72f31 (patch) | |
tree | 9ad78363bdbdd853966f203b6b57b8138cbbcd9a /Master/texmf-dist/doc/metapost/mcf2graph/README | |
parent | 4b3fc95cce2e262c8570ac41b7eb3958badbdb49 (diff) |
mcf2graph (13jul15)
git-svn-id: svn://tug.org/texlive/trunk@37853 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/metapost/mcf2graph/README')
-rw-r--r-- | Master/texmf-dist/doc/metapost/mcf2graph/README | 113 |
1 files changed, 113 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/metapost/mcf2graph/README b/Master/texmf-dist/doc/metapost/mcf2graph/README new file mode 100644 index 00000000000..66dbc7dfcf2 --- /dev/null +++ b/Master/texmf-dist/doc/metapost/mcf2graph/README @@ -0,0 +1,113 @@ +******************************************************************************* + mcf2graph : Metapost/Metafont macro convert Molecular Coding Format to graphic + Author : Akira Yamaji + DATE : 2015/07/11 + E-mail : akira.yamaji5@gmail.com + Web site : http://molecoding.cocolog-nifty.com/blog/ +******************************************************************************* + +1. Introduction + + Molecular Coding Format(MCF) is new linear notation represent chmical + structure diagram. + mcf2graph(metapost/metafont macro) convert MCF file to + graphic file(pk font/PNG/SVG/EPS) or MDL MOL file(V2000). + The software, MCF syntax manual,TeX example can get from authors web site. + + +2. The distribution of software + +( 1) README This file + +( 2) mcf_graph.mf Macro of Metapost / Metafont + +( 3) mcf_manual.tex MCF syntax manual(LaTeX file) +( 4) mcf_man_soc.mf MCF file for mcf_manual.tex +( 5) mcf_man_soc-030.eps No.30 EPS(with color) file from (4) +( 6) mcf_manual.pdf PDF file of mcf_manual.tex + +( 7) mcf_example.tex LaTeX example +( 8) mcf_exa_soc.mf MCF file for mcf_example.tex +( 9) mcf_exa_soc-info.log Infomation file from (8) +(10) mcf_example.pdf PDF file of mcf_example.tex + + +3. Use mcf2graph.mf + +(1) mpost -s ahangle=1 FILENAME output PNG file. (default value is eps) +(2) mpost -s ahangle=2 FILENAME output SVG file. +(3) mpost -s ahangle=3 FILENAME output MDL Molfile(V2000) +(4) mpost -s ahangle=0 FILENAME output no graphic file. +(5) mpost -s ahlength=1 FILENAME output first definition only (for test) +(6) mpost -s ahlength=2 FILENAME output checklist. +(7) Large number of molecular structures can be gathering by using TEX. + mcf_example.tex is example of use LaTeX. + + +4. Molecular Coding Format example + +input mcf2graph.mf; % input main system +font_wd#:=30mm#; % font width +font_ht#:=20mm#; % font height +max_bond_width:=0.2; % max fond length/font width +sw_logout:=1; % log file out +sw_frame:=0; % add frame +sw_expand:=0; % expand substituent mode +sw_start_vecor:=0; % start vector mode +sw_numberingA:=0; % atom adress mode +sw_numberingB:=0; % bond adress mode +%%sw_checklist:=1; % check list mode +%%sw_MOLfile:=1; % Mdl molfile(V2000) +%*********************************************************************** +beginfont("EN:Acetamiprid") % Molecular name 1 + MCf(^^30,Ph,4\,!,NH,!,!~dr,N,!,CN)% % Molecular Coding Format +endfont +%*********************************************************************** +bye + +5. Use TeX(latex) + + +\documentclass[a4paper]{article} +\usepackage{graphicx} +\pagestyle{empty} + +% insert part of info LOG file + +%------------------------------------------------------------------------- +\MOLinfo{EN:Acetamiprid}{:}{:}{:}% +{:}{:}{:}{:}% +{:}{:}{:}{:}% +\MCFinfo{MCF_SOC2}{0}{MCF_SOC2-000.eps}{419.14972}{145.32037}{159.04236}{12}{0}{}% +%------------------------------------------------------------------------- + +%% filename of souce file : mcf_exa_soc.mf + +\input mcf_exa_soc-info.log + +\end{document} + +\end{verbatim} +%---------------------------------------------------------------------------- + + +6. License + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. + |