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