Debian Codegraph @

texmf-dist/source/latex/xymtex/base/carom.dtx

raw
1 % \iffalse meta-comment
2 %% File: carom.dtx
3 %
4 % Copyright 1993,1996,1998,2000,2001,2002, 2004 by Shinsaku Fujita
5 %
6 % This file is part of XyMTeX system.
7 % -------------------------------------
8 %
9 % This file is a successor to:
10 %
11 % carom.sty
12 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
13 % \typeout{XyMTeX for Drawing Chemical Structural Formulas. Version 1.00}
14 % \typeout{ -- Released December 1, 1993 by Shinsaku Fujita}
15 % Copyright (C) 1993 by Shinsaku Fujita, all rights reserved.
16 %
17 % This file is a part of the macro package ``XyMTeX'' which has been
18 % designed for typesetting chemical structural formulas.
19 %
20 % This file is to be contained in the ``xymtex'' directory which is
21 % an input directory for TeX. It is a LaTeX optional style file and
22 % should be used only within LaTeX, because several macros of the file
23 % are based on LaTeX commands.
24 %
25 % For the review of XyMTeX, see
26 % (1) Shinsaku Fujita, ``Typesetting structural formulas with the text
27 % formatter TeX/LaTeX'', Computers and Chemistry, in press.
28 % The following book deals with an application of TeX/LaTeX to
29 % preparation of manuscripts of chemical fields:
30 % (2) Shinsaku Fujita, ``LaTeX for Chemists and Biochemists''
31 % Tokyo Kagaku Dozin, Tokyo (1993) [in Japanese].
32 %
33 % This work may be distributed and/or modified under the
34 % conditions of the LaTeX Project Public License, either version 1.3
35 % of this license or (at your option) any later version.
36 % The latest version of this license is in
37 % http://www.latex-project.org/lppl.txt
38 % and version 1.3 or later is part of all distributions of LaTeX
39 % version 2005/12/01 or later.
40 %
41 % This work has the LPPL maintenance status `maintained'.
42 % The Current Maintainer of this work is Shinsaku Fujita.
43 %
44 % This work consists of the files xymtx-pdf.dtx and xymtx-pdf.ins
45 % and the derived file xymtx-pdf.sty.
46 %
47 % Please report any bugs, comments, suggestions, etc. to:
48 % Shinsaku Fujita,
49 % Department of Chemistry and Materials Technology,
50 % Kyoto Institute of Technology,
51 % Matsugasaki, Sakyoku, Kyoto, 606, Japan
52 %
53 % New address:
54 % Shinsaku Fujita,
55 % Department of Chemistry and Materials Technology,
56 % Kyoto Institute of Technology, \\
57 % Matsugasaki, Sakyoku, Kyoto, 606 Japan
58 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
59 % \def\j@urnalname{carom}
60 % \def\versi@ndate{August 16, 1996}
61 % \def\versi@nno{ver1.01}
62 % \def\copyrighth@lder{SF} % Shinsaku Fujita
63 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
64 % \def\j@urnalname{carom}
65 % \def\versi@ndate{December 01, 1993}
66 % \def\versi@nno{ver1.00}
67 % \def\copyrighth@lder{SF} % Shinsaku Fujita
68 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
69 % \def\j@urnalname{carom}
70 % \def\versi@ndate{August 16, 1996}
71 % \def\versi@nno{ver1.01}
72 % \def\copyrighth@lder{SF} % Shinsaku Fujita
73 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
74 % \def\j@urnalname{carom}
75 % \def\versi@ndate{October 31, 1998}
76 % \def\versi@nno{ver1.02}
77 % \def\copyrighth@lder{SF} % Shinsaku Fujita
78 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
79 % \def\j@urnalname{carom}
80 % \def\versi@ndate{December 25, 1998}
81 % \def\versi@nno{ver2.00}
82 % \def\copyrighth@lder{SF} % Shinsaku Fujita
83 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
84 % \def\j@urnalname{carom}
85 % \def\versi@ndate{June 14, 2000}
86 % \def\versi@nno{ver2.00a}
87 % \def\copyrighth@lder{SF} % Shinsaku Fujita
88 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
89 % \def\j@urnalname{carom}
90 % \def\versi@ndate{June 20, 2001}
91 % \def\versi@nno{ver2.01}
92 % \def\copyrighth@lder{SF} % Shinsaku Fujita
93 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
94 % \def\j@urnalname{carom}
95 % \def\versi@ndate{April 30, 2002}
96 % \def\versi@nno{ver3.00}
97 % \def\copyrighth@lder{SF} % Shinsaku Fujita
98 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
99 % \def\j@urnalname{carom}
100 % \def\versi@ndate{May 30, 2002}
101 % \def\versi@nno{ver4.00}
102 % \def\copyrighth@lder{SF} % Shinsaku Fujita
103 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
104 % \def\j@urnalname{carom}
105 % \def\versi@ndate{August 30, 2004}
106 % \def\versi@nno{ver4.01}
107 % \def\copyrighth@lder{SF} % Shinsaku Fujita
108 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
109 %
110 % \fi
111 %
112 % \CheckSum{2982}
113 %% \CharacterTable
114 %% {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
115 %% 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
116 %% Digits \0\1\2\3\4\5\6\7\8\9
117 %% Exclamation \! Double quote \" Hash (number) \#
118 %% Dollar \$ Percent \% Ampersand \&
119 %% Acute accent \' Left paren \( Right paren \)
120 %% Asterisk \* Plus \+ Comma \,
121 %% Minus \- Point \. Solidus \/
122 %% Colon \: Semicolon \; Less than \<
123 %% Equals \= Greater than \> Question mark \?
124 %% Commercial at \@ Left bracket \[ Backslash \\
125 %% Right bracket \] Circumflex \^ Underscore \_
126 %% Grave accent \` Left brace \{ Vertical bar \|
127 %% Right brace \} Tilde \~}
128 %
129 % \setcounter{StandardModuleDepth}{1}
130 %
131 % \StopEventually{}
132 % \MakeShortVerb{\|}
133 %
134 % \iffalse
135 % \changes{v1.01}{1996/08/16}{first edition for LaTeX2e}
136 % \changes{v1.02}{1998/10/31}{revised edition for LaTeX2e}
137 % \changes{v2.00}{1998/12/25}{enhanced edition for LaTeX2e}
138 % \changes{v2.00a}{2000/06/14}{bug fix}
139 % \changes{v2.01}{2001/06/30}{Size reduction}
140 % \changes{v3.00}{2002/04/30}{sfpicture enviromnent etc.}
141 % \changes{v4.00}{2002/05/30}{PostScript output and ShiftPicEnv}
142 % \changes{v4.01}{2002/08/30}{Minor additions}
143 % \changes{v5.00}{2010/10/01}{the LaTeX Project Public License}
144 % \fi
145 %
146 % \iffalse
147 %<*driver>
148 \NeedsTeXFormat{pLaTeX2e}
149 % \fi
150 \ProvidesFile{carom.dtx}[2010/10/01 v5.00 XyMTeX{} package file]
151 % \iffalse
152 \documentclass{ltxdoc}
153 \GetFileInfo{carom.dtx}
154 %
155 % %%XyMTeX Logo: Definition 2%%%
156 \def\UPSILON{\char'7}
157 \def\XyM{X\kern-.30em\smash{%
158 \raise.50ex\hbox{\UPSILON}}\kern-.30em{M}}
159 \def\XyMTeX{\XyM\kern-.1em\TeX}
160 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
161 \title{Drawing carbocyclic compounds by {\sffamily carom.sty}
162 (\fileversion) of \XyMTeX{}}
163 \author{Shinsaku Fujita \\
164 Shonan Institute of Chemoinformatics Mathematical Chemistry, \\
165 Kaneko 479-7 Ooimachi, Ashigara-Kami-Gun,
166 Kanagawa-Ken, 258-0019 Japan
167 % % (old address)
168 % %Department of Chemistry and Materials Technology, \\
169 % %Kyoto Institute of Technology, \\
170 % %Matsugasaki, Sakyoku, Kyoto, 606-8585 Japan
171 % % (old address)
172 % % Ashigara Research Laboratories,
173 % % Fuji Photo Film Co., Ltd., \\
174 % % Minami-Ashigara, Kanagawa, 250-01 Japan
175 }
176 \date{\filedate}
177 %
178 \begin{document}
179 \maketitle
180 \DocInput{carom.dtx}
181 \end{document}
182 %</driver>
183 % \fi
184 %
185 % \section{Introduction}\label{carom:intro}
186 %
187 % \subsection{Options for {\sffamily docstrip}}
188 %
189 % \DeleteShortVerb{\|}
190 % \begin{center}
191 % \begin{tabular}{|l|l|}
192 % \hline
193 % \emph{option} & \emph{function}\\ \hline
194 % carom & carom.sty \\
195 % driver & driver for this dtx file \\
196 % \hline
197 % \end{tabular}
198 % \end{center}
199 % \MakeShortVerb{\|}
200 %
201 % \subsection{Version Information}
202 %
203 % \begin{macrocode}
204 %<*carom>
205 \typeout{XyMTeX for Drawing Chemical Structural Formulas. Version 5.00}
206 \typeout{ -- Released October 01, 2010 by Shinsaku Fujita}
207 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
208 \def\j@urnalname{carom}
209 \def\versi@ndate{October 01, 2010}
210 \def\versi@nno{ver5.00}
211 \def\copyrighth@lder{SF} % Shinsaku Fujita
212 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
213 \typeout{XyMTeX Macro File `\j@urnalname' (\versi@nno) <\versi@ndate>%
214 \space[\copyrighth@lder]}
215 % \end{macrocode}
216 %
217 % \section{List of commands for carom.sty}
218 %
219 % \begin{verbatim}
220 % *******************************
221 % * carom.sty: list of commands *
222 % *******************************
223 %
224 % <VERTICAL TYPE>
225 %
226 % \cyclohexanev \@cyclohexanev
227 % \bzdrv \@bzdrv
228 % \decalinev \@decalinev
229 % \decalinevb \@decalinevb
230 % \decalinevt \@decalinevt
231 % \naphdrv \@naphdrv
232 % \naphdrvb \@naphdrvb
233 % \naphdrvt \@naphdrvt
234 % \tetralinev \@tetralinev
235 % \tetralinevb \@tetralinevb
236 % \tetralinevt \@tetralinevt
237 % \hanthracenev \@hanthracenev
238 % \anthracenev \@anthracenev
239 % \hphenanthrenev \@hphenanthrenev
240 % \phenanthrenev \@phenanthrenev
241 % \steroid \@steroid
242 % \steroidchain \@steroidchain
243 % \end{verbatim}
244 %
245 % \begin{verbatim}
246 % <HORIZONTAL TYPE>
247 %
248 % \cyclohexaneh \@cyclohexaneh
249 % \bzdrh \@bzdrh
250 % \decalineh \@decalineh
251 % \naphdrh \@naphdrh
252 % \tetralineh \@tetralineh
253 %
254 % \end{verbatim}
255 %
256 % \section{Input of basic macros}
257 %
258 % To assure the compatibility to \LaTeX{}2.09 (the native mode),
259 % the commands added by \LaTeXe{} have not been used in the resulting sty
260 % files ({\sf carom.sty} for the present case). Hence, the combination
261 % of |\input| and |\@ifundefined| is used to crossload sty
262 % files ({\sf chemstr.sty} for the present case) in place of the
263 % |\RequirePackage| command of \LaTeXe{}.
264 % \begin{macrocode}
265 % *************************
266 % * input of basic macros *
267 % *************************
268 \@ifundefined{setsixringv}{\input chemstr.sty\relax}{}
269 \@ifundefined{decaheterov}{\input hetarom.sty\relax}{}
270 \@ifundefined{decaheteroh}{\input hetaromh.sty\relax}{}
271 \unitlength=0.1pt
272 % \end{macrocode}
273 %
274 % \section{Cyclohexane derivatives}
275 % \subsection{Vertical cyclohexanes}
276 %
277 % The macro |\cyclohexanev| is used for drawing cyclohexane derivatives
278 % of vertical type. The skeleton and endocyclic double bonds are
279 % drawn directly, while substituents and exocyclic bonds are placed by
280 % useing the inner macro |\setsixringv|.
281 %
282 % \begin{verbatim}
283 % ***************************
284 % * cyclohexane derivatives *
285 % * (vertical type) *
286 % ***************************
287 % The following numbering is adopted in this macro.
288 %
289 % 1
290 % *
291 % 6 * * 2
292 % | |
293 % | |
294 % 5 * * 3
295 % *
296 % 4 <===== the original point
297 %
298 % \end{verbatim}
299 %
300 % The macro |\cyclohexanev| has an argument |SUBSLIST| as well as an optional
301 % argument |BONDLIST|.
302 % \begin{verbatim}
303 % \cyclohexanev[BONDLIST]{SUBSLIST}
304 % \end{verbatim}
305 %
306 % The |BONDLIST| argument contains one or more
307 % characters selected form a to f as well as A, each of which indicates
308 % the presence of an inner (endcyclic) double bond on the corresponding
309 % position.
310 %
311 % \begin{verbatim}
312 % BONDLIST =
313 %
314 % none : cyclohexane
315 % a : 1,2-double bond
316 % b : 2,3-double bond
317 % c : 4,3-double bond
318 % d : 4,5-double bond
319 % e : 5,6-double bond
320 % f : 6,1-double bond
321 % A : aromatic circle
322 % \end{verbatim}
323 %
324 % The |SUBSLIST| argument contains one or more substitution descriptors
325 % which are separated from each other by a semicolon. Each substitution
326 % descriptor has a locant number with a bond modifier and a substituent,
327 % where these are separated with a double equality symbol.
328 %
329 % \begin{verbatim}
330 % SUBSLIST: list of substituents
331 %
332 % for n = 1 to 6
333 %
334 % nD : exocyclic double bond at n-atom
335 % n or nS : exocyclic single bond at n-atom
336 % nA : alpha single bond at n-atom
337 % nB : beta single bond at n-atom
338 % nSA : alpha single bond at n-atom (boldface)
339 % nSB : beta single bond at n-atom (dotted line)
340 % nSa : alpha (not specified) single bond at n-atom
341 % nSb : beta (not specifed) single bond at n-atom
342 %
343 % nSd : alpha single bond at n-atom (dotted line)
344 % with an alternative direction to nSA
345 % nSu : beta single bond at n-atom (boldface)
346 % with an alternative direction to nSB
347 % nFA : alpha single bond at n-atom (dotted line)
348 % for ring fusion
349 % nFB : beta single bond at n-atom (boldface)
350 % for ring fusion
351 % nGA : alpha single bond at n-atom (dotted line)
352 % for the other ring fusion
353 % nGB : beta single bond at n-atom (boldface)
354 % for the other ring fusion
355 % \end{verbatim}
356 %
357 % \begin{verbatim}
358 % e.g.
359 %
360 % \cyclohexanev{1==Cl;2==F}
361 % \cyclohexanev[c]{1==Cl;4==F;2==CH$_{3}$}
362 % \cyclohexanev[eb]{1D==O;4SA==MeO;4SB==OMe;5W==Cl;6==Cl}
363 % \end{verbatim}
364 %
365 % \begin{macro}{\cyclohexanev}
366 % \begin{macrocode}
367 \def\cyclohexanev{\@ifnextchar[{\@cyclohexanev[@}{\@cyclohexanev[@]}}
368 \def\@cyclohexanev[#1]#2{\sixheterov[#1]{}{#2}}
369 % \end{macrocode}
370 % \end{macro}
371 %
372 % The following definition has been deleted.
373 %
374 % \changes{v1.02}{1998/10/31}{Adding \cs{ylposition}, \cs{@ylsw},
375 % \cs{yl@shifti}, \cs{@ylii}, \cs{yl@shiftii}, \cs{@ylii},
376 % \cs{yl@xdiff} and \cs{yl@ydiff}}
377 % \changes{v2.00}{1998/11/23}{Adding \cs{set@fusionadd@sixv}}
378 % \changes{v3.00}{2002/04/30}{\cs{cyclohexanev}: Old definition deleted.}
379 %
380 % \subsection{Horizontal cyclohexanes}
381 %
382 % The macro |cyclohexaneh| is used for drawing cyclohexane derivatives
383 % of vertical type. The skeleton and endocyclic double bonds are
384 % drawn directly, while substituents and exocyclic bonds are placed by
385 % useing the inner macro |\setsixringh|.
386 %
387 % \begin{verbatim}
388 % ***************************
389 % * cyclohexane derivatives *
390 % * (horizontal type) *
391 % ***************************
392 % The following numbering is adopted in this macro.
393 %
394 % 2 3
395 % -----
396 % * *
397 % the original point ===> 1 * * 4
398 % (0,0) * *
399 % -----
400 % 6 5
401 % \end{verbatim}
402 %
403 % The macro |\cyclohexaneh| has an argument |SUBSLIST| as well as an optional
404 % argument |BONDLIST|.
405 %
406 % \begin{verbatim}
407 % \cyclohexaneh[BONDLIST]{SUBSLIST}
408 % \end{verbatim}
409 %
410 % The |BONDLIST| argument contains one or more
411 % characters selected form a to f as well as A, each of which indicates
412 % the presence of an inner (endcyclic) double bond on the corresponding
413 % position.
414 %
415 % \begin{verbatim}
416 % BONDLIST =
417 %
418 % none : cyclohexane
419 % a : 1,2-double bond
420 % b : 2,3-double bond
421 % c : 4,3-double bond
422 % d : 4,5-double bond
423 % e : 5,6-double bond
424 % f : 6,1-double bond
425 % A : aromatic circle
426 % \end{verbatim}
427 %
428 % The |SUBSLIST| argument contains one or more substitution descriptors
429 % which are separated from each other by a semicolon. Each substitution
430 % descriptor has a locant number with a bond modifier and a substituent,
431 % where these are separated with a double equality symbol.
432 %
433 % \begin{verbatim}
434 % SUBSLIST: list of substituents
435 %
436 % for n = 1 to 6
437 %
438 % nD : exocyclic double bond at n-atom
439 % n or nS : exocyclic single bond at n-atom
440 % nA : alpha single bond at n-atom
441 % nB : beta single bond at n-atom
442 % nSA : alpha single bond at n-atom (boldface)
443 % nSB : beta single bond at n-atom (dotted line)
444 % nSa : alpha (not specified) single bond at n-atom
445 % nSb : beta (not specifed) single bond at n-atom
446 %
447 % nSd : alpha single bond at n-atom (dotted line)
448 % with an alternative direction to nSA
449 % nSu : beta single bond at n-atom (boldface)
450 % with an alternative direction to nSB
451 % nFA : alpha single bond at n-atom (dotted line)
452 % for ring fusion
453 % nFB : beta single bond at n-atom (boldface)
454 % for ring fusion
455 % nGA : alpha single bond at n-atom (dotted line)
456 % for the other ring fusion
457 % nGB : beta single bond at n-atom (boldface)
458 % for the other ring fusion
459 % \end{verbatim}
460 %
461 % \begin{verbatim}
462 % e.g.
463 %
464 % \cyclohexaneh{1==Cl;2==F}
465 % \cyclohexaneh[c]{1==Cl;4==F;2==CH$_{3}$}
466 % \cyclohexaneh[eb]{1D==O;4SA==MeO;4SB==OMe;5W==Cl;6==Cl}
467 % \end{verbatim}
468 %
469 % \changes{v2.00a}{2000/06/14}{bug fix: changed letter [r] to [@]
470 % in \cs{cycohexaneh} for horizontal cyclohexanes}
471 %
472 % \begin{macro}{\cyclohexaneh}
473 % \begin{macrocode}
474 \def\cyclohexaneh{\@ifnextchar[{\@cyclohexaneh[@}{\@cyclohexaneh[@]}}
475 \def\@cyclohexaneh[#1]#2{\sixheteroh[#1]{}{#2}}
476 % \end{macrocode}
477 % \end{macro}
478 %
479 % The following definition has been deleted.
480 %
481 % \changes{v1.02}{1998/10/31}{Adding \cs{ylpositionh}, \cs{if@ylsw},
482 % \cs{yl@shifti}, \cs{@ylii}, \cs{yl@shiftii}, \cs{@ylii},
483 % \cs{yl@xdiff} and \cs{yl@ydiff}}
484 % \changes{v2.00}{1998/11/29}{Adding \cs{set@fusionadd@sixv} for
485 % fused rings}
486 % \changes{v3.00}{2002/04/30}{\cs{cyclohexaneh}: Old definition deleted.}
487 %
488 % \section{Benzene and benzoquinone derivatives}
489 % \subsection{Vertical type}
490 %
491 % The macro |\bzdrv| (|\benzenev|) is used for drawing benzene derivatives
492 % of vertical type as well as benzoquinone derivatives of
493 % vertical type. The skeleton and endocyclic double bonds are
494 % drawn directly, while substituents and exocyclic bonds are placed by
495 % useing the inner macro |\cyclohexanev| defined above.
496 %
497 % The macro |\bzdrv| has an argument |SUBSLIST| as well as an optional
498 % argument |OPT|. The latter designates a bond pattern in place of
499 % individual exocyclic bonds.
500 %
501 % \changes{v3.00}{2002/04/30}{\cs{benzenev} added}
502 %
503 % \begin{verbatim}
504 % ****************************************
505 % * benzene and benzoquinone derivatives *
506 % * (vertical type) *
507 % ****************************************
508 %
509 % \bzdrv[OPT]{SUBSLIST}
510 % \benzenev[OPT]{SUBSLIST}
511 % \end{verbatim}
512 %
513 % The |OPT| argument contains one character (r, l or c) for designate
514 % aromatic bond patterns or two characters (p? or o?) for quinone
515 % bond patterns.
516 %
517 % \begin{verbatim}
518 %
519 % OPT: (bond pattern)
520 %
521 % none or r : right-handed set of double bonds
522 % l : left-handed set of double bonds
523 % c : aromatic circle
524 %
525 % p or pa : p-quinone (A)
526 % pb : p-quinone (B)
527 % pc : p-quinone (C)
528 %
529 % o or oa : o-quinone (A)
530 % ob : o-quinone (B)
531 % oc : o-quinone (C)
532 % od : o-quinone (D)
533 % oe : o-quinone (E)
534 % of : o-quinone (F)
535 % \end{verbatim}
536 %
537 % The |SUBSLIST| argument contains one or more substitution descriptors
538 % which are separated from each other by a semicolon. Each substitution
539 % descriptor has a locant number with a bond modifier and a substituent,
540 % where these are separated with a double equality symbol.
541 %
542 % \begin{verbatim}
543 %
544 % SUBSLIST: list of substituents
545 %
546 % for n = 1 to 6
547 %
548 % nD : exocyclic double bond at n-atom
549 % n or nS : exocyclic single bond at n-atom
550 % nA : alpha single bond at n-atom
551 % nB : beta single bond at n-atom
552 % nSA : alpha single bond at n-atom (boldface)
553 % nSB : beta single bond at n-atom (dotted line)
554 % nSa : alpha (not specified) single bond at n-atom
555 % nSb : beta (not specified) single bond at n-atom
556 %
557 % nSd : alpha single bond at n-atom (dotted line)
558 % with an alternative direction to nSA
559 % nSu : beta single bond at n-atom (boldface)
560 % with an alternative direction to nSB
561 % nFA : alpha single bond at n-atom (dotted line)
562 % for ring fusion
563 % nFB : beta single bond at n-atom (boldface)
564 % for ring fusion
565 % nGA : alpha single bond at n-atom (dotted line)
566 % for the other ring fusion
567 % nGB : beta single bond at n-atom (boldface)
568 % for the other ring fusion
569 % \end{verbatim}
570 %
571 % \begin{verbatim}
572 % e.g.
573 % \bzdrv{1==Cl;2==F}
574 % \bzdrv[c]{1==Cl;4==F;2==CH$_{3}$}
575 % \bzdrv[pa]{1D==O;4D==O;2==CH$_{3}$}
576 % \end{verbatim}
577 %
578 % \begin{macro}{\bzdrv}
579 % \begin{macro}{\benzenev}
580 % \begin{macrocode}
581 \def\bzdrv{\@ifnextchar[{\@bzdrv}{\@bzdrv[r]}}
582 \def\@bzdrv[#1]#2{%
583 \iforigpt \typeout{command `bzdrv' is based on `cyclohexanev'.}\fi%
584 %\expandafter\twoch@r#1{}%
585 \expandafter\twoCH@R#1//%
586 \if\@tmpa r% right-handed set of double bonds
587 \ifx\@tmpb\empty
588 \cyclohexanev[bdf]{#2}%
589 \fi
590 \else\if\@tmpa l%left-handed set of double bonds
591 \ifx\@tmpb\empty
592 \cyclohexanev[ace]{#2}%
593 \fi
594 \else\if\@tmpa c%aromatic circle
595 \ifx\@tmpb\empty
596 \cyclohexanev[A]{#2}%
597 \fi
598 \else\if\@tmpa p%p-quinone
599 \if\@tmpb a% (A)
600 \cyclohexanev[be]{#2}%
601 \else\ifx\@tmpb\empty% (A)
602 \cyclohexanev[be]{#2}%
603 \else\if\@tmpb b% (B)
604 \cyclohexanev[cf]{#2}%
605 \else\if\@tmpb c% (C)
606 \cyclohexanev[ad]{#2}%
607 \fi\fi\fi\fi%
608 \else\if\@tmpa o%o-quinone
609 \if\@tmpb a% (A)%
610 \cyclohexanev[ce]{#2}%
611 \else\ifx\@tmpb\empty% (A)
612 \cyclohexanev[ce]{#2}%
613 \else\if\@tmpb b%o-quinone (B)
614 \cyclohexanev[df]{#2}%
615 \else\if\@tmpb c%o-quinone (C)
616 \cyclohexanev[ae]{#2}%
617 \else\if\@tmpb d%o-quinone (D)
618 \cyclohexanev[bf]{#2}%
619 \else\if\@tmpb e%o-quinone (E)
620 \cyclohexanev[ac]{#2}%
621 \else\if\@tmpb f%o-quinone (F)
622 \cyclohexanev[bd]{#2}%
623 \fi\fi\fi\fi\fi\fi\fi%
624 \else% added 1998/11/15 by S. Fujita
625 \cyclohexanev[@#1]{#2}%
626 \fi\fi\fi\fi\fi%
627 }% %end of \bzdrv macro
628 \let\benzenev=\bzdrv
629 % \end{macrocode}
630 % \end{macro}
631 % \end{macro}
632 %
633 % \subsection{Horizontal type}
634 %
635 % The macro |\bzdrh| (|\benzeneh|) is used for drawing benzene derivatives
636 % of vertical type as well as benzoquinone derivatives of
637 % vertical type. The skeleton and endocyclic double bonds are
638 % drawn directly, while substituents and exocyclic bonds are placed by
639 % useing the inner macro |\cyclohexanev| defined above.
640 %
641 % The macro |\bzdrh| has an argument |SUBSLIST| as well as an optional
642 % argument |OPT|. The latter designates a bond pattern in place of
643 % individual exocyclic bonds.
644 %
645 % \changes{v3.00}{2002/04/30}{\cs{benzeneh} added}
646 %
647 % \begin{verbatim}
648 % ****************************************
649 % * benzene and benzoquinone derivatives *
650 % * (horizontal type) *
651 % ****************************************
652 %
653 % \bzdrh[OPT]{SUBSLIST}
654 % \benzeneh[OPT]{SUBSLIST}
655 % \end{verbatim}
656 %
657 % The |OPT| argument contains one character (r, l or c) for designate
658 % aromatic bond patterns or two characters (p? or o?) for quinone
659 % bond patterns.
660 %
661 % \begin{verbatim}
662 %
663 % OPT: (bond pattern)
664 %
665 % none or r : right-handed set of double bonds
666 % l : left-handed set of double bonds
667 % c : aromatic circle
668 %
669 % p or pa : p-quinone (A)
670 % pb : p-quinone (B)
671 % pc : p-quinone (C)
672 %
673 % o or oa : o-quinone (A)
674 % ob : o-quinone (B)
675 % oc : o-quinone (C)
676 % od : o-quinone (D)
677 % oe : o-quinone (E)
678 % of : o-quinone (F)
679 % \end{verbatim}
680 %
681 % The |SUBSLIST| argument contains one or more substitution descriptors
682 % which are separated from each other by a semicolon. Each substitution
683 % descriptor has a locant number with a bond modifier and a substituent,
684 % where these are separated with a double equality symbol.
685 %
686 % \begin{verbatim}
687 %
688 % SUBSLIST: list of substituents
689 %
690 % for n = 1 to 6
691 %
692 % nD : exocyclic double bond at n-atom
693 % n or nS : exocyclic single bond at n-atom
694 % nA : alpha single bond at n-atom
695 % nB : beta single bond at n-atom
696 % nSA : alpha single bond at n-atom (boldface)
697 % nSB : beta single bond at n-atom (dotted line)
698 % nSa : alpha (not specified) single bond at n-atom
699 % nSb : beta (not specified) single bond at n-atom
700 %
701 % nSd : alpha single bond at n-atom (dotted line)
702 % with an alternative direction to nSA
703 % nSu : beta single bond at n-atom (boldface)
704 % with an alternative direction to nSB
705 % nFA : alpha single bond at n-atom (dotted line)
706 % for ring fusion
707 % nFB : beta single bond at n-atom (boldface)
708 % for ring fusion
709 % nGA : alpha single bond at n-atom (dotted line)
710 % for the other ring fusion
711 % nGB : beta single bond at n-atom (boldface)
712 % for the other ring fusion
713 % \end{verbatim}
714 %
715 % \begin{verbatim}
716 %
717 % e.g.
718 % \bzdrh{1==Cl;2==F}
719 % \bzdrh[c]{1==Cl;4==F;2==CH$_{3}$}
720 % \bzdrh[pa]{1D==O;4D==O;2==CH$_{3}$}
721 %
722 % \end{verbatim}
723 %
724 % \begin{macro}{\bzdrh}
725 % \begin{macro}{\benzeneh}
726 % \begin{macrocode}
727 \def\bzdrh{\@ifnextchar[{\@bzdrh}{\@bzdrh[r]}}
728 \def\@bzdrh[#1]#2{%
729 \iforigpt \typeout{command `bzdrh' is based on `cyclohexaneh'.}\fi%
730 %\expandafter\twoch@r#1{}%
731 \expandafter\twoCH@R#1//%
732 %\begin{sfpicture}(800,880)(-\noshift,-\noshift)
733 \if\@tmpa r% right-handed set of double bonds
734 \cyclohexaneh[bdf]{#2}%
735 \else\if\@tmpa l%left-handed set of double bonds
736 \cyclohexaneh[ace]{#2}%
737 \else\if\@tmpa c%aromatic circle
738 \cyclohexaneh[A]{#2}%
739 \else\if\@tmpa p%p-quinone
740 \if\@tmpb a% (A)
741 \cyclohexaneh[be]{#2}%
742 \else\ifx\@tmpb\empty% (A)
743 \cyclohexaneh[be]{#2}%
744 \else\if\@tmpb b% (B)
745 \cyclohexaneh[cf]{#2}%
746 \else\if\@tmpb c% (C)
747 \cyclohexaneh[ad]{#2}%
748 \fi\fi\fi\fi%
749 \else\if\@tmpa o%o-quinone
750 \if\@tmpb a% (A)%
751 \cyclohexaneh[ce]{#2}%
752 \else\ifx\@tmpb\empty% (A)
753 \cyclohexaneh[ce]{#2}%
754 \else\if\@tmpb b%o-quinone (B)
755 \cyclohexaneh[df]{#2}%
756 \else\if\@tmpb c%o-quinone (C)
757 \cyclohexaneh[ae]{#2}%
758 \else\if\@tmpb d%o-quinone (D)
759 \cyclohexaneh[bf]{#2}%
760 \else\if\@tmpb e%o-quinone (E)
761 \cyclohexaneh[ac]{#2}%
762 \else\if\@tmpb f%o-quinone (F)
763 \cyclohexaneh[bd]{#2}%
764 \fi\fi\fi\fi\fi\fi\fi%
765 \else% added 1998/11/15 by S. Fujita
766 \cyclohexaneh[@#1]{#2}%
767 \fi\fi\fi\fi\fi%
768 %\end{sfpicture}
769 }% %end of \bzdrh macro
770 \let\benzeneh=\bzdrh
771 % \end{macrocode}
772 % \end{macro}
773 % \end{macro}
774 %
775 % \section{Decaline derivatives}
776 % \subsection{Vertical type}
777 %
778 % The macro |\decalinev| is used for drawing decaline derivatives
779 % of vertical type. The skeleton and endocyclic double bonds are
780 % drawn directly, while substituents and exocyclic bonds are placed by
781 % useing the inner macro |\setdecaringv|.
782 %
783 % \begin{verbatim}
784 % ************************
785 % * decaline derivatives *
786 % * (vertical type) *
787 % ************************
788 % The following numbering is adopted in this macro.
789 %
790 % 8 (0G)1
791 % * 8a *
792 % 7 * * * * 2
793 % | | |
794 % | | |
795 % 6 * * * * 3
796 % * 4a *
797 % 5 (0F)4
798 % ^
799 % |
800 % the original point
801 % \end{verbatim}
802 %
803 % The macro |\decalinev| has an argument |SUBSLIST| as well as an optional
804 % argument |BONDLIST|.
805 %
806 % \begin{verbatim}
807 % \decalinev[BONDLIST]{SUBSLIST}
808 % \end{verbatim}
809 %
810 % The |BONDLIST| argument contains one or more
811 % characters selected form a to k, each of which indicates
812 % the presence of an inner (endcyclic) double bond on the corresponding
813 % position. The character A or B indicates aromatic bond patterns (circles).
814 % \changes{v1.02}{1998/10/14}{BONDLIST: k and K at the fused bond}
815 %
816 % \begin{verbatim}
817 % BONDLIST =
818 %
819 % none : decaline
820 % a : 1,2-double bond
821 % b : 2,3-double bond
822 % c : 3,4-double bond
823 % d : 4,4a-double bond
824 % e : 5,4a-double bond
825 % f : 5,6-double bond
826 % g : 6,7-double bond
827 % h : 8,7-double bond
828 % i : 8,8a-double bond
829 % j : 1,8a-double bond
830 % k : 4a,8a-double bond
831 % K : 4a,8a-double bond in the other ring
832 % A : left aromatic circle
833 % B : right aromatic circle
834 % \end{verbatim}
835 %
836 % The |SUBSLIST| argument contains one or more substitution descriptors
837 % which are separated from each other by a semicolon. Each substitution
838 % descriptor has a locant number with a bond modifier and a substituent,
839 % where these are separated with a double equality symbol.
840 %
841 % \begin{verbatim}
842 %
843 % SUBSLIST: list of substituents
844 %
845 % for n = 1 to 8
846 %
847 % nD : exocyclic double bond at n-atom
848 % n or nS : exocyclic single bond at n-atom
849 % nA : alpha single bond at n-atom
850 % nB : beta single bond at n-atom
851 % nSA : alpha single bond at n-atom (boldface)
852 % nSB : beta single bond at n-atom (dotted line)
853 % nSa : alpha (not specified) single bond at n-atom
854 % nSb : beta (not specified) single bond at n-atom
855 %
856 %
857 % nSd : alpha single bond at n-atom (dotted line)
858 % with an alternative direction to nSA
859 % nSu : beta single bond at n-atom (boldface)
860 % with an alternative direction to nSB
861 % nFA : alpha single bond at n-atom (dotted line)
862 % for ring fusion
863 % nFB : beta single bond at n-atom (boldface)
864 % for ring fusion
865 % nGA : alpha single bond at n-atom (dotted line)
866 % for the other ring fusion
867 % nGB : beta single bond at n-atom (boldface)
868 % for the other ring fusion
869 %
870 % for 0 (fused positions)
871 %
872 % 0FA : alpha single bond at 8a
873 % 0FB : beta single bond at 8a
874 % 0FU : unspecified single bond at 8a
875 % 0GA : alpha single bond at 4a
876 % 0GB : beta single bond at 4a
877 % 0GU : unspecified single bond at 4a
878 % \end{verbatim}
879 %
880 % \begin{verbatim}
881 %
882 % e.g.
883 %
884 % \decalinev{1==Cl;2==F;0FA==;0GA==}
885 % \decalinev[c]{1==Cl;4==F;2==CH$_{3}$}
886 % \decalinev[eb]{1D==O;4SA==MeO;4SB==OMe;5W==Cl;6==Cl;7==Cl;8==Cl}
887 %
888 % \end{verbatim}
889 %
890 % The macro |\decalinev| has been changed into a subsidiary macro
891 % of |\decaheterov| (version 2.00).
892 %
893 % \begin{macro}{\decalinev}
894 % \begin{macrocode}
895 \def\decalinev{\@ifnextchar[{\@decalinev[@}{\@decalinev[@]}}
896 \def\@decalinev[#1]#2{%
897 \iforigpt \typeout{command `decalinev' is based on `decaheterov'.}\fi%
898 \decaheterov[#1]{}{#2}}
899 % \end{macrocode}
900 % \end{macro}
901 %
902 % The following definition has been stopped using.
903 % \changes{v1.02}{1998/10/31}{Adding \cs{ylposition}, \cs{if@ylsw}
904 % \cs{ylfusedposition},
905 % \cs{yl@shiftii}, \cs{@ylii}, \cs{@@ylii}, \cs{yl@shifti}, \cs{@yli},
906 % \cs{@yli}, \cs{yl@xdiff} and \cs{yl@ydiff}}
907 % \changes{v2.00}{1998/12/5}{Add: fused rings}
908 % \changes{v3.00}{2002/04/30}{\cs{decalinev}: Old definition deleted.}
909 %
910 % \subsection{Vertical-bottom type}
911 %
912 % The macro |\decalinevb| is used for drawing decaline derivatives
913 % of vertical-bottom type (numbering from the bottom to the left-upper part).
914 % The word ``vertical'' means that each benzene ring is a vertical type.
915 % The word ``bottom'' means that the benzene ring with young locant numbers
916 % is located at the bottom.
917 % The skeleton and endocyclic double bonds are drawn directly,
918 % while substituents and exocyclic bonds are placed by useing
919 % the inner macro |\setsixringv|.
920 % \changes{v1.02}{1998/10/13}{Newly added command}
921 %
922 % \begin{verbatim}
923 % ***************************
924 % * decaline derivatives *
925 % * (vertical bottom type) *
926 % ***************************
927 % The following numbering is adopted in this macro.
928 %
929 % 7
930 % *
931 % 6 * * 8
932 % | |
933 % | | 0G (4a)
934 % 5 * * *
935 % 0F(4a) * * 1
936 % | |
937 % | |
938 % 4 * * 2
939 % *
940 % 3
941 % ^
942 % |
943 % the original point
944 % \end{verbatim}
945 %
946 % The macro |\decalinevb| has an argument |SUBSLIST| as well as an optional
947 % argument |BONDLIST|.
948 %
949 % \begin{verbatim}
950 % \decalinevb[BONDLIST]{SUBSLIST}
951 % \end{verbatim}
952 %
953 % The |BONDLIST| argument contains one or more
954 % characters selected form a to k, each of which indicates
955 % the presence of an inner (endcyclic) double bond on the corresponding
956 % position. The character A or B indicates aromatic bond patterns (circles).
957 % \changes{v1.02}{1998/10/14}{BONDLIST: k and K at the fused bond}
958 %
959 % \begin{verbatim}
960 % BONDLIST =
961 %
962 % none : decaline
963 % a : 1,2-double bond
964 % b : 2,3-double bond
965 % c : 3,4-double bond
966 % d : 4,4a-double bond
967 % e : 5,4a-double bond
968 % f : 5,6-double bond
969 % g : 6,7-double bond
970 % h : 8,7-double bond
971 % i : 8,8a-double bond
972 % j : 1,8a-double bond
973 % k : 4a,8a-double bond
974 % K : 4a,8a-double bond in the other ring
975 % A : left aromatic circle
976 % B : right aromatic circle
977 % \end{verbatim}
978 %
979 % The |SUBSLIST| argument contains one or more substitution descriptors
980 % which are separated from each other by a semicolon. Each substitution
981 % descriptor has a locant number with a bond modifier and a substituent,
982 % where these are separated with a double equality symbol.
983 %
984 % \begin{verbatim}
985 %
986 % SUBSLIST: list of substituents
987 %
988 % for n = 1 to 8
989 %
990 % nD : exocyclic double bond at n-atom
991 % n or nS : exocyclic single bond at n-atom
992 % nA : alpha single bond at n-atom
993 % nB : beta single bond at n-atom
994 % nSA : alpha single bond at n-atom (boldface)
995 % nSB : beta single bond at n-atom (dotted line)
996 % nSa : alpha (not specified) single bond at n-atom
997 % nSb : beta (not specified) single bond at n-atom
998 %
999 % nSd : alpha single bond at n-atom (dotted line)
1000 % with an alternative direction to nSA
1001 % nSu : beta single bond at n-atom (boldface)
1002 % with an alternative direction to nSB
1003 % nFA : alpha single bond at n-atom (dotted line)
1004 % for ring fusion
1005 % nFB : beta single bond at n-atom (boldface)
1006 % for ring fusion
1007 % nGA : alpha single bond at n-atom (dotted line)
1008 % for the other ring fusion
1009 % nGB : beta single bond at n-atom (boldface)
1010 % for the other ring fusion
1011 %
1012 % for 0 (fused positions)
1013 %
1014 % 0FA : alpha single bond at 8a
1015 % 0FB : beta single bond at 8a
1016 % 0FU : unspecified single bond at 8a
1017 % 0GA : alpha single bond at 4a
1018 % 0GB : beta single bond at 4a
1019 % 0GU : unspecified single bond at 4a
1020 % \end{verbatim}
1021 %
1022 % \begin{verbatim}
1023 %
1024 % e.g.
1025 %
1026 % \decalinevb{1==Cl;2==F;0FA==;0GA==}
1027 % \decalinevb[c]{1==Cl;4==F;2==CH$_{3}$}
1028 % \decalinevb[eb]{1D==O;4SA==MeO;4SB==OMe;5W==Cl;6==Cl;7==Cl;8==Cl}
1029 %
1030 % \end{verbatim}
1031 %
1032 % The macro |\decalinevb| has been changed into a subsidiary macro
1033 % of |\decaheterovb| (version 2.00).
1034 %
1035 % \begin{macro}{\decalinevb}
1036 % \begin{macrocode}
1037 \def\decalinevb{\@ifnextchar[{\@decalinevb[@}{\@decalinevb[@]}}
1038 \def\@decalinevb[#1]#2{%
1039 \iforigpt \typeout{command `decalinevb' is based on `decaheterovb'.}\fi%
1040 \decaheterovb[#1]{}{#2}}
1041 % \end{macrocode}
1042 % \end{macro}
1043 %
1044 % The following old definition has been stopped using.
1045 % \changes{v1.02}{1998/10/31}{Adding \cs{ylposition}, \cs{if@ylsw}
1046 % \cs{ylfusedposition},
1047 % \cs{yl@shiftii}, \cs{@ylii}, \cs{@@ylii}, \cs{yl@shifti}, \cs{@yli},
1048 % \cs{@yli}, \cs{yl@xdiff} and \cs{yl@ydiff}}
1049 % \changes{v2.00}{1998/12/25}{Add: Fused rings}
1050 % \changes{v3.00}{2002/04/30}{\cs{decalinevb}: Old definition deleted.}
1051 %
1052 % \subsection{Vertical-top type}
1053 %
1054 % The macro |\decalinevt| is used for drawing decaline derivatives
1055 % of vertical-bottom type (numbering from the top to the left-down part).
1056 % The word ``vertical'' means that each benzene ring is a vertical type.
1057 % The word ``top'' means that the benzene ring with young locant numbers
1058 % is located at the top.
1059 % The skeleton and endocyclic double bonds are drawn directly,
1060 % while substituents and exocyclic bonds are placed by useing
1061 % the inner macro |\setsixringv|.
1062 % \changes{v1.02}{1998/10/13}{Newly added command}
1063 %
1064 % \begin{verbatim}
1065 % ************************
1066 % * decaline derivatives *
1067 % * (vertical-top type) *
1068 % ************************
1069 % The following numbering is adopted in this macro.
1070 %
1071 % 2
1072 % *
1073 % 1 * * 3
1074 % | |
1075 % | |
1076 % 0G (8a) * * 4
1077 % 8 * * 0F(4a)
1078 % | |
1079 % | |
1080 % 7 * * 5
1081 % *
1082 % 6
1083 % ^
1084 % |
1085 % the original point
1086 % \end{verbatim}
1087 %
1088 % The macro |\decalinevt| has an argument |SUBSLIST| as well as an optional
1089 % argument |BONDLIST|.
1090 %
1091 % \begin{verbatim}
1092 % \decalinevt[BONDLIST]{SUBSLIST}
1093 % \end{verbatim}
1094 %
1095 % The |BONDLIST| argument contains one or more
1096 % characters selected form a to k, each of which indicates
1097 % the presence of an inner (endcyclic) double bond on the corresponding
1098 % position. The character A or B indicates aromatic bond patterns (circles).
1099 % \changes{v1.02}{1998/10/14}{BONDLIST: k and K at the fused bond}
1100 %
1101 % \begin{verbatim}
1102 % BONDLIST =
1103 %
1104 % none : decaline
1105 % a : 1,2-double bond
1106 % b : 2,3-double bond
1107 % c : 3,4-double bond
1108 % d : 4,4a-double bond
1109 % e : 5,4a-double bond
1110 % f : 5,6-double bond
1111 % g : 6,7-double bond
1112 % h : 8,7-double bond
1113 % i : 8,8a-double bond
1114 % j : 1,8a-double bond
1115 % k : 4a,8a-double bond
1116 % K : 4a,8a-double bond in the other ring
1117 % A : left aromatic circle
1118 % B : right aromatic circle
1119 % \end{verbatim}
1120 %
1121 % The |SUBSLIST| argument contains one or more substitution descriptors
1122 % which are separated from each other by a semicolon. Each substitution
1123 % descriptor has a locant number with a bond modifier and a substituent,
1124 % where these are separated with a double equality symbol.
1125 %
1126 % \begin{verbatim}
1127 %
1128 % SUBSLIST: list of substituents
1129 %
1130 % for n = 1 to 8
1131 %
1132 % nD : exocyclic double bond at n-atom
1133 % n or nS : exocyclic single bond at n-atom
1134 % nA : alpha single bond at n-atom
1135 % nB : beta single bond at n-atom
1136 % nSA : alpha single bond at n-atom (boldface)
1137 % nSB : beta single bond at n-atom (dotted line)
1138 % nSa : alpha (not specified) single bond at n-atom
1139 % nSb : beta (not specified) single bond at n-atom
1140 %
1141 % nSd : alpha single bond at n-atom (dotted line)
1142 % with an alternative direction to nSA
1143 % nSu : beta single bond at n-atom (boldface)
1144 % with an alternative direction to nSB
1145 % nFA : alpha single bond at n-atom (dotted line)
1146 % for ring fusion
1147 % nFB : beta single bond at n-atom (boldface)
1148 % for ring fusion
1149 % nGA : alpha single bond at n-atom (dotted line)
1150 % for the other ring fusion
1151 % nGB : beta single bond at n-atom (boldface)
1152 % for the other ring fusion
1153 %
1154 % for 0 (fused positions)
1155 %
1156 % 0FA : alpha single bond at 8a
1157 % 0FB : beta single bond at 8a
1158 % 0FU : unspecified single bond at 8a
1159 % 0GA : alpha single bond at 4a
1160 % 0GB : beta single bond at 4a
1161 % 0GU : unspecified single bond at 4a
1162 % \end{verbatim}
1163 %
1164 % \begin{verbatim}
1165 %
1166 % e.g.
1167 %
1168 % \decalinevt{1==Cl;2==F;0FA==;0GA==}
1169 % \decalinevt[c]{1==Cl;4==F;2==CH$_{3}$}
1170 % \decalinevt[eb]{1D==O;4SA==MeO;4SB==OMe;5W==Cl;6==Cl;7==Cl;8==Cl}
1171 %
1172 % \end{verbatim}
1173 %
1174 % The macro |\decalinevt| has been changed into a subsidiary macro
1175 % of |\decaheterovt| (version 2.00).
1176 %
1177 % \begin{macro}{\decalinevt}
1178 % \begin{macrocode}
1179 \def\decalinevt{\@ifnextchar[{\@decalinevt[@}{\@decalinevt[@]}}
1180 \def\@decalinevt[#1]#2{%
1181 \iforigpt \typeout{command `decalinevt' is based on `decaheterovt'.}\fi%
1182 \decaheterovt[#1]{}{#2}}
1183 % \end{macrocode}
1184 % \end{macro}
1185 %
1186 % The following old definition has been stopped using.
1187 % \changes{v1.02}{1998/10/31}{Adding \cs{ylposition}, \cs{if@ylsw},
1188 % \cs{ylfusedposition},
1189 % \cs{yl@shiftii}, \cs{@ylii}, \cs{@@ylii}, \cs{yl@shifti}, \cs{@yli},
1190 % \cs{@yli}, \cs{yl@xdiff} and \cs{yl@ydiff}}
1191 % \changes{v2.00}{1998/12/5}{Add: fused rings}
1192 % \changes{v3.00}{2002/04/30}{\cs{decalinevt}: Old definition deleted.}
1193 %
1194 % \subsection{Horizontal type}
1195 %
1196 % The macro |\decalineh| is used for drawing decaline derivatives
1197 % of vertical type. The skeleton and endocyclic double bonds are
1198 % drawn directly, while substituents and exocyclic bonds are placed by
1199 % useing the inner macros |\setsixringh| and |\setfusedbond|.
1200 %
1201 % \begin{verbatim}
1202 % ************************
1203 % * decaline derivatives *
1204 % * (horizontal type) *
1205 % ************************
1206 % The following numbering is adopted in this macro.
1207 %
1208 % 2 3
1209 % -----
1210 % * *
1211 % 1 * * 4
1212 % * *
1213 % 8a (0G) ----- 4a (0F)
1214 % * *
1215 % the original point ===> 8 * * 5
1216 % (0,0) * *
1217 % -----
1218 % 7 6
1219 % \end{verbatim}
1220 %
1221 % The macro |\decalineh| has an argument |SUBSLIST| as well as an optional
1222 % argument |BONDLIST|.
1223 %
1224 % \begin{verbatim}
1225 % \decalineh[BONDLIST]{SUBSLIST}
1226 % \end{verbatim}
1227 %
1228 % The |BONDLIST| argument contains one or more
1229 % characters selected form a to k, each of which indicates
1230 % the presence of an inner (endcyclic) double bond on the corresponding
1231 % position. The character A or B indicates aromatic bond patterns (circles).
1232 % \changes{v1.02}{1998/10/14}{BONDLIST: k and K at the fused bond}
1233 %
1234 % \begin{verbatim}
1235 %
1236 % BONDLIST =
1237 %
1238 % none : decaline
1239 % a : 1,2-double bond
1240 % b : 2,3-double bond
1241 % c : 3,4-double bond
1242 % d : 4,4a-double bond
1243 % e : 5,4a-double bond
1244 % f : 5,6-double bond
1245 % g : 6,7-double bond
1246 % h : 8,7-double bond
1247 % i : 8,8a-double bond
1248 % j : 1,8a-double bond
1249 % k : 4a,8a-double bond
1250 % K : 4a,8a-double bond in the other ring
1251 % A : left aromatic circle
1252 % B : right aromatic circle
1253 % \end{verbatim}
1254 %
1255 % The |SUBSLIST| argument contains one or more substitution descriptors
1256 % which are separated from each other by a semicolon. Each substitution
1257 % descriptor has a locant number with a bond modifier and a substituent,
1258 % where these are separated with a double equality symbol.
1259 %
1260 % \begin{verbatim}
1261 %
1262 % SUBSLIST: list of substituents
1263 %
1264 % for n = 1 to 8
1265 %
1266 % nD : exocyclic double bond at n-atom
1267 % n or nS : exocyclic single bond at n-atom
1268 % nA : alpha single bond at n-atom
1269 % nB : beta single bond at n-atom
1270 % nSA : alpha single bond at n-atom (boldface)
1271 % nSB : beta single bond at n-atom (dotted line)
1272 % nSa : alpha (not specified) single bond at n-atom
1273 % nSb : beta (not specified) single bond at n-atom
1274 %
1275 % nSd : alpha single bond at n-atom (dotted line)
1276 % with an alternative direction to nSA
1277 % nSu : beta single bond at n-atom (boldface)
1278 % with an alternative direction to nSB
1279 % nFA : alpha single bond at n-atom (dotted line)
1280 % for ring fusion
1281 % nFB : beta single bond at n-atom (boldface)
1282 % for ring fusion
1283 % nGA : alpha single bond at n-atom (dotted line)
1284 % for the other ring fusion
1285 % nGB : beta single bond at n-atom (boldface)
1286 % for the other ring fusion
1287 %
1288 % for 0 (fused positions)
1289 %
1290 % 0FA : alpha single bond at 8a
1291 % 0FB : beta single bond at 8a
1292 % 0FU : unspecified single bond at 8a
1293 % 0GA : alpha single bond at 4a
1294 % 0GB : beta single bond at 4a
1295 % 0GU : unspecified single bond at 4a
1296 % \end{verbatim}
1297 %
1298 % \begin{verbatim}
1299 % e.g.
1300 %
1301 % \decalineh{1==Cl;2==F;0FA==;0GA==}
1302 % \decalineh[c]{1==Cl;4==F;2==CH$_{3}$}
1303 % \decalineh[eb]{1D==O;4SA==MeO;4SB==OMe;5W==Cl;6==Cl;7==Cl;8==Cl}
1304 % \end{verbatim}
1305 %
1306 % The macro |\decalineh| has been changed into a subsidiary macro
1307 % of |\decaheteroh| (version 2.00).
1308 %
1309 % \begin{macro}{\decalineh}
1310 % \begin{macrocode}
1311 \def\decalineh{\@ifnextchar[{\@decalineh[@}{\@decalineh[@]}}
1312 \def\@decalineh[#1]#2{%
1313 \iforigpt \typeout{command `decalineh' is based on `decaheteroh'.}\fi%
1314 \decaheteroh[#1]{}{#2}}
1315 % \end{macrocode}
1316 % \end{macro}
1317 %
1318 % The following old definition has been stopped using.
1319 % \changes{v1.02}{1998/10/31}{Adding \cs{ylpositionh}, \cs{if@ylsw}
1320 % \cs{ylfusedposition},
1321 % \cs{yl@shiftii}, \cs{@ylii}, \cs{@@ylii}, \cs{yl@shifti}, \cs{@yli},
1322 % \cs{@yli}, \cs{yl@xdiff} and \cs{yl@ydiff}}
1323 % \changes{v2.00}{1998/11/30}{Add: fused rings}
1324 % \changes{v3.00}{2002/04/30}{\cs{decalineh}: Old definition deleted.}
1325 %
1326 % \section{Naphthalene and naphtoquinone derivatives}
1327 % \subsection{Vertical type}
1328 %
1329 % The macro |\naphdrv| (|\naphthalenev|) is used for drawing
1330 % naphthalene derivatives
1331 % of vertical type as well as naphthoquinone derivatives of
1332 % vertical type. The skeleton and endocyclic double bonds are
1333 % drawn directly, while substituents and exocyclic bonds are placed by
1334 % useing the inner macro |\decalinev|.
1335 %
1336 % The macro |\naphdrv| has an argument |SUBSLIST| as well as an optional
1337 % argument |OPT|. The latter designates a bond pattern in place of
1338 % individual exocyclic bonds.
1339 %
1340 % \changes{v3.00}{2002/04/30}{\cs{naphthalenev} added}
1341 %
1342 % \begin{verbatim}
1343 % **********************************************
1344 % * naphthalene and naphthoquinone derivatives *
1345 % * (vertical type) *
1346 % **********************************************
1347 %
1348 % \naphdrv[OPT]{SUBSLIST}
1349 % \naphthalenev[OPT]{SUBSLIST}
1350 % \end{verbatim}
1351 %
1352 % The |OPT| argument contains one or two characters.
1353 %
1354 % The character `A' is used for designating an aromatic bond pattern, in
1355 % which each of the six-membered rings has a central circle.
1356 %
1357 % \begin{verbatim}
1358 % OPT (bond pattern)
1359 %
1360 % none : naphthalene
1361 % A : aromatic circle
1362 % \end{verbatim}
1363 %
1364 % One character `p' or two characters (p?) in the |OPT| argument
1365 % designate a p-quinone nucleus, which is present in the
1366 % right-hand ring for the case of `p' or `pa' and in the
1367 % left-hand ring for the case of `pb'.
1368 %
1369 % \begin{verbatim}
1370 % p or pa : 1,4-quinone (A) left aromatic, right quinone
1371 % pb : 1,4-quinone (B) right aromatic, left quinone
1372 % \end{verbatim}
1373 %
1374 % One character `o' or two characters (o?) in the |OPT| argument
1375 % designate an o-quinone nucleus in either side of the fused ring.
1376 % The second character of each argument indicates one of the possible
1377 % type of bond patterns.
1378 %
1379 % \begin{verbatim}
1380 % o or oa : o-quinone (A)
1381 % ob : o-quinone (B)
1382 % oc : o-quinone (C)
1383 % od : o-quinone (D)
1384 % oe : o-quinone (E)
1385 % of : o-quinone (F)
1386 % \end{verbatim}
1387 %
1388 % One character `q' or two characters (q?) in the |OPT| argument
1389 % designate an 2,6-, 1,5- or 1,7-quinone nucleus.
1390 % The second character of each argument indicates one of the possible
1391 % type of bond patterns.
1392 %
1393 % \begin{verbatim}
1394 %
1395 % q or qa : 2,6-quinone (A)
1396 % qb : 2,6-quinone (B) 3,7
1397 % qc : 1,5-quinone (C)
1398 % qd : 1,5-quinone (D) 4,8
1399 % qe : 1,7-quinone (E)
1400 % qf : 1,7-quinone (F) 2,8
1401 % qg : 1,7-quinone (G) 4,6
1402 % qh : 1,7-quinone (H) 3,5
1403 % \end{verbatim}
1404 %
1405 % One character `P' or two characters (P?) in the |OPT| argument
1406 % designate a 1,4,5,8- or 1,2,5,8-quinone nucleus.
1407 %
1408 % \begin{verbatim}
1409 %
1410 % P or Pa : 1,4,5,8-quinone (A)
1411 % Pb : 1,2,5,8-quinone (B)
1412 % \end{verbatim}
1413 %
1414 % One character `Q' or `O' or two characters (O?) in the |OPT| argument
1415 % designate quinone nuclei of remaining types.
1416 %
1417 % \begin{verbatim}
1418 % Q : 1,2,3,4-quinone
1419 %
1420 % O or Oa : 1,2,5,6-quinone (A)
1421 % Ob : 1,2,7,8-quinone (B)
1422 % Oc : 1,2,3,5-quinone (C)
1423 % Od : 1,2,3,7-quinone (D)
1424 % \end{verbatim}
1425 %
1426 % The |SUBSLIST| argument contains one or more substitution descriptors
1427 % which are separated from each other by a semicolon. Each substitution
1428 % descriptor has a locant number with a bond modifier and a substituent,
1429 % where these are separated with a double equality symbol.
1430 %
1431 % \begin{verbatim}
1432 %
1433 % SUBSLIST: list of substituents
1434 %
1435 % for n = 1 to 8
1436 %
1437 % nD : exocyclic double bond at n-atom
1438 % n or nS : exocyclic single bond at n-atom
1439 % nA : alpha single bond at n-atom
1440 % nB : beta single bond at n-atom
1441 % nSA : alpha single bond at n-atom (boldface)
1442 % nSB : beta single bond at n-atom (dotted line)
1443 % nSa : alpha (not specified) single bond at n-atom
1444 % nSb : beta (not specified) single bond at n-atom
1445 %
1446 % nSd : alpha single bond at n-atom (dotted line)
1447 % with an alternative direction to nSA
1448 % nSu : beta single bond at n-atom (boldface)
1449 % with an alternative direction to nSB
1450 % nFA : alpha single bond at n-atom (dotted line)
1451 % for ring fusion
1452 % nFB : beta single bond at n-atom (boldface)
1453 % for ring fusion
1454 % nGA : alpha single bond at n-atom (dotted line)
1455 % for the other ring fusion
1456 % nGB : beta single bond at n-atom (boldface)
1457 % for the other ring fusion
1458 % \end{verbatim}
1459 %
1460 % \begin{verbatim}
1461 % e.g.
1462 % \naphdrv{1==Cl;2==F}
1463 % \naphdrv[A]{1==Cl;4==F;2==CH$_{3}$}
1464 % \end{verbatim}
1465 %
1466 % \begin{macro}{\naphdrv}
1467 % \begin{macro}{\naphthalenev}
1468 % \begin{macrocode}
1469 \def\naphdrv{\@ifnextchar[{\@naphdrv}{\@naphdrv[r]}}
1470 \def\@naphdrv[#1]#2{%
1471 \iforigpt \typeout{command `naphdrv' is based on `decalinev'.}\fi%
1472 \expandafter\threech@r#1{}{}%
1473 \if\@tmpa r% right-handed set of double bonds
1474 \decalinev[acfhk]{#2}%
1475 \else\if\@tmpa A%aromatic circle
1476 \decalinev[AB]{#2}%
1477 %
1478 \else\if\@tmpa p%p-quinone
1479 \if\@tmpb a% (A)
1480 \decalinev[bfhk]{#2}%
1481 \else\ifx\@tmpb\empty% (A)
1482 \decalinev[bfhk]{#2}%
1483 \else\if\@tmpb b% (B)
1484 \decalinev[acgk]{#2}%
1485 \fi\fi\fi%
1486 \else%
1487 \if\@tmpa o%o-quinone
1488 \if\@tmpb a% (A)
1489 \decalinev[cfhk]{#2}%
1490 \else\ifx\@tmpb\empty% (A)
1491 \decalinev[cfhk]{#2}%
1492 \else\if\@tmpb b%o-quinone (B)
1493 \decalinev[dfhj]{#2}%
1494 \else\if\@tmpb c%o-quinone (C)
1495 \decalinev[afhk]{#2}%
1496 \else\if\@tmpb d%o-quinone (D)
1497 \decalinev[achk]{#2}%
1498 \else\if\@tmpb e%o-quinone (E)
1499 \decalinev[acei]{#2}%
1500 \else\if\@tmpb f%o-quinone (F)
1501 \decalinev[acfk]{#2}%
1502 \fi\fi\fi\fi\fi\fi%
1503 \fi%
1504 %%%
1505 \else\if\@tmpa q%various quinone
1506 \if\@tmpb a% (A)2,6-type
1507 \decalinev[cehj]{#2}%
1508 \else\ifx\@tmpb\empty% (A)2,6-type
1509 \decalinev[cehj]{#2}%
1510 \else\if\@tmpb b%2,6-quinone (B)
1511 \decalinev[adfi]{#2}%
1512 \else\if\@tmpb c%1,5-quinone (C)
1513 \decalinev[bdgi]{#2}%
1514 \else\if\@tmpb d%1,5-quinone (D)
1515 \decalinev[begj]{#2}%
1516 \else\if\@tmpb e%1,7-quinone (E)
1517 \decalinev[bdfi]{#2}%
1518 \else\if\@tmpb f%1,7-quinone (F)
1519 \decalinev[cegj]{#2}%
1520 \else\if\@tmpb g%1,7-quinone (G)
1521 \decalinev[behj]{#2}%
1522 \else\if\@tmpb h%1,7-quinone (H)
1523 \decalinev[adgi]{#2}%
1524 \fi\fi\fi\fi\fi\fi\fi\fi\fi%
1525 \else\if\@tmpa P%quinone having 4 carbonyl groups
1526 \if\@tmpb a% (A)1,4,5,8-type
1527 \decalinev[bgk]{#2}%
1528 \else\ifx\@tmpb\empty% (A)1,4,5,8-type
1529 \decalinev[bgk]{#2}%
1530 \else\if\@tmpb b% (B)1,2,5,8-type
1531 \decalinev[cgk]{#2}%
1532 \fi\fi\fi%
1533 \else\if\@tmpa Q%1,2,3,4
1534 \decalinev[fhk]{#2}%
1535 \else\if\@tmpa O%quinone having 4 carbonyl groups
1536 \if\@tmpb a% (A)1,2,5,6-type
1537 \decalinev[chk]{#2}%
1538 \else\ifx\@tmpb\empty% (A)1,2,5,6-type
1539 \decalinev[chk]{#2}%
1540 \else\if\@tmpb b% (B)1,2,7,8-type
1541 \decalinev[cfk]{#2}%
1542 \else\if\@tmpb c% (C)1,2,3,5-type
1543 \decalinev[dgi]{#2}%
1544 \else\if\@tmpb d% (D)1,2,3,7-type
1545 \decalinev[dfi]{#2}%
1546 \fi\fi\fi\fi\fi%
1547 \else% added 1998/11/23 by S. Fujita
1548 \decalinev[@#1]{#2}%
1549 \fi\fi\fi\fi\fi\fi\fi\fi%
1550 }% %end of \naphdrv macro
1551 \let\naphthalenev=\naphdrv
1552 % \end{macrocode}
1553 % \end{macro}
1554 % \end{macro}
1555 %
1556 % \subsection{Vertical-bottom type}
1557 %
1558 % The macro |\naphdrvb| (|\naphthalenevb|) is used for drawing
1559 % naphthalene derivatives
1560 % of vertical-bottom type as well as naphthoquinone derivatives of
1561 % vertical-bottom type. The skeleton and endocyclic double bonds are
1562 % drawn directly, while substituents and exocyclic bonds are placed by
1563 % useing the inner macro |\decalinevb|.
1564 % \changes{v1.02}{1998/10/14}{Newly added command}
1565 %
1566 % The macro |\naphdrvb| has an argument |SUBSLIST| as well as an optional
1567 % argument |OPT|. The latter designates a bond pattern in place of
1568 % individual exocyclic bonds.
1569 %
1570 % \changes{v3.00}{2002/04/30}{\cs{naphthalenevb} added}
1571 %
1572 % \begin{verbatim}
1573 % **********************************************
1574 % * naphthalene and naphthoquinone derivatives *
1575 % * (vertical-bottom type) *
1576 % **********************************************
1577 %
1578 % \naphdrvb[OPT]{SUBSLIST}
1579 % \naphthalenevb[OPT]{SUBSLIST}
1580 % \end{verbatim}
1581 %
1582 % The |OPT| argument contains one or two characters.
1583 %
1584 % The character `A' is used for designating an aromatic bond pattern, in
1585 % which each of the six-membered rings has a central circle.
1586 %
1587 % \begin{verbatim}
1588 % OPT (bond pattern)
1589 %
1590 % none : naphthalene
1591 % A : aromatic circle
1592 % \end{verbatim}
1593 %
1594 % One character `p' or two characters (p?) in the |OPT| argument
1595 % designate a p-quinone nucleus, which is present in the
1596 % right-hand ring for the case of `p' or `pa' and in the
1597 % left-hand ring for the case of `pb'.
1598 %
1599 % \begin{verbatim}
1600 % p or pa : 1,4-quinone (A) left aromatic, right quinone
1601 % pb : 1,4-quinone (B) right aromatic, left quinone
1602 % \end{verbatim}
1603 %
1604 % One character `o' or two characters (o?) in the |OPT| argument
1605 % designate an o-quinone nucleus in either side of the fused ring.
1606 % The second character of each argument indicates one of the possible
1607 % type of bond patterns.
1608 %
1609 % \begin{verbatim}
1610 % o or oa : o-quinone (A)
1611 % ob : o-quinone (B)
1612 % oc : o-quinone (C)
1613 % od : o-quinone (D)
1614 % oe : o-quinone (E)
1615 % of : o-quinone (F)
1616 % \end{verbatim}
1617 %
1618 % One character `q' or two characters (q?) in the |OPT| argument
1619 % designate an 2,6-, 1,5- or 1,7-quinone nucleus.
1620 % The second character of each argument indicates one of the possible
1621 % type of bond patterns.
1622 %
1623 % \begin{verbatim}
1624 %
1625 % q or qa : 2,6-quinone (A)
1626 % qb : 2,6-quinone (B) 3,7
1627 % qc : 1,5-quinone (C)
1628 % qd : 1,5-quinone (D) 4,8
1629 % qe : 1,7-quinone (E)
1630 % qf : 1,7-quinone (F) 2,8
1631 % qg : 1,7-quinone (G) 4,6
1632 % qh : 1,7-quinone (H) 3,5
1633 % \end{verbatim}
1634 %
1635 % One character `P' or two characters (P?) in the |OPT| argument
1636 % designate a 1,4,5,8- or 1,2,5,8-quinone nucleus.
1637 %
1638 % \begin{verbatim}
1639 %
1640 % P or Pa : 1,4,5,8-quinone (A)
1641 % Pb : 1,2,5,8-quinone (B)
1642 % \end{verbatim}
1643 %
1644 % One character `Q' or `O' or two characters (O?) in the |OPT| argument
1645 % designate quinone nuclei of remaining types.
1646 %
1647 % \begin{verbatim}
1648 % Q : 1,2,3,4-quinone
1649 %
1650 % O or Oa : 1,2,5,6-quinone (A)
1651 % Ob : 1,2,7,8-quinone (B)
1652 % Oc : 1,2,3,5-quinone (C)
1653 % Od : 1,2,3,7-quinone (D)
1654 % \end{verbatim}
1655 %
1656 % The |SUBSLIST| argument contains one or more substitution descriptors
1657 % which are separated from each other by a semicolon. Each substitution
1658 % descriptor has a locant number with a bond modifier and a substituent,
1659 % where these are separated with a double equality symbol.
1660 %
1661 % \begin{verbatim}
1662 %
1663 % SUBSLIST: list of substituents
1664 %
1665 % for n = 1 to 8
1666 %
1667 % nD : exocyclic double bond at n-atom
1668 % n or nS : exocyclic single bond at n-atom
1669 % nA : alpha single bond at n-atom
1670 % nB : beta single bond at n-atom
1671 % nSA : alpha single bond at n-atom (boldface)
1672 % nSB : beta single bond at n-atom (dotted line)
1673 % nSa : alpha (not specified) single bond at n-atom
1674 % nSb : beta (not specified) single bond at n-atom
1675 %
1676 % nSd : alpha single bond at n-atom (dotted line)
1677 % with an alternative direction to nSA
1678 % nSu : beta single bond at n-atom (boldface)
1679 % with an alternative direction to nSB
1680 % nFA : alpha single bond at n-atom (dotted line)
1681 % for ring fusion
1682 % nFB : beta single bond at n-atom (boldface)
1683 % for ring fusion
1684 % nGA : alpha single bond at n-atom (dotted line)
1685 % for the other ring fusion
1686 % nGB : beta single bond at n-atom (boldface)
1687 % for the other ring fusion
1688 % \end{verbatim}
1689 %
1690 % \begin{verbatim}
1691 % e.g.
1692 % \naphdrvb{1==Cl;2==F}
1693 % \naphdrvb[A]{1==Cl;4==F;2==CH$_{3}$}
1694 % \end{verbatim}
1695 %
1696 % \begin{macro}{\naphdrvb}
1697 % \begin{macro}{\napphathaleneb}
1698 % \begin{macrocode}
1699 \def\naphdrvb{\@ifnextchar[{\@naphdrvb}{\@naphdrvb[r]}}
1700 \def\@naphdrvb[#1]#2{%
1701 \iforigpt \typeout{command `naphdrvb' is based on `decalinevb'.}\fi%
1702 \expandafter\threech@r#1{}{}%
1703 \if\@tmpa r% right-handed set of double bonds
1704 \decalinevb[acfhk]{#2}%
1705 \else\if\@tmpa A%aromatic circle
1706 \decalinevb[AB]{#2}%
1707 %
1708 \else\if\@tmpa p%p-quinone
1709 \if\@tmpb a% (A)
1710 \decalinevb[bfhk]{#2}%
1711 \else\ifx\@tmpb\empty% (A)
1712 \decalinevb[bfhk]{#2}%
1713 \else\if\@tmpb b% (B)
1714 \decalinevb[acgk]{#2}%
1715 \fi\fi\fi%
1716 \else%
1717 \if\@tmpa o%o-quinone
1718 \if\@tmpb a% (A)
1719 \decalinevb[cfhk]{#2}%
1720 \else\ifx\@tmpb\empty% (A)
1721 \decalinevb[cfhk]{#2}%
1722 \else\if\@tmpb b%o-quinone (B)
1723 \decalinevb[dfhj]{#2}%
1724 \else\if\@tmpb c%o-quinone (C)
1725 \decalinevb[afhk]{#2}%
1726 \else\if\@tmpb d%o-quinone (D)
1727 \decalinevb[achk]{#2}%
1728 \else\if\@tmpb e%o-quinone (E)
1729 \decalinevb[acei]{#2}%
1730 \else\if\@tmpb f%o-quinone (F)
1731 \decalinevb[acfk]{#2}%
1732 \fi\fi\fi\fi\fi\fi%
1733 \fi%
1734 %%%
1735 \else\if\@tmpa q%various quinone
1736 \if\@tmpb a% (A)2,6-type
1737 \decalinevb[cehj]{#2}%
1738 \else\ifx\@tmpb\empty% (A)2,6-type
1739 \decalinevb[cehj]{#2}%
1740 \else\if\@tmpb b%2,6-quinone (B)
1741 \decalinevb[adfi]{#2}%
1742 \else\if\@tmpb c%1,5-quinone (C)
1743 \decalinevb[bdgi]{#2}%
1744 \else\if\@tmpb d%1,5-quinone (D)
1745 \decalinevb[begj]{#2}%
1746 \else\if\@tmpb e%1,7-quinone (E)
1747 \decalinevb[bdfi]{#2}%
1748 \else\if\@tmpb f%1,7-quinone (F)
1749 \decalinevb[cegj]{#2}%
1750 \else\if\@tmpb g%1,7-quinone (G)
1751 \decalinevb[behj]{#2}%
1752 \else\if\@tmpb h%1,7-quinone (H)
1753 \decalinevb[adgi]{#2}%
1754 \fi\fi\fi\fi\fi\fi\fi\fi\fi%
1755 \else\if\@tmpa P%quinone having 4 carbonyl groups
1756 \if\@tmpb a% (A)1,4,5,8-type
1757 \decalinevb[bgk]{#2}%
1758 \else\ifx\@tmpb\empty% (A)1,4,5,8-type
1759 \decalinevb[bgk]{#2}%
1760 \else\if\@tmpb b% (B)1,2,5,8-type
1761 \decalinevb[cgk]{#2}%
1762 \fi\fi\fi%
1763 \else\if\@tmpa Q%1,2,3,4
1764 \decalinevb[fhk]{#2}%
1765 \else\if\@tmpa O%quinone having 4 carbonyl groups
1766 \if\@tmpb a% (A)1,2,5,6-type
1767 \decalinevb[chk]{#2}%
1768 \else\ifx\@tmpb\empty% (A)1,2,5,6-type
1769 \decalinevb[chk]{#2}%
1770 \else\if\@tmpb b% (B)1,2,7,8-type
1771 \decalinevb[cfk]{#2}%
1772 \else\if\@tmpb c% (C)1,2,3,5-type
1773 \decalinevb[dgi]{#2}%
1774 \else\if\@tmpb d% (D)1,2,3,7-type
1775 \decalinevb[dfi]{#2}%
1776 \fi\fi\fi\fi\fi%
1777 \else% added 1998/11/23 by S. Fujita
1778 \decalinevb[@#1]{#2}%
1779 \fi\fi\fi\fi\fi\fi\fi\fi%
1780 }% %end of \naphdrvb macro
1781 \let\naphthalenevb=\naphdrvb
1782 % \end{macrocode}
1783 % \end{macro}
1784 % \end{macro}
1785 %
1786 % \subsection{Vertical-top type}
1787 %
1788 % The macro |\naphdrvt| (|\naphthalenevt|) is used for drawing
1789 % naphthalene derivatives
1790 % of vertical-top type as well as naphthoquinone derivatives of
1791 % vertical-top type. The skeleton and endocyclic double bonds are
1792 % drawn directly, while substituents and exocyclic bonds are placed by
1793 % useing the inner macro |\decalinevt|.
1794 % \changes{v1.02}{1998/10/14}{Newly added command}
1795 %
1796 % The macro |\naphdrvt| has an argument |SUBSLIST| as well as an optional
1797 % argument |OPT|. The latter designates a bond pattern in place of
1798 % individual exocyclic bonds.
1799 %
1800 % \changes{v3.00}{2002/04/30}{\cs{naphthalenevt} added}
1801 %
1802 % \begin{verbatim}
1803 % **********************************************
1804 % * naphthalene and naphthoquinone derivatives *
1805 % * (vertical-top type) *
1806 % **********************************************
1807 %
1808 % \naphdrvt[OPT]{SUBSLIST}
1809 % \naphthalenevt[OPT]{SUBSLIST}
1810 % \end{verbatim}
1811 %
1812 % The |OPT| argument contains one or two characters.
1813 %
1814 % The character `A' is used for designating an aromatic bond pattern, in
1815 % which each of the six-membered rings has a central circle.
1816 %
1817 % \begin{verbatim}
1818 % OPT (bond pattern)
1819 %
1820 % none : naphthalene
1821 % A : aromatic circle
1822 % \end{verbatim}
1823 %
1824 % One character `p' or two characters (p?) in the |OPT| argument
1825 % designate a p-quinone nucleus, which is present in the
1826 % right-hand ring for the case of `p' or `pa' and in the
1827 % left-hand ring for the case of `pb'.
1828 %
1829 % \begin{verbatim}
1830 % p or pa : 1,4-quinone (A) left aromatic, right quinone
1831 % pb : 1,4-quinone (B) right aromatic, left quinone
1832 % \end{verbatim}
1833 %
1834 % One character `o' or two characters (o?) in the |OPT| argument
1835 % designate an o-quinone nucleus in either side of the fused ring.
1836 % The second character of each argument indicates one of the possible
1837 % type of bond patterns.
1838 %
1839 % \begin{verbatim}
1840 % o or oa : o-quinone (A)
1841 % ob : o-quinone (B)
1842 % oc : o-quinone (C)
1843 % od : o-quinone (D)
1844 % oe : o-quinone (E)
1845 % of : o-quinone (F)
1846 % \end{verbatim}
1847 %
1848 % One character `q' or two characters (q?) in the |OPT| argument
1849 % designate an 2,6-, 1,5- or 1,7-quinone nucleus.
1850 % The second character of each argument indicates one of the possible
1851 % type of bond patterns.
1852 %
1853 % \begin{verbatim}
1854 %
1855 % q or qa : 2,6-quinone (A)
1856 % qb : 2,6-quinone (B) 3,7
1857 % qc : 1,5-quinone (C)
1858 % qd : 1,5-quinone (D) 4,8
1859 % qe : 1,7-quinone (E)
1860 % qf : 1,7-quinone (F) 2,8
1861 % qg : 1,7-quinone (G) 4,6
1862 % qh : 1,7-quinone (H) 3,5
1863 % \end{verbatim}
1864 %
1865 % One character `P' or two characters (P?) in the |OPT| argument
1866 % designate a 1,4,5,8- or 1,2,5,8-quinone nucleus.
1867 %
1868 % \begin{verbatim}
1869 %
1870 % P or Pa : 1,4,5,8-quinone (A)
1871 % Pb : 1,2,5,8-quinone (B)
1872 % \end{verbatim}
1873 %
1874 % One character `Q' or `O' or two characters (O?) in the |OPT| argument
1875 % designate quinone nuclei of remaining types.
1876 %
1877 % \begin{verbatim}
1878 % Q : 1,2,3,4-quinone
1879 %
1880 % O or Oa : 1,2,5,6-quinone (A)
1881 % Ob : 1,2,7,8-quinone (B)
1882 % Oc : 1,2,3,5-quinone (C)
1883 % Od : 1,2,3,7-quinone (D)
1884 % \end{verbatim}
1885 %
1886 % The |SUBSLIST| argument contains one or more substitution descriptors
1887 % which are separated from each other by a semicolon. Each substitution
1888 % descriptor has a locant number with a bond modifier and a substituent,
1889 % where these are separated with a double equality symbol.
1890 %
1891 % \begin{verbatim}
1892 %
1893 % SUBSLIST: list of substituents
1894 %
1895 % for n = 1 to 8
1896 %
1897 % nD : exocyclic double bond at n-atom
1898 % n or nS : exocyclic single bond at n-atom
1899 % nA : alpha single bond at n-atom
1900 % nB : beta single bond at n-atom
1901 % nSA : alpha single bond at n-atom (boldface)
1902 % nSB : beta single bond at n-atom (dotted line)
1903 % nSa : alpha (not specified) single bond at n-atom
1904 % nSb : beta (not specified) single bond at n-atom
1905 %
1906 % nSd : alpha single bond at n-atom (dotted line)
1907 % with an alternative direction to nSA
1908 % nSu : beta single bond at n-atom (boldface)
1909 % with an alternative direction to nSB
1910 % nFA : alpha single bond at n-atom (dotted line)
1911 % for ring fusion
1912 % nFB : beta single bond at n-atom (boldface)
1913 % for ring fusion
1914 % nGA : alpha single bond at n-atom (dotted line)
1915 % for the other ring fusion
1916 % nGB : beta single bond at n-atom (boldface)
1917 % for the other ring fusion
1918 % \end{verbatim}
1919 %
1920 % \begin{verbatim}
1921 % e.g.
1922 % \naphdrvt{1==Cl;2==F}
1923 % \naphdrvt[A]{1==Cl;4==F;2==CH$_{3}$}
1924 % \end{verbatim}
1925 %
1926 % \begin{macro}{\naphdrvt}
1927 % \begin{macro}{\naphthalenevt}
1928 % \begin{macrocode}
1929 \def\naphdrvt{\@ifnextchar[{\@naphdrvt}{\@naphdrvt[r]}}
1930 \def\@naphdrvt[#1]#2{%
1931 \iforigpt \typeout{command `naphdrvt' is based on `decalinevt'.}\fi%
1932 \expandafter\threech@r#1{}{}%
1933 \if\@tmpa r% right-handed set of double bonds
1934 \decalinevt[acfhk]{#2}%
1935 \else\if\@tmpa A%aromatic circle
1936 \decalinevt[AB]{#2}%
1937 %
1938 \else\if\@tmpa p%p-quinone
1939 \if\@tmpb a% (A)
1940 \decalinevt[bfhk]{#2}%
1941 \else\ifx\@tmpb\empty% (A)
1942 \decalinevt[bfhk]{#2}%
1943 \else\if\@tmpb b% (B)
1944 \decalinevt[acgk]{#2}%
1945 \fi\fi\fi%
1946 \else%
1947 \if\@tmpa o%o-quinone
1948 \if\@tmpb a% (A)
1949 \decalinevt[cfhk]{#2}%
1950 \else\ifx\@tmpb\empty% (A)
1951 \decalinevt[cfhk]{#2}%
1952 \else\if\@tmpb b%o-quinone (B)
1953 \decalinevt[dfhj]{#2}%
1954 \else\if\@tmpb c%o-quinone (C)
1955 \decalinevt[afhk]{#2}%
1956 \else\if\@tmpb d%o-quinone (D)
1957 \decalinevt[achk]{#2}%
1958 \else\if\@tmpb e%o-quinone (E)
1959 \decalinevt[acei]{#2}%
1960 \else\if\@tmpb f%o-quinone (F)
1961 \decalinevt[acfk]{#2}%
1962 \fi\fi\fi\fi\fi\fi%
1963 \fi%
1964 %%%
1965 \else\if\@tmpa q%various quinone
1966 \if\@tmpb a% (A)2,6-type
1967 \decalinevt[cehj]{#2}%
1968 \else\ifx\@tmpb\empty% (A)2,6-type
1969 \decalinevt[cehj]{#2}%
1970 \else\if\@tmpb b%2,6-quinone (B)
1971 \decalinevt[adfi]{#2}%
1972 \else\if\@tmpb c%1,5-quinone (C)
1973 \decalinevt[bdgi]{#2}%
1974 \else\if\@tmpb d%1,5-quinone (D)
1975 \decalinevt[begj]{#2}%
1976 \else\if\@tmpb e%1,7-quinone (E)
1977 \decalinevt[bdfi]{#2}%
1978 \else\if\@tmpb f%1,7-quinone (F)
1979 \decalinevt[cegj]{#2}%
1980 \else\if\@tmpb g%1,7-quinone (G)
1981 \decalinevt[behj]{#2}%
1982 \else\if\@tmpb h%1,7-quinone (H)
1983 \decalinevt[adgi]{#2}%
1984 \fi\fi\fi\fi\fi\fi\fi\fi\fi%
1985 \else\if\@tmpa P%quinone having 4 carbonyl groups
1986 \if\@tmpb a% (A)1,4,5,8-type
1987 \decalinevt[bgk]{#2}%
1988 \else\ifx\@tmpb\empty% (A)1,4,5,8-type
1989 \decalinevt[bgk]{#2}%
1990 \else\if\@tmpb b% (B)1,2,5,8-type
1991 \decalinevt[cgk]{#2}%
1992 \fi\fi\fi%
1993 \else\if\@tmpa Q%1,2,3,4
1994 \decalinevt[fhk]{#2}%
1995 \else\if\@tmpa O%quinone having 4 carbonyl groups
1996 \if\@tmpb a% (A)1,2,5,6-type
1997 \decalinevt[chk]{#2}%
1998 \else\ifx\@tmpb\empty% (A)1,2,5,6-type
1999 \decalinevt[chk]{#2}%
2000 \else\if\@tmpb b% (B)1,2,7,8-type
2001 \decalinevt[cfk]{#2}%
2002 \else\if\@tmpb c% (C)1,2,3,5-type
2003 \decalinevt[dgi]{#2}%
2004 \else\if\@tmpb d% (D)1,2,3,7-type
2005 \decalinevt[dfi]{#2}%
2006 \fi\fi\fi\fi\fi%
2007 \else% added 1998/11/23 by S. Fujita
2008 \decalinevt[@#1]{#2}%
2009 \fi\fi\fi\fi\fi\fi\fi\fi%
2010 }% %end of \naphdrvt macro
2011 \let\naphthalenevt=\naphdrvt
2012 % \end{macrocode}
2013 % \end{macro}
2014 % \end{macro}
2015 %
2016 % \subsection{Horizontal type}
2017 %
2018 % The macro |\naphdrh| is used for drawing naphthalene derivatives
2019 % of horizontal type as well as naphtoquinone derivatives of
2020 % horizontal type. The skeleton and endocyclic double bonds are
2021 % drawn directly, while substituents and exocyclic bonds are placed by
2022 % useing the inner macro |\decalineh|.
2023 %
2024 % The macro |\naphdrh| has an argument |SUBSLIST| as well as an optional
2025 % argument |OPT|. The latter designates a bond pattern in place of
2026 % individual exocyclic bonds.
2027 %
2028 % \changes{v3.00}{2002/04/30}{\cs{naphthaleneh} added}
2029 %
2030 % \begin{verbatim}
2031 % **********************************************
2032 % * naphthalene and naphthoquinone derivatives *
2033 % * (horizontal type) *
2034 % **********************************************
2035 %
2036 % \naphdrh[OPT]{SUBSLIST}
2037 % \naphthaleneh[OPT]{SUBSLIST}
2038 %
2039 % \end{verbatim}
2040 %
2041 % The |OPT| argument contains one or two characters for designate
2042 % aromatic bond patterns or for naphthoquinone bond patterns.
2043 % The meaning of these characters is the same as described in
2044 % the definition of the macro |\naphdrv|.
2045 %
2046 % \begin{verbatim}
2047 % OPT (bond pattern)
2048 %
2049 % none : naphthalene
2050 % A : aromatic circle
2051 %
2052 % p or pa : 1,4-quinone (A) left aromatic, right quinone
2053 % pb : 1,4-quinone (B) right aromatic, left quinone
2054 %
2055 % o or oa : o-quinone (A)
2056 % ob : o-quinone (B)
2057 % oc : o-quinone (C)
2058 % od : o-quinone (D)
2059 % oe : o-quinone (E)
2060 % of : o-quinone (F)
2061 %
2062 % q or qa : 2,6-quinone (A)
2063 % qb : 2,6-quinone (B) 3,7
2064 % qc : 1,5-quinone (C)
2065 % qd : 1,5-quinone (D) 4,8
2066 % qe : 1,7-quinone (E)
2067 % qf : 1,7-quinone (F) 2,8
2068 % qg : 1,7-quinone (G) 4,6
2069 % qh : 1,7-quinone (H) 3,5
2070 %
2071 % P or Pa : 1,4,5,8-quinone (A)
2072 % Pb : 1,2,5,8-quinone (B)
2073 %
2074 % Q : 1,2,3,4-quinone
2075 %
2076 % O or Oa : 1,2,5,6-quinone (A)
2077 % Ob : 1,2,7,8-quinone (B)
2078 % Oc : 1,2,3,5-quinone (C)
2079 % Od : 1,2,3,7-quinone (D)
2080 % \end{verbatim}
2081 %
2082 % The |SUBSLIST| argument contains one or more substitution descriptors
2083 % which are separated from each other by a semicolon. Each substitution
2084 % descriptor has a locant number with a bond modifier and a substituent,
2085 % where these are separated with a double equality symbol.
2086 %
2087 % \begin{verbatim}
2088 %
2089 % SUBSLIST: list of substituents
2090 %
2091 % for n = 1 to 8
2092 %
2093 % nD : exocyclic double bond at n-atom
2094 % n or nS : exocyclic single bond at n-atom
2095 % nA : alpha single bond at n-atom
2096 % nB : beta single bond at n-atom
2097 % nSA : alpha single bond at n-atom (boldface)
2098 % nSB : beta single bond at n-atom (dotted line)
2099 % nSa : alpha (not specified) single bond at n-atom
2100 % nSb : beta (not specified) single bond at n-atom
2101 %
2102 % nSd : alpha single bond at n-atom (dotted line)
2103 % with an alternative direction to nSA
2104 % nSu : beta single bond at n-atom (boldface)
2105 % with an alternative direction to nSB
2106 % nFA : alpha single bond at n-atom (dotted line)
2107 % for ring fusion
2108 % nFB : beta single bond at n-atom (boldface)
2109 % for ring fusion
2110 % nGA : alpha single bond at n-atom (dotted line)
2111 % for the other ring fusion
2112 % nGB : beta single bond at n-atom (boldface)
2113 % for the other ring fusion
2114 %
2115 % \end{verbatim}
2116 %
2117 % \begin{verbatim}
2118 % e.g.
2119 % \naphdrh{1==Cl;2==F}
2120 % \naphdrh[A]{1==Cl;4==F;2==CH$_{3}$}
2121 % \end{verbatim}
2122 %
2123 % \begin{macro}{\naphdrh}
2124 % \begin{macro}{\naphthaleneh}
2125 % \begin{macrocode}
2126 \def\naphdrh{\@ifnextchar[{\@naphdrh}{\@naphdrh[r]}}
2127 \def\@naphdrh[#1]#2{%
2128 \iforigpt \typeout{command `nathdrh' is based on `decalineh'.}\fi%
2129 \expandafter\threech@r#1{}{}%
2130 \if\@tmpa r% right-handed set of double bonds
2131 \decalineh[acfhk]{#2}%
2132 \else\if\@tmpa A%aromatic circle
2133 \decalineh[AB]{#2}%
2134 %
2135 \else\if\@tmpa p%p-quinone
2136 \if\@tmpb a% (A)
2137 \decalineh[bfhk]{#2}%
2138 \else\ifx\@tmpb\empty% (A)
2139 \decalineh[bfhk]{#2}%
2140 \else\if\@tmpb b% (B)
2141 \decalineh[acgk]{#2}%
2142 \fi\fi\fi%
2143 \else%
2144 \if\@tmpa o%o-quinone
2145 \if\@tmpb a% (A)
2146 \decalineh[cfhk]{#2}%
2147 \else\ifx\@tmpb\empty% (A)
2148 \decalineh[cfhk]{#2}%
2149 \else\if\@tmpb b%o-quinone (B)
2150 \decalineh[dfhj]{#2}%
2151 \else\if\@tmpb c%o-quinone (C)
2152 \decalineh[afhk]{#2}%
2153 \else\if\@tmpb d%o-quinone (D)
2154 \decalineh[achk]{#2}%
2155 \else\if\@tmpb e%o-quinone (E)
2156 \decalineh[acei]{#2}%
2157 \else\if\@tmpb f%o-quinone (F)
2158 \decalineh[acfk]{#2}%
2159 \fi\fi\fi\fi\fi\fi%
2160 \fi%
2161 % %%
2162 \else\if\@tmpa q%various quinone
2163 \if\@tmpb a% (A)2,6-type
2164 \decalineh[cehj]{#2}%
2165 \else\ifx\@tmpb\empty% (A)2,6-type
2166 \decalineh[cehj]{#2}%
2167 \else\if\@tmpb b%2,6-quinone (B)
2168 \decalineh[adfi]{#2}%
2169 \else\if\@tmpb c%1,5-quinone (C)
2170 \decalineh[bdgi]{#2}%
2171 \else\if\@tmpb d%1,5-quinone (D)
2172 \decalineh[begj]{#2}%
2173 \else\if\@tmpb e%1,7-quinone (E)
2174 \decalineh[bdfi]{#2}%
2175 \else\if\@tmpb f%1,7-quinone (F)
2176 \decalineh[cegj]{#2}%
2177 \else\if\@tmpb g%1,7-quinone (G)
2178 \decalineh[behj]{#2}%
2179 \else\if\@tmpb h%1,7-quinone (H)
2180 \decalineh[adgi]{#2}%
2181 \fi\fi\fi\fi\fi\fi\fi\fi\fi%
2182 \else\if\@tmpa P%quinone having 4 carbonyl groups
2183 \if\@tmpb a% (A)1,4,5,8-type
2184 \decalineh[bgk]{#2}%
2185 \else\ifx\@tmpb\empty% (A)1,4,5,8-type
2186 \decalineh[bgk]{#2}%
2187 \else\if\@tmpb b% (B)1,2,5,8-type
2188 \decalineh[cgk]{#2}%
2189 \fi\fi\fi%
2190 \else\if\@tmpa Q%1,2,3,4
2191 \decalineh[fhk]{#2}%
2192 \else\if\@tmpa O%quinone having 4 carbonyl groups
2193 \if\@tmpb a% (A)1,2,5,6-type
2194 \decalineh[chk]{#2}%
2195 \else\ifx\@tmpb\empty% (A)1,2,5,6-type
2196 \decalineh[chk]{#2}%
2197 \else\if\@tmpb b% (B)1,2,7,8-type
2198 \decalineh[cfk]{#2}%
2199 \else\if\@tmpb c% (C)1,2,3,5-type
2200 \decalineh[dgi]{#2}%
2201 \else\if\@tmpb d% (D)1,2,3,7-type
2202 \decalineh[dfi]{#2}%
2203 \fi\fi\fi\fi\fi%
2204 \else% added 1998/11/23 by S. Fujita
2205 \decalineh[@#1]{#2}%
2206 \fi\fi\fi\fi\fi\fi\fi\fi%
2207 }% %end of \naphdrh macro
2208 \let\naphthaleneh=\naphdrh
2209 % \end{macrocode}
2210 % \end{macro}
2211 % \end{macro}
2212 %
2213 % \section{Tetraline derivatives}
2214 % \subsection{Vertical type}
2215 %
2216 % The macro |\tetralinev| is used for drawing naphthalene derivatives
2217 % of vertical type as well as naphthoquinone derivatives of
2218 % vertical type. The skeleton and endocyclic double bonds are
2219 % drawn directly, while substituents and exocyclic bonds are placed by
2220 % useing the inner macro |\decalinev|.
2221 %
2222 % The macro |\tetralinev| has an argument |SUBSLIST| as well as an optional
2223 % argument |OPT|. The latter designates a bond pattern in place of
2224 % individual exocyclic bonds.
2225 %
2226 % \begin{verbatim}
2227 % *************************
2228 % * tetraline derivatives *
2229 % * (vertical type) *
2230 % *************************
2231 %
2232 % \tetralinev[OPT]{SUBSLIST}
2233 % \end{verbatim}
2234 %
2235 % The |OPT| argument contains one or two characters for designate
2236 % aromatic bond patterns or for naphthoquinone bond patterns.
2237 %
2238 % \begin{verbatim}
2239 %
2240 % OPT = none : tetraline
2241 % A : aromatic circle
2242 %
2243 % e or ea : 1,2-double bond
2244 % eb : 2,3-double bond
2245 % ec : 3,4-double bond
2246 % \end{verbatim}
2247 %
2248 % The |SUBSLIST| argument contains one or more substitution descriptors
2249 % which are separated from each other by a semicolon. Each substitution
2250 % descriptor has a locant number with a bond modifier and a substituent,
2251 % where these are separated with a double equality symbol.
2252 %
2253 % \begin{verbatim}
2254 %
2255 % SUBSLIST: list of substituents
2256 %
2257 % for n = 1 to 4
2258 %
2259 % nD : exocyclic double bond at n-atom
2260 % n or nS : exocyclic single bond at n-atom
2261 % nA : alpha single bond at n-atom
2262 % nB : beta single bond at n-atom
2263 % nSA : alpha single bond at n-atom (boldface)
2264 % nSB : beta single bond at n-atom (dotted line)
2265 % nSa : alpha (not specified) single bond at n-atom
2266 % nSb : beta (not specified) single bond at n-atom
2267 %
2268 % nSd : alpha single bond at n-atom (dotted line)
2269 % with an alternative direction to nSA
2270 % nSu : beta single bond at n-atom (boldface)
2271 % with an alternative direction to nSB
2272 % nFA : alpha single bond at n-atom (dotted line)
2273 % for ring fusion
2274 % nFB : beta single bond at n-atom (boldface)
2275 % for ring fusion
2276 % nGA : alpha single bond at n-atom (dotted line)
2277 % for the other ring fusion
2278 % nGB : beta single bond at n-atom (boldface)
2279 % for the other ring fusion
2280 %
2281 % for n=5 or 8
2282 %
2283 % nSa : bias bond
2284 % This option can be used to avoid over-crowding
2285 % betweem 1 and 8 or between 4 and 5.
2286 % \end{verbatim}
2287 %
2288 % \begin{verbatim}
2289 % e.g.
2290 %
2291 % \tetralinev{1==Cl;2==F}
2292 % \tetralinev[A]{1==Cl;4==F;2==CH$_{3}$}
2293 % \tetralinev[eb]{1D==O;4SA==MeO;4SB==OMe;5W==Cl;6==Cl;7==Cl;8==Cl}
2294 % \end{verbatim}
2295 %
2296 % \begin{macro}{\tetralinev}
2297 % \begin{macrocode}
2298 \def\tetralinev{\@ifnextchar[{\@tetralinev}{\@tetralinev[r]}}
2299 \def\@tetralinev[#1]#2{%
2300 \iforigpt \typeout{command `tetralinev' is based on `decalinev'.}\fi%
2301 \expandafter\threech@r#1{}{}%
2302 \if\@tmpa r% right-handed set of double bonds
2303 \decalinev[fhk]{#2}%
2304 \else\if\@tmpa A%aromatic circle
2305 \decalinev[A]{#2}%
2306 \else\if\@tmpa e%inner double bond
2307 \if\@tmpb a% (A)%
2308 \decalinev[afhk]{#2}%
2309 \else\ifx\@tmpb\empty% (A)
2310 \decalinev[afhk]{#2}%
2311 \else\if\@tmpb b% (B)
2312 \decalinev[bfhk]{#2}%
2313 \else\if\@tmpb c% (C)
2314 \decalinev[cfhk]{#2}%
2315 \fi\fi\fi\fi%
2316 \else%1998/11/23 by Shinsaku Fujita
2317 \decalinev[@#1]{#2}%
2318 \fi\fi\fi%
2319 }% %end of \tetralinev macro
2320 % \end{macrocode}
2321 % \end{macro}
2322 %
2323 % \subsection{Vertical-bottom type}
2324 %
2325 % The macro |\tetralinevb| is used for drawing naphthalene derivatives
2326 % of vertical-bottom type as well as naphthoquinone derivatives of
2327 % vertical type. The skeleton and endocyclic double bonds are
2328 % drawn directly, while substituents and exocyclic bonds are placed by
2329 % useing the inner macro |\decalinevb|.
2330 % \changes{v1.02}{1998/10/14}{Newly added command}
2331 %
2332 % The macro |\tetralinevb| has an argument |SUBSLIST| as well as an optional
2333 % argument |OPT|. The latter designates a bond pattern in place of
2334 % individual exocyclic bonds.
2335 %
2336 % \begin{verbatim}
2337 % ********************************
2338 % * tetraline derivatives *
2339 % * (vertical-bottom type) *
2340 % ********************************
2341 %
2342 % \tetralinevb[OPT]{SUBSLIST}
2343 % \end{verbatim}
2344 %
2345 % The |OPT| argument contains one or two characters for designate
2346 % aromatic bond patterns or for naphthoquinone bond patterns.
2347 %
2348 % \begin{verbatim}
2349 %
2350 % OPT = none : tetraline
2351 % A : aromatic circle
2352 %
2353 % e or ea : 1,2-double bond
2354 % eb : 2,3-double bond
2355 % ec : 3,4-double bond
2356 % \end{verbatim}
2357 %
2358 % The |SUBSLIST| argument contains one or more substitution descriptors
2359 % which are separated from each other by a semicolon. Each substitution
2360 % descriptor has a locant number with a bond modifier and a substituent,
2361 % where these are separated with a double equality symbol.
2362 %
2363 % \begin{verbatim}
2364 %
2365 % SUBSLIST: list of substituents
2366 %
2367 % for n = 1 to 4
2368 %
2369 % nD : exocyclic double bond at n-atom
2370 % n or nS : exocyclic single bond at n-atom
2371 % nA : alpha single bond at n-atom
2372 % nB : beta single bond at n-atom
2373 % nSA : alpha single bond at n-atom (boldface)
2374 % nSB : beta single bond at n-atom (dotted line)
2375 % nSa : alpha (not specified) single bond at n-atom
2376 % nSb : beta (not specified) single bond at n-atom
2377 %
2378 % nSd : alpha single bond at n-atom (dotted line)
2379 % with an alternative direction to nSA
2380 % nSu : beta single bond at n-atom (boldface)
2381 % with an alternative direction to nSB
2382 % nFA : alpha single bond at n-atom (dotted line)
2383 % for ring fusion
2384 % nFB : beta single bond at n-atom (boldface)
2385 % for ring fusion
2386 % nGA : alpha single bond at n-atom (dotted line)
2387 % for the other ring fusion
2388 % nGB : beta single bond at n-atom (boldface)
2389 % for the other ring fusion
2390 %
2391 % for n=5 or 8
2392 %
2393 % nSa : bias bond
2394 % This option can be used to avoid over-crowding
2395 % betweem 1 and 8 or between 4 and 5.
2396 % \end{verbatim}
2397 %
2398 % \begin{verbatim}
2399 % e.g.
2400 %
2401 % \tetralinevb{1==Cl;2==F}
2402 % \tetralinevb[A]{1==Cl;4==F;2==CH$_{3}$}
2403 % \tetralinevb[eb]{1D==O;4SA==MeO;4SB==OMe;5W==Cl;6==Cl;7==Cl;8==Cl}
2404 % \end{verbatim}
2405 %
2406 % \begin{macro}{\tetralinevb}
2407 % \begin{macrocode}
2408 \def\tetralinevb{\@ifnextchar[{\@tetralinevb}{\@tetralinevb[r]}}
2409 \def\@tetralinevb[#1]#2{%
2410 \iforigpt \typeout{command `tetralinevb' is based on `decalinevb'.}\fi%
2411 \expandafter\threech@r#1{}{}%
2412 \if\@tmpa r% right-handed set of double bonds
2413 \decalinevb[fhK]{#2}% %[fhK] in place of [fhk]
2414 \else\if\@tmpa A%aromatic circle
2415 \decalinevb[A]{#2}%
2416 \else\if\@tmpa e%inner double bond
2417 \if\@tmpb a% (A)%
2418 \decalinevb[afhK]{#2}%
2419 \else\ifx\@tmpb\empty% (A)
2420 \decalinevb[afhK]{#2}%
2421 \else\if\@tmpb b% (B)
2422 \decalinevb[bfhK]{#2}%
2423 \else\if\@tmpb c% (C)
2424 \decalinevb[cfhK]{#2}%
2425 \fi\fi\fi\fi%
2426 \else%1998/11/23 by Shinsaku Fujita
2427 \decalinevb[@#1]{#2}%
2428 \fi\fi\fi%
2429 }% %end of \tetralinevb macro
2430 % \end{macrocode}
2431 % \end{macro}
2432 %
2433 % \subsection{Vertical-top type}
2434 %
2435 % The macro |\tetralinevt| is used for drawing naphthalene derivatives
2436 % of vertical-top type as well as naphthoquinone derivatives of
2437 % vertical type. The skeleton and endocyclic double bonds are
2438 % drawn directly, while substituents and exocyclic bonds are placed by
2439 % useing the inner macro |\decalinevt|.
2440 % \changes{v1.02}{1998/10/14}{Newly added command}
2441 %
2442 % The macro |\tetralinevt| has an argument |SUBSLIST| as well as an optional
2443 % argument |OPT|. The latter designates a bond pattern in place of
2444 % individual exocyclic bonds.
2445 %
2446 % \begin{verbatim}
2447 % ********************************
2448 % * tetraline derivatives *
2449 % * (vertical-bottom type) *
2450 % ********************************
2451 %
2452 % \tetralinevt[OPT]{SUBSLIST}
2453 % \end{verbatim}
2454 %
2455 % The |OPT| argument contains one or two characters for designate
2456 % aromatic bond patterns or for naphthoquinone bond patterns.
2457 %
2458 % \begin{verbatim}
2459 %
2460 % OPT = none : tetraline
2461 % A : aromatic circle
2462 %
2463 % e or ea : 1,2-double bond
2464 % eb : 2,3-double bond
2465 % ec : 3,4-double bond
2466 % \end{verbatim}
2467 %
2468 % The |SUBSLIST| argument contains one or more substitution descriptors
2469 % which are separated from each other by a semicolon. Each substitution
2470 % descriptor has a locant number with a bond modifier and a substituent,
2471 % where these are separated with a double equality symbol.
2472 %
2473 % \begin{verbatim}
2474 %
2475 % SUBSLIST: list of substituents
2476 %
2477 % for n = 1 to 4
2478 %
2479 % nD : exocyclic double bond at n-atom
2480 % n or nS : exocyclic single bond at n-atom
2481 % nA : alpha single bond at n-atom
2482 % nB : beta single bond at n-atom
2483 % nSA : alpha single bond at n-atom (boldface)
2484 % nSB : beta single bond at n-atom (dotted line)
2485 % nSa : alpha (not specified) single bond at n-atom
2486 % nSb : beta (not specified) single bond at n-atom
2487 %
2488 % nSd : alpha single bond at n-atom (dotted line)
2489 % with an alternative direction to nSA
2490 % nSu : beta single bond at n-atom (boldface)
2491 % with an alternative direction to nSB
2492 % nFA : alpha single bond at n-atom (dotted line)
2493 % for ring fusion
2494 % nFB : beta single bond at n-atom (boldface)
2495 % for ring fusion
2496 % nGA : alpha single bond at n-atom (dotted line)
2497 % for the other ring fusion
2498 % nGB : beta single bond at n-atom (boldface)
2499 % for the other ring fusion
2500 %
2501 % for n=5 or 8
2502 %
2503 % nSa : bias bond
2504 % This option can be used to avoid over-crowding
2505 % betweem 1 and 8 or between 4 and 5.
2506 % \end{verbatim}
2507 %
2508 % \begin{verbatim}
2509 % e.g.
2510 %
2511 % \tetralinevt{1==Cl;2==F}
2512 % \tetralinevt[A]{1==Cl;4==F;2==CH$_{3}$}
2513 % \tetralinevt[eb]{1D==O;4SA==MeO;4SB==OMe;5W==Cl;6==Cl;7==Cl;8==Cl}
2514 % \end{verbatim}
2515 %
2516 % \begin{macro}{\tetralinevt}
2517 % \begin{macrocode}
2518 \def\tetralinevt{\@ifnextchar[{\@tetralinevt}{\@tetralinevt[r]}}
2519 \def\@tetralinevt[#1]#2{%
2520 \iforigpt \typeout{command `tetralinevt' is based on `decalinevt'.}\fi%
2521 \expandafter\threech@r#1{}{}%
2522 \if\@tmpa r% right-handed set of double bonds
2523 \decalinevt[fhk]{#2}%
2524 \else\if\@tmpa A%aromatic circle
2525 \decalinevt[A]{#2}%
2526 \else\if\@tmpa e%inner double bond
2527 \if\@tmpb a% (A)%
2528 \decalinevt[afhk]{#2}%
2529 \else\ifx\@tmpb\empty% (A)
2530 \decalinevt[afhk]{#2}%
2531 \else\if\@tmpb b% (B)
2532 \decalinevt[bfhk]{#2}%
2533 \else\if\@tmpb c% (C)
2534 \decalinevt[cfhk]{#2}%
2535 \fi\fi\fi\fi%
2536 \else%1998/11/23 by Shinsaku Fujita
2537 \decalinevt[@#1]{#2}%
2538 \fi\fi\fi%
2539 }% %end of \tetralinevt macro
2540 % \end{macrocode}
2541 % \end{macro}
2542 %
2543 % \subsection{Horizontal type}
2544 %
2545 % The macro |\tetralineh| is used for drawing tetraline derivatives
2546 % of horizontal type.
2547 %
2548 % The macro |\tetralineh| has an argument |SUBSLIST| as well as an optional
2549 % argument |OPT|. The latter designates a bond pattern in place of
2550 % individual exocyclic bonds.
2551 %
2552 % \begin{verbatim}
2553 % *************************
2554 % * tetraline derivatives *
2555 % * (horizontal type) *
2556 % *************************
2557 %
2558 % \tetralineh[OPT]{SUBSLIST}
2559 % \end{verbatim}
2560 %
2561 % The |OPT| argument contains one or two characters for designate
2562 % aromatic bond patterns or for naphthoquinone bond patterns.
2563 %
2564 % \begin{verbatim}
2565 % OPT = none : tetraline
2566 % A : aromatic circle
2567 %
2568 % e or ea : 1,2-double bond
2569 % eb : 2,3-double bond
2570 % ec : 3,4-double bond
2571 % \end{verbatim}
2572 %
2573 % The |SUBSLIST| argument contains one or more substitution descriptors
2574 % which are separated from each other by a semicolon. Each substitution
2575 % descriptor has a locant number with a bond modifier and a substituent,
2576 % where these are separated with a double equality symbol.
2577 %
2578 % \begin{verbatim}
2579 % SUBSLIST: list of substituents
2580 %
2581 % for n = 1 to 4
2582 %
2583 % nD : exocyclic double bond at n-atom
2584 % n or nS : exocyclic single bond at n-atom
2585 % nA : alpha single bond at n-atom
2586 % nB : beta single bond at n-atom
2587 % nSA : alpha single bond at n-atom (boldface)
2588 % nSB : beta single bond at n-atom (dotted line)
2589 % nSa : alpha (not specified) single bond at n-atom
2590 % nSb : beta (not specified) single bond at n-atom
2591 %
2592 % nSd : alpha single bond at n-atom (dotted line)
2593 % with an alternative direction to nSA
2594 % nSu : beta single bond at n-atom (boldface)
2595 % with an alternative direction to nSB
2596 % nFA : alpha single bond at n-atom (dotted line)
2597 % for ring fusion
2598 % nFB : beta single bond at n-atom (boldface)
2599 % for ring fusion
2600 % nGA : alpha single bond at n-atom (dotted line)
2601 % for the other ring fusion
2602 % nGB : beta single bond at n-atom (boldface)
2603 % for the other ring fusion
2604 %
2605 % for n=5 or 8
2606 %
2607 % nSa : bias bond
2608 % This option can be used to avoid over-crowding
2609 % betweem 1 and 8 or between 4 and 5.
2610 % \end{verbatim}
2611 %
2612 % \begin{verbatim}
2613 % e.g.
2614 %
2615 % \tetralineh{1==Cl;2==F}
2616 % \tetralineh[A]{1==Cl;4==F;2==CH$_{3}$}
2617 % \tetralineh[eb]{1D==O;4SA==MeO;4SB==OMe;5W==Cl;6==Cl;7==Cl;8==Cl}
2618 % \end{verbatim}
2619 %
2620 % \begin{macro}{\tetralineh}
2621 % \begin{macrocode}
2622 \def\tetralineh{\@ifnextchar[{\@tetralineh}{\@tetralineh[r]}}
2623 \def\@tetralineh[#1]#2{%
2624 \iforigpt \typeout{command `tetralineh' is based on `decalineh'.}\fi%
2625 \expandafter\threech@r#1{}{}%
2626 \if\@tmpa r% right-handed set of double bonds
2627 \decalineh[fhk]{#2}%
2628 \else\if\@tmpa A%aromatic circle
2629 \decalineh[A]{#2}%
2630 \else\if\@tmpa e%inner double bond
2631 \if\@tmpb a% (A)%
2632 \decalineh[afhk]{#2}%
2633 \else\ifx\@tmpb\empty% (A)
2634 \decalineh[afhk]{#2}%
2635 \else\if\@tmpb b% (B)
2636 \decalineh[bfhk]{#2}%
2637 \else\if\@tmpb c% (C)
2638 \decalineh[cfhk]{#2}%
2639 \fi\fi\fi\fi%
2640 \else% added 1998/11/23 by S. Fujita
2641 \decalineh[@#1]{#2}%
2642 \fi\fi\fi%
2643 }% %end of \tetralineh macro
2644 % \end{macrocode}
2645 % \end{macro}
2646 %
2647 % \section{Anthracene derivatives}
2648 % \subsection{Perhydro-anthracene derivatives of Vertical type}
2649 %
2650 % The macro |\hanthracenev| is used for drawing perhydroanthracene
2651 % derivatives of vertical type.
2652 %
2653 % The macro |\hanthracenev| has an argument |SUBSLIST| as well as an optional
2654 % argument |BONDLIST|.
2655 %
2656 % \begin{verbatim}
2657 % ***********************************
2658 % * perhydro anthracene derivatives *
2659 % * (vertical type) *
2660 % ***********************************
2661 %
2662 % \hanthracenev[BONDLIST]{SUBSLIST}
2663 % \end{verbatim}
2664 %
2665 % The |BONDLIST| argument contains one or more
2666 % characters selected form a to p, each of which indicates
2667 % the presence of an inner (endcyclic) double bond on the corresponding
2668 % position. The character A, B, or C indicates an aromatic bond
2669 % pattern (circle).
2670 % \changes{v1.02}{1998/10/14}{BONDLIST: o, O, p and P at the fused bond}
2671 %
2672 % \begin{verbatim}
2673 % BONDLIST =
2674 %
2675 % none : hanthracene
2676 % a : 1,2-double bond
2677 % b : 2,3-double bond
2678 % c : 3,4-double bond
2679 % d : 4,4a-double bond
2680 % e : 10,4a-double bond
2681 % f : 10,10a-double bond
2682 % g : 5,10a-double bond
2683 % h : 5,6-double bond
2684 % i : 6,7-double bond
2685 % j : 8,7-double bond
2686 % k : 8,8a-double bond
2687 % l : 9,8a-double bond
2688 % m : 9,9a-double bond
2689 % n : 1,9a-double bond
2690 % o : 4a,9a-double bond
2691 % O : 4a,9a-double bond in the other ring
2692 % p : 10a,8a-double bond
2693 % P : 10a,8a-double bond in the other ring
2694 % A : right aromatic circle
2695 % B : central aromatic circle
2696 % C : left aromatic circle
2697 % \end{verbatim}
2698 %
2699 % The |SUBSLIST| argument contains one or more substitution descriptors
2700 % which are separated from each other by a semicolon. Each substitution
2701 % descriptor has a locant number with a bond modifier and a substituent,
2702 % where these are separated with a double equality symbol.
2703 %
2704 % \begin{verbatim}
2705 %
2706 % SUBSLIST: list of substituents
2707 %
2708 % for n = 1 to 10
2709 %
2710 % nD : exocyclic double bond at n-atom
2711 % n or nS : exocyclic single bond at n-atom
2712 % nA : alpha single bond at n-atom
2713 % nB : beta single bond at n-atom
2714 % nSA : alpha single bond at n-atom (boldface)
2715 % nSB : beta single bond at n-atom (dotted line)
2716 % nSa : alpha (not specified) single bond at n-atom
2717 % nSb : beta (not specified) single bond at n-atom
2718 %
2719 % nSd : alpha single bond at n-atom (dotted line)
2720 % with an alternative direction to nSA
2721 % nSu : beta single bond at n-atom (boldface)
2722 % with an alternative direction to nSB
2723 % nFA : alpha single bond at n-atom (dotted line)
2724 % for ring fusion
2725 % nFB : beta single bond at n-atom (boldface)
2726 % for ring fusion
2727 % nGA : alpha single bond at n-atom (dotted line)
2728 % for the other ring fusion
2729 % nGB : beta single bond at n-atom (boldface)
2730 % for the other ring fusion
2731 % \end{verbatim}
2732 %
2733 % \begin{verbatim}
2734 %
2735 % for 11 (fused positions, 9a and 4a)
2736 %
2737 % 11FA : alpha single bond at 9a
2738 % 11FB : beta single bond at 9a
2739 % 11FU : unspecified single bond at 9a
2740 % 11GA : alpha single bond at 4a
2741 % 11GB : beta single bond at 4a
2742 % 11GU : unspecified single bond at 4a
2743 % \end{verbatim}
2744 %
2745 % \begin{verbatim}
2746 %
2747 % for 12 (fused positions, 8a and 10a)
2748 %
2749 % 12FA : alpha single bond at 8a
2750 % 12FB : beta single bond at 8a
2751 % 12FU : unspecified single bond at 8a
2752 % 12GA : alpha single bond at 10a
2753 % 12GB : beta single bond at 10a
2754 % 12GU : unspecified single bond at 10a
2755 % \end{verbatim}
2756 %
2757 % \begin{verbatim}
2758 % e.g.
2759 %
2760 % \hanthracenev{1==Cl;2==F;{{10}}==OH}
2761 % \hanthracenev[c]{1==Cl;4==F;2==CH$_{3}$;
2762 % {{11}FA}==OH;{{11}FB}==OH}
2763 % \hanthracenev[eb]{1D==O;4SA==MeO;4SB==OMe;5W==Cl;6==Cl;7==Cl;8==Cl}
2764 % \end{verbatim}
2765 %
2766 % \changes{v1.02}{1998/10/31}{The command \cs{setdecaringv} has
2767 % been stopped to use.}
2768 % \changes{v1.02}{1998/10/31}{Adding \cs{ylpositionh}, \cs{if@ylsw}
2769 % \cs{ylfusedposition},
2770 % \cs{yl@shiftii}, \cs{@ylii}, \cs{@@ylii}, \cs{yl@shifti}, \cs{@yli},
2771 % \cs{@yli}, \cs{yl@xdiff} and \cs{yl@ydiff}}
2772 % \changes{v2.00}{1998/12/25}{Added: fused rings}
2773 %
2774 % \begin{macro}{\hanthracenev}
2775 % \begin{macrocode}
2776 \def\hanthracenev{\@ifnextchar[{\@hanthracenev[@}{\@hanthracenev[r]}}
2777 \def\@hanthracenev[#1]#2{%
2778 % bonds for outer skeleton
2779 \@reset@ylsw\reset@@yl
2780 \ylposition{#2}{-7}{0}{2}{0}% %for 8 positions
2781 \if@ylsw \ifx\@@ylii\empty
2782 \def\@@ylii{0}\def\@@yli{0}\fi
2783 \else\ylposition{#2}{-1}{3}{7}{0}% for 5 to 7 positions
2784 \fi
2785 \if@ylsw\ifx\@@ylii\empty
2786 \def\@@ylii{0}\def\@@yli{0}\fi\else
2787 \ylposition{#2}{0}{0}{5}{0}% for 1 to 4 positions
2788 \fi
2789 \if@ylsw\ifx\@@ylii\empty
2790 \def\@@ylii{-684}\def\@@yli{0}\fi\else
2791 \ylposition{#2}{-8}{0}{2}{0}%for 9-position
2792 \fi
2793 \if@ylsw\ifx\@@ylii\empty
2794 \def\@@ylii{-342}\def\@@yli{0}\fi\else
2795 \ylposition{#2}{-6}{3}{5}{0}%for 10-position
2796 \fi
2797 \if@ylsw\ifx\@@ylii\empty
2798 \def\@@ylii{-342}\def\@@yli{0}\fi\else
2799 \ylfusedposition{#2}{-11}{-1}{1}{0}% for 9a and 4a
2800 \fi
2801 \if@ylsw\ifx\@@ylii\empty
2802 \def\@@ylii{-342}\def\@@yli{0}\fi\else
2803 \ylfusedposition{#2}{-12}{-1}{1}{0}% for 8a and 10a
2804 \fi
2805 \if@ylsw\ifx\@@ylii\empty
2806 \def\@@ylii{0}\def\@@yli{0}\fi\fi
2807 \if@ylsw
2808 \yl@shiftii=\@ylii
2809 \ifx\@@ylii\empty\else
2810 \advance\yl@shiftii\@@ylii\fi
2811 \yl@shifti=\@yli
2812 \ifx\@@yli\empty\else
2813 \advance\yl@shifti\@@yli\fi
2814 \advance\yl@shiftii\yl@xdiff
2815 \advance\yl@shifti\yl@ydiff
2816 \begin{sfpicture}(0,0)(-\yl@shiftii,-\yl@shifti)%
2817 \reset@yl@xydiff%1999/1/6 by S. Fujita
2818 \else
2819 \begin{sfpicture}(1200,880)(-\shiftii,-\shifti)%
2820 \origptoutput{hanthracenev}%
2821 \fi
2822 \Put@Line(0,406)(-5,-3){171}% %bond 8-7
2823 \Put@Line(0,406)(5,-3){171}% %bond 8-8a
2824 \Put@Line(0,0)(-5,3){171}% %bond 5-6
2825 \Put@Line(0,0)(5,3){171}% %bond 5-10a
2826 \Put@Line(171,103)(0,1){200}% %bond 10a-8a
2827 \Put@Line(-171,103)(0,1){200}% %bond 6-7
2828 \Put@Line(342,406)(-5,-3){171}% %bond 9-8a
2829 \Put@Line(342,406)(5,-3){171}% %bond 9-9a
2830 \Put@Line(342,0)(-5,3){171}% %bond 10-10a
2831 \Put@Line(342,0)(5,3){171}% %bond 10-4a
2832 \Put@Line(513,103)(0,1){200}% %bond 4a-9a
2833 %%%%
2834 \Put@Line(684,406)(-5,-3){171}% %bond 1-9a 1-6
2835 \Put@Line(684,406)(5,-3){171}% %bond 1-2 1-2
2836 \Put@Line(855,103)(0,1){200}% %bond 3-2 3-2
2837 \Put@Line(684,0)(5,3){171}% %bond 4-3 4-3
2838 \Put@Line(684,0)(-5,3){171}% %bond 4-4a 4-5
2839 % inner double bonds
2840 \@tfor\member:=#1\do{%
2841 \if\member r%no endcyclic double bonds
2842 \else\if\member a%
2843 \Put@Line(690,364)(5,-3){126}% %double bond 1-2
2844 \else\if\member b%
2845 \Put@Line(822,129)(0,1){148}% %double bond 3-2
2846 \else\if\member c%
2847 \Put@Line(690,42)(5,3){126}% %double bond 4-3
2848 \else\if\member d%
2849 \Put@Line(690,42)(-5,3){126}% %double bond 4-4a
2850 \else\if\member e%
2851 \Put@Line(348,42)(5,3){126}% %double bond 10-4a
2852 \else\if\member f%
2853 \Put@Line(348,42)(-5,3){126}% %double bond 10-10a
2854 \else\if\member g%
2855 \Put@Line(6,42)(5,3){126}% %double bond 5-10a
2856 \else\if\member h%
2857 \Put@Line(-6,42)(-5,3){126}% %double bond 5-6
2858 \else\if\member i%
2859 \Put@Line(-138,129)(0,1){148}% %double bond 6-7
2860 \else\if\member j%
2861 \Put@Line(-6,364)(-5,-3){126}% %double bond 8-7
2862 \else\if\member k%
2863 \Put@Line(6,364)(5,-3){126}% %double bond 8-8a
2864 \else\if\member l%
2865 \Put@Line(348,364)(-5,-3){126}% %double bond 9-8a
2866 \else\if\member m%
2867 \Put@Line(348,364)(5,-3){126}% %double bond 9-9a
2868 \else\if\member n%
2869 \Put@Line(690,364)(-5,-3){126}% %double bond 1-9a
2870 \else\if\member o%
2871 \Put@Line(544,129)(0,1){148}% %double bond 4a-9a
2872 \else\if\member O%
2873 \Put@Line(482,129)(0,1){148}% %double bond 4a-9a at the other ring
2874 \else\if\member p%
2875 \Put@Line(138,129)(0,1){148}% %double bond 10a-8a
2876 \else\if\member P%
2877 \Put@Line(204,129)(0,1){148}% %double bond 10a-8a at the other ring
2878 \else\if\member C%left aromatic circle
2879 \Put@oCircle(0,203){240}% %circle
2880 \else\if\member B%right aromatic circle
2881 \Put@oCircle(342,203){240}% %circle
2882 \else\if\member A%right aromatic circle
2883 \Put@oCircle(684,203){240}% %circle
2884 \else
2885 %setting fused rings
2886 \expandafter\twoCH@R\member//%
2887 \set@fusion@hanthrav
2888 \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi}%
2889 %exocyclic bonds and substituents
2890 \global\drawsamesubsttrue%2002/05/30 warning on
2891 \Put@Direct(0,0){\setsixringv{#2}{-7}{0}{2}{0}}% %for 8 positions
2892 \global\drawsamesubstfalse%2002/05/30 warning off
2893 \Put@Direct(0,0){\setsixringv{#2}{-1}{3}{7}{0}}% %for 5 to 7 positions
2894 \Put@Direct(684,0){\setsixringv{#2}{0}{0}{5}{0}}% %for 1 to 4 positions
2895 \Put@Direct(342,0){\setsixringv{#2}{-8}{0}{2}{0}}%for 9-position
2896 \Put@Direct(342,0){\setsixringv{#2}{-6}{3}{5}{0}}%for 10-position
2897 %bonds and substituents for fused positions
2898 \Put@Direct(0,0){\setfusedbond{#2}{-12}{-1}{1}{0}}% for 8a and 10a
2899 \Put@Direct(342,0){\setfusedbond{#2}{-11}{-1}{1}{0}}% for 9a and 4a
2900 \end{sfpicture}}% %end of \hanthracenev macro%
2901 % \end{macrocode}
2902 % \end{macro}
2903 %
2904 % \subsection{Anthracene and anthraquinone derivatives}
2905 %
2906 % The macro |\anthracenev| is used for drawing anthracene derivatives
2907 % of vertical type.
2908 %
2909 % The macro |\anthracenev| has an argument |SUBSLIST| as well as an optional
2910 % argument |OPT|. The latter designates a bond pattern in place of
2911 % individual exocyclic bonds.
2912 %
2913 % \begin{verbatim}
2914 % ********************************************
2915 % * anthracene and anthraquinone derivatives *
2916 % * (vertical type) *
2917 % ********************************************
2918 %
2919 % \anthracenev[OPT]{SUBSLIST}
2920 % \end{verbatim}
2921 %
2922 % The |OPT| argument contains one or two characters for designate
2923 % aromatic bond patterns or for naphthoquinone bond patterns.
2924 %
2925 % \begin{verbatim}
2926 % OPT (bond pattern)
2927 %
2928 % none or r : right-handed double bonds
2929 % l : left-handed double bonds
2930 % A : aromatic circle
2931 %
2932 % p or pa : 9,10-anthraquinone (A)
2933 % pA : 9,10-anthraquinone (circle type)
2934 %
2935 % o : 1,2-anthraquinone (A)
2936 % oa : 1,2-anthraquinone (A')
2937 % oA : 1,2-anthraquinone (circle type)
2938 % ob : 2,3-antharquinone (B)
2939 % oc : 1,2-anthraquinone (C)
2940 %
2941 % q : 1,4-anthraquinone (A)
2942 % qa : 1,4-anthraquinone (A')
2943 % qA : 1,4-anthraquinone (circle type)
2944 % \end{verbatim}
2945 %
2946 % The |SUBSLIST| argument contains one or more substitution descriptors
2947 % which are separated from each other by a semicolon. Each substitution
2948 % descriptor has a locant number with a bond modifier and a substituent,
2949 % where these are separated with a double equality symbol.
2950 %
2951 % \begin{verbatim}
2952 % SUBSLIST: list of substituents
2953 %
2954 % for n = 1 to 10
2955 %
2956 % nD : exocyclic double bond at n-atom
2957 % n or nS : exocyclic single bond at n-atom
2958 % nA : alpha single bond at n-atom
2959 % nB : beta single bond at n-atom
2960 % nSA : alpha single bond at n-atom (boldface)
2961 % nSB : beta single bond at n-atom (dotted line)
2962 % nSa : alpha (not specified) single bond at n-atom
2963 % nSb : beta (not specified) single bond at n-atom
2964 %
2965 % nSd : alpha single bond at n-atom (dotted line)
2966 % with an alternative direction to nSA
2967 % nSu : beta single bond at n-atom (boldface)
2968 % with an alternative direction to nSB
2969 % nFA : alpha single bond at n-atom (dotted line)
2970 % for ring fusion
2971 % nFB : beta single bond at n-atom (boldface)
2972 % for ring fusion
2973 % nGA : alpha single bond at n-atom (dotted line)
2974 % for the other ring fusion
2975 % nGB : beta single bond at n-atom (boldface)
2976 % for the other ring fusion
2977 % \end{verbatim}
2978 %
2979 % \begin{verbatim}
2980 % e.g.
2981 %
2982 % \anthracenev{1==Cl;2==F;0FA==;0GA==}
2983 % \anthracenev[A]{1==Cl;4==F;2==CH$_{3}$}
2984 % \anthracenev[eb]{1D==O;4SA==MeO;4SB==OMe;%
2985 % 5W==Cl;6==Cl;7==Cl;8==Cl}
2986 % \end{verbatim}
2987 %
2988 % \begin{macro}{\anthracenev}
2989 % \begin{macrocode}
2990 \def\anthracenev{\@ifnextchar[{\@anthracenev}{\@anthracenev[r]}}
2991 \def\@anthracenev[#1]#2{%
2992 \iforigpt \typeout{command `anthracenev' is %
2993 based on `hanthracenev'.}\fi%
2994 %% \expandafter\threech@r#1{}{}%error1998/11/23 by Shinsaku Fujita
2995 \expandafter\twoCH@R#1//%
2996 \if\@tmpa r% right-handed set of double bonds
2997 \hanthracenev[acflhjo]{#2}%
2998 \else\if\@tmpa l% left-handed set of double bonds
2999 \hanthracenev[acehjmp]{#2}%
3000 \else\if\@tmpa A%aromatic circle
3001 \hanthracenev[ABC]{#2}%
3002 \else\if\@tmpa p%9,10-quinone
3003 \if\@tmpb a% (A)%
3004 \hanthracenev[achjop]{#2}%
3005 \else\ifx\@tmpb\empty% (A)
3006 \hanthracenev[achjop]{#2}%
3007 \else\if\@tmpb A% circle type
3008 \hanthracenev[AC]{#2}%
3009 \else
3010 \hanthracenev[achjop]{#2}%
3011 \fi\fi\fi%
3012 \else\if\@tmpa o%o-quinone
3013 \if\@tmpb a% (A)%
3014 \hanthracenev[cfjhlo]{#2}%
3015 \else\ifx\@tmpb\empty% (A)
3016 \hanthracenev[cehjmp]{#2}%
3017 \else\if\@tmpb b% (B)
3018 \hanthracenev[dfhjln]{#2}%
3019 \else\if\@tmpb c% (C)
3020 \hanthracenev[aehjmp]{#2}%
3021 \else\if\@tmpb A% cicle type
3022 \hanthracenev[cBC]{#2}%
3023 \fi\fi\fi\fi\fi%
3024 \else\if\@tmpa q%1,4-quinone
3025 \if\@tmpb a% (A)%
3026 \hanthracenev[bfhjlo]{#2}%
3027 \else\ifx\@tmpb\empty% (A)
3028 \hanthracenev[behjmp]{#2}%
3029 \else\if\@tmpb A% circle type
3030 \hanthracenev[bBC]{#2}%
3031 \else%
3032 \hanthracenev[behjmp]{#2}%
3033 \fi\fi\fi%
3034 \else
3035 \hanthracenev[@#1]{#2}%
3036 \fi\fi\fi\fi\fi\fi%
3037 }% %end of \anthracenev macro%
3038 % \end{macrocode}
3039 % \end{macro}
3040 %
3041 % \section{Phenanthrene derivatives}
3042 % \subsection{Perhydro-phenanthrene derivatives of Vertical type}
3043 %
3044 % The macro |\hphenanthrenev| is used for drawing perhydrophenanthrene
3045 % derivatives of vertical type.
3046 %
3047 % The macro |\hphenanthrenev| has an argument |SUBSLIST| as well as an
3048 % optional argument |BONDLIST|.
3049 %
3050 % \begin{verbatim}
3051 % *************************************
3052 % * perhydro phenanthrene derivatives *
3053 % * (vertical type) *
3054 % *************************************
3055 %
3056 % \hphenanthrenev[BONDLIST]{SUBSLIST}
3057 % \end{verbatim}
3058 %
3059 % The |BONDLIST| argument contains one or more
3060 % characters selected form a to p, each of which indicates
3061 % the presence of an inner (endcyclic) double bond on the corresponding
3062 % position. The character A, B, or C indicates an aromatic bond
3063 % pattern (circle).
3064 % \changes{v1.02}{1998/10/14}{BONDLIST: o, O, p and P at the fused bond}
3065 %
3066 % \begin{verbatim}
3067 %
3068 % BONDLIST =
3069 %
3070 % none : hphenanthrene
3071 % a : 1,2-double bond
3072 % b : 2,3-double bond
3073 % c : 3,4-double bond
3074 % d : 4,4a-double bond
3075 % e : 4a,4b-double bond
3076 % f : 4b,5-double bond
3077 % g : 5,6-double bond
3078 % h : 6,7-double bond
3079 % i : 7,8-double bond
3080 % j : 8,8a-double bond
3081 % k : 8a,9-double bond
3082 % l : 9,10-double bond
3083 % m : 10,10a-double bond
3084 % n : 1,10a-double bond
3085 % o : 4a,10a-double bond
3086 % O : 4a,10a-double bond in the other ring
3087 % p : 4b,8a-double bond
3088 % P : 4b,8a-double bond in the other ring
3089 % A : right aromatic circle
3090 % B : central aromatic circle
3091 % C : left aromatic circle
3092 % \end{verbatim}
3093 %
3094 % The |SUBSLIST| argument contains one or more substitution descriptors
3095 % which are separated from each other by a semicolon. Each substitution
3096 % descriptor has a locant number with a bond modifier and a substituent,
3097 % where these are separated with a double equality symbol.
3098 %
3099 % \begin{verbatim}
3100 % SUBSLIST: list of substituents
3101 %
3102 % for n = 1 to 10
3103 %
3104 % nD : exocyclic double bond at n-atom
3105 % n or nS : exocyclic single bond at n-atom
3106 % nA : alpha single bond at n-atom
3107 % nB : beta single bond at n-atom
3108 % nSA : alpha single bond at n-atom (boldface)
3109 % nSB : beta single bond at n-atom (dotted line)
3110 % nSa : alpha (not specified) single bond at n-atom
3111 % nSb : beta (not specified) single bond at n-atom
3112 %
3113 % nSd : alpha single bond at n-atom (dotted line)
3114 % with an alternative direction to nSA
3115 % nSu : beta single bond at n-atom (boldface)
3116 % with an alternative direction to nSB
3117 % nFA : alpha single bond at n-atom (dotted line)
3118 % for ring fusion
3119 % nFB : beta single bond at n-atom (boldface)
3120 % for ring fusion
3121 % nGA : alpha single bond at n-atom (dotted line)
3122 % for the other ring fusion
3123 % nGB : beta single bond at n-atom (boldface)
3124 % for the other ring fusion
3125 %
3126 % for 11 (fused positions, 4a and 10a)
3127 %
3128 % 11FA : alpha single bond at 4a
3129 % 11FB : beta single bond at 4a
3130 % 11FC : alpha single bond (downward) at 4a
3131 % 11FD : beta single bond (downward) at 4a
3132 % 11FU : unspecified single bond at 4a
3133 % 11GA : alpha single bond at 10a
3134 % 11GB : beta single bond at 10a
3135 % 11FC : alpha single bond (upward) at 10a
3136 % 11FD : beta single bond (upward) at 10a
3137 % 11GU : unspecified single bond at 10a
3138 %
3139 % for 12 (fused positions, 4b and 8a)
3140 %
3141 % 12FA : alpha single bond at 4b
3142 % 12FB : beta single bond at 4b
3143 % 12FU : unspecified single bond at 4b
3144 % 12GA : alpha single bond at 8a
3145 % 12GB : beta single bond at 8a
3146 % 12GU : unspecified single bond at 8a
3147 % \end{verbatim}
3148 %
3149 % \begin{verbatim}
3150 % e.g.
3151 %
3152 % \hphenanthrenev{1==Cl;2==F;{{10}}==OH}
3153 % \hphenanthrenev[c]{1==Cl;4==F;2==CH$_{3}$;
3154 % {{11}FA}==OH;{{11}FB}==OH}
3155 % \hphenanthrenev[eb]{1D==O;4SA==MeO;4SB==OMe;
3156 % 5W==Cl;6==Cl;7==Cl;8==Cl}
3157 % \end{verbatim}
3158 % \changes{v1.02}{1998/10/15}{The command \cs{setdecaringv} has
3159 % been stopped to use.}
3160 % \changes{v1.02}{1998/10/31}{Adding \cs{ylpositionh}, \cs{if@ylsw}
3161 % \cs{ylfusedposition},
3162 % \cs{yl@shiftii}, \cs{@ylii}, \cs{@@ylii}, \cs{yl@shifti}, \cs{@yli},
3163 % \cs{@yli}, \cs{yl@xdiff} and \cs{yl@ydiff}}
3164 % \changes{v2.00}{1998/11/23}{Added: Fused rings}
3165 %
3166 % \begin{macro}{\hphenanthrenev}
3167 % \begin{macrocode}
3168 \def\hphenanthrenev{%
3169 \@ifnextchar[{\@hphenanthrenev[@}{\@hphenanthrenev[r]}}
3170 \def\@hphenanthrenev[#1]#2{%
3171 % bonds for outer skeleton
3172 \@reset@ylsw\reset@@yl
3173 \ylposition{#2}{-4}{0}{2}{0}% %for 5 position
3174 \if@ylsw \ifx\@@ylii\empty
3175 \def\@@ylii{0}\def\@@yli{0}\fi
3176 \else
3177 \ylposition{#2}{12}{3}{7}{-1}% %for 6 to 8 positions
3178 \fi
3179 \if@ylsw\ifx\@@ylii\empty
3180 \def\@@ylii{0}\def\@@yli{0}\fi\else
3181 \ylposition{#2}{13}{2}{5}{-1}% %for 9 to 10 positions
3182 \fi
3183 \if@ylsw\ifx\@@ylii\empty
3184 \def\@@ylii{-342}\def\@@yli{0}\fi\else
3185 \ylposition{#2}{4}{0}{4}{-1}% %for 1 to 3 positions
3186 \fi
3187 \if@ylsw\ifx\@@ylii\empty
3188 \def\@@ylii{-513}\def\@@yli{-303}\fi\else
3189 \ylposition{#2}{2}{5}{7}{0}% %for 4-position
3190 \fi
3191 \if@ylsw\ifx\@@ylii\empty
3192 \def\@@ylii{-513}\def\@@yli{-303}\fi\else
3193 \ylfusedposition{#2}{-12}{-1}{1}{0}% % for 4b and 8a
3194 \fi
3195 \if@ylsw\ifx\@@ylii\empty
3196 \def\@@ylii{0}\def\@@yli{0}\fi\else
3197 \ylfusedposition{#2}{-10}{0}{2}{0}% % for 4a and 10a
3198 \fi
3199 \if@ylsw\ifx\@@ylii\empty
3200 \def\@@ylii{-342}\def\@@yli{0}\fi\fi
3201 \if@ylsw
3202 \yl@shiftii=\@ylii
3203 \ifx\@@ylii\empty\else
3204 \advance\yl@shiftii\@@ylii\fi
3205 \yl@shifti=\@yli
3206 \ifx\@@yli\empty\else
3207 \advance\yl@shifti\@@yli\fi
3208 \advance\yl@shiftii\yl@xdiff
3209 \advance\yl@shifti\yl@ydiff
3210 \begin{sfpicture}(0,0)(-\yl@shiftii,-\yl@shifti)
3211 \reset@yl@xydiff%1999/1/6 by S. Fujita
3212 \else
3213 \begin{sfpicture}(1200,1200)(-\shiftii,-\shifti)
3214 \origptoutput{hphenanthrenev}%
3215 \fi
3216 \Put@Line(0,406)(-5,-3){171}% %bond 6-5
3217 \Put@Line(0,406)(5,-3){171}% %bond 5-4a
3218 \Put@Line(0,0)(-5,3){171}% %bond 8-7
3219 \Put@Line(0,0)(5,3){171}% %bond 8-8a
3220 \Put@Line(171,103)(0,1){200}% %bond 8a-4b
3221 \Put@Line(-171,103)(0,1){200}% %bond 7-6
3222 \Put@Line(342,406)(-5,-3){171}% %bond 4a-4b
3223 \Put@Line(342,406)(5,-3){171}% %bond 4a-10a
3224 \Put@Line(342,0)(-5,3){171}% %bond 9-8a
3225 \Put@Line(342,0)(5,3){171}% %bond 9-10
3226 \Put@Line(513,103)(0,1){200}% %bond 10-10a
3227 %%%%
3228 \Put@Line(342,406)(0,1){200}% %bond 4a-4
3229 \Put@Line(513,709)(-5,-3){171}% %bond 3-4
3230 \Put@Line(513,709)(5,-3){171}% %bond 3-2
3231 \Put@Line(684,406)(0,1){200}% %bond 1-2
3232 \Put@Line(513,303)(5,3){171}% %bond 10a-1
3233 % inner double bonds
3234 \@tfor\member:=#1\do{%
3235 \if\member r%no endcyclic double bonds
3236 \else\if\member a%
3237 \Put@Line(651,432)(0,1){148}% %double bond 1-2
3238 \else\if\member b%
3239 \Put@Line(519,667)(5,-3){126}% %double bond 3-2
3240 \else\if\member c%
3241 \Put@Line(519,667)(-5,-3){126}% %double bond 3-4
3242 \else\if\member d%
3243 \Put@Line(375,432)(0,1){148}% %double bond 4a-4
3244 \else\if\member e%
3245 \Put@Line(348,364)(-5,-3){126}% %double bond 4a-4b
3246 \else\if\member f%
3247 \Put@Line(6,364)(5,-3){126}% %double bond 5-4b
3248 \else\if\member g%
3249 \Put@Line(-6,364)(-5,-3){126}% %double bond 5-6
3250 \else\if\member h%
3251 \Put@Line(-138,129)(0,1){148}% %double bond 6-7
3252 \else\if\member i%
3253 \Put@Line(-6,42)(-5,3){126}% %double bond 8-7
3254 \else\if\member j%
3255 \Put@Line(6,42)(5,3){126}% %double bond 8-8a
3256 \else\if\member k%
3257 \Put@Line(348,42)(-5,3){126}% %double bond 9-8a
3258 \else\if\member l%
3259 \Put@Line(348,42)(5,3){126}% %double bond 9-10
3260 \else\if\member m%
3261 \Put@Line(482,129)(0,1){148}% %double bond 10-10a
3262 \else\if\member n%
3263 \Put@Line(519,345)(5,3){126}% %double bond 10a-1
3264 \else\if\member o%
3265 \Put@Line(507,345)(-5,3){126}% %double bond 10a-4a
3266 \else\if\member O%
3267 \Put@Line(348,364)(5,-3){126}% %double bond 4a-10a
3268 \else\if\member p%
3269 \Put@Line(138,129)(0,1){148}% %double bond 8a-4b
3270 \else\if\member P%
3271 \Put@Line(204,129)(0,1){148}% %double bond 8a-4b
3272 \else\if\member C%left aromatic circle
3273 \Put@oCircle(0,203){240}% %circle
3274 \else\if\member B%right aromatic circle
3275 \Put@oCircle(342,203){240}% %circle
3276 \else\if\member A%right aromatic circle
3277 \Put@oCircle(513,506){240}% %circle
3278 \else
3279 % setting fused rings
3280 \expandafter\twoCH@R\member//%
3281 \set@fusion@hphenanv
3282 \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi}%
3283 %exocyclic bonds and substituents
3284 \global\drawsamesubsttrue%2002/05/30 warning on
3285 \Put@Direct(0,0){\setsixringv{#2}{-4}{0}{2}{0}}% %for 5 position
3286 \global\drawsamesubstfalse%2002/05/30 warning off
3287 \Put@Direct(0,0){\setsixringv{#2}{12}{3}{7}{-1}}% %for 6 to 8 positions
3288 \Put@Direct(342,0){\setsixringv{#2}{13}{2}{5}{-1}}% %for 9 to 10 positions
3289 \Put@Direct(513,303){\setsixringv{#2}{4}{0}{4}{-1}}% %for 1 to 3 positions
3290 \Put@Direct(513,303){\setsixringv{#2}{2}{5}{7}{0}}% %for 4-position
3291 %bonds and substituents for fused positions
3292 \Put@Direct(0,0){\setfusedbond{#2}{-12}{-1}{1}{0}}% % for 4b and 8a
3293 \Put@Direct(342,0){\setfusedbond{#2}{-10}{0}{2}{0}}% % for 4a and 10a
3294 \end{sfpicture}}% %end of \hphenanthrenev macro%
3295 % \end{macrocode}
3296 % \end{macro}
3297 %
3298 % \subsection{Phenanthrene and phenanthroquinone derivatives}
3299 %
3300 % The macro |\phenanthrenev| is used for drawing phenanthrene derivatives
3301 % of vertical type.
3302 %
3303 % The macro |\anthracenev| has an argument |SUBSLIST| as well as an optional
3304 % argument |OPT|. The latter designates a bond pattern in place of
3305 % individual exocyclic bonds.
3306 %
3307 % \begin{verbatim}
3308 % *********************************
3309 % * phenanthrene and derivatives *
3310 % * (vertical type) *
3311 % *********************************
3312 %
3313 % \phenanthrenev[OPT]{SUBSLIST}
3314 % \end{verbatim}
3315 %
3316 % The |OPT| argument contains one or two characters for designate
3317 % aromatic bond patterns or for naphthoquinone bond patterns.
3318 %
3319 % \begin{verbatim}
3320 % OPT (bond pattern)
3321 %
3322 % none or r : right-handed double bonds
3323 % A : aromatic circle
3324 %
3325 % p or pa : 1,4-quinone (A)
3326 % pA : 1,4-quinone (circle type)
3327 %
3328 % o or oa : 1,2-quinone (A)
3329 % oA : 1,2-quinone (circle type)
3330 % ob : 2,3-quinone (B)
3331 % oc : 3,4-anthraquinone (C)
3332 %
3333 % q or qa : 9,10-quinone
3334 % qA : 9,10-quinone (circle type)
3335 % \end{verbatim}
3336 %
3337 % The |SUBSLIST| argument contains one or more substitution descriptors
3338 % which are separated from each other by a semicolon. Each substitution
3339 % descriptor has a locant number with a bond modifier and a substituent,
3340 % where these are separated with a double equality symbol.
3341 %
3342 % \begin{verbatim}
3343 % SUBSLIST: list of substituents
3344 %
3345 % for n = 1 to 10
3346 %
3347 % nD : exocyclic double bond at n-atom
3348 % n or nS : exocyclic single bond at n-atom
3349 % nA : alpha single bond at n-atom
3350 % nB : beta single bond at n-atom
3351 % nSA : alpha single bond at n-atom (boldface)
3352 % nSB : beta single bond at n-atom (dotted line)
3353 % nSa : alpha (not specified) single bond at n-atom
3354 % nSb : beta (not specified) single bond at n-atom
3355 %
3356 % nSd : alpha single bond at n-atom (dotted line)
3357 % with an alternative direction to nSA
3358 % nSu : beta single bond at n-atom (boldface)
3359 % with an alternative direction to nSB
3360 % nFA : alpha single bond at n-atom (dotted line)
3361 % for ring fusion
3362 % nFB : beta single bond at n-atom (boldface)
3363 % for ring fusion
3364 % nGA : alpha single bond at n-atom (dotted line)
3365 % for the other ring fusion
3366 % nGB : beta single bond at n-atom (boldface)
3367 % for the other ring fusion
3368 % \end{verbatim}
3369 %
3370 % \begin{verbatim}
3371 % e.g.
3372 %
3373 % \phenanthrenev{1==Cl;2==F}
3374 % \phenanthrenev[A]{1==Cl;4==F;2==CH$_{3}$}
3375 % \phenanthrenev[eb]{1D==O;4SA==MeO;4SB==OMe;%
3376 % 5W==Cl;6==Cl;7==Cl;8==Cl}
3377 % \end{verbatim}
3378 %
3379 % \begin{macro}{\phenanthrenev}
3380 % \begin{macrocode}
3381 \def\phenanthrenev{\@ifnextchar[{\@phenanthrenev}{\@phenanthrenev[r]}}
3382 \def\@phenanthrenev[#1]#2{%
3383 \iforigpt \typeout{command `phenanthrenev' is %
3384 based on `hphenantherenv'.}\fi%
3385 \expandafter\threech@r#1{}{}%
3386 \if\@tmpa r% right-handed set of double bonds
3387 \hphenanthrenev[acgilop]{#2}%
3388 \else\if\@tmpa A%aromatic circle
3389 \hphenanthrenev[ABC]{#2}%
3390 \else\if\@tmpa p%1,4-quinone
3391 \if\@tmpb a% (A)%
3392 \hphenanthrenev[bgilop]{#2}%
3393 \else\ifx\@tmpb\empty% (A)
3394 \hphenanthrenev[bgilop]{#2}%
3395 \else\if\@tmpb A% circle type
3396 \hphenanthrenev[BCb]{#2}%
3397 \else
3398 \hphenanthrenev[bgilop]{#2}%
3399 \fi\fi\fi%
3400 \else\if\@tmpa o%o-quinone
3401 \if\@tmpb a% (A)%
3402 \hphenanthrenev[cgilop]{#2}%
3403 \else\ifx\@tmpb\empty% (A)
3404 \hphenanthrenev[cgilop]{#2}%
3405 \else\if\@tmpb b% (B)
3406 \hphenanthrenev[dgilnp]{#2}%
3407 \else\if\@tmpb c% (C)
3408 \hphenanthrenev[agilop]{#2}%
3409 \else\if\@tmpb A% cicle type
3410 \hphenanthrenev[cBC]{#2}%
3411 \fi\fi\fi\fi\fi%
3412 \else\if\@tmpa q%9,10-quinone
3413 \if\@tmpb a% (A)%
3414 \hphenanthrenev[acgiop]{#2}%
3415 \else\ifx\@tmpb\empty% (A)
3416 \hphenanthrenev[acgiop]{#2}%
3417 \else\if\@tmpb A% circle type
3418 \hphenanthrenev[AC]{#2}%
3419 \else
3420 \hphenanthrenev[acgiop]{#2}%
3421 \fi\fi\fi%
3422 \else
3423 \hphenanthrenev[@#1]{#2}%
3424 \fi\fi\fi\fi\fi%
3425 }% %end of \phenanthrenev macro%
3426 % \end{macrocode}
3427 % \end{macro}
3428 %
3429 % \section{Steroids}
3430 % \subsection{Steroids without a chain}
3431 %
3432 % The macro |\steroid| is used for drawing steroids.
3433 %
3434 % The macro |\steroid| has an argument |SUBSLIST| as well as an
3435 % optional argument |BONDLIST|.
3436 %
3437 % \begin{verbatim}
3438 % ***********************
3439 % * steroid derivatives *
3440 % ***********************
3441 %
3442 % \steroid[BONDLIST]{SUBSLIST}
3443 % \end{verbatim}
3444 %
3445 % The |BONDLIST| argument contains one or more
3446 % characters selected form a to t, each of which indicates
3447 % the presence of an inner (endcyclic) double bond on the corresponding
3448 % position. The character A, B, or C indicates an aromatic bond
3449 % pattern (circle).
3450 % \changes{v1.02}{1998/10/15}{BONDLIST: k, K, h, H, o and O
3451 % at the fused bond}
3452 %
3453 % \begin{verbatim}
3454 % BONDLIST =
3455 %
3456 % none: steroid skeleton
3457 % a : 1,2-double bond b : 2,3-double bond
3458 % c : 3,4-double bond d : 4,5-double bond
3459 % e : 6,5-double bond f : 6,7-double bond
3460 % g : 7,8-double bond
3461 % h : 9,8-double bond
3462 % h : 9,8-double bond in the other bond
3463 % i : 9,10-double bond j : 1,10-double bond
3464 % k : 5,10-double bond
3465 % K : 5,10-double bond in the other bond
3466 % l : 9,11-double bond
3467 % m : 12,11-double bond n : 12,13-double bond
3468 % o : 14,13-double bond
3469 % O : 14,13-double bond in the other bond
3470 % p : 8,14-double bond
3471 % q : 14,15-double bond r : 15,16-double bond
3472 % s : 17,16-double bond t : 17,13-double bond
3473 % A : aromatic A ring B : aromatic B ring
3474 % C : aromatic C ring
3475 % \end{verbatim}
3476 %
3477 % The |SUBSLIST| argument contains one or more substitution descriptors
3478 % which are separated from each other by a semicolon. Each substitution
3479 % descriptor has a locant number with a bond modifier and a substituent,
3480 % where these are separated with a double equality symbol.
3481 %
3482 % \begin{verbatim}
3483 %
3484 % SUBSLIST: list of substituents
3485 %
3486 % for n = 1 to 17 (execpt fused positions)
3487 %
3488 % nD : exocyclic double bond at n-atom
3489 % n or nS : exocyclic single bond at n-atom
3490 % nA : alpha single bond at n-atom (boldface)
3491 % nB : beta single bond at n-atom (dotted line)
3492 % nSA : alpha single bond at n-atom (boldface)
3493 % nSB : beta single bond at n-atom (dotted line)
3494 % nSa : alpha (not specified) single bond at n-atom
3495 % nSb : beta (not specified) single bond at n-atom
3496 %
3497 % nSd : alpha single bond at n-atom (dotted line)
3498 % with an alternative direction to nSA
3499 % nSu : beta single bond at n-atom (boldface)
3500 % with an alternative direction to nSB
3501 % nFA : alpha single bond at n-atom (dotted line)
3502 % for ring fusion
3503 % nFB : beta single bond at n-atom (boldface)
3504 % for ring fusion
3505 % nGA : alpha single bond at n-atom (dotted line)
3506 % for the other ring fusion
3507 % nGB : beta single bond at n-atom (boldface)
3508 % for the other ring fusion
3509 % \end{verbatim}
3510 %
3511 % For numbers larger than 9 (two digits), you should designate
3512 % the SUBSLIST as
3513 %
3514 % \begin{verbatim}
3515 % {{11}A}==Cl;{{12}SA}==H;{{12}SB}==Cl;
3516 % \end{verbatim}
3517 %
3518 % \begin{verbatim}
3519 % for n = 5,8,9,10,13 and 14 (fused positions)
3520 %
3521 % n or nS : exocyclic single bond at n-atom
3522 % nA : alpha single bond at n-atom (boldface)
3523 % nB : beta single bond at n-atom (dotted line)
3524 % nU : unspecified single bond at n-atom
3525 % \end{verbatim}
3526 %
3527 % \begin{verbatim}
3528 % e.g.
3529 %
3530 % \steroid{1==Cl;2==F;{{10}}==OH}
3531 % \steroid[c]{1==Cl;4==F;2==CH$_{3}$;
3532 % {{11}SA}==OH;{{11}SB}==OH}
3533 % \steroid[eb]{1D==O;4SA==MeO;4SB==OMe;
3534 % 5==Cl;6==Cl;7==Cl;8==Cl}
3535 % \end{verbatim}
3536 % \changes{v1.02}{1998/10/15}{The command \cs{setdecaringv} has
3537 % been stopped to use.}
3538 % \changes{v1.02}{1998/10/31}{Adding \cs{ylpositionh}, \cs{if@ylsw}
3539 % \cs{ylfusedposition},
3540 % \cs{yl@shiftii}, \cs{@ylii}, \cs{@@ylii}, \cs{yl@shifti}, \cs{@yli},
3541 % \cs{@yli}, \cs{yl@xdiff} and \cs{yl@ydiff}}
3542 % \changes{v1.02}{1998/10/31}{Inner commands \cs{yl@steroidposition}
3543 % and \cs{@steroidskeleton} are separated from the \cs{@steroid} command.}
3544 % \changes{v2.00}{1998/12/5}{Add: fused rings}
3545 %
3546 % \begin{macro}{\steroid}
3547 % \begin{macro}{\yl@steroidposition}
3548 % \begin{macro}{\@steroidskeleton}
3549 % \begin{macrocode}
3550 \def\steroid{\@ifnextchar[{\@steroid[@}{\@steroid[Z]}}
3551 \def\@steroid[#1]#2{%
3552 %initialize bug fix 2010/10/01
3553 \iniatom\iniflag%initialize
3554 % bonds for outer skeleton
3555 \@reset@ylsw\reset@@yl
3556 \yl@steroidposition{#2}%
3557 \if@ylsw
3558 \yl@shiftii=\@ylii
3559 \ifx\@@ylii\empty\else
3560 \advance\yl@shiftii\@@ylii\fi
3561 \yl@shifti=\@yli
3562 \ifx\@@yli\empty\else
3563 \advance\yl@shifti\@@yli\fi
3564 \advance\yl@shiftii\yl@xdiff
3565 \advance\yl@shifti\yl@ydiff
3566 \begin{sfpicture}(0,0)(-\yl@shiftii,-\yl@shifti)
3567 \reset@yl@xydiff%1999/1/6 by S. Fujita
3568 \else
3569 \begin{sfpicture}(1600,1300)(-\shiftii,-\shifti)
3570 \origptoutput{steroid}%
3571 \fi
3572 \Put@Direct(0,0){\@steroidskeleton{#1}{#2}}%
3573 \end{sfpicture}}% %end of \steroid macro%
3574 % \end{macrocode}
3575 %
3576 % The |\yl@steroidposition| is derived from |\ylposition| and
3577 % |\ylatombondposition| to use in the |\steroid| command as well as
3578 % in the |\steroidchain| command.
3579 % \changes{v1.02}{1998/10/31}{Inner commands \cs{yl@steroidposition}
3580 % and \cs{@steroidskeleton} are separated from the \cs{@steroid} command.}
3581 %
3582 % \begin{macrocode}
3583 \def\yl@steroidposition#1{%
3584 \ylposition{#1}{0}{0}{2}{0}% %for 1
3585 \if@ylsw \ifx\@@ylii\empty
3586 \def\@@ylii{0}\def\@@yli{0}\fi
3587 \else
3588 \ylposition{#1}{8}{3}{7}{-1}% %for 2 to 4 positions
3589 \fi
3590 \if@ylsw\ifx\@@ylii\empty
3591 \def\@@ylii{0}\def\@@yli{0}\fi\else
3592 \ylposition{#1}{10}{2}{5}{-1}% %for 6 to 7 positions
3593 \fi
3594 \if@ylsw\ifx\@@ylii\empty
3595 \def\@@ylii{-342}\def\@@yli{0}\fi\else
3596 \ylposition{#1}{-11}{0}{2}{0}%for 12 position
3597 \fi
3598 \if@ylsw\ifx\@@ylii\empty
3599 \def\@@ylii{-513}\def\@@yli{-303}\fi\else
3600 \ylposition{#1}{-5}{5}{7}{0}% %for 11 position
3601 \fi
3602 \if@ylsw\ifx\@@ylii\empty
3603 \def\@@ylii{-513}\def\@@yli{-303}\fi\else
3604 \ylposition{#1}{18}{0}{4}{-1}%for 15 to 17 positions
3605 \fi
3606 \if@ylsw\ifx\@@ylii\empty
3607 \def\@@ylii{-855}\def\@@yli{-303}\fi\else
3608 \ylatombondposition{#1}{-4}{7}% % for 5
3609 \fi
3610 \if@ylsw\ifx\@@ylii\empty
3611 \def\@@ylii{-171}\def\@@yli{-103}\fi\else
3612 \ylatombondposition{#1}{-9}{1}% % for 10
3613 \fi
3614 \if@ylsw\ifx\@@ylii\empty
3615 \def\@@ylii{-171}\def\@@yli{-303}\fi\else
3616 \ylatombondposition{#1}{-7}{1}% % for 8
3617 \fi
3618 \if@ylsw\ifx\@@ylii\empty
3619 \def\@@ylii{-513}\def\@@yli{-303}\fi\else
3620 \ylatombondposition{#1}{-8}{7}% % for 9
3621 \fi
3622 \if@ylsw\ifx\@@ylii\empty
3623 \def\@@ylii{-342}\def\@@yli{-406}\fi\else
3624 \ylatombondposition{#1}{-13}{7}% % for 14
3625 \fi
3626 \if@ylsw\ifx\@@ylii\empty
3627 \def\@@ylii{-684}\def\@@yli{-406}\fi\else
3628 \ylatombondposition{#1}{-12}{1}% % for 13
3629 \fi
3630 \if@ylsw\ifx\@@ylii\empty
3631 \def\@@ylii{-684}\def\@@yli{-606}\fi\fi%
3632 }% end of \yl@steroidposition
3633 % \end{macrocode}
3634 %
3635 % The |\@steroidskeleton| is separated from the definition of |\steroid|
3636 % so as to be used also in the definition of |\steroidchain|.
3637 % \changes{v1.02}{1998/10/31}{Inner commands \cs{yl@steroidposition}
3638 % and \cs{@steroidskeleton} are separated from the \cs{@steroid} command.}
3639 % \changes{v2.00}{1998/11/23}{Added: fused rings}
3640 %
3641 % \begin{macrocode}
3642 \def\@steroidskeleton#1#2{%
3643 \Put@Line(0,406)(-5,-3){171}% %bond 1-2
3644 \Put@Line(0,406)(5,-3){171}% %bond 1-10
3645 \Put@Line(0,0)(-5,3){171}% %bond 4-3
3646 \Put@Line(0,0)(5,3){171}% %bond 4-5
3647 \Put@Line(171,103)(0,1){200}% %bond 5-10
3648 \Put@Line(-171,103)(0,1){200}% %bond 3-2
3649 \Put@Line(342,406)(-5,-3){171}% %bond 9-10
3650 \Put@Line(342,406)(5,-3){171}% %bond 9-8
3651 \Put@Line(342,0)(-5,3){171}% %bond 6-5
3652 \Put@Line(342,0)(5,3){171}% %bond 6-7
3653 \Put@Line(513,103)(0,1){200}% %bond 7-8
3654 %%%%
3655 \Put@Line(342,406)(0,1){200}% %bond 9-11
3656 \Put@Line(513,709)(-5,-3){171}% %bond 12-11
3657 \Put@Line(513,709)(5,-3){171}% %bond 12-13
3658 \Put@Line(684,406)(0,1){200}% %bond 14-13
3659 \Put@Line(513,303)(5,3){171}% %bond 8-14
3660 %%%%
3661 \Put@Line(855,709)(-5,-3){171}% %bond 17-13
3662 \Put@Line(855,709)(5,-3){171}% %bond 17-16
3663 \Put@Line(1026,406)(0,1){200}% %bond 15-16
3664 \Put@Line(684,406)(1,0){342}% %bond 14-15
3665 % inner double bonds
3666 \@tfor\member:=#1\do{%
3667 \if\member Z%no endcyclic double bonds
3668 \else\if\member a%
3669 \Put@Line(-6,364)(-5,-3){126}% %double bond 1-2 5-6
3670 \else\if\member b%
3671 \Put@Line(-138,129)(0,1){148}% %double bond 3-2 6-7
3672 \else\if\member c%
3673 \Put@Line(-6,42)(-5,3){126}% %double bond 4-3 8-7
3674 \else\if\member d%
3675 \Put@Line(6,42)(5,3){126}% %double bond 4-5 8-8a
3676 \else\if\member e%
3677 \Put@Line(348,42)(-5,3){126}% %double bond 6-5 9-8a
3678 \else\if\member f%
3679 \Put@Line(348,42)(5,3){126}% %double bond 6-7 9-10
3680 \else\if\member g%
3681 \Put@Line(482,129)(0,1){148}% %double bond 7-8 10-10a
3682 \else\if\member h%
3683 \Put@Line(507,345)(-5,3){126}% %double bond 8-9 10a-4a
3684 \else\if\member H%
3685 \Put@Line(348,364)(5,-3){126}% %double bond 9-8 4a-10a
3686 \else\if\member i%
3687 \Put@Line(348,364)(-5,-3){126}% %double bond 9-10 4a-4b
3688 \else\if\member j%
3689 \Put@Line(6,364)(5,-3){126}% %double bond 1-10 5-4b
3690 \else\if\member k%
3691 \Put@Line(138,129)(0,1){148}% %double bond 5-10 8a-4b
3692 \else\if\member K%
3693 \Put@Line(204,129)(0,1){148}% %double bond 5-10 8a-4b
3694 \else\if\member l%
3695 \Put@Line(375,432)(0,1){148}% %double bond 9-11 4-5
3696 \else\if\member m%
3697 \Put@Line(519,667)(-5,-3){126}% %double bond 12-11 3-4
3698 \else\if\member n%
3699 \Put@Line(519,667)(5,-3){126}% %double bond 12-13 3-2
3700 \else\if\member o%
3701 \Put@Line(651,432)(0,1){148}% %double bond 13-14 1-2
3702 \else\if\member O%
3703 \Put@Line(717,432)(0,1){148}% %double bond 13-14 1-2
3704 \else\if\member p%
3705 \Put@Line(519,345)(5,3){126}% %double bond 8-14 10a-1
3706 \else\if\member q%
3707 \Put@Line(720,439)(1,0){260}% %double bond 14-15
3708 \else\if\member r%
3709 \Put@Line(993,432)(0,1){148}% %double bond 15-16 1-2
3710 \else\if\member s%
3711 \Put@Line(861,667)(5,-3){126}% %double bond 17-16 3-2
3712 \else\if\member t%
3713 \Put@Line(861,667)(-5,-3){126}% %double bond 17-13 3-4
3714 \else\if\member A%left aromatic circle
3715 \Put@oCircle(0,203){240}% %circle
3716 \else\if\member B%right aromatic circle
3717 \Put@oCircle(342,203){240}% %circle
3718 \else\if\member C%right aromatic circle
3719 \Put@oCircle(513,506){240}% %circle
3720 \else
3721 % setting fused rings
3722 \expandafter\twoCH@R\member//%
3723 \set@fusion@steroid
3724 \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi%
3725 \fi\fi\fi\fi\fi\fi\fi\fi\fi}%
3726 %exocyclic bonds and substituents
3727 \iniflag
3728 \global\drawsamesubsttrue%2002/05/30 warning on
3729 \Put@Direct(0,0){\setsixringv{#2}{0}{0}{2}{0}}% %for 1
3730 \global\drawsamesubstfalse%2002/05/30 warning off
3731 \Put@Direct(0,0){\setsixringv{#2}{8}{3}{7}{-1}}% %for 2 to 4 positions
3732 \Put@Direct(342,0){\setsixringv{#2}{10}{2}{5}{-1}}% %for 6 to 7 positions
3733 \Put@Direct(513,303){\setsixringv{#2}{-11}{0}{2}{0}}%for 12 position
3734 \Put@Direct(513,303){\setsixringv{#2}{-5}{5}{7}{0}}% %for 11 position
3735 \Put@Direct(855,303){\setsixringv{#2}{18}{0}{4}{-1}}%for 15 to 17 positions
3736 %bonds and substituents for fused positions
3737 \Put@Direct(171,103){\setatombond{#2}{-4}{7}}% % for 5
3738 \Put@Direct(171,303){\setatombond{#2}{-9}{1}}% % for 10
3739 \Put@Direct(513,303){\setatombond{#2}{-7}{1}}% % for 8
3740 \Put@Direct(342,406){\setatombond{#2}{-8}{7}}% % for 9
3741 \Put@Direct(684,406){\setatombond{#2}{-13}{7}}% % for 14
3742 \Put@Direct(684,606){\setatombond{#2}{-12}{1}}% % for 13
3743 }% end of \@steroidskeleton
3744 % \end{macrocode}
3745 % \end{macro}
3746 % \end{macro}
3747 % \end{macro}
3748 %
3749 % The macro |\set@fusion@steroid| is an inner command contained
3750 % in the definition of |\steroidskeleton|, where
3751 % the macro is used for setting an additive
3752 % or a fused ring at each bond (designated by |\@@tmpa|). The
3753 % fused ring is typeset by the inner command |\set@fusionadd@sixv|.
3754 %
3755 % \begin{macro}{\set@fusion@steroid}
3756 % \changes{v2.00}{1998/11/23}{New command: \cs{set@fusion@steroid}}
3757 % \begin{macrocode}
3758 \def\set@fusion@steroid{%
3759 \let\@@tmpa=\@tmpa
3760 \let\@@tmpb=\@tmpb
3761 \if\@tmpa a%
3762 \edef\@@tmpa{f}%
3763 \Put@Direct(0,0){\set@fusionadd@sixv}%
3764 \else\if\@tmpa A%
3765 \edef\@@tmpa{F}%
3766 \Put@Direct(0,0){\set@fusionadd@sixv}%
3767 \else\if\@tmpa b%
3768 \edef\@@tmpa{e}%
3769 \Put@Direct(0,0){\set@fusionadd@sixv}%
3770 \else\if\@tmpa B%
3771 \edef\@@tmpa{E}%
3772 \Put@Direct(0,0){\set@fusionadd@sixv}%
3773 \else\if\@tmpa c%
3774 \edef\@@tmpa{d}%
3775 \Put@Direct(0,0){\set@fusionadd@sixv}%
3776 \else\if\@tmpa C%
3777 \edef\@@tmpa{D}%
3778 \Put@Direct(0,0){\set@fusionadd@sixv}%
3779 \else\if\@tmpa d%
3780 \edef\@@tmpa{c}%
3781 \Put@Direct(0,0){\set@fusionadd@sixv}%
3782 \if@smallringsw\else
3783 \XyMTeXWarning{Unfavorable Fusion for bond `d'}%
3784 \fi
3785 \else\if\@tmpa D%
3786 \edef\@@tmpa{C}%
3787 \Put@Direct(0,0){\set@fusionadd@sixv}%
3788 \if@smallringsw\else
3789 \XyMTeXWarning{Unfavorable Fusion for bond `D'}%
3790 \fi
3791 \else\if\@tmpa e%
3792 \edef\@@tmpa{d}%
3793 \Put@Direct(342,0){\set@fusionadd@sixv}%
3794 \if@smallringsw\else
3795 \XyMTeXWarning{Unfavorable Fusion for bond `e'}%
3796 \fi
3797 \else\if\@tmpa E%
3798 \edef\@@tmpa{D}%
3799 \Put@Direct(342,0){\set@fusionadd@sixv}%
3800 \if@smallringsw\else
3801 \XyMTeXWarning{Unfavorable Fusion for bond `E'}%
3802 \fi
3803 \else\if\@tmpa f%
3804 \edef\@@tmpa{c}%
3805 \Put@Direct(342,0){\set@fusionadd@sixv}%
3806 \if@smallringsw\else
3807 \XyMTeXWarning{Unfavorable Fusion for bond `f'}%
3808 \fi
3809 \else\if\@tmpa F%
3810 \edef\@@tmpa{C}%
3811 \Put@Direct(342,0){\set@fusionadd@sixv}%
3812 \if@smallringsw\else
3813 \XyMTeXWarning{Unfavorable Fusion for bond `f'}%
3814 \fi
3815 \else\if\@tmpa g%
3816 \edef\@@tmpa{b}%
3817 \Put@Direct(342,0){\set@fusionadd@sixv}%
3818 \if@smallringsw\else
3819 \XyMTeXWarning{Unfavorable Fusion for bond `g'}%
3820 \fi
3821 \else\if\@tmpa G%
3822 \edef\@@tmpa{B}%
3823 \Put@Direct(342,0){\set@fusionadd@sixv}%
3824 \if@smallringsw\else
3825 \XyMTeXWarning{Unfavorable Fusion for bond `g'}%
3826 \fi
3827 \else\if\@tmpa h%
3828 \edef\@@tmpa{a}%
3829 \Put@Direct(342,0){\set@fusionadd@sixv}%
3830 \if@smallringsw\else
3831 \XyMTeXWarning{Forbidden Fusion for bond `h'}%
3832 \fi
3833 \else\if\@tmpa H%
3834 \edef\@@tmpa{A}%
3835 \Put@Direct(342,0){\set@fusionadd@sixv}%
3836 \if@smallringsw\else
3837 \XyMTeXWarning{Forbidden Fusion for bond `H'}%
3838 \fi
3839 \else\if\@tmpa i%
3840 \edef\@@tmpa{f}%
3841 \Put@Direct(342,0){\set@fusionadd@sixv}%
3842 \if@smallringsw\else
3843 \XyMTeXWarning{Unfavorable Fusion for bond `i'}%
3844 \fi
3845 \else\if\@tmpa I%
3846 \edef\@@tmpa{F}%
3847 \Put@Direct(342,0){\set@fusionadd@sixv}%
3848 \if@smallringsw\else
3849 \XyMTeXWarning{Unfavorable Fusion for bond `I'}%
3850 \fi
3851 \else\if\@tmpa j%
3852 \edef\@@tmpa{a}%
3853 \Put@Direct(0,0){\set@fusionadd@sixv}%
3854 \if@smallringsw\else
3855 \XyMTeXWarning{Unfavorable Fusion for bond `j'}%
3856 \fi
3857 \else\if\@tmpa J%
3858 \edef\@@tmpa{A}%
3859 \Put@Direct(0,0){\set@fusionadd@sixv}%
3860 \if@smallringsw\else
3861 \XyMTeXWarning{Unfavorable Fusion for bond `J'}%
3862 \fi
3863 \else\if\@tmpa k%
3864 \edef\@@tmpa{b}%
3865 \Put@Direct(0,0){\set@fusionadd@sixv}%
3866 \if@smallringsw\else
3867 \XyMTeXWarning{Forbidden Fusion for bond `k'}%
3868 \fi
3869 \else\if\@tmpa K%
3870 \edef\@@tmpa{B}%
3871 \Put@Direct(0,0){\set@fusionadd@sixv}%
3872 \if@smallringsw\else
3873 \XyMTeXWarning{Forbidden Fusion for bond `K'}%
3874 \fi
3875 \else\if\@tmpa l%
3876 \edef\@@tmpa{e}%
3877 \Put@Direct(513,303){\set@fusionadd@sixv}%
3878 \if@smallringsw\else
3879 \XyMTeXWarning{Unfavorable Fusion for bond `l'}%
3880 \fi
3881 \else\if\@tmpa L%
3882 \edef\@@tmpa{E}%
3883 \Put@Direct(513,303){\set@fusionadd@sixv}%
3884 \if@smallringsw\else
3885 \XyMTeXWarning{Unfavorable Fusion for bond `L'}%
3886 \fi
3887 \else\if\@tmpa m%
3888 \edef\@@tmpa{f}%
3889 \Put@Direct(513,303){\set@fusionadd@sixv}%
3890 \else\if\@tmpa M%
3891 \edef\@@tmpa{F}%
3892 \Put@Direct(513,303){\set@fusionadd@sixv}%
3893 \else\if\@tmpa n%
3894 \edef\@@tmpa{a}%
3895 \Put@Direct(513,303){\set@fusionadd@sixv}%
3896 \if@smallringsw\else
3897 \XyMTeXWarning{Unfavorable Fusion for bond `n'}%
3898 \fi
3899 \else\if\@tmpa N%
3900 \edef\@@tmpa{A}%
3901 \Put@Direct(513,303){\set@fusionadd@sixv}%
3902 \if@smallringsw\else
3903 \XyMTeXWarning{Unfavorable Fusion for bond `N'}%
3904 \fi
3905 \else\if\@tmpa o%
3906 \edef\@@tmpa{b}%
3907 \Put@Direct(513,303){\set@fusionadd@sixv}%
3908 \if@smallringsw\else
3909 \XyMTeXWarning{Forbidden Fusion for bond `o'}%
3910 \fi
3911 \else\if\@tmpa O%
3912 \edef\@@tmpa{B}%
3913 \Put@Direct(513,303){\set@fusionadd@sixv}%
3914 \if@smallringsw\else
3915 \XyMTeXWarning{Forbidden Fusion for bond `O'}%
3916 \fi
3917 \else\if\@tmpa p%
3918 \edef\@@tmpa{c}%
3919 \Put@Direct(513,303){\set@fusionadd@sixv}%
3920 \if@smallringsw\else
3921 \XyMTeXWarning{Unfavorable Fusion for bond `N'}%
3922 \fi
3923 \else\if\@tmpa P%
3924 \edef\@@tmpa{C}%
3925 \Put@Direct(513,303){\set@fusionadd@sixv}%
3926 \if@smallringsw\else
3927 \XyMTeXWarning{Unfavorable Fusion for bond `N'}%
3928 \fi
3929 \else\if\@tmpa q%
3930 \XyMTeXWarning{Mismatched dimension for bond `q'}%
3931 \else\if\@tmpa Q%
3932 \XyMTeXWarning{Mismatched dimension for bond `Q'}%
3933 \else\if\@tmpa r%
3934 \edef\@@tmpa{b}%
3935 \Put@Direct(855,303){\set@fusionadd@sixv}%
3936 \else\if\@tmpa R%
3937 \edef\@@tmpa{B}%
3938 \Put@Direct(855,303){\set@fusionadd@sixv}%
3939 \else\if\@tmpa s%
3940 \edef\@@tmpa{a}%
3941 \Put@Direct(855,303){\set@fusionadd@sixv}%
3942 \else\if\@tmpa S%
3943 \edef\@@tmpa{A}%
3944 \Put@Direct(855,303){\set@fusionadd@sixv}%
3945 \else\if\@tmpa t%
3946 \edef\@@tmpa{f}%
3947 \Put@Direct(855,303){\set@fusionadd@sixv}%
3948 \if@smallringsw\else
3949 \XyMTeXWarning{Unfavorable Fusion for bond `t'}%
3950 \fi
3951 \else\if\@tmpa T%
3952 \edef\@@tmpa{F}%
3953 \Put@Direct(855,303){\set@fusionadd@sixv}%
3954 \if@smallringsw\else
3955 \XyMTeXWarning{Unfavorable Fusion for bond `T'}%
3956 \fi
3957 \fi\fi\fi\fi\fi\fi\fi\fi%
3958 \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi%
3959 \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi%
3960 \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi%
3961 }% end of the macro \set@fusion@steroid
3962 % \end{macrocode}
3963 % \end{macro}
3964 %
3965 % \subsection{Steroids with a chain}
3966 %
3967 % The macro |\steroidchain| is used for drawing steroids.
3968 %
3969 % The macro |\steroidchain| has an argument |SUBSLIST| as well as an
3970 % optional argument |BONDLIST|.
3971 %
3972 % \begin{verbatim}
3973 % **************************************
3974 % * steroid derivatives having a chain *
3975 % **************************************
3976 %
3977 % \steroidchain[BONDLIST]{SUBSLIST}
3978 % \end{verbatim}
3979 %
3980 % The |BONDLIST| argument contains one or more
3981 % characters selected form a to t, each of which indicates
3982 % the presence of an inner (endcyclic) double bond on the corresponding
3983 % position. The character A, B, or C indicates an aromatic bond
3984 % pattern (circle). A two-character string `Z?' indicates
3985 % a double bond in the side-chain.
3986 %
3987 % \begin{verbatim}
3988 % BONDLIST =
3989 %
3990 % (double bonds for the steroid skeleton)
3991 % none: no action on the steroid skeleton
3992 % a : 1,2-double bond b : 2,3-double bond
3993 % c : 3,4-double bond d : 4,5-double bond
3994 % e : 6,5-double bond f : 6,7-double bond
3995 % g : 7,8-double bond h : 9,8-double bond
3996 % i : 9,10-double bond j : 1,10-double bond
3997 % k : 5,10-double bond l : 9,11-double bond
3998 % m : 12,11-double bond n : 12,13-double bond
3999 % o : 14,13-double bond p : 8,14-double bond
4000 % q : 14,15-double bond r : 15,16-double bond
4001 % s : 17,16-double bond t : 17,13-double bond
4002 % A : aromatic A ring B : aromatic B ring
4003 % C : aromatic C ring
4004 % \end{verbatim}
4005 %
4006 % \begin{verbatim}
4007 % (double bonds for the side chain)
4008 % Z : no action
4009 % Za : 17,20-double bond Zb : 20,22-double bond
4010 % Zc : 22,23-double bond Zd : 23,24-double bond
4011 % Ze : 24,25-double bond Zf : 25,26-double bond
4012 % Zg : 25,27-double bond
4013 % \end{verbatim}
4014 %
4015 % For a two-character indicator, you should write the BONDLIST
4016 % as, e.g.
4017 %
4018 % \begin{verbatim}
4019 % [b{Za}{Zc}...]
4020 % \end{verbatim}
4021 %
4022 % The |SUBSLIST| argument contains one or more substitution descriptors
4023 % which are separated from each other by a semicolon. Each substitution
4024 % descriptor has a locant number with a bond modifier and a substituent,
4025 % where these are separated with a double equality symbol.
4026 %
4027 % \begin{verbatim}
4028 % SUBSLIST: list of substituents
4029 %
4030 % for n = 1 to 24 (execpt fused positions)
4031 %
4032 % nD : exocyclic double bond at n-atom
4033 % n or nS : exocyclic single bond at n-atom
4034 % nA : alpha single bond at n-atom (boldface)
4035 % nB : beta single bond at n-atom (dotted line)
4036 % nSA : alpha single bond at n-atom (boldface)
4037 % nSB : beta single bond at n-atom (dotted line)
4038 % nSa : alpha (not specified) single bond at n-atom
4039 % nSb : beta (not specified) single bond at n-atom
4040 %
4041 % nSd : alpha single bond at n-atom (dotted line)
4042 % with an alternative direction to nSA
4043 % nSu : beta single bond at n-atom (boldface)
4044 % with an alternative direction to nSB
4045 % nFA : alpha single bond at n-atom (dotted line)
4046 % for ring fusion
4047 % nFB : beta single bond at n-atom (boldface)
4048 % for ring fusion
4049 % nGA : alpha single bond at n-atom (dotted line)
4050 % for the other ring fusion
4051 % nGB : beta single bond at n-atom (boldface)
4052 % for the other ring fusion
4053 % \end{verbatim}
4054 %
4055 % For numbers larger than 9 (two digits), you should designate
4056 % the SUBSLIST as
4057 %
4058 % \begin{verbatim}
4059 % {{11}A}==Cl;{{12}SA}==H;{{12}SB}==Cl; ...
4060 % \end{verbatim}
4061 %
4062 % \begin{verbatim}
4063 % for n = 5,8,9,10,13,14,and 25 (fused positions etc.)
4064 %
4065 % n or nS : exocyclic single bond at n-atom
4066 % nA : alpha single bond at n-atom (boldface)
4067 % nB : beta single bond at n-atom (dotted line)
4068 % nU : unspecified single bond at n-atom
4069 % \end{verbatim}
4070 %
4071 % \begin{verbatim}
4072 % e.g.
4073 %
4074 % \steroidchain{1==Cl;2==F;{{10}}==OH}
4075 % \steroidchain[c]{1==Cl;4==F;2==CH$_{3}$;%
4076 % {{11}SA}==OH;{{11}SB}==OH}
4077 % \steroidchain[b]{1D==O;4SA==MeO;4SB==OMe;%
4078 % ;6==Cl;7==Cl;11==Cl}
4079 % \end{verbatim}
4080 %
4081 % \changes{v1.02}{1998/10/31}{Adding \cs{ylpositionh}, \cs{if@ylsw}
4082 % \cs{ylfusedposition},
4083 % \cs{yl@shiftii}, \cs{@ylii}, \cs{@@ylii}, \cs{yl@shifti}, \cs{@yli},
4084 % \cs{@yli}, \cs{yl@xdiff} and \cs{yl@ydiff}}
4085 % \changes{v1.02}{1998/10/31}{The inner commands \cs{yl@steroidposition}
4086 % is used. The old \cs{steroid} is replaced by \cs{@steroidskeleton}.}
4087 % \changes{v2.00}{1998/11/31}{Add: fused rings}
4088 %
4089 % \begin{macro}{\steroidchain}
4090 % \begin{macrocode}
4091 \def\steroidchain{\@ifnextchar[{\@steroidchain[@}{\@steroidchain[Z]}}
4092 \def\@steroidchain[#1]#2{%
4093 %shift due to the steroid skeleton
4094 \@reset@ylsw\reset@@yl
4095 \yl@steroidposition{#2}%
4096 %shift due to the side chain
4097 \ylposition{#2}{-21}{0}{3}{0}%for 22 and 23 positions
4098 \if@ylsw \ifx\@@ylii\empty
4099 \def\@@ylii{-1026}\def\@@yli{-606}\fi
4100 \else
4101 \ylposition{#2}{-14}{5}{7}{0}%for 20 position
4102 \fi
4103 \if@ylsw\ifx\@@ylii\empty
4104 \def\@@ylii{-1026}\def\@@yli{-606}\fi\else
4105 \ylposition{#2}{-20}{3}{5}{0}%for 24 position
4106 \fi
4107 \if@ylsw\ifx\@@ylii\empty
4108 \def\@@ylii{-1197}\def\@@yli{-709}\fi\else
4109 \ylatombondposition{#2}{-24}{4}% % for 5
4110 \fi
4111 \if@ylsw\ifx\@@ylii\empty
4112 \def\@@ylii{-1397}\def\@@yli{-709}\fi\fi
4113 \if@ylsw
4114 \yl@shiftii=\@ylii
4115 \ifx\@@ylii\empty\else
4116 \advance\yl@shiftii\@@ylii\fi
4117 \yl@shifti=\@yli
4118 \ifx\@@yli\empty\else
4119 \advance\yl@shifti\@@yli\fi
4120 \advance\yl@shiftii\yl@xdiff
4121 \advance\yl@shifti\yl@ydiff
4122 \begin{sfpicture}(0,0)(-\yl@shiftii,-\yl@shifti)%
4123 \reset@yl@xydiff%1999/1/6 by S. Fujita
4124 \else
4125 \begin{sfpicture}(2000,1500)(-\shiftii,-\shifti)%
4126 \iforigpt \typeout{command `steroidchain' is based on `steroid'.}\fi%
4127 \fi
4128 % steroid skeleton
4129 \Put@Direct(0,0){\@steroidskeleton{#1}{#2}}%
4130 % bonds for the side chain (carbons 20 to 27 (except 21))
4131 \Put@Line(855,709)(0,1){200}% %bond 17-20
4132 \Put@Line(1026,1012)(-5,-3){171}% %bond 22-20
4133 \Put@Line(1026,1012)(5,-3){171}% %bond 22-23
4134 \Put@Line(1197,709)(0,1){200}% %bond 24-23
4135 \Put@Line(1197,709)(1,0){200}% %bond 24-25
4136 \Put@Line(1397,709)(3,5){103}% %bond 25-26
4137 \Put@Line(1397,709)(3,-5){103}% %bond 25-27
4138 % double bonds along the side chain
4139 \@tfor\member:=#1\do{%
4140 \expandafter\twoCH@R\member//\relax%
4141 \if\@tmpa Z\relax%
4142 \ifx\@tmpb\empty%no action
4143 \else\if\@tmpb a%
4144 \Put@Line(888,735)(0,1){148}% %double bond 17-20
4145 \else\if\@tmpb b%
4146 \Put@Line(1020,970)(-5,-3){126}% %double bond 22-20
4147 \else\if\@tmpb c%
4148 \Put@Line(1032,970)(5,-3){126}% %double bond 22-23
4149 \else\if\@tmpb d%
4150 \Put@Line(1164,735)(0,1){148}% %double bond 24-23
4151 \else\if\@tmpb e%
4152 \Put@Line(1233,742)(1,0){140}% %double bond 24-25
4153 \else\if\@tmpb f%
4154 \Put@Line(1433,715)(3,5){72}% %double bond 25-26
4155 \else\if\@tmpb g%
4156 \Put@Line(1433,697)(3,-5){72}% %double bond 25-27
4157 \fi\fi\fi\fi\fi\fi\fi\fi\fi}%
4158 % substitution on the side chain
4159 %\global\drawsamesubsttrue%2002/05/30 warning on
4160 \Put@Direct(1026,606){\setsixringv{#2}{-21}{0}{3}{0}}%for 22 and 23 positions
4161 %\global\drawsamesubstfalse%2002/05/30 warning off
4162 \Put@Direct(1026,606){\setsixringv{#2}{-14}{5}{7}{0}}%for 20 position
4163 \Put@Direct(1197,709){\setsixringv{#2}{-20}{3}{5}{0}}%for 24 position
4164 \Put@Direct(1397,709){\setatombond{#2}{-24}{4}}% % for 5
4165 \end{sfpicture}}% %end of \steroidchain macro%
4166 %</carom>
4167 % \end{macrocode}
4168 % \end{macro}
4169 %
4170 % \Finale
4171 %
4172 \endinput