| 1 |
******************************************************************************** |
| 2 |
mcf2graph : Convert Molecular Coding Format to graphics with MetaPost |
| 3 |
Author : Akira Yamaji |
| 4 |
version : 5.31 2026-05-24 |
| 5 |
E-mail : [email protected] |
| 6 |
Located at : http://www.ctan.org/pkg/mcf2graph |
| 7 |
******************************************************************************** |
| 8 |
|
| 9 |
1. Introduction |
| 10 |
Molecular Coding Format(MCF) is new linear notation represent |
| 11 |
chemical structure diagrams. |
| 12 |
This Coding is named from programing technique |
| 13 |
such as operator,array,scope,macro,adressing,etc. |
| 14 |
mcf2graph convert from MCF to SVG,PNG,MOL file. |
| 15 |
It is also able to calculate molecular weight,exact mass,molecular formula. |
| 16 |
|
| 17 |
2. The distribution of software |
| 18 |
( 1) README This file |
| 19 |
( 2) CHANGELOG Changelog file of mcf2graph |
| 20 |
( 3) mcf_to_graph.cmd Batch file for compile mcf or mp file |
| 21 |
drag and drop mcf or mp file on this batch |
| 22 |
>mcf_to_graph main_lib.mcf |
| 23 |
create graphic files in ./main_lib-(format) |
| 24 |
>mcf_to_graph template_lib.mcf |
| 25 |
create graphic files in ./template_lib-(format) |
| 26 |
>mcf_to_graph mcf_exa_soc.mp |
| 27 |
create graphic files in ./mcf_exa_soc-mp |
| 28 |
( 4) mcf2graph.mp Main macro of Metapost |
| 29 |
( 5) main_lib.mcf Main mcf library file |
| 30 |
( 6) template_lib.mcf Template mcf file |
| 31 |
( 7) mcf_exa_soc.mp Metapost source example |
| 32 |
drag and drop this file on mcf_to_graph.cmd |
| 33 |
>mpost mcf_exa_soc.mp |
| 34 |
( 8) mcf_manual.tex MCF syntax manual |
| 35 |
file (4)(5) must be in the same directory to typeset |
| 36 |
( 9) mcf_manual.pdf PDF of (8) typeset with LuaLaTeX |
| 37 |
(10) mcf_example.tex List of Molecule |
| 38 |
file (4)(5) must be in the same directory to typeset |
| 39 |
(11) mcf_example.pdf PDF of (10) typeset with LuaLaTeX |
| 40 |
|
| 41 |
3. Minimum required files to use mcf2graph |
| 42 |
Install texlive or other distribution |
| 43 |
These files are available from texlive2026.iso in the case of texlive |
| 44 |
(1) mpost.exe |
| 45 |
(TeXLive2026/archive/metapost.<os>.r<number>.tar/bin/<os>/mpost.exe) |
| 46 |
(2) mpost.dll |
| 47 |
(TeXLive2026/archive/metapost.<os>.r<number>.tar/bin/<os>/mpost.dll) |
| 48 |
(3) mpost.mp |
| 49 |
(TeXLive2026/archive/metapost.r<number>.tar/texmf-dist/metapost/base/mpost.mp) |
| 50 |
(4) plain.mp |
| 51 |
(TeXLive2026/archive/metapost.r<number>.tar/texmf-dist/metapost/base/plain.mp) |
| 52 |
|
| 53 |
4. Use mcf2graph with MetaPost |
| 54 |
-command line- |
| 55 |
(1) >mcf_to_graph filename.mcf => output svg,png,mol,report |
| 56 |
(2) >mcf_to_graph filename.mp => output svg(default),LV=0(default) |
| 57 |
(3) >mpost filename.mp => output svg file |
| 58 |
(4) >mpost -s ahangle=1 filename.mp => output png file (600dpi) |
| 59 |
(5) >mpost -s ahangle=2 filename.mp => output png file (1200dpi) |
| 60 |
(6) >mpost -s ahlength=5 filename.mp => output mol file(V2000) |
| 61 |
(7) >mpost -s ahlength=6 filename.mp => output mol file(V3000) |
| 62 |
(8) >mpost -s ahlength=7 filename.mp => output report file |
| 63 |
|
| 64 |
5. License |
| 65 |
mcf2graph ver 5.31 Copyright (c) 2013-2026 Akira Yamaji |
| 66 |
|
| 67 |
Permission is hereby granted, free of charge, to any person obtaining a copy |
| 68 |
of this software and associated documentation files (the "Software"), to deal |
| 69 |
in the Software without restriction, including without limitation the rights |
| 70 |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
| 71 |
copies of the Software, and to permit persons to whom the Software is |
| 72 |
furnished to do so, subject to the following conditions: |
| 73 |
|
| 74 |
The above copyright notice and this permission notice shall be included in |
| 75 |
all copies or substantial portions of the Software. |
| 76 |
|
| 77 |
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 78 |
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 79 |
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 80 |
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 81 |
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 82 |
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN |
| 83 |
THE SOFTWARE. |
| 84 |
|