summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/metapost/mcf2graph/README
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2015-08-07 21:44:34 +0000
committerKarl Berry <karl@freefriends.org>2015-08-07 21:44:34 +0000
commitca94b24a2e8f17e576b1d2499a06e63b29f3ee14 (patch)
treec3912690319d4ced1609265015cb1d32cb49842c /Master/texmf-dist/doc/metapost/mcf2graph/README
parent0c3e778e17510573c58cc88ba0f8370c20edd7cc (diff)
mcf2graph (7aug15)
git-svn-id: svn://tug.org/texlive/trunk@38069 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/metapost/mcf2graph/README')
-rw-r--r--Master/texmf-dist/doc/metapost/mcf2graph/README58
1 files changed, 39 insertions, 19 deletions
diff --git a/Master/texmf-dist/doc/metapost/mcf2graph/README b/Master/texmf-dist/doc/metapost/mcf2graph/README
index b22359edfdf..bb51260b7db 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.54 / 2015-08-03
+ version : 3.55 / 2015-08-07
E-mail : akira.yamaji5@gmail.com
Located at : http://mirror.ctan.org/pkg/graphics/mcf2graph
Home page : http://molecoding.cocolog-nifty.com/blog/
@@ -11,7 +11,7 @@
Molecular Coding Format(MCF) is new linear notation represent chmical
structure diagram. This 'Coding' is named from coding(programing) technique
like adressing,grouping,macro. There are no Meta language commands in MCF.
- mcf2graph.mf(metapost/metafont macro) convert MCF file to graphic file
+ 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.
@@ -27,7 +27,7 @@
mpost -s ahangle=0 mcf_exa_soc.mf
( 8) mcf_exa_soc.mf Molecular difinition file for mcf_example.tex
( 9) mcf_example.pdf PDF of (7) (used LaTeX,dvipdfmx)
- (10) mcf_mplib_exa.tex LuaLaTeX example, use package luamplib,fancyvrv.sty
+ (10) mcf_mplib_exa.tex luamplib v2.11(LuaLaTeX) example
(11) mcf_example.pdf PDF of (10) typeset with LuaTeX(LuaLaTeX)
3. How to use mcf2graph with Metapost
@@ -39,25 +39,24 @@
( 6) mpost -s ahlength=2 FILENAME output checklist.
4. Molecular definition file 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
- %***********************************************************************
+
+ 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
endfont
- %***********************************************************************
+ %-----------------------------------------------------------------------
bye
5. How to use mcf2graph with TeX(latex)
Large number of molecular structures can be gathering by using TEX.
mcf_example.tex is example of using LaTeX.
- \documentclass[a4paper]{article}
+ \documentclass{article}
\usepackage[dvipdfmx]{graphicx}% Change option depend on your tex system
-
+ **********************************************************
% insert part of info.aux file
%-------------------------------------------------------------------------
\MOLinfo{EN:Acetamiprid}{:}{:}{:}{:}{:}{:}{:}{:}{:}{:}{:}%
@@ -66,7 +65,27 @@
% or insert next line
\input mcf_exa_soc-info.aux % filename of souce file : mcf_exa_soc.mf
-6. License
+
+6. How to use mcf2graph with luamplib(LuaLaTeX)
+ It is possible to write MCF in LaTeX text with luamplib(ver.2.11).
+ mcf_mplib_exa.tex is example of using luamplib(LuaLaTeX).
+
+\documentclass{article}
+%-------------------------------------------------------------------------------
+\mplibcodeinherit{enable}%
+\mplibverbatim{enable}%
+\everymplib{if unknown Ph1: input mcf2graph.mf; fi}%
+%-------------------------------------------------------------------------------
+ **********************************************************
+\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
+ endfont
+\end{mplibcode}
+%----------------------------------------------------------------------------
+
+7. 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
@@ -85,9 +104,10 @@
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
-7. Changelog
- ver. 3.50 / 2015-07-11 first version uploaded to ctan.
- ver. 3.51 / 2015-07-19 '?6`2' can use as '{,``2,?6,}'
- ver. 3.52 / 2015-07-20 '!4`2' can use as '{,``2,!4,}'
- ver. 3.53 / 2015-07-29 support luamplib(LuaLaTeX)
- ver. 3.54 / 2015-08-03 maximum number of MOLinfo can be changed
+8. Changelog
+ ver. 3.50 / 2015-07-11 first version uploaded to ctan.
+ ver. 3.51 / 2015-07-19 '?6`2' can use as '{,``2,?6,}'
+ ver. 3.52 / 2015-07-20 '!4`2' can use as '{,``2,!4,}'
+ ver. 3.53 / 2015-07-29 support luamplib(LuaLaTeX)
+ ver. 3.54 / 2015-08-03 maximum item number of MOLinfo can be changed
+ ver. 3.55 / 2015-08-04 support luamplib(v2.11), renew mcf_mplib_exa.tex