summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/xymtex/base/xymtex.dtx
blob: a38ccd0a2af19e06da18c4bc8c4996b5c27e3dd3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
% \iffalse 
%
% xymtex.dtx
% 
% Copyright (C) 1993-2004,2005,2009,2010,2011,2013 by Shinsaku Fujita  All rights reserved.
%
% This file is part of the ChemSci system
% ========================================
%
% This style file is created for submitting a manuscript to 
% scientific journals. This style file is to be contained in the 
% ``xymtex'' directory which is an input directory for TeX. 
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
% of this license or (at your option) any later version.
% The latest version of this license is in
%   http://www.latex-project.org/lppl.txt
% and version 1.3 or later is part of all distributions of LaTeX
% version 2005/12/01 or later.
%
% This work has the LPPL maintenance status `maintained'. 
% The Current Maintainer of this work is Shinsaku Fujita.
%
% This work consists of the files xymtex.dtx and xymtex.ins 
% and the derived files: xymtex.sty, xymtexps.sty and xymtexpdf.sty.
%
%=======================================
%
% This file is a successor to:
%
% *********************************************************************
% * Version 1.00  Released December 1, 1993 by Shinsaku Fujita        %
% * Version 1.00a Released May 22, 1996 by Shinsaku Fujita            %
% * Version 1.02  Released October 31, 1998 by Shinsaku Fujita        %
% * Version 2.00  Released December 25, 1998 by Shinsaku Fujita       %
% *********************************************************************
% xymtex.sty
%
% Copyright (C) 1993, 1966, 1998, 2001,2004 by Shinsaku Fujita, all rights reserved.
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% \typeout{XyMTeX for Drawing Chemical Structural Formulas. Version 1.00}
% \typeout{       -- Released December 1, 1993 by Shinsaku Fujita}
% \typeout{XyMTeX for Drawing Chemical Structural Formulas. Version 1.00a}
% \typeout{       -- Released May 22, 1996 by Shinsaku Fujita}
% \typeout{XyMTeX for Drawing Chemical Structural Formulas. Version 1.02}
% \typeout{       -- Released October 31, 1998 by Shinsaku Fujita}
% \typeout{XyMTeX for Drawing Chemical Structural Formulas. Version 2.00}
% \typeout{       -- Released December 25, 1998 by Shinsaku Fujita}
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% \def\j@urnalname{xymtex.sty}
% \def\versi@ndate{May 22, 1996}
% \def\versi@nno{ver1.00a}
% \def\copyrighth@lder{SF} % Shinsaku Fujita
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% \def\j@urnalname{xymtex.sty}
% \def\versi@ndate{October 31, 1998}
% \def\versi@nno{ver1.02}
% \def\copyrighth@lder{SF} % Shinsaku Fujita
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% \def\j@urnalname{xymtex.sty}
% \def\versi@ndate{December 25, 1998}
% \def\versi@nno{ver2.00}
% \def\copyrighth@lder{SF} % Shinsaku Fujita
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% \def\j@urnalname{xymtex.sty}
% \def\versi@ndate{November 17, 2004}
% \def\versi@nno{ver4.01b}
% \def\copyrighth@lder{SF} % Shinsaku Fujita
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% \def\j@urnalname{xymtex.sty}
% \def\versi@ndate{December 25, 2004}
% \def\versi@nno{ver4.02}
% \def\copyrighth@lder{SF} % Shinsaku Fujita
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %<xymtex>\def\j@urnalname{xymtex} \def\journalID{xymtex}
% %<xymtexps>\def\j@urnalname{xymtexps} \def\journalID{xymtexps}
% \def\versi@ndate{July 20, 2005}
% \def\versi@nno{ver4.02}
% \def\copyrighth@lder{SF} % Shinsaku Fujita
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %<xymtex>\def\j@urnalname{xymtex} \def\journalID{xymtex}
% %<xymtexps>\def\j@urnalname{xymtexps} \def\journalID{xymtexps}
% \def\versi@ndate{June 15, 2009}
% \def\versi@nno{ver4.04}
% \def\copyrighth@lder{SF} % Shinsaku Fujita
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %<xymtex>\def\j@urnalname{xymtex} \def\journalID{xymtex}
% %<xymtexps>\def\j@urnalname{xymtexps} \def\journalID{xymtexps}
% \def\versi@ndate{November 25, 2009}
% \def\versi@nno{ver4.05}
% \def\copyrighth@lder{SF} % Shinsaku Fujita
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %<xymtex>\def\j@urnalname{xymtex} \def\journalID{xymtex}
% %<xymtexps>\def\j@urnalname{xymtexps} \def\journalID{xymtexps}
% \def\versi@ndate{December 01, 2009}
% \def\versi@nno{ver4.06}
% \def\copyrighth@lder{SF} % Shinsaku Fujita
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %<xymtex>\def\j@urnalname{xymtex} \def\journalID{xymtex}
% %<xymtexps>\def\j@urnalname{xymtexps} \def\journalID{xymtexps}
% %<xymtexpdf>\def\j@urnalname{xymtexpdf} \def\journalID{xymtexpdf}
% \def\versi@ndate{October 01, 2010}
% \def\versi@nno{ver5.00}
% \def\copyrighth@lder{SF} % Shinsaku Fujita
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %<xymtex>\def\j@urnalname{xymtex} \def\journalID{xymtex}
% %<xymtexps>\def\j@urnalname{xymtexps} \def\journalID{xymtexps}
% %<xymtexpdf>\def\j@urnalname{xymtexpdf} \def\journalID{xymtexpdf}
% \def\versi@ndate{February 24, 2011}
% \def\versi@nno{ver5.01beta}
% \def\copyrighth@lder{SF} % Shinsaku Fujita
% \typeout{Package `\j@urnalname' (\versi@nno) <\versi@ndate>\space 
% [\copyrighth@lder]}
% %<xymtex> \typeout{xymtex.sty ver5.01beta (for LaTeX2e) 2011/02/24[SF]}
% %<xymtexps> \typeout{xymtexps.sty ver5.01beta (for LaTeX2e) 2011/02/24[SF]}
% %<xymtexpdf> \typeout{xymtexpdf.sty ver5.01beta (for LaTeX2e) 2011/02/24[SF]}
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% This file is a part of the macro package ``XyMTeX'' which has been 
% designed for typesetting chemical structural formulas.
%
% For the review of XyMTeX, see
%  (1)  Shinsaku Fujita, ``Typesetting structural formulas with the text
%    formatter TeX/LaTeX'', Computers and Chemistry, 18, 109--116 (1994). 
% The following book deals with an application of TeX/LaTeX to 
% preparation of manuscripts of chemical fields:
%  (2)  Shinsaku Fujita, ``LaTeX for Chemists and Biochemists'' 
%    Tokyo Kagaku Dozin, Tokyo (1993) [in Japanese].  
%  (3)  Shinskau Fujita, ``XyMTeX for drwoing chemical structural 
%    formulas'', TUGboat, 16(1), 80--88 (1995).
%
% Please report any bugs, comments, suggestions, etc. to:
% Old old address: 
%   Shinsaku Fujita, 
%   Ashigara Research Laboratories, Fuji Photo Film Co., Ltd., 
%   Minami-Ashigara, Kanagawa-ken, 250-01, Japan.
%
% Old address:
%   Shinsaku Fujita, 
%   Department of Chemistry and Materials Technology, 
%   Kyoto Institute of Technology, \\
%   Matsugasaki, Sakyoku, Kyoto, 606 Japan
%
% New address:
%   Shinsaku Fujita, 
%   Shonan Institute of Chemoinformatics and Mathematical Chemistry
%   Kanagawa, 258-0019 Japan
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% \fi
% \CheckSum{70}
%% \CharacterTable
%%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
%%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
%%   Digits        \0\1\2\3\4\5\6\7\8\9
%%   Exclamation   \!     Double quote  \"     Hash (number) \#
%%   Dollar        \$     Percent       \%     Ampersand     \&
%%   Acute accent  \'     Left paren    \(     Right paren   \)
%%   Asterisk      \*     Plus          \+     Comma         \,
%%   Minus         \-     Point         \.     Solidus       \/
%%   Colon         \:     Semicolon     \;     Less than     \<
%%   Equals        \=     Greater than  \>     Question mark \?
%%   Commercial at \@     Left bracket  \[     Backslash     \\
%%   Right bracket \]     Circumflex    \^     Underscore    \_
%%   Grave accent  \`     Left brace    \{     Vertical bar  \|
%%   Right brace   \}     Tilde         \~}
%
% \iffalse
%%
%% `xymtex.dtx' ver5.01 (for LaTeX2e) 2013/03/10 
%%  by Shinsaku Fujita
%%
%
% \section{Initial declaration}
%
% \changes{v4.01b}{2004/11/17}{Generaging xymtex.sty and xymtexps}
% \changes{v4.02}{2004/12/20}{Wedged bonds for xymtx-ps.sty}
% \changes{v4.03}{2005/07/20}{Wave bonds for xymtx-ps.sty}
% \changes{v4.04}{2009/06/15}{steoroid.sty added for drawing steroids}
% \changes{v4.05}{2009/11/25}{lewisstruc.sty added for drawing Lewis structures}
% \changes{v4.06}{2009/12/01}{harpoons added in the chmst-ps package}
% \changes{v5.00}{2010/10/01}{PDF mode, bond coloring}
% \changes{v5.01beta}{2011/02/24}{Added the chemist package and the xcolor package}
% \changes{v5.01}{2013/03/10}{Bug fix}
%
%    \begin{macrocode}
% \NeedsTeXFormat{LaTeX2e}
%    \end{macrocode}
%
%    \begin{macrocode}
%    <xymtex>\ProvidesFile{xymtex.sty}
%    <xymtexps>\ProvidesFile{xymtexps.sty}
%<driver>\ProvidesFile{xymtex.drv}
%<driver>         [2013/03/10 v5.01
%    <xymtex>     ChemSci package ]
%    <xymtexps>     ChemSci package ]
%    <xymtexpdf>     ChemSci package ]
%<driver>     ChemSci package driver (English)
%    \end{macrocode}
%
%\setcounter{StandardModuleDepth}{1}
%
% \section{Driver file for this dtx file}
%
%    \begin{macrocode}
%<*driver> 
]
\documentclass{ltxdoc}
\GetFileInfo{xymtex.drv}
\title{XyMTeX Packages for Chemists \space\fileversion}
\author{Shinsaku Fujita \\ 
Shonan Institute of Chemoinformatics and Mathematical Chemistry \\
Kaneko 479-7 Ooimachi, Ashigara-Kami-Gun, Kanagawa, 
258-0019 Japan
%(old address)
%Department of Chemistry and Materials Technology \\
%Kyoto Institute of Technology \\
%Matsugasaki, Sakyoku, Kyoto, 606-8585 Japan 
}
\date{\filedate}
\begin{document}
\maketitle
\tableofcontents
\DocInput{xymtex.dtx}
\end{document}
%</driver>
%    \end{macrocode}
%
% \fi
%
% \StopEventually{}
%
% \section{{\sc docstrip} options}
%
% This dtx file provides the {\sffamily xymtex} package 
% by docstrip processing. 
%
% \DeleteShortVerb{\|}
% \begin{center}
% \begin{tabular}{|l|l|}
%  \hline
%   argument & package name \\
%  \hline
%   xymtex   & xymtex.sty \\
%   xymtexps   & xymtexps.sty \\
%   xymtexpdf   & xymtexpdf.sty \\
%   driver  & a documentation driver file \\
%  \hline
% \end{tabular}
% \end{center}
% \MakeShortVerb{\|}
% 
% \section{Version information}
%
% The old process for typing out version information remains active. 
%    \begin{macrocode}
%<xymtex>\def\j@urnalname{xymtex} \def\journalID{xymtex}
%<xymtexps>\def\j@urnalname{xymtexps} \def\journalID{xymtexps}
%<xymtexpdf>\def\j@urnalname{xymtexpdf} \def\journalID{xymtexpdf}
\def\versi@ndate{March 10, 2013}
\def\versi@nno{ver5.01}
\def\copyrighth@lder{SF} % Shinsaku Fujita
\typeout{Package `\j@urnalname' (\versi@nno) <\versi@ndate>\space 
[\copyrighth@lder]}
%<xymtex> \typeout{xymtex.sty ver5.01 (for LaTeX2e) 2013/03/10[SF]}
%<xymtexps> \typeout{xymtexps.sty ver5.01 (for LaTeX2e) 2013/03/10[SF]}
%<xymtexpdf> \typeout{xymtexpdf.sty ver5.01 (for LaTeX2e) 2013/03/10[SF]}
%    \end{macrocode}
%
%    \begin{macrocode}
%<*xymtexpdf> 
\DeclareOption{pdf}{\def\pgfsysdriver{pgfsys-common-pdf.def}}
\DeclareOption{dvipdfm}{\def\pgfsysdriver{pgfsys-dvipdfm.def}}
\DeclareOption{pdftex}{\def\pgfsysdriver{pgfsys-pdftex.def}}
\DeclareOption{ps}{\def\pgfsysdriver{pgfsys-common-postscript.def}}
\DeclareOption{dvips}{\def\pgfsysdriver{pgfsys-dvips.def}}
\ExecuteOptions{dvipdfm}
\InputIfFileExists{pict2e.cfg}{}{}
\ProcessOptions\relax
%</xymtexpdf> 
\usepackage{epic}
\usepackage{chemstr}
\usepackage{carom}
\usepackage{hetarom}
\usepackage{hetaromh}
\usepackage{lowcycle}
\usepackage{ccycle}
\usepackage{hcycle}
\usepackage{aliphat}
\usepackage{locant}
\usepackage{polymers}
\usepackage{methylen}
\usepackage{fusering}
\usepackage{sizeredc}
\usepackage{steroid}
\usepackage{lewisstruc}
\usepackage{bondcolor}
\usepackage{assurelatexmode}
%<xymtexps>\usepackage{xymtx-ps}
%<xymtexpdf>\usepackage{xymtx-pdf}
%<xymtex>\usepackage{chemist}
%<xymtex>\usepackage{xcolor}
%<xymtexps>\usepackage{chmst-ps}
%<xymtexpdf>\usepackage{chmst-pdf}
%    \end{macrocode}
%
% \Finale
\endinput