Debian Codegraph @

texmf-dist/doc/latex/chemcono/chemcono.tex

raw
1 \documentclass[DIV=9, pagesize=auto]{scrartcl}
2
3 \usepackage{fixltx2e}
4 \usepackage{etex}
5 \usepackage{xspace}
6 \usepackage{lmodern}
7 \usepackage[T1]{fontenc}
8 \usepackage{textcomp}
9 \usepackage{microtype}
10 \usepackage[unicode=true]{hyperref}
11
12 \newcommand*{\mail}[1]{\href{mailto:#1}{\texttt{#1}}}
13 \newcommand*{\pkg}[1]{\textsf{#1}}
14 \newcommand*{\cs}[1]{\texttt{\textbackslash#1}}
15 \makeatletter
16 \newcommand*{\cmd}[1]{\cs{\expandafter\@gobble\string#1}}
17 \makeatother
18 \newcommand*{\env}[1]{\texttt{#1}}
19 \newcommand*{\opt}[1]{\texttt{#1}}
20
21 \addtokomafont{title}{\rmfamily}
22
23 \title{The \pkg{chemcono} package\thanks{This manual corresponds to \pkg{chemcono}~v1.3, dated~9 Sep 1999.}}
24 \author{Stefan Schulz\\\mail{[email protected]}}
25 \date{9 Sep 1999}
26
27
28 \begin{document}
29
30 \maketitle
31
32 \section{History:}
33
34 Writing chemistry papers, very often a consecutive numbering for compounds
35 according to their appearance in the text is required. First, I have no
36 knowledge of any basic \TeX. I extracted the definitions for \cmd{\cite} and
37 \cmd{\thebibliography} from \texttt{latex.ltx} and \texttt{article.cls} and replaced every
38 occurrence of the string \texttt{cit} by \texttt{ffcit}
39 and \texttt{bib} by \texttt{ffbib}. In addition, I also performed some small formatting
40 changes. Thus, this package worked nicely
41 in a document with 300 compound numbers and 700 citations in \LaTeX2.09 and \LaTeXe.
42
43 \medskip
44
45 \noindent
46 \begin{tabular}{@{}l@{ -- }p{11cm}@{}}
47 Version 1.0 & \LaTeX2.09. \\
48 Version 1.1 & Same thing for \LaTeXe. \\
49 Version 1.2 & Now works with \LaTeXe\ of 1996/06/01 \\
50 Version 1.3 & Added option \opt{[tight]}. Saves space in the compound number list. Default is \opt{[normal]}. \\
51 \end{tabular}
52
53
54 \section{Usage:}
55
56 Load package \pkg{chemcono}. For every compound, use \cmd{\fcite} like \cmd{\cite} for citations.
57 After a \cmd{\clearpage} at the end of your document use \env{theffbibliography} like
58 the normal \env{thebibliography}, with \cmd{\ffbibitem} instead of \cmd{\bibitem}:
59 %
60 \begin{verbatim}
61 \begin{theffbibliography}{99}
62 \ffbibitem{f1} danaidone
63 \ffbibitem{f2} thio ether
64 \end{theffbibliography}
65 \end{verbatim}
66 %
67 After compilation and printout, discard the last page.
68 If you want other formatting than bold face numbers, use
69 %
70 \begin{verbatim}
71 \renewcommand{\fcite}[1]{\underline{\ffcite{#1}}}
72 \end{verbatim}
73 %
74 which gives in this case an underlined number.
75 Look at \texttt{example.tex}.
76 The formatting of the \env{ffbibliography} can be made tight to save space by the option \opt{[tight]}.
77
78 I have added the file \texttt{drftcono.sty}, which bases on the \texttt{drftcite.sty} file from D.~Arseneau.
79 When using \texttt{drftcono.sty}, you get the tags of the compound numbers instead the real numbers in the text.
80 In the compound number section, small superscripts show which label has been used first, second,
81 and so on. You have to load \texttt{drftcono.sty} after \texttt{chemcono.sty}. For the final version, just comment
82 out \texttt{drftcono.sty} as in \texttt{example.tex}.
83 I also added a file \texttt{showkeysff.sty}, which shows labels in the margin as in \pkg{showkeys}, but the \cmd{\fcite} tags
84 are also added. I was not able to include counting of occurrence present in \pkg{drftcono}
85 in the \pkg{showkeysff} package, which would be highly desirable.
86
87
88 \section{Complications:}
89
90 You must not use identical labels for \cmd{\fcite} and \cmd{\cite}. Otherwise \LaTeX\ gets
91 confused. As a hint, I identify every compound label by a preceding \texttt{f} as in
92 \verb+\fcite{f1}+, and every citation label with a \texttt{c}, like \verb+\cite{c1}+.
93
94
95 \section{Future:}
96
97 I would like to have the option for removing the printout of
98 \env{theffbibliography}. Than one would not need to discard the last page.
99 Because I have no knowledge of any programming, I do not know how to do
100 this. I also do not know whether the goal of this style could be achieved
101 much more easily. Any hints are welcome.
102 Inclusion of order of occurrence counting in \pkg{showkeysff}.
103
104 \end{document}