summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/metapost/mcf2graph/README
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/metapost/mcf2graph/README')
-rw-r--r--Master/texmf-dist/doc/metapost/mcf2graph/README51
1 files changed, 32 insertions, 19 deletions
diff --git a/Master/texmf-dist/doc/metapost/mcf2graph/README b/Master/texmf-dist/doc/metapost/mcf2graph/README
index 3755cb4e70c..2c4e2da7d64 100644
--- a/Master/texmf-dist/doc/metapost/mcf2graph/README
+++ b/Master/texmf-dist/doc/metapost/mcf2graph/README
@@ -1,7 +1,7 @@
********************************************************************************
mcf2graph : Convert Molecular Coding Format to graphics with Metafont/Metapost
Author : Akira Yamaji
- version : 3.80 2016-02-06
+ version : 3.81 2016-02-11
E-mail : mcf2graph@gmail.com
Located at : http://www.ctan.org/pkg/mcf2graph
********************************************************************************
@@ -12,7 +12,6 @@
like adressing,grouping,macro,etc. There are no Meta language commands in MCF.
mcf2graph.mf(metapost/metafont macro) convert MCF file to graphics file
(pk font/PNG/SVG/EPS) or MDL MOL file(V2000).
- The software,MCF manual,TeX example can get from authors web site.
2. The distribution of software
( 1) README This file
@@ -23,29 +22,36 @@
( 6) mcf_man_soc-031.eps No.31 EPS(with color) file of (4)
( 7) mcf_manual.pdf PDF of (4) (used LaTeX,dvipdfmx)
( 8) mcf_example.tex LaTeX example,
- Make 'mcf_exa_soc-info.aux' before typeset
- mpost -s ahangle=0 mcf_exa_soc.mf
+ Make file 'mcf_exa_soc-info.aux' before typeset
+ >mpost -s ahangle=0 mcf_exa_soc.mf
( 9) mcf_exa_soc.mf Molecular difinition file for mcf_example.tex
(10) mcf_example.pdf PDF of (8) (used LaTeX,dvipdfmx)
(11) mcf_mplib_exa.tex luamplib v2.11(LuaLaTeX) example
(12) mcf_example.pdf PDF of (11) typeset with LuaTeX(LuaLaTeX)
3. How to use mcf2graph with Metapost
- ( 1) mpost -s ahangle=0 FILENAME output no graphic file.
- ( 2) mpost -s ahangle=1 FILENAME output PNG file. (default value is eps)
- ( 3) mpost -s ahangle=2 FILENAME output SVG file.
- ( 4) mpost -s ahangle=3 FILENAME output MDL Molfile(V2000)
- ( 5) mpost -s ahlength=1 FILENAME output first definition only (for test)
- ( 6) mpost -s ahlength=2 FILENAME output checklist.
+ ( 1) >mpost -s ahangle=0 FILENAME output no graphic file.
+ ( 2) >mpost -s ahangle=1 FILENAME output PNG file. (default value is eps)
+ ( 3) >mpost -s ahangle=2 FILENAME output SVG file.
+ ( 4) >mpost -s ahangle=3 FILENAME output MDL Molfile(V2000)
+ ( 5) >mpost -s ahlength=1 FILENAME output first definition only (for test)
+ ( 6) >mpost -s ahlength=2 FILENAME output checklist.
4. Molecular definition file example
- input mcf2graph.mf; % input main system
- font_wd#:=30mm#; font_ht#:=20mm#; % font width,font height
- max_bond_width:=0.2; % max fond length/font width
%-----------------------------------------------------------------------
- beginfont("EN:Acetamiprid") % Molecular name 1
- MCf(<30,Ph,4\,!,NH,!,!~dr,N,!,CN)% % Molecular Coding Format
+ input mcf2graph.mf; % input main system
+ %-- preamble -----------------------------------------------------------
+ font_wd#:=30mm#; % font width
+ font_ht#:=20mm#; % font height
+ max_bond_width:=0.2; % max fond length/font width
+ %-- molecular definition -----------------------------------------------
+ beginfont("EN:Acetamiprid") % Molecular name 1
+ MCf(<30,Ph,4\,!,NH,!,!~dr,N,!,CN) % Molecular Coding Format
+ endfont
+ beginfont("EN:Imidacloprid") % Molecular name 2
+ MCf(<30,Ph,1:N,6:/Cl,3\,!, % Molecular Coding Format
+ |,?5,1:N,3:NH,2\\,!,NO2)
endfont
%-----------------------------------------------------------------------
bye
@@ -65,7 +71,7 @@
\input mcf_exa_soc-info.aux % filename of souce file : mcf_exa_soc.mf
6. How to use mcf2graph with luamplib(LuaLaTeX)
- It is possible to write MCF in LaTeX text with luamplib(ver.2.11).
+ It is possible to write MCF in LaTeX text with luamplib.
mcf_mplib_exa.tex is example of using luamplib(LuaLaTeX).
\documentclass{article}
@@ -76,10 +82,17 @@
%-------------------------------------------------------------------------------
**********************************************************
\begin{mplibcode}
- font_wd:=100mm; font_ht:=50mm;
- beginfont("EN:Acetamiprid") % Molecular name 1
- MCf(<30,Ph,4\,!,NH,!,!~dr,N,!,CN)% % Molecular Coding Format
+ %-------------------------------------------------------------------
+ font_wd:=100mm; font_ht:=50mm; % preamble
+ %-------------------------------------------------------------------
+ beginfont("EN:Acetamiprid") % Molecular name 1
+ MCf(<30,Ph,4\,!,NH,!,!~dr,N,!,CN)% % Molecular Coding Format
+ endfont
+ beginfont("EN:Imidacloprid") % Molecular name 2
+ MCf(<30,Ph,1:N,6:/Cl,3\,!, % Molecular Coding Format
+ |,?5,1:N,3:NH,2\\,!,NO2)
endfont
+ %-------------------------------------------------------------------
\end{mplibcode}
%----------------------------------------------------------------------------