summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/metapost
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2017-02-13 23:21:29 +0000
committerKarl Berry <karl@freefriends.org>2017-02-13 23:21:29 +0000
commit03c75645664be34a27afa8e4e30b0f96d25de53b (patch)
tree321e76e87bf34314014a157b7a05df2c24acb223 /Master/texmf-dist/doc/metapost
parent90e1a28c9221e47cec2a912b5551d2f6522735ad (diff)
mcf2graph (13feb17)
git-svn-id: svn://tug.org/texlive/trunk@43218 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/metapost')
-rw-r--r--Master/texmf-dist/doc/metapost/mcf2graph/CHANGELOG6
-rw-r--r--Master/texmf-dist/doc/metapost/mcf2graph/README2
-rw-r--r--Master/texmf-dist/doc/metapost/mcf2graph/mcf_exa_soc.mf4
-rw-r--r--Master/texmf-dist/doc/metapost/mcf2graph/mcf_example.pdfbin235841 -> 236045 bytes
-rw-r--r--Master/texmf-dist/doc/metapost/mcf2graph/mcf_man_soc.mf42
-rw-r--r--Master/texmf-dist/doc/metapost/mcf2graph/mcf_manual.pdfbin462405 -> 462957 bytes
-rw-r--r--Master/texmf-dist/doc/metapost/mcf2graph/mcf_manual.tex111
-rw-r--r--Master/texmf-dist/doc/metapost/mcf2graph/mcf_mplib_exa.pdfbin122254 -> 174656 bytes
-rw-r--r--Master/texmf-dist/doc/metapost/mcf2graph/mcf_mplib_exa.tex7
9 files changed, 99 insertions, 73 deletions
diff --git a/Master/texmf-dist/doc/metapost/mcf2graph/CHANGELOG b/Master/texmf-dist/doc/metapost/mcf2graph/CHANGELOG
index a3bee0be47d..3b29fbf0e96 100644
--- a/Master/texmf-dist/doc/metapost/mcf2graph/CHANGELOG
+++ b/Master/texmf-dist/doc/metapost/mcf2graph/CHANGELOG
@@ -1,6 +1,10 @@
*******************************************************************************
- Changelog of mcf2graph software package by Akira Yamaji 2017-01-29
+ Changelog of mcf2graph software package by Akira Yamaji 2017-02-13
*******************************************************************************
+[ver. 4.10 / 2017-02-13]
+ -improve function EXT(),ext()
+ -update MCF syntax manual
+
[ver. 4.09 / 2017-01-29]
-add new function puts()
put string in EXT(),ext()
diff --git a/Master/texmf-dist/doc/metapost/mcf2graph/README b/Master/texmf-dist/doc/metapost/mcf2graph/README
index 15ae275aa52..5fde3c5e34b 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 : 4.09 2017-01-29
+ version : 4.10 2017-02-13
E-mail : mcf2graph@gmail.com
Located at : http://www.ctan.org/pkg/mcf2graph
********************************************************************************
diff --git a/Master/texmf-dist/doc/metapost/mcf2graph/mcf_exa_soc.mf b/Master/texmf-dist/doc/metapost/mcf2graph/mcf_exa_soc.mf
index 3cb3c1facd0..c906b10a0d9 100644
--- a/Master/texmf-dist/doc/metapost/mcf2graph/mcf_exa_soc.mf
+++ b/Master/texmf-dist/doc/metapost/mcf2graph/mcf_exa_soc.mf
@@ -1,7 +1,7 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-% Molecular Coding Format for mcf_example.tex by Akira Yamaji 2017.01.29
+% Molecular Coding Format for mcf_example.tex by Akira Yamaji 2017.02.13
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-input mcf2graph.mf; %%% it must be version 4.09 or later
+input mcf2graph.mf; %%% it must be version 4.10 or later
%-------------------------------------------------------------------------
font_wd#:=33mm#;
font_ht#:=24mm#;
diff --git a/Master/texmf-dist/doc/metapost/mcf2graph/mcf_example.pdf b/Master/texmf-dist/doc/metapost/mcf2graph/mcf_example.pdf
index 641c2fab99e..5512e3d7717 100644
--- a/Master/texmf-dist/doc/metapost/mcf2graph/mcf_example.pdf
+++ b/Master/texmf-dist/doc/metapost/mcf2graph/mcf_example.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/metapost/mcf2graph/mcf_man_soc.mf b/Master/texmf-dist/doc/metapost/mcf2graph/mcf_man_soc.mf
index bf9e92058d3..0f8aaf33876 100644
--- a/Master/texmf-dist/doc/metapost/mcf2graph/mcf_man_soc.mf
+++ b/Master/texmf-dist/doc/metapost/mcf2graph/mcf_man_soc.mf
@@ -1,7 +1,7 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-% Molecular Coding Format file for mcf_manual.tex by Akira.Yamaji 2017.01.29
+% Molecular Coding Format file for mcf_manual.tex by Akira.Yamaji 2017.02.13
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-input mcf2graph.mf; %% it must be version 4.09 or later
+input mcf2graph.mf; %% it must be version 4.10 or later
%------------------------------------------------------------------------
sw_auxout:=0;
sw_mol_frame:=0;
@@ -272,7 +272,7 @@ endfont
%***********************************************************************
beginfont("EN:change ring length")
margin_top_bottom:=2mm;
- font_ht#:=15mm#;
+ font_ht#:=20mm#;
sw_clip:=1;
sw_numberB:=1;
MCf(?6,4\,?6`1.2)
@@ -818,7 +818,7 @@ beginfont("EN:MCf() vt")
endfont
%***********************************************************************
beginfont("EN:EXT()")
- margin_left_right:=margin_top_bottom:=3mm;
+ margin_left_right:=margin_top_bottom:=5mm;
font_wd#:=70mm#;
font_ht#:=35mm#;
bond_len#:=8mm#;
@@ -826,14 +826,18 @@ beginfont("EN:EXT()")
MCd(1,0.8)(0.1,0.5)(<30,Ph,2:/OH,5:/OH)
MCd(1,0.8)(0.9,0.5)(<30,?6,$(3,6)dl,@(2,5)//O)
EXT(
- draw ((0,0)--(25mm,0)--(21mm,2mm)) shifted (0.3w,0.52h);
- draw ((4mm,-2mm)--(0,0)--(25mm,0)) shifted (0.3w,0.48h);
- draw fullcircle scaled 3mm shifted p0;
- drawdot p1 withpen pencircle scaled 2mm;
- drawdot p2 withpen pensquare scaled 2mm;
- use_font(5pt#);
- puts((0.4w,0.6h))("Oxidation");
- puts((0.4w,0.35h))("Reduction");
+ draw_vector((0.7w,0.52h), 0,0.2mm,0.4w);
+ draw_vector((0.3w,0.48h),180,0.2mm,0.4w);
+ drawdot p0 withpen pencircle scaled 3pt;
+ drawdot p1 withpen pencircle scaled 3pt;
+ drawdot p2 withpen pencircle scaled 3pt;
+ label.bot("p0",p0);
+ label.bot("p1",p1);
+ label.bot("p2",p2);
+ label("Ox",(0.5w,0.6h));
+ label("Red",(0.5w,0.4h));
+ use_font(6pt#);
+ label("Reaction example",(0.5w,0.8h));
)
endfont
%***********************************************************************
@@ -844,15 +848,15 @@ beginfont("EN:ext()")
sw_solid:=0;
MCd(1,0.9)(0.1,0.5)(<30,Ph,3:/F,4:/Cl)
ext(
- drawdot p0 withpen pencircle scaled 2mm;
- draw p0--(p0+(wd,0))--(p0+(wd,ht));
+ drawdot p0 withpen pencircle scaled 3pt;
+ drawdot A6 withpen pencircle scaled 3pt;
+ drawdot B3 withpen pencircle scaled 3pt;
+ label.bot("p0",p0);
+ label.ulft("A6",A6);
+ label.rt("B3",B3);
)
MCd(1,0.9)(0.9,0.5)(<30,Ph,3:/F,4:/Cl)
- ext(
- draw_vector(p6,a6-180,l);
- drawdot p0 withpen pensquare scaled 2mm;
- draw p0--(p0+(wd,0))--(p0+(wd,ht));
- )
+ ext(draw p0--(p0+(wd,0))--(p0+(wd,ht));)
endfont
%***********************************************************************
beginfont("EN:Local setting 1")
diff --git a/Master/texmf-dist/doc/metapost/mcf2graph/mcf_manual.pdf b/Master/texmf-dist/doc/metapost/mcf2graph/mcf_manual.pdf
index 656035e1754..eec407f55b5 100644
--- a/Master/texmf-dist/doc/metapost/mcf2graph/mcf_manual.pdf
+++ b/Master/texmf-dist/doc/metapost/mcf2graph/mcf_manual.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/metapost/mcf2graph/mcf_manual.tex b/Master/texmf-dist/doc/metapost/mcf2graph/mcf_manual.tex
index a3468a88fc1..d9636c5d350 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.01.29
+% Molecular Coding Format manual by Akira Yamaji 2017.02.13
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[a4paper]{article}
%%%%\usepackage{graphicx}
@@ -927,27 +927,28 @@ pk font,PNG,SVG,EPS or MDL MOL file(V2000).\\
\newpage
\subsection{Function EXT()}
\begin{verbatim}
-(Extra graphic to font)
+(Add extra graphic to font)
w: font width
h: font height
wd: font width-margin_left_right*2
ht: font height-margin_top_bottom*2
+ em: embedded font size
p0: x=margin_left_right
y=margin_top_bottom
n: molecular number
p[m]: molecular origin position
- (1<=m<=molecular count)
-(Function)
- puts(pos)(string):
- put string at pos
- use_font(wd#):
- make string font for puts()
- (font width = wd#)
- draw_vector(pos,angle,length):
+(Function for EXT(),ext())
+ draw_vector(pos,angle,thickness,length):
draw vector at pos
+ use_font(wd#):
+ make font for 'label'
+ label:
+ sw_label_mp=0: ** default
+ use embedded font
+ sw_label_mp=1:
+ use original metapost 'label'
- %----------------------------------
beginfont()
sw_font_frame:=3;
%----------------------------------
@@ -957,20 +958,19 @@ pk font,PNG,SVG,EPS or MDL MOL file(V2000).\\
(<30,?6,$(3,6)dl,@(2,5)//O)
%----------------------------------
EXT(
- draw ((0,0)--(25mm,0)--(21mm,2mm))
- shifted (0.3w,0.52h);
- draw ((4mm,-2mm)--(0,0)--(25mm,0))
- shifted (0.3w,0.48h)
- draw fullcircle scaled 3mm
- shifted p0;
- drawdot p1
- withpen pencircle scaled 2mm;
- drawdot p2
- withpen pensquare scaled 2mm;
- %----------------------------------
- use_font(5pt#);
- puts((0.4w,0.6h))("Oxidation");
- puts((0.4w,0.35h))("Reduction");
+ draw_vector((0.7w,0.48h), 0,0.2mm,0.4w):
+ draw_vector((0.3w,0.52h),180,0.2mm,0.4w):
+ drawdot p0 withpen pencircle scaled 3pt;
+ drawdot p1 withpen pencircle scaled 3pt;
+ drawdot p2 withpen pencircle scaled 3pt;
+ %----------------------------------
+ label.bot("p0",p0);
+ label.bot("p1",p1);
+ label.bot("p2",p2);
+ label("Ox",(0.5w,0.6h));
+ label("Red",(0.5w,0.4h));
+ use_font(6pt#); % **defalt 5pt#
+ label("Reaction example",(0.5w,0.8h));
)
%----------------------------------
endfont
@@ -980,31 +980,33 @@ pk font,PNG,SVG,EPS or MDL MOL file(V2000).\\
\newpage
\subsection{Function ext()}
\begin{verbatim}
-(Extra graphic to molecule)
- wd: molecular width
- ht: molecular height
- p0: origin of molecular structure
- n: atom number
- l: bond length
- p[m]: atom position of A[m]
- a[m]: branch angle of A[m]
- (1<=m<=atom count)
+(Add extra graphic to molecule)
+ wd: molecular width
+ ht: molecular height
+ p0: origin of molecular structure
+ l: bond length
+ An: atom number
+ A[m]: atom position
+ A[m]bra: branch angle of A[m]
+ Bn: bond number
+ B[m]: bond position
+ B[m]ang: bond angle
beginfont()
- %-------------------------------
+ %----------------------------------
MCd(1,0.9)(0.1,0.5)(<30,Ph,3:/F,4:/Cl)
ext(
- drawdot p0 withpen pencircle scaled 2mm;
- draw p0--(p0+(wd,0))--(p0+(wd,ht));
+ drawdot p0 withpen pencircle scaled 3pt;
+ drawdot A6 withpen pencircle scaled 3pt;
+ drawdot B3 withpen pencircle scaled 3pt;
+ label.bot("p0",p0);
+ label.ulft("A6",A6);
+ label.rt("B3",B3);
)
- %-------------------------------
+ %----------------------------------
MCd(1,0.9)(0.9,0.5)(<30,Ph,3:/F,4:/Cl)
- ext(
- draw_vector(p6,a6-180,l);
- drawdot p0 withpen pensquare scaled 2mm;
- draw p0--(p0+(wd,0))--(p0+(wd,ht));
- )
- %-------------------------------
+ ext(draw p0--(p0+(wd,0))--(p0+(wd,ht));)
+ %----------------------------------
endfont
\end{verbatim}
\MCFstructure
@@ -1036,16 +1038,20 @@ pk font,PNG,SVG,EPS or MDL MOL file(V2000).\\
\begin{verbatim}
tag3:="cMW"; var3:="calc_weight";
tag4:="cFM"; var4:="calc_formula";
-%-----------------------------------------
+%--------------------------------
beginfont()
MCf(<30,?6,3=d,
@(2,6)N,@(2,6)/_,@(1,5)//O,
|,-4=?5,2=dl,@(1,3)N,3:/_)
endfont
-%-----------------------------------------
+beginfont(......)
+ ...........
+endfont
+..............
%% Output to mcf_man_soc-info.aux %%
..... ;C:85;cMW:194.19174;cFM:C8H10N4O2
+.......................................
** default value
tag1:="F"; var1:="jobname";
@@ -1063,13 +1069,22 @@ beginfont("EN:Tocopherol","CAS:59-02-9")
7:O,@(1,2,5)/_,8:/*_^60,6:/OH,
8\,|,!12,@(4,8)/*_,12:/_)
endfont
+beginfont(......)
+ ...........
+endfont
+..............
%% Output to mcf_man_soc-info.aux %%
F:mcf_man_soc;C:86;EN:Tocopherol;CAS:59-02-9
............................................
-*F:filename *C:char number EN:molecular name
-CAS:CAS number *:default output
+1* F:filename
+2* C:char number
+3 EN:molecular name
+4 CAS:CAS number
+
+*:default output
+
\end{verbatim}
\MCFstructure
%-----------------------------------------------------------------------------
diff --git a/Master/texmf-dist/doc/metapost/mcf2graph/mcf_mplib_exa.pdf b/Master/texmf-dist/doc/metapost/mcf2graph/mcf_mplib_exa.pdf
index 9d792f89f10..5aabd3d1b3d 100644
--- a/Master/texmf-dist/doc/metapost/mcf2graph/mcf_mplib_exa.pdf
+++ b/Master/texmf-dist/doc/metapost/mcf2graph/mcf_mplib_exa.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/metapost/mcf2graph/mcf_mplib_exa.tex b/Master/texmf-dist/doc/metapost/mcf2graph/mcf_mplib_exa.tex
index 32373b33a9a..af0caea790b 100644
--- a/Master/texmf-dist/doc/metapost/mcf2graph/mcf_mplib_exa.tex
+++ b/Master/texmf-dist/doc/metapost/mcf2graph/mcf_mplib_exa.tex
@@ -1,10 +1,13 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-% Example of MCF typest with LuaLaTeX(luamplib) by A.Yamaji 2017.01.29
+% Example of MCF typest with LuaLaTeX(luamplib) by A.Yamaji 2017.02.13
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%%% mcf2graph.mf it must be version 4.09 or later
+%%% mcf2graph.mf it must be version 4.10 or later
\documentclass{article}
%------------------------------------------------------------------------------
\usepackage{luamplib}%
+\usepackage{lmodern}%
+\usepackage[T1]{fontenc}%
+\usepackage{textcomp}%
\mplibcodeinherit{enable}%
\mplibverbatim{enable}%
\everymplib{if unknown Ph1: