| 1 |
New arrow heads for chemical reaction schemes 4 February 2001 |
| 2 |
--------------------------------------------- |
| 3 |
|
| 4 |
1) What's the name of the game? |
| 5 |
|
| 6 |
LaTeX can be used to typeset many kinds of different documents, but |
| 7 |
typesetting chemical reactions is esthetically not very pleasing because |
| 8 |
LaTeX's own arrows \rightarrow, \leftarrow and \rightleftharpoons which |
| 9 |
you might use for this purpose are too short and the arrow heads are not |
| 10 |
like the "standard" ones you will find in books or journals on chemistry. |
| 11 |
|
| 12 |
The macro chemarrow.sty in conjunction with the font arrow.mf is supposed |
| 13 |
to make the typesetting of chemical reaction schemes in LaTeX easier and |
| 14 |
especially nicer looking. |
| 15 |
|
| 16 |
2) Dateien |
| 17 |
|
| 18 |
arrow.mf MetaFont source code of the arrow font |
| 19 |
arrow.tfm .tfm Datei of arrow for the use with TeX |
| 20 |
chemarrow.sty macro for the typesetting of arrows in chemical reaction schemes |
| 21 |
Readme.txt English Readme |
| 22 |
testchem.tex test file for chemarrow.sty and arrow.mf |
| 23 |
Liesmich.txt German Readme |
| 24 |
Type 1/arrow Mac.sit.hqx type 1 version of arrow for Macintosh |
| 25 |
Type 1/arrow PC.zip type 1 version of arrow for PC/Unix |
| 26 |
Type 1/arrow.mp MetaPost source code of arrow |
| 27 |
|
| 28 |
There is no need to copy the FontLab file arrow.vfb included in both of the |
| 29 |
type 1 archives, I just put it there in case you want to enhance my designs :-) |
| 30 |
|
| 31 |
|
| 32 |
3) Usage |
| 33 |
|
| 34 |
The examples in the file testchem.tex should be sufficient for the |
| 35 |
understanding of how chemarrow.sty works, and there's also a short |
| 36 |
description in chemarrow.sty of all the newly defined commands. To use the |
| 37 |
package, arrow.tfm must be copied to a directory where LaTeX will be |
| 38 |
searching for .tfm files, arrow.mf must be copied to a directory where |
| 39 |
MetaFont will be searching for MetaFont sources. The required .pk files |
| 40 |
should be produced automatically by a dvi previewer or a printer driver. |
| 41 |
|
| 42 |
There are also type 1 fonts of arrow.mf in Mac and PC/Unix format so that |
| 43 |
you can produce PDF documents easily. To use the type 1 font it must be |
| 44 |
copied to a directory where TeX and friends will be searching for type 1 |
| 45 |
fonts, the best place would of course be where the Computer Modern type 1 |
| 46 |
fonts reside. |
| 47 |
|
| 48 |
If dvips is supposed to use the type 1 font instead of the .pk font you |
| 49 |
must add this line to psfonts.map: |
| 50 |
|
| 51 |
- for Macintosh: |
| 52 |
|
| 53 |
arrow arrow <arrow |
| 54 |
|
| 55 |
- for PC/Unix: |
| 56 |
|
| 57 |
arrow arrow <arrow.pfb |
| 58 |
|
| 59 |
If you use pdfTeX instead of dvips and Acrobat Distiller you must also add |
| 60 |
this line to pdftex.map: |
| 61 |
|
| 62 |
arrow <arrow.pfb |
| 63 |
|
| 64 |
4) Disclaimer |
| 65 |
|
| 66 |
The macro chemarrow.sty and the font arrow.mf are quick hacks for my own |
| 67 |
needs, I cannot guarantee that they will work an other systems than my own. |
| 68 |
In exchange I am publishing this package as free software which means you |
| 69 |
can do whatever you like with it and it comes for free. I would just like |
| 70 |
to ask that in case you do make changes und publish the package or any parts of |
| 71 |
it to add your own name or replace it with mine. Thank you. |
| 72 |
|
| 73 |
Any hints and suggestions will be accepted gratefully. |
| 74 |
|
| 75 |
5) History |
| 76 |
|
| 77 |
As I was looking for new arrows I found a quite new font named cryst.mf by |
| 78 |
Ulrich Mueller which I rather liked. After a few modifications the new font |
| 79 |
arrow.mf was born. |
| 80 |
|
| 81 |
I received a macro by Andreas Hertwig with which you can typeset arrows |
| 82 |
that will change in size. I modified this macro to my needs and replaced the |
| 83 |
original arrows with the arrows from arrow.mf. The original macro was apparently |
| 84 |
posted in a TeX mailing list, but its author is unfortunately unknown. So, if |
| 85 |
you are the original author and read this I'd like to thank you for your work! |
| 86 |
|
| 87 |
The most time consuming and complicated part was to produce a type 1 font |
| 88 |
from my MetaFont sources. Unfortunately there is no free software to do |
| 89 |
this :-( |
| 90 |
Also, if you include .pk fonts into PDF documents you won' get nice results |
| 91 |
because Acrobat Reader renders them very poorly. Therefore it is vital to |
| 92 |
include type 1 fonts into a PDF document :-( |
| 93 |
|
| 94 |
Using arrow.mp which is a slightly modified arrow.mf in combination with |
| 95 |
MetaPost and mfplain I was able to produce graphics in the EPS format which I |
| 96 |
imported into a demo of FontLab 3.0. After a few steps and reducing the |
| 97 |
size to 79% I was able to save the font in type 1 format. |
| 98 |
|
| 99 |
6) Problems |
| 100 |
|
| 101 |
Unfortunately I am no expert on creating fonts. This is probably why the |
| 102 |
arrows will show on some platforms only at 125% or larger. Below 125% there |
| 103 |
will only be some strokes :-( |
| 104 |
|
| 105 |
I think if someone did a manual hinting of the font then this problem |
| 106 |
would be remedied, but this will probably not be me because this is out of |
| 107 |
my league and beyond the time limit of the demo of FontLab :-) |
| 108 |
|
| 109 |
So if there is somebody out there who is able to help me with this problem |
| 110 |
I'd be grateful. |
| 111 |
|
| 112 |
7) Future versions |
| 113 |
|
| 114 |
To tell you the truth, I don't really know if there will be future versions |
| 115 |
because as far as I'm concerned the package works as it is supposed to. |
| 116 |
The direct linking of the arrow font in chemarrow.sty is maybe not so nice, |
| 117 |
so this might be something I will change in the future. The rendering |
| 118 |
problem of PDF documents on some platforms is also not very nice so if |
| 119 |
some sort of solution pops up I will publish it. |
| 120 |
|
| 121 |
8) Thank-Yous |
| 122 |
|
| 123 |
- D. E. Knuth for TeX |
| 124 |
- L. Lamport for LaTeX |
| 125 |
- to the LaTeX3 team for LaTeX2e |
| 126 |
- A. Hertwig for being so nice to give me the original macro |
| 127 |
- to the unknown author of the original macro |
| 128 |
- U. Mueller for cryst.mf |
| 129 |
|
| 130 |
9) Author |
| 131 |
|
| 132 |
Thomas Schroeder |
| 133 |
|
| 134 |
[email protected] |
| 135 |
|
| 136 |
PS: Sorry for any misspellings and such, English is not my native |
| 137 |
language :-) |