Debian Codegraph @

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

raw
1 % \iffalse meta-comment
2 %% File: hetaromh.dtx
3 %
4 % Copyright 1993,1996,1998,2000,2001,2002,2004,2006,2010,2013 by Shinsaku Fujita
5 %
6 % This file is part of XyMTeX system.
7 % -------------------------------------
8 %
9 % This file is a successor to:
10 %
11 % hetaromh.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 hetaromh.dtx and hetaromh.ins
45 % and the derived file hetaromh.sty.
46 %
47 % Please report any bugs, comments, suggestions, etc. to:
48 % Shinsaku Fujita,
49 % Shonan Institute of Chemoinformatics and Mathematical Chemistry
50 % Kaneko 479-7 Ooimachi, Ashigara-Kami-Gun, Kanagawa 250-0019 Japan
51 % (old address)
52 % Ashigara Research Laboratories, Fuji Photo Film Co., Ltd.,
53 % Minami-Ashigara, Kanagawa-ken, 250-01, Japan.
54 % (old address)
55 % Department of Chemistry and Materials Technology,
56 % Kyoto Institute of Technology, \\
57 % Matsugasaki, Sakyoku, Kyoto, 606 Japan
58 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
59 % \def\j@urnalname{hetaromh}
60 % \def\versi@ndate{December 01, 1993}
61 % \def\versi@nno{ver1.00}
62 % \def\copyrighth@lder{SF} % Shinsaku Fujita
63 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
64 % \def\j@urnalname{hetaromh}
65 % \def\versi@ndate{August 16, 1996}
66 % \def\versi@nno{ver1.01}
67 % \def\copyrighth@lder{SF} % Shinsaku Fujita
68 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
69 % \def\j@urnalname{hetaromh}
70 % \def\versi@ndate{October 31, 1998}
71 % \def\versi@nno{ver1.02}
72 % \def\copyrighth@lder{SF} % Shinsaku Fujita
73 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
74 % \def\j@urnalname{hetaromh}
75 % \def\versi@ndate{December 25, 1998}
76 % \def\versi@nno{ver2.00}
77 % \def\copyrighth@lder{SF} % Shinsaku Fujita
78 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
79 % \def\j@urnalname{hetaromh}
80 % \def\versi@ndate{November 11, 2000}
81 % \def\versi@nno{ver2.00a}
82 % \def\copyrighth@lder{SF} % Shinsaku Fujita
83 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
84 % \def\j@urnalname{hetaromh}
85 % \def\versi@ndate{June 20, 2001}
86 % \def\versi@nno{ver2.01}
87 % \def\copyrighth@lder{SF} % Shinsaku Fujita
88 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
89 % \def\j@urnalname{hetaromh}
90 % \def\versi@ndate{April 30, 2002}
91 % \def\versi@nno{ver3.00}
92 % \def\copyrighth@lder{SF} % Shinsaku Fujita
93 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
94 % \def\j@urnalname{hetaromh}
95 % \def\versi@ndate{May 30, 2002}
96 % \def\versi@nno{ver4.00}
97 % \def\copyrighth@lder{SF} % Shinsaku Fujita
98 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
99 % \def\j@urnalname{hetaromh}
100 % \def\versi@ndate{August 30, 2004}
101 % \def\versi@nno{ver4.01}
102 % \def\copyrighth@lder{SF} % Shinsaku Fujita
103 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
104 % \def\j@urnalname{hetaromh}
105 % \def\versi@ndate{December 20, 2004}
106 % \def\versi@nno{ver4.02}
107 % \def\copyrighth@lder{SF} % Shinsaku Fujita
108 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
109 % \def\j@urnalname{hetaromh}
110 % \def\versi@ndate{September 5, 2006}
111 % \def\versi@nno{ver4.03b}
112 % \def\copyrighth@lder{SF} % Shinsaku Fujita
113 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
114 % \def\j@urnalname{hetaromh}
115 % \def\versi@ndate{October 01, 2010}
116 % \def\versi@nno{ver5.00}
117 % \def\copyrighth@lder{SF} % Shinsaku Fujita
118 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
119 %
120 % \fi
121 %
122 % \CheckSum{5645}
123 %% \CharacterTable
124 %% {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
125 %% 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
126 %% Digits \0\1\2\3\4\5\6\7\8\9
127 %% Exclamation \! Double quote \" Hash (number) \#
128 %% Dollar \$ Percent \% Ampersand \&
129 %% Acute accent \' Left paren \( Right paren \)
130 %% Asterisk \* Plus \+ Comma \,
131 %% Minus \- Point \. Solidus \/
132 %% Colon \: Semicolon \; Less than \<
133 %% Equals \= Greater than \> Question mark \?
134 %% Commercial at \@ Left bracket \[ Backslash \\
135 %% Right bracket \] Circumflex \^ Underscore \_
136 %% Grave accent \` Left brace \{ Vertical bar \|
137 %% Right brace \} Tilde \~}
138 %
139 % \setcounter{StandardModuleDepth}{1}
140 %
141 % \StopEventually{}
142 % \MakeShortVerb{\|}
143 %
144 % \iffalse
145 % \changes{v1.01}{1996/06/26}{first edition for LaTeX2e}
146 % \changes{v1.02}{1998/10/31}{revised edition for LaTeX2e}
147 % \changes{v2.00}{1998/12/25}{enhanced edition for LaTeX2e}
148 % \changes{v2.00a}{2000/11/11}{bug fix}
149 % \changes{v2.01}{2001/6/20}{Size reduction and clipping information}
150 % \changes{v3.00}{2002/4/30}{sfpicture enviroment etc.}
151 % \changes{v4.00}{2002/05/30}{PostScript output and ShiftPicEnv}
152 % \changes{v4.01}{2004/08/30}{Minor additions}
153 % \changes{v4.02}{2004/12/20}{Exception to wedged bonds}
154 % \changes{v4.02a}{2004/12/27}{Bug fix: \cs{ggg} to \cs{gggA}}
155 % \changes{v4.03b}{2006/9/5}{Bug fix: \cs{ggg} to \cs{gggA} revised}
156 % \changes{v5.00}{2010/10/01}{the LaTeX Project Public License}
157 % \changes{v5.01}{2013/03/19}{added \cs{pyrazinehi}, \cs{oxiraneh}, etc.}
158 % \fi
159 %
160 % \iffalse
161 %<*driver>
162 \NeedsTeXFormat{pLaTeX2e}
163 % \fi
164 \ProvidesFile{hetaromh.dtx}[2013/03/19 v5.01 XyMTeX{} package file]
165 % \iffalse
166 \documentclass{ltxdoc}
167 \GetFileInfo{hetaromh.dtx}
168 %
169 % %%XyMTeX Logo: Definition 2%%%
170 \def\UPSILON{\char'7}
171 \def\XyM{X\kern-.30em\smash{%
172 \raise.50ex\hbox{\UPSILON}}\kern-.30em{M}}
173 \def\XyMTeX{\XyM\kern-.1em\TeX}
174 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
175 \title{Heterocycles of horizontal type by {\sffamily hetaromh.sty}
176 (\fileversion) of \XyMTeX{}}
177 \author{Shinsaku Fujita \\
178 Shonan Institute of Chemoinformatics and Mathematical Chemistry, \\
179 Kaneko 479-7 Ooimachi, Ashigara-Kami-Gun, Kanagawa 250-0019 Japan
180 % % (old address)
181 % %Department of Chemistry and Materials Technology, \\
182 % %Kyoto Institute of Technology, \\
183 % %Matsugasaki, Sakyoku, Kyoto, 606-8585 Japan
184 % %% (old address)
185 % %% Ashigara Research Laboratories,
186 % %% Fuji Photo Film Co., Ltd., \\
187 % %% Minami-Ashigara, Kanagawa, 250-01 Japan
188 }
189 \date{\filedate}
190 %
191 \begin{document}
192 \maketitle
193 \DocInput{hetaromh.dtx}
194 \end{document}
195 %</driver>
196 % \fi
197 %
198 % \section{Introduction}\label{hetaromh:intro}
199 %
200 % \subsection{Options for {\sffamily docstrip}}
201 %
202 % \DeleteShortVerb{\|}
203 % \begin{center}
204 % \begin{tabular}{|l|l|}
205 % \hline
206 % \emph{option} & \emph{function}\\ \hline
207 % hetaromh & hetaromh.sty \\
208 % driver & driver for this dtx file \\
209 % \hline
210 % \end{tabular}
211 % \end{center}
212 % \MakeShortVerb{\|}
213 %
214 % \subsection{Version Information}
215 %
216 % \begin{macrocode}
217 %<*hetaromh>
218 \typeout{XyMTeX for Drawing Chemical Structural Formulas. Version 5.01}
219 \typeout{ -- Released March 19, 2013 by Shinsaku Fujita}
220 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
221 \def\j@urnalname{hetaromh}
222 \def\versi@ndate{March 19, 2013}
223 \def\versi@nno{ver5.01}
224 \def\copyrighth@lder{SF} % Shinsaku Fujita
225 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
226 \typeout{XyMTeX Macro File `\j@urnalname' (\versi@nno) <\versi@ndate>%
227 \space[\copyrighth@lder]}
228 % \end{macrocode}
229 %
230 % \section{List of commands for hetaromh.sty}
231 %
232 % \begin{verbatim}
233 %
234 % **********************************
235 % * hetaromh.sty: list of commands *
236 % **********************************
237 %
238 % <Conventions for bond-setting>
239 %
240 % \hbonda
241 % \hbondf
242 % \hbondb
243 % \hbondc
244 % \hbondd
245 % \hbonde
246 % \hbondvert
247 % \hbondverti
248 %
249 % \hskbonda
250 % \hskbondf
251 % \hskbondc
252 % \hskbondd
253 % \hskbondb
254 % \hskbonde
255 % \hskbondvert
256 % \hskbondverti
257 %
258 % \dothskbonda
259 % \dothskbondf
260 % \dothskbondc
261 % \dothskbondd
262 % \dothskbondb
263 % \dothskbonde
264 % \dothskbondvert
265 % \dothskbondverti
266 % \end{verbatim}
267 %
268 % \begin{verbatim}
269 %
270 % <Six-membered heterocycles (horizontal)>
271 %
272 % Basic Macros
273 %
274 % \sixheteroh \@sixheteroh
275 % \sixheterohi \@sixheterohi
276 %
277 % Application Macros
278 %
279 % \pyridineh \@pyridineh
280 % \pyridinehi \@pyridinehi
281 % \pyrazineh \@pyrazineh
282 % \pyrazinehi \@pyrazinehi
283 % \pyrimidineh \@pyrimidineh
284 % \pyrimidinehi \@pyrimidinehi
285 % \pyridazineh \@pyridazineh
286 % \pyridazinehi \@pyridazinehi
287 % \triazineh \@triazineh
288 % \triazinehi \@triazinehi
289 % \end{verbatim}
290 %
291 % \begin{verbatim}
292 %
293 % <Five-membered heterocycles (horizontal)>
294 %
295 % Basic Macros
296 %
297 % \fiveheteroh \@fiveheteroh
298 % \fiveheterohi \@fiveheterohi
299 %
300 % Application Macros
301 %
302 % \pyrroleh \@pyrroleh
303 % \pyrazoleh \@pyrazoleh
304 % \imidazoleh \@imidazoleh
305 % \isoxazoleh \@isoxazoleh
306 % \oxazoleh \@oxazoleh
307 %
308 % \furanh \@furanh
309 % \thiopheneh \@thiopheneh
310 %
311 % \pyrrolehi \@pyrrolehi
312 % \pyrazolehi \@pyrazolehi
313 % \imidazolehi \@imidazolehi
314 % \isoxazolehi \@isoxazolehi
315 % \oxazolehi \@oxazolehi
316 %
317 % \furanhi \@furanhi
318 % \thiophenehi \@thiophenehi
319 %
320 % \end{verbatim}
321 %
322 % \begin{verbatim}
323 %
324 % <Six-Six fused heterocycles (horizontal)>
325 %
326 % Basic Macros
327 %
328 % \decaheteroh \@decaheteroh
329 % \decaheterohi \@decaheterohi
330 %
331 % Application Macros
332 %
333 % \quinolineh \@quinolineh
334 % \quinolinehi \@quinolinehi
335 % \isoquinolineh \@isoquinolineh
336 % \isoquinolinehi \@isoquinolinehi
337 % \quinoxalineh \@quinoxalineh
338 % \quinoxalinehi \@quinoxalinehi
339 % \quinazolineh \@quinazolineh
340 % \quinazolinehi \@quinazolinehi
341 % \cinnolineh \@cinnolineh
342 % \cinnolinehi \@cinnolinehi
343 % \pteridineh \@pteridineh
344 % \pteridinehi \@pteridinehi
345 % \end{verbatim}
346 %
347 % \begin{verbatim}
348 %
349 % <Six-Five fused heterocycles (horizontal)>
350 %
351 % Basic Macros
352 %
353 % \nonaheteroh \@nonaheteroh
354 % \nonaheterohi \@nonaheterohi
355 %
356 % Application Macros
357 %
358 % \purineh \@purineh
359 % \purinehi \@purinehi
360 % \indoleh \@indoleh
361 % \indolehi \@indolehi
362 % \indolizineh \@indolizineh
363 % \indolizinehi \@indolizinehi
364 % \isoindoleh \@isoindoleh
365 % \isoindolehi \@isoindolehi
366 % \benzofuraneh \@benzofuraneh
367 % \benzofuranehi \@benzofuranehi
368 % \isobenzofuraneh \@isobenzofuraneh
369 % \isobenzofuranehi \@isobenzofuranehi
370 % \benzoxazoleh \@benzoxazoleh
371 % \benzoxazolehi \@benzoxazolehi
372 % \end{verbatim}
373 %
374 % \begin{verbatim}
375 %
376 % <Building units>
377 %
378 % \sixunith \@sixunith
379 % \fiveunith \@fiveunith
380 % \fiveunithi \@fiveunithi
381 % \end{verbatim}
382 %
383 % \begin{verbatim}
384 %
385 % <Three-membered rings>
386 %
387 % \threeheteroh \@threeheteroh
388 % \threeheterohi \@threeheterohi
389 %
390 % Application Macros
391 % \oxiraneh \oxiranehi
392 % \aziridineh \aziridinehi
393 % \thiiraneh \thiiranehi
394 % \end{verbatim}
395 %
396 % \section{Input of basic macros}
397 %
398 % To assure the compatibility to \LaTeX{}2.09 (the native mode),
399 % the commands added by \LaTeXe{} have not been used in the resulting sty
400 % files ({\sf hetaromh.sty} for the present case). Hence, the combination
401 % of |\input| and |\@ifundefined| is used to crossload sty
402 % files ({\sf chemstr.sty} for the present case) in place of the
403 % |\RequirePackage| command of \LaTeXe{}.
404 %
405 % \begin{macrocode}
406 % *************************
407 % * input of basic macros *
408 % *************************
409 \@ifundefined{setsixringv}{\input chemstr.sty\relax}{}%
410 \@ifundefined{test@vertix@decavi}{\input hetarom.sty\relax}{}%
411 \unitlength=0.1pt%
412 % \end{macrocode}
413 %
414 % \section{Various switches}
415 %
416 % These control sequences have been commented out, since they are
417 % defined elsewhere.
418 %
419 % \begin{macrocode}
420 % % ****************************
421 % % * various flags (switches) *
422 % % ****************************
423 % \newif\if@gclip \@gclipfalse%
424 % \newif\if@hclip \@hclipfalse%
425 % \newif\if@iclip \@iclipfalse%
426 % \newif\if@jclip \@jclipfalse%
427 % \def\iniflag{%
428 % \@aclipfalse \@bclipfalse\@cclipfalse\@clipfalse\@eclipfalse%
429 % \@fclipfalse\@gclipfalse\@hclipfalse\@iclipfalse\@jclipfalse%
430 % \@clipfusefalse}%
431 % \def\iniatom{%
432 % \def\aaa{}\def\bbb{}\def\ccc{}\def\ddd{}\def\eee{}\def\fff{}%
433 % \def\gggA{}\def\hhh{}\def\iii{}\def\jjj{}%
434 % \def\@aaa{}\def\@bbb{}\def\@ccc{}\def\@ddd{}\def\@eee{}\def\@fff{}%
435 % }%
436 % \def\resetbdsw{\gdef\@aaa{a}\gdef\@bbb{b}\gdef\@ccc{c}%
437 % \gdef\@ddd{d}\gdef\@eee{e}\gdef\@fff{f}}%
438 %
439 \iniatom%
440 % \end{macrocode}
441 %
442 % \section{Macros for setting bonds}
443 % \subsection{Inner double bonds}
444 %
445 % The macros |\sixheteroh| and |\fiveheteroh| use internal macros for setting
446 % inner double bonds in accordance with the presence or the absence of
447 % hetero atoms. During the processes of such setting,
448 % the inner macros |\hbonda| to |\hbondf| are used to set a bond
449 % on each edge of a six- or five-membered ring; and
450 % the inner macros |\hbondvert| and |\hbondverti| draw vertical bonds
451 % of a five-membered ring.
452 %
453 % Note that
454 % comments (conerning locant numbers) on the end of each row have
455 % lost the exact meaning,
456 % since such a command moiety is used in many macros after copying.
457 %
458 % \begin{verbatim}
459 % ******************************
460 % * setting inner double bonds *
461 % ******************************
462 %
463 % b
464 % (bbb) 2 3 (ccc)
465 % a ----- c
466 % * *
467 % the original point ===> 1 * (aaa) * 4 (ddd)
468 % (0,0) * * c
469 % f -----
470 % (fff) 6 5 (eee)
471 % e
472 % \end{verbatim}
473 %
474 % \begin{macro}{\hbonda}
475 % The macro |\hbonda| refers to the control sequences representing
476 % atoms on both of the terminal vertices (|\aaa| and |\bbb|) and
477 % examine whether these are empty or not. Thereby,
478 % it decides the vertices to be truncated.
479 %
480 % \begin{macrocode}
481 % bond between 1 and 2
482 \def\hbonda{%
483 \ifx\aaa\empty%
484 \ifx\bbb\empty%
485 \Put@Line(42,6)(3,5){78}% %double bond 1-2
486 \else%
487 \Put@Line(42,6)(3,5){62}% %double bond 1-2
488 \fi%
489 \else%
490 \ifx\bbb\empty%
491 \Put@Line(57,36)(3,5){62}% %double bond 1-2
492 \else%
493 \Put@Line(57,36)(3,5){62}% %double bond 1-2
494 \fi\fi}%
495 % \end{macrocode}
496 % \end{macro}
497 %
498 % \begin{macro}{\hbondf}
499 % The macro |\hbondf| refers to the control sequences representing
500 % atoms on both of the terminal vertices (|\aaa| and |\fff|) and
501 % examine whether these are empty or not. Thereby,
502 % it decides the vertices to be truncated.
503 %
504 % \begin{macrocode}
505 % bond between 1 and 6
506 \def\hbondf{%
507 \ifx\aaa\empty%
508 \ifx\fff\empty%
509 \Put@Line(42,-6)(3,-5){78}% %double bond 1-6
510 \else%
511 \Put@Line(42,-6)(3,-5){62}% %double bond 1-6
512 \fi%
513 \else%
514 \ifx\fff\empty%
515 \Put@Line(57,-36)(3,-5){62}% %double bond 1-6
516 \else%
517 \Put@Line(57,-36)(3,-5){62}% %double bond 1-6
518 \fi\fi}%
519 % \end{macrocode}
520 % \end{macro}
521 %
522 % \begin{macro}{\hbondb}
523 % The macro |\hbondf| refers to the control sequences representing
524 % atoms on both of the terminal vertices (|\bbb| and |\ccc|) and
525 % examine whether these are empty or not. Thereby,
526 % it decides the vertices to be truncated.
527 %
528 % \begin{macrocode}
529 % bond between 3 and 2
530 \def\hbondb{%
531 \ifx\bbb\empty%
532 \ifx\ccc\empty%
533 \Put@Line(129,138)(1,0){148}% %double bond 2-3
534 \else%
535 \Put@Line(129,138)(1,0){134}% %double bond 3-2
536 \fi%
537 \else%
538 \ifx\ccc\empty%
539 \Put@Line(143,138)(1,0){134}% %double bond 3-2
540 \else%
541 \Put@Line(143,138)(1,0){110}% %double bond 3-2
542 \fi\fi}%
543 % \end{macrocode}
544 % \end{macro}
545 %
546 % \begin{macro}{\hbondc}
547 % The macro |\hbondc| refers to the control sequences representing
548 % atoms on both of the terminal vertices (|\ddd| and |\ccc|) and
549 % examine whether these are empty or not. Thereby,
550 % it decides the vertices to be truncated.
551 %
552 % \begin{macrocode}
553 % bond between 4 and 3
554 \def\hbondc{%
555 \ifx\ddd\empty%
556 \ifx\ccc\empty%
557 \Put@Line(364,6)(-3,5){78}% %double bond 4-3
558 \else%
559 \Put@Line(364,6)(-3,5){62}% %double bond 4-3
560 \fi%
561 \else%
562 \ifx\ccc\empty%
563 \Put@Line(349,36)(-3,5){62}% %double bond 4-3
564 \else%
565 \Put@Line(349,36)(-3,5){62}% %double bond 4-3
566 \fi\fi}%
567 % \end{macrocode}
568 % \end{macro}
569 %
570 % \begin{macro}{\hbondd}
571 % The macro |\hbondf| refers to the control sequences representing
572 % atoms on both of the terminal vertices (|\ddd| and |\eee|) and
573 % examine whether these are empty or not. Thereby,
574 % it decides the vertices to be truncated.
575 %
576 % \begin{macrocode}
577 % bond between 4 and 5
578 \def\hbondd{%
579 \ifx\ddd\empty%
580 \ifx\eee\empty%
581 \Put@Line(364,-6)(-3,-5){78}% %double bond 4-5
582 \else%
583 \Put@Line(364,-6)(-3,-5){62}% %double bond 4-5
584 \fi%
585 \else%
586 \ifx\eee\empty%
587 \Put@Line(349,-36)(-3,-5){62}% %double bond 4-5
588 \else%
589 \Put@Line(349,-36)(-3,-5){62}% %double bond 4-5
590 \fi\fi}%
591 % \end{macrocode}
592 % \end{macro}
593 %
594 % \begin{macro}{\hbonde}
595 % The macro |\hbonde| refers to the control sequences representing
596 % atoms on both of the terminal vertices (|\fff| and |\eee|) and
597 % examine whether these are empty or not. Thereby,
598 % it decides the vertices to be truncated.
599 %
600 % \begin{macrocode}
601 % bond between 5 and 6
602 \def\hbonde{%
603 \ifx\fff\empty%
604 \ifx\eee\empty%
605 \Put@Line(129,-138)(1,0){148}% %double bond 6-5
606 \else%
607 \Put@Line(129,-138)(1,0){134}% %double bond 5-6
608 \fi%
609 \else%
610 \ifx\eee\empty%
611 \Put@Line(143,-138)(1,0){134}% %double bond 5-6
612 \else%
613 \Put@Line(143,-138)(1,0){110}% %double bond 5-6
614 \fi\fi}%
615 % \end{macrocode}
616 % \end{macro}
617 %
618 % \begin{macro}{\hbondvert}
619 % The macro |\hbondvert| refers to the control sequences representing
620 % atoms on both of the terminal vertices (|\fff| and |\bbb|) and
621 % examine whether these are empty or not. Thereby,
622 % it decides the vertices to be truncated.
623 %
624 % \begin{macrocode}
625 % vertical inner bond for five-membered rings
626 \def\hbondvert{%
627 \ifx\fff\empty%
628 \ifx\bbb\empty%
629 \Put@Line(136,-138)(0,1){277}% %double bond 4-3
630 \else%
631 \Put@Line(136,-138)(0,1){258}% %double bond 4-3
632 \fi%
633 \else%
634 \ifx\bbb\empty%
635 \Put@Line(136,-120)(0,1){258}% %double bond 4-3
636 \else
637 \Put@Line(136,-120)(0,1){239}% %double bond 4-3
638 \fi\fi}%
639 % \end{macrocode}
640 % \end{macro}
641 %
642 % \begin{macro}{\hbondverti}
643 % The macro |\hbondverti| refers to the control sequences representing
644 % atoms on both of the terminal vertices (|\ccc| and |\eee|) and
645 % examine whether these are empty or not. Thereby,
646 % it decides the vertices to be truncated.
647 %
648 % \begin{macrocode}
649 % horizontal inner bond for five-membered rings (inverse type)
650 \def\hbondverti{%
651 \ifx\eee\empty%
652 \ifx\ccc\empty%
653 \Put@Line(270,-138)(0,0){277}% %double bond 4-3
654 \else%
655 \Put@Line(270,-138)(0,1){258}% %double bond 4-3
656 \fi%
657 \else%
658 \ifx\ccc\empty%
659 \Put@Line(270,-120)(0,1){258}% %double bond 4-3
660 \else%
661 \Put@Line(270,-120)(0,1){239}% %double bond 4-3
662 \fi\fi}%
663 % \end{macrocode}
664 % \end{macro}
665 %
666 % \subsection{Skeletal bonds}
667 %
668 % The macros |\sixheteroh| and |\fiveheteroh| use inner macros for setting
669 % skeletal bonds in accordance with the presence or the absence of
670 % hetero atoms. During the processes of such setting,
671 % the inner macros |\skbonda| to |\skbondf| are used to set a bond
672 % on each edge of a six- or five-membered ring; and
673 % the inner macros |\hskibondverti| to |\hskibondverti| draw vertical bonds
674 % of a five-membered ring.
675 %
676 % \begin{verbatim}
677 % ********************************************
678 % * setting skeletal bonds (horizontal type) *
679 % ********************************************
680 % The following numbering is adopted in this macro.
681 %
682 % b
683 % (bbb) 2 3 (ccc)
684 % a ----- c
685 % * *
686 % the original point ===> 1 * (aaa) * 4 (ddd)
687 % (0,0) * * d
688 % f -----
689 % (fff) 6 5 (eee)
690 % e
691 % \end{verbatim}
692 %
693 % \begin{macro}{\hskbonda}
694 % The macro |\hskbonda| refers to the control sequences representing
695 % atoms on both of the terminal vertices (|\aaa| and |\bbb|) and
696 % examine whether these are empty or not. Thereby,
697 % it decides the vertices to be truncated.
698 %
699 % \begin{macrocode}
700 %bond between 1 and 2
701 \def\hskbonda{%
702 \ifx\aaa\empty%
703 \ifx\bbb\empty%
704 \Put@Line(0,0)(3,5){103}% %bond 1-2
705 \else%
706 \Put@Line(0,0)(3,5){79}% %bond 1-2
707 \fi%
708 \else%
709 \ifx\bbb\empty%
710 \Put@Line(24,40)(3,5){79}% %bond 1-2
711 \else%
712 \Put@Line(24,40)(3,5){62}% %bond 1-2
713 \fi\fi}%
714 % \end{macrocode}
715 % \end{macro}
716 %
717 % \begin{macro}{\hskbondf}
718 % The macro |\hskbondf| refers to the control sequences representing
719 % atoms on both of the terminal vertices (|\aaa| and |\fff|) and
720 % examine whether these are empty or not. Thereby,
721 % it decides the vertices to be truncated.
722 %
723 % \begin{macrocode}
724 %bond between 1 and 6
725 \def\hskbondf{%
726 \ifx\aaa\empty%
727 \ifx\fff\empty
728 \Put@Line(0,0)(3,-5){103}% %bond 1-6
729 \else%
730 \Put@Line(0,0)(3,-5){79}% %bond 1-6
731 \fi%
732 \else%
733 \ifx\fff\empty%
734 \Put@Line(24,-40)(3,-5){79}% %bond 1-6
735 \else%
736 \Put@Line(24,-40)(3,-5){62}% %bond 1-6
737 \fi\fi}%
738 % \end{macrocode}
739 % \end{macro}
740 %
741 % \begin{macro}{\hskbondc}
742 % The macro |\hskbondc| refers to the control sequences representing
743 % atoms on both of the terminal vertices (|\ddd| and |\ccc|) and
744 % examine whether these are empty or not. Thereby,
745 % it decides the vertices to be truncated.
746 %
747 % \begin{macrocode}
748 %bond between 4 and 3
749 \def\hskbondc{%
750 \ifx\ddd\empty%
751 \ifx\ccc\empty%
752 \Put@Line(406,0)(-3,5){103}% %bond 4-3
753 \else%
754 \Put@Line(406,0)(-3,5){79}% %bond 4-3
755 \fi%
756 \else%
757 \ifx\ccc\empty%
758 \Put@Line(382,40)(-3,5){79}% %bond 4-3
759 \else%
760 \Put@Line(382,40)(-3,5){62}% %bond 4-3
761 \fi\fi}%
762 % \end{macrocode}
763 % \end{macro}
764 %
765 % \begin{macro}{\hskbondd}
766 % The macro |\hskbondd| refers to the control sequences representing
767 % atoms on both of the terminal vertices (|\ddd| and |\eee|) and
768 % examine whether these are empty or not. Thereby,
769 % it decides the vertices to be truncated.
770 %
771 % \begin{macrocode}
772 %bond between 4 and 5
773 \def\hskbondd{%
774 \ifx\ddd\empty%
775 \ifx\eee\empty%
776 \Put@Line(406,0)(-3,-5){103}% %bond 4-5
777 \else%
778 \Put@Line(406,0)(-3,-5){79}% %bond 4-5
779 \fi%
780 \else%
781 \ifx\eee\empty%
782 \Put@Line(382,-40)(-3,-5){79}% %bond 4-5
783 \else%
784 \Put@Line(382,-40)(-3,-5){62}% %bond 4-5
785 \fi\fi}%
786 % \end{macrocode}
787 % \end{macro}
788 %
789 % \begin{macro}{\hskbondb}
790 % The macro |\hskbondb| refers to the control sequences representing
791 % atoms on both of the terminal vertices (|\bbb| and |\ccc|) and
792 % examine whether these are empty or not. Thereby,
793 % it decides the vertices to be truncated.
794 %
795 % \begin{macrocode}
796 %bond between 3 and 2
797 \def\hskbondb{%
798 \ifx\bbb\empty%
799 \ifx\ccc\empty%
800 \Put@Line(103,171)(1,0){200}% %bond 2-3
801 \else%
802 \Put@Line(103,171)(1,0){160}% %bond 3-2
803 \fi%
804 \else%
805 \ifx\ccc\empty%
806 \Put@Line(143,171)(1,0){160}% %bond 3-2
807 \else%
808 \Put@Line(143,171)(1,0){120}% %bond 3-2
809 \fi\fi}%
810 % \end{macrocode}
811 % \end{macro}
812 %
813 % \begin{macro}{\hskbonde}
814 % The macro |\hskbonde| refers to the control sequences representing
815 % atoms on both of the terminal vertices (|\eee| and |\fff|) and
816 % examine whether these are empty or not. Thereby,
817 % it decides the vertices to be truncated.
818 %
819 % \begin{macrocode}
820 %bond between 5 and 6
821 \def\hskbonde{%
822 \ifx\eee\empty%
823 \ifx\fff\empty%
824 \Put@Line(103,-171)(1,0){200}% %bond 6-5
825 \else%
826 \Put@Line(143,-171)(1,0){160}% %bond 5-6
827 \fi%
828 \else%
829 \ifx\fff\empty%
830 \Put@Line(103,-171)(1,0){160}% %bond 5-6
831 \else%
832 \Put@Line(143,-171)(1,0){120}% %bond 5-6
833 \fi\fi}%
834 % \end{macrocode}
835 % \end{macro}
836 %
837 % \begin{macro}{\hskbondvert}
838 % The macro |\hskbondvert| refers to the control sequences representing
839 % atoms on both of the terminal vertices (|\bbb| and |\fff|) and
840 % examine whether these are empty or not. Thereby,
841 % it decides the vertices to be truncated.
842 %
843 % \begin{macrocode}
844 %vertical bond for five-membered rings
845 \def\hskbondvert{%
846 \ifx\fff\empty%
847 \ifx\bbb\empty%
848 \Put@Line(103,-171)(0,1){342}% %bond 4-3
849 \else%
850 \Put@Line(103,-171)(0,1){300}% %bond 4-3
851 \fi%
852 \else%
853 \ifx\bbb\empty%
854 \Put@Line(103,171)(0,-1){300}% %bond 4-3
855 \else%
856 \Put@Line(103,-129)(0,1){258}% %bond 4-3
857 \fi\fi}%
858 % \end{macrocode}
859 % \end{macro}
860 %
861 % \begin{macro}{\hskbondverti}
862 % The macro |\hskbondverti| refers to the control sequences representing
863 % atoms on both of the terminal vertices (|\eee| and |\ccc|) and
864 % examine whether these are empty or not. Thereby,
865 % it decides the vertices to be truncated.
866 %
867 % \begin{macrocode}
868 %vertical bond for five-membered rings (inverse type)
869 \def\hskbondverti{%
870 \ifx\eee\empty%
871 \ifx\ccc\empty%
872 \Put@Line(303,-171)(0,1){342}% %bond 4-3
873 \else%
874 \Put@Line(303,-171)(0,1){300}% %bond 4-3
875 \fi%
876 \else%
877 \ifx\ccc\empty%
878 \Put@Line(303,171)(0,-1){300}% %bond 4-3
879 \else%
880 \Put@Line(303,-129)(0,1){258}% %bond 4-3
881 \fi\fi}%
882 % \end{macrocode}
883 % \end{macro}
884 %
885 % \subsection{Dotted Skeletal Bonds}
886 %
887 % The macros |\sixfuseh| etc. use inner macros for setting
888 % skeletal bonds in accordance with the presence or the absence of
889 % hetero atoms. During the processes of such setting,
890 % the inner macros |\dothskbonda| to |\dothskbondf| are used
891 % to set a dotted bond on each edge of a six- or five-membered ring.
892 %
893 % \begin{macro}{\dothskbonda}
894 % The macro |\dothskbonda| is the dotted counterpart of |\hskbonda|,
895 % which refers to the control sequences representing
896 % atoms on both of the terminal vertices (|\aaa| and |\bbb|) and
897 % examine whether these are empty or not. Thereby,
898 % it decides the vertices to be truncated.
899 %
900 % \begin{macrocode}
901 %bond between 1 and 2
902 \def\dothskbonda{%
903 \ifx\aaa\empty%
904 \ifx\bbb\empty%
905 \dotorline(0,0)(3,5){103}/(0,0)(103,171)%
906 \else%
907 \dotorline(0,0)(3,5){79}/(0,0)(79,132)%
908 \fi%
909 \else%
910 \ifx\bbb\empty%
911 \dotorline(24,40)(3,5){79}/(24,40)(103,171)%
912 \else%
913 \dotorline(24,40)(3,5){62}/(24,40)(86,143)%
914 \fi\fi}%
915 % \end{macrocode}
916 % \end{macro}
917 %
918 % \begin{macro}{\dothskbondb}
919 % The macro |\dothskbondb| is the dotted counterpart of |\hskbondb|,
920 % which refers to the control sequences representing
921 % atoms on both of the terminal vertices (|\bbb| and |\ccc|) and
922 % examine whether these are empty or not. Thereby,
923 % it decides the vertices to be truncated.
924 %
925 % \begin{macrocode}
926 %bond between 3 and 2
927 \def\dothskbondb{%
928 \ifx\bbb\empty%
929 \ifx\ccc\empty%
930 \dotorline(103,171)(1,0){200}/(103,171)(303,171)%
931 \else%
932 \dotorline(103,171)(1,0){160}/(103,171)(263,171)%
933 \fi%
934 \else%
935 \ifx\ccc\empty%
936 \dotorline(143,171)(1,0){160}/(143,171)(303,171)%
937 \else%
938 \dotorline(143,171)(1,0){120}/(143,171)(263,171)%
939 \fi\fi}%
940 % \end{macrocode}
941 % \end{macro}
942 %
943 % \begin{macro}{\dothskbondc}
944 % The macro |\dothskbondc| is the dotted counterpart of |\hskbondc|,
945 % which refers to the control sequences representing
946 % atoms on both of the terminal vertices (|\ddd| and |\ccc|) and
947 % examine whether these are empty or not. Thereby,
948 % it decides the vertices to be truncated.
949 %
950 % \begin{macrocode}
951 %bond between 4 and 3
952 \def\dothskbondc{%
953 \ifx\ddd\empty%
954 \ifx\ccc\empty%
955 \dotorline(406,0)(-3,5){103}/(406,0)(303,171)%
956 \else%
957 \dotorline(406,0)(-3,5){79}/(406,0)(327,132)%
958 \fi%
959 \else%
960 \ifx\ccc\empty%
961 \dotorline(382,40)(-3,5){79}/(382,40)(303,171)%
962 \else%
963 \dotorline(382,40)(-3,5){62}/(382,40)(320,143)%
964 \fi\fi}%
965 % \end{macrocode}
966 % \end{macro}
967 %
968 % \begin{macro}{\dothskbondd}
969 % The macro |\dothskbondd| is the dotted counterpart of |\hskbondd|,
970 % which refers to the control sequences representing
971 % atoms on both of the terminal vertices (|\ddd| and |\eee|) and
972 % examine whether these are empty or not. Thereby,
973 % it decides the vertices to be truncated.
974 %
975 % \begin{macrocode}
976 %bond between 4 and 5
977 \def\dothskbondd{%
978 \ifx\ddd\empty%
979 \ifx\eee\empty%
980 \dotorline(406,0)(-3,-5){103}/(406,0)(303,-171)%
981 \else%
982 \dotorline(406,0)(-3,-5){79}/(406,0)(327,-132)%
983 \fi%
984 \else%
985 \ifx\eee\empty%
986 \dotorline(382,-40)(-3,-5){79}/(382,-40)(303,-171)%
987 \else%
988 \dotorline(382,-40)(-3,-5){62}/(382,-40)(320,-143)%
989 \fi\fi}%
990 % \end{macrocode}
991 % \end{macro}
992 %
993 % \begin{macro}{\dothskbonde}
994 % The macro |\dothskbonde| is the dotted counterpart of |\hskbonde|,
995 % which refers to the control sequences representing
996 % atoms on both of the terminal vertices (|\eee| and |\fff|) and
997 % examine whether these are empty or not. Thereby,
998 % it decides the vertices to be truncated.
999 %
1000 % \begin{macrocode}
1001 %bond between 5 and 6
1002 \def\dothskbonde{%
1003 \ifx\eee\empty%
1004 \ifx\fff\empty%
1005 \dotorline(103,-171)(1,0){200}/(103,-171)(303,-171)%
1006 \else%
1007 \dotorline(143,-171)(1,0){160}/(143,-171)(303,-171)%
1008 \fi%
1009 \else%
1010 \ifx\fff\empty%
1011 \dotorline(103,-171)(1,0){160}/(103,-171)(263,-171)%
1012 \else%
1013 \dotorline(143,-171)(1,0){120}/(143,-171)(263,-171)%
1014 \fi\fi}%
1015 % \end{macrocode}
1016 % \end{macro}
1017 %
1018 % \begin{macro}{\dothskbondf}
1019 % The macro |\dothskbondf| is the dotted counterpart of |\hskbondf|,
1020 % which refers to the control sequences representing
1021 % atoms on both of the terminal vertices (|\aaa| and |\fff|) and
1022 % examine whether these are empty or not. Thereby,
1023 % it decides the vertices to be truncated.
1024 %
1025 % \begin{macrocode}
1026 %bond between 1 and 6
1027 \def\dothskbondf{%
1028 \ifx\aaa\empty%
1029 \ifx\fff\empty
1030 \dotorline(0,0)(3,-5){103}/(0,0)(103,-171)%
1031 \else%
1032 \dotorline(0,0)(3,-5){79}/(0,0)(79,-131)%
1033 \fi%
1034 \else%
1035 \ifx\fff\empty%
1036 \dotorline(24,-40)(3,-5){79}/(24,-40)(103,-171)%
1037 \else%
1038 \dotorline(24,-40)(3,-5){62}/(24,-40)(86,-143)%
1039 \fi\fi}%
1040 % \end{macrocode}
1041 % \end{macro}
1042 %
1043 % \begin{macro}{\dothskbondvert}
1044 % The macro |\dothskbondvert| refers to the control sequences representing
1045 % atoms on both of the terminal vertices (|\bbb| and |\fff|) and
1046 % examine whether these are empty or not. Thereby,
1047 % it decides the vertices to be truncated.
1048 %
1049 % \begin{macrocode}
1050 %vertical bond for five-membered rings
1051 \def\dothskbondvert{%
1052 \ifx\fff\empty%
1053 \ifx\bbb\empty%
1054 \dotorline(103,-171)(0,1){342}/(103,-171)(103,171)%
1055 \else%
1056 \dotorline(103,-171)(0,1){300}/(103,-171)(103,129)%
1057 \fi%
1058 \else%
1059 \ifx\bbb\empty%
1060 \dotorline(103,171)(0,-1){300}/(103,171)(103,-129)%
1061 \else%
1062 \dotorline(103,-129)(0,1){258}/(103,-129)(103,129)%
1063 \fi\fi}%
1064 % \end{macrocode}
1065 % \end{macro}
1066 %
1067 % \begin{macro}{\dothskbondverti}
1068 % The macro |\dothskbondverti| refers to the control sequences representing
1069 % atoms on both of the terminal vertices (|\eee| and |\ccc|) and
1070 % examine whether these are empty or not. Thereby,
1071 % it decides the vertices to be truncated.
1072 %
1073 % \begin{macrocode}
1074 %vertical bond for five-membered rings (inverse type)
1075 \def\dothskbondverti{%
1076 \ifx\eee\empty%
1077 \ifx\ccc\empty%
1078 \dotorline(303,-171)(0,1){342}/(303,-171)(303,171)%
1079 \else%
1080 \dotorline(303,-171)(0,1){300}/(303,-171)(303,129)%
1081 \fi%
1082 \else%
1083 \ifx\ccc\empty%
1084 \dotorline(303,171)(0,-1){300}/(303,171)(303,-129)%
1085 \else%
1086 \dotorline(303,-129)(0,1){258}/(303,-129)(303,129)%
1087 \fi\fi}%
1088 % \end{macrocode}
1089 % \end{macro}
1090 %
1091 % The macro |\set@skel@bondh| is used in |\sixfuseh| etc.
1092 % for setting skeletal bonds (outer bonds), when |\@aaa| etc.
1093 % (produced by |\csname|...|\endcsname|) are equal to `a'
1094 % etc. (given as \#2). Thinline, thickline and dotted-line
1095 % skeletal bonds are available.
1096 %
1097 % \changes{v4.02}{2004/12/20}{The positions of \cs{@skbondlisttrue} are changed.}
1098 % \changes{v5.00}{2010/10/01}{For bond coloring}
1099 %
1100 % \begin{macro}{\set@skel@bondh}
1101 % \begin{macrocode}
1102 \def\set@skel@bondh#1#2#3{%
1103 \expandafter\if\csname @#2#2#2\endcsname #2\relax%OK
1104 % \if\@aaa #2\relax%OK
1105 \def\skbondreplace{#3}%
1106 \@skbondlistfalse
1107 \@tfor\member:=#1\do{%
1108 \expandafter\twoCH@@R\member//%
1109 \if\@@tmpa #2\relax%
1110 \if\@@tmpb A\relax%
1111 \@skbondlisttrue
1112 \expandafter\csname dothskbond#3\endcsname% \dothskbonda etc.
1113 % \@skbondlisttrue
1114 \else\if\@@tmpb B\relax%
1115 \@skbondlisttrue
1116 {\thicklines
1117 \expandafter\csname hskbond#3\endcsname% \hskbonda etc.
1118 }%
1119 % \@skbondlisttrue
1120 \else%%%added for color 2010/10/01
1121 \@skbondlisttrue%
1122 \put(0,0){\@@tmpb}%
1123 \fi\fi
1124 \fi%
1125 }%
1126 \if@skbondlist\else
1127 {\thinlines
1128 \expandafter\csname hskbond#3\endcsname% \hskbonda etc.
1129 }%
1130 \fi%
1131 \else
1132 \expandafter\ifx\csname @#2#2#2\endcsname \empty\relax%
1133 % \ifx\@aaa\empty\relax
1134 \@tfor\member:=#1\do{%
1135 \expandafter\twoCH@@R\member//%
1136 \if\@@tmpa #2\relax%
1137 \XyMTeXWarning{Unavailable bond `#2' in SKBONDLIST}\fi
1138 }%
1139 \fi\fi
1140 }% end of \set@skel@bondh
1141 % \end{macrocode}
1142 % \end{macro}
1143 %
1144 % \section{Six-membered heterocyles}
1145 % \subsection{Horizontal type}
1146 %
1147 % The standard skeleton of a six-membered heterocycle is selected
1148 % to have the following locant numbers.
1149 %
1150 % \begin{verbatim}
1151 % *************************
1152 % * sixhetero derivatives *
1153 % * (horizontal type) *
1154 % *************************
1155 % The following numbering is adopted in this macro.
1156 %
1157 % b
1158 % 2 3
1159 % a ----- c
1160 % * *
1161 % the original point ===> 1 * * 4
1162 % (0,0) * * d
1163 % f -----
1164 % 6 5
1165 % e
1166 %
1167 % \end{verbatim}
1168 %
1169 % The macro |\sixheterovh| has two arguments |ATOMLIST| and |SUBSLIST|
1170 % as well as an optional argument |BONDLIST|.
1171 % Two optional arguments |SKBONDLIST| and |OMIT| are added to
1172 % treat stereochemical information or other bond situations.
1173 %
1174 % \begin{verbatim}
1175 % \sixheteroh(SKBONDLIST)[BONDLIST]{ATOMLIST}{SUBSLIST}[OMIT]
1176 % \end{verbatim}
1177 %
1178 % The |SKBONDLIST| argument contains pairs of two alphabets in
1179 % parentheses, e.g. (\{bA\}\{fB\}). Each pair contains a lowercase
1180 % character selected from bond specifiers `a' to `f' and a uppercase
1181 % character `A' or `B'.
1182 %
1183 % The |BONDLIST| argument contains one
1184 % character selected from a to f, each of which indicates the presence of
1185 % an inner (endcyclic) double bond on the corresponding position.
1186 % The option `A' represents an aromatic circle. The option
1187 % `$n+$' ($n=1$ to $6$) represents a plus charge on a hetero atom
1188 % at the $n$-position.
1189 %
1190 % \begin{verbatim}
1191 % BONDLIST =
1192 %
1193 % none or r : sixhetero (right-handed)
1194 % l : sixhetero (left-handed)
1195 % a : 1,2-double bond
1196 % b : 2,3-double bond
1197 % c : 4,3-double bond
1198 % d : 4,5-double bond
1199 % e : 5,6-double bond
1200 % f : 6,1-double bond
1201 % A : aromatic circle
1202 % {n+} : plus at the n-nitrogen atom (n = 1 to 6)
1203 % \end{verbatim}
1204 %
1205 % The |ATOMLIST| argument contains one or more heteroatom descriptors
1206 % which are separated from each other by a semicolon. Each heteroatom
1207 % descriptor consists of a locant number and a heteroatom,
1208 % where these are separated with a double equality symbol.
1209 %
1210 % \begin{verbatim}
1211 % ATOMLIST: list of heteroatoms (max 6 atoms)
1212 %
1213 % for n = 1 to 6
1214 %
1215 % n : Hetero atom, e.g. N, O, etc. at n-position,
1216 % e.g. 1==N for N at 1-position
1217 % \end{verbatim}
1218 %
1219 % The |SUBSLIST| argument contains one or more substitution descriptors
1220 % which are separated from each other by a semicolon. Each substitution
1221 % descriptor has a locant number with a bond modifier and a substituent,
1222 % where these are separated with a double equality symbol.
1223 %
1224 % \begin{verbatim}
1225 % SUBSLIST: list of substituents (max 6 substitution positions)
1226 %
1227 % for n = 1 to 6
1228 %
1229 % nD : exocyclic double bond at n-atom
1230 % n or nS : exocyclic single bond at n-atom
1231 % nA : alpha single bond at n-atom
1232 % nB : beta single bond at n-atom
1233 % nSA : alpha single bond at n-atom (boldface)
1234 % nSB : beta single bond at n-atom (dotted line)
1235 % nSa : alpha (not specified) single bond at n-atom
1236 % nSb : beta (not specified) single bond at n-atom
1237 %
1238 % nSd : alpha single bond at n-atom (dotted line)
1239 % with an alternative direction to nSA
1240 % nSu : beta single bond at n-atom (boldface)
1241 % with an alternative direction to nSB
1242 % nFA : alpha single bond at n-atom (dotted line)
1243 % for ring fusion
1244 % nFB : beta single bond at n-atom (boldface)
1245 % for ring fusion
1246 % nGA : alpha single bond at n-atom (dotted line)
1247 % for the other ring fusion
1248 % nGB : beta single bond at n-atom (boldface)
1249 % for the other ring fusion
1250 % \end{verbatim}
1251 %
1252 % The argument |OMIT| represents one or more bonds to be omitted.
1253 % The omitted edges may be regarded as both fused and non-fused
1254 % positions.
1255 %
1256 % \begin{verbatim}
1257 % OMIT: one or more bonds omitted (a, b, c, d, e, or f)
1258 % \end{verbatim}
1259 %
1260 % Several examples are shown as follows.
1261 % \begin{verbatim}
1262 % e.g.
1263 %
1264 % \sixheteroh{1==N}{1==Cl;2==F}
1265 % \sixheteroh[c]{1==N}{1==Cl;4==F;2==CH$_{3}$}
1266 % \sixheteroh[eb]{1==N}{1D==O;4SA==MeO;4SB==OMe;5==Cl;6==Cl}
1267 % \end{verbatim}
1268 %
1269 % The definition of |\sixheteroh| uses a picture environment and
1270 % consists of the following unit processes:
1271 % \begin{enumerate}
1272 % \item treatment of atom list,
1273 % \item placing outer skeletons,
1274 % \item placing inner double bonds,
1275 % \item setting hetero atoms, and
1276 % \item placing substituents by |\setsixringh|.
1277 % \end{enumerate}
1278 %
1279 % \changes{v1.02}{1998/10/31}{Adding \cs{ylpositionh}, \cs{if@ylsw},
1280 % \cs{yl@shifti}, \cs{@ylii}, \cs{yl@shiftii}, \cs{@ylii},
1281 % \cs{yl@xdiff} and \cs{yl@ydiff}}
1282 % \changes{v2.00}{1998/11/29}{Add: Spiro and fused rings}
1283 %
1284 % \begin{macro}{\sixheteroh}
1285 % \begin{macro}{\@six@heteroh}
1286 % \begin{macro}{\@six@@heteroh}
1287 % \begin{macro}{\@sixheteroh}
1288 % \begin{macrocode}
1289 \def\sixheteroh{\@ifnextchar({\@six@heteroh(@}{\@six@heteroh(@)}}
1290 \def\@six@heteroh(#1){\@ifnextchar[{\@six@@heteroh(#1)[@}%
1291 {\@six@@heteroh(#1)[@]}}
1292 \def\@six@@heteroh(#1)[#2]#3#4{\@ifnextchar[%
1293 {\@sixheteroh(#1)[#2]{#3}{#4}[@}%
1294 {\@sixheteroh(#1)[#2]{#3}{#4}[@]}}
1295 \def\@sixheteroh(#1)[#2]#3#4[#5]{%
1296 % \end{macrocode}
1297 %
1298 % \changes{v3.01}{2002/4/30}{Replaced by \cs{ShiftPicEnv}}
1299 % \begin{macrocode}
1300 % %%%%%%%%%%%%%%%%%%%%%%%%%%
1301 % % treatment of atom list %
1302 % %%%%%%%%%%%%%%%%%%%%%%%%%%
1303 \iniatom\iniflag%initialize
1304 \test@vrtx@sixh{#3}%
1305 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1306 % % adjustment of attached positions %
1307 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1308 \@reset@ylsw%
1309 \ylpositionh{#4}{0}{0}{7}{0}%
1310 \begin{ShiftPicEnv}(0,0)(-\yl@shiftii,-\yl@shifti)/%
1311 (880,800)(-240,-400){sixheteroh}%2002/4/30 by S. Fujita
1312 % \end{macrocode}
1313 %
1314 % \begin{macrocode}
1315 % %%%%%%%%%%%%%%%%%%
1316 % % outer skeleton %
1317 % %%%%%%%%%%%%%%%%%%
1318 {%
1319 \resetbdsw%
1320 \@bond@@omit{#5}%
1321 \set@skel@bondh{#1}{a}{a}% bond between 1 and 2 \@aaa -> \hskbonda etc
1322 \set@skel@bondh{#1}{b}{b}% bond between 2 and 3 \@bbb -> \hskbondb etc
1323 \set@skel@bondh{#1}{c}{c}% bond between 3 and 4 \@ccc -> \hskbondc etc
1324 \set@skel@bondh{#1}{d}{d}% bond between 4 and 5 \@ddd -> \hskbondd etc
1325 \set@skel@bondh{#1}{e}{e}% bond between 5 and 6 \@eee -> \hskbonde etc
1326 \set@skel@bondh{#1}{f}{f}% bond between 6 and 1 \@fff -> \hskbondf etc
1327 }%
1328 % \end{macrocode}
1329 %
1330 % \begin{macrocode}
1331 % %%%%%%%%%%%%%%%%%%%%%
1332 % % inner double bond %
1333 % %%%%%%%%%%%%%%%%%%%%%
1334 \@tfor\member:=#2\do{%
1335 \if\member r\relax \hbondd\hbondf\hbondb%
1336 \else \if\member l\relax \hbonda\hbondc\hbonde%
1337 \else \if\member a\relax \hbonda%
1338 \else \if\member b\relax \hbondb%
1339 \else \if\member c\relax \hbondc%
1340 \else \if\member d\relax \hbondd%
1341 \else \if\member e\relax \hbonde%
1342 \else \if\member f\relax \hbondf%
1343 \else \if\member A%left aromatic circle
1344 % \Put@oCircle(0,203){240}% %circle
1345 \Put@oCircle(203,0){240}% %circle
1346 % %%%%%%%%%%%%%%%%%%%%%%%%%
1347 % % inner bond attachment %
1348 % %%%%%%%%%%%%%%%%%%%%%%%%%
1349 \else \expandafter\twoCH@@R\member//%
1350 \set@fusionadd@sixh
1351 \fi\fi\fi\fi\fi\fi\fi\fi\fi}%
1352 % \end{macrocode}
1353 %
1354 % \begin{macrocode}
1355 % %%%%%%%%%%%%%%%%%%%%%%%%
1356 % % setting hetero atoms %
1357 % %%%%%%%%%%%%%%%%%%%%%%%%
1358 \set@hetatom@sixh{#3}{0}{0}{7}{0}% %atom 1--6%
1359 % \end{macrocode}
1360 %
1361 % \begin{macrocode}
1362 % %%%%%%%%%%%%%%%%%%%%%%%%
1363 % % setting substituents %
1364 % %%%%%%%%%%%%%%%%%%%%%%%%
1365 \setsixringh{#4}{0}{0}{7}{0}% %subst 1--6
1366 \end{ShiftPicEnv}%
1367 \iniatom\iniflag}% %end of \sixheteroh macro
1368 % \end{macrocode}
1369 % \end{macro}
1370 % \end{macro}
1371 % \end{macro}
1372 % \end{macro}
1373 %
1374 % The macro |\test@vrtx@sixh| is used to test the presence of
1375 % a hetero atom or a spiro substituent on a vertex of the
1376 % sixheteroh nucleus.
1377 %
1378 % \begin{macro}{\test@vrtx@sixh}
1379 % \begin{macrocode}
1380 \def\test@vrtx@sixh#1{%
1381 \@forsemicol\member:=#1\do{%
1382 \ifx\member\empty\else
1383 \expandafter\@m@mb@r\member;\relax%
1384 \expandafter\twoch@r\@membera{}%
1385 \ifcase\@tmpa%
1386 \or% \xdef\aaa{\@memberb}%
1387 \if\@tmpb s\relax\def\aaa{}\else\def\aaa{@}\fi
1388 \or% \xdef\bbb{\@memberb}%
1389 \if\@tmpb s\relax\def\bbb{}\else\def\bbb{@}\fi
1390 \or% \xdef\ccc{\@memberb}%
1391 \if\@tmpb s\relax\def\ccc{}\else\def\ccc{@}\fi
1392 \or% \xdef\ddd{\@memberb}%
1393 \if\@tmpb s\relax\def\ddd{}\else\def\ddd{@}\fi
1394 \or% \xdef\eee{\@memberb}%
1395 \if\@tmpb s\relax\def\eee{}\else\def\eee{@}\fi
1396 \or% \xdef\fff{\@memberb}%
1397 \if\@tmpb s\relax\def\fff{}\else\def\fff{@}\fi
1398 \fi\fi}%
1399 }% end of \test@vrtx@sixh
1400 % \end{macrocode}
1401 % \end{macro}
1402 %
1403 % \subsection{Inverse horizontal type}
1404 %
1405 % The standard skeleton of a six-membered heterocycle of inverse type
1406 % is selected to have the following locant numbers.
1407 %
1408 % \begin{verbatim}
1409 % ************************************
1410 % * sixhetero derivatives *
1411 % * (horizontal type, inverse type) *
1412 % ************************************
1413 % The following numbering is adopted in this macro.
1414 %
1415 % b
1416 % 3 2
1417 % c ----- a
1418 % * *
1419 % the original point ===> 4 * * 1
1420 % (0,0) * * f
1421 % d -----
1422 % 5 6
1423 % e
1424 % \end{verbatim}
1425 %
1426 % The macro |\sixheterohi| has two arguments |ATOMLIST| and |SUBSLIST|
1427 % as well as an optional argument |BONDLIST|.
1428 % Two optional arguments |SKBONDLIST| and |OMIT| are added to
1429 % treat stereochemical information or other bond situations.
1430 %
1431 % \begin{verbatim}
1432 % \sixheterohi(SKBONDLIST)[BONDLIST]{ATOMLIST}{SUBSLIST}[OMIT]
1433 % \end{verbatim}
1434 %
1435 % The |SKBONDLIST| argument contains pairs of two alphabets in
1436 % parentheses, e.g. (\{bA\}\{fB\}). Each pair contains a lowercase
1437 % character selected from bond specifiers `a' to `f' and a uppercase
1438 % character `A' or `B'.
1439 %
1440 % The |BONDLIST| argument contains one
1441 % character selected from a to f, each of which indicates the presence of
1442 % an inner (endcyclic) double bond on the corresponding position.
1443 % The option `A' represents an aromatic circle. The option
1444 % `$n+$' ($n=1$ to $6$) represents a plus charge on a hetero atom
1445 % at the $n$-position.
1446 %
1447 % \begin{verbatim}
1448 %
1449 % BONDLIST =
1450 %
1451 % none or r : sixhetero (right-handed)
1452 % l : sixhetero (left-handed)
1453 % [] : fully saturated form
1454 % a : 1,2-double bond
1455 % b : 2,3-double bond
1456 % c : 4,3-double bond
1457 % d : 4,5-double bond
1458 % e : 5,6-double bond
1459 % f : 6,1-double bond
1460 % A : aromatic circle
1461 % {n+} : plus at the n-nitrogen atom (n = 1 to 4)
1462 % \end{verbatim}
1463 %
1464 % The |ATOMLIST| argument contains one or more heteroatom descriptors
1465 % which are separated from each other by a semicolon. Each heteroatom
1466 % descriptor consists of a locant number and a heteroatom,
1467 % where these are separated with a double equality symbol.
1468 %
1469 % \begin{verbatim}
1470 % ATOMLIST: list of heteroatoms (max 6 atoms)
1471 %
1472 % for n = 1 to 6
1473 %
1474 % n : Hetero atom, e.g. N, O, etc. at n-position,
1475 % e.g. 1==N for N at 1-position
1476 % \end{verbatim}
1477 %
1478 % The |SUBSLIST| argument contains one or more substitution descriptors
1479 % which are separated from each other by a semicolon. Each substitution
1480 % descriptor has a locant number with a bond modifier and a substituent,
1481 % where these are separated with a double equality symbol.
1482 %
1483 % \begin{verbatim}
1484 % SUBSLIST: list of substituents (max 6 substitution positions)
1485 %
1486 % for n = 1 to 6
1487 %
1488 % nD : exocyclic double bond at n-atom
1489 % n or nS : exocyclic single bond at n-atom
1490 % nA : alpha single bond at n-atom
1491 % nB : beta single bond at n-atom
1492 % nSA : alpha single bond at n-atom (boldface)
1493 % nSB : beta single bond at n-atom (dotted line)
1494 % nSa : alpha (not specified) single bond at n-atom
1495 % nSb : beta (not specified) single bond at n-atom
1496 %
1497 % nSd : alpha single bond at n-atom (dotted line)
1498 % with an alternative direction to nSA
1499 % nSu : beta single bond at n-atom (boldface)
1500 % with an alternative direction to nSB
1501 % nFA : alpha single bond at n-atom (dotted line)
1502 % for ring fusion
1503 % nFB : beta single bond at n-atom (boldface)
1504 % for ring fusion
1505 % nGA : alpha single bond at n-atom (dotted line)
1506 % for the other ring fusion
1507 % nGB : beta single bond at n-atom (boldface)
1508 % for the other ring fusion
1509 % \end{verbatim}
1510 %
1511 % The argument |OMIT| represents one or more bonds to be omitted.
1512 % The omitted edges may be regarded as both fused and non-fused
1513 % positions.
1514 %
1515 % \begin{verbatim}
1516 % OMIT: one or more bonds omitted (a, b, c, d, e, or f)
1517 % \end{verbatim}
1518 %
1519 % Several examples are shown as follows.
1520 % \begin{verbatim}
1521 % e.g.
1522 %
1523 % \sixheterohi{1==N}{1==Cl;2==F}
1524 % \sixheterohi[c]{1==N}{1==Cl;4==F;2==CH$_{3}$}
1525 % \sixheterohi[eb]{1==N}{1D==O;4SA==MeO;4SB==OMe;5==Cl;6==Cl}
1526 % \end{verbatim}
1527 %
1528 % The definition of |\sixheterohi| uses a picture environment and
1529 % consists of the same unit processes as shown in |\sixheterov|:
1530 % \begin{enumerate}
1531 % \item treatment of atom list,
1532 % \item placing outer skeletons,
1533 % \item placing inner double bonds,
1534 % \item setting hetero atoms, and
1535 % \item placing substituents by |\setsixringh|.
1536 % \end{enumerate}
1537 % \changes{v1.02}{1998/10/31}{Adding \cs{ylpositionh}, \cs{if@ylsw},
1538 % \cs{yl@shifti}, \cs{@ylii}, \cs{yl@shiftii}, \cs{@ylii},
1539 % \cs{yl@xdiff} and \cs{yl@ydiff}}
1540 % \changes{v2.00}{1998/11/29}{Add: Spiro and fused rings}
1541 %
1542 % \begin{macro}{\sixheterohi}
1543 % \begin{macro}{\@six@heterohi}
1544 % \begin{macro}{\@six@@heterohi}
1545 % \begin{macro}{\@sixheterohi}
1546 % \begin{macrocode}
1547 \def\sixheterohi{\@ifnextchar({\@six@heterohi(@}{\@six@heterohi(@)}}
1548 \def\@six@heterohi(#1){\@ifnextchar[{\@six@@heterohi(#1)[@}%
1549 {\@six@@heterohi(#1)[@]}}
1550 \def\@six@@heterohi(#1)[#2]#3#4{\@ifnextchar[%
1551 {\@sixheterohi(#1)[#2]{#3}{#4}[@}%
1552 {\@sixheterohi(#1)[#2]{#3}{#4}[@]}}
1553 \def\@sixheterohi(#1)[#2]#3#4[#5]{%
1554 % \end{macrocode}
1555 %
1556 % \changes{v3.01}{2002/4/30}{Replaced by \cs{ShiftPicEnv}}
1557 % \begin{macrocode}
1558 % %%%%%%%%%%%%%%%%%%%%%%%%%%
1559 % % treatment of atom list %
1560 % %%%%%%%%%%%%%%%%%%%%%%%%%%
1561 \iniatom\iniflag%initialize
1562 \test@vrtx@sixhi{#3}%
1563 \@reset@ylsw%
1564 \ylpositionh{#4}{5}{0}{5}{-1}% %subst 1--4
1565 \ylpositionh{#4}{11}{4}{7}{-1}% %subst 5 and 6
1566 \begin{ShiftPicEnv}(0,0)(-\yl@shiftii,-\yl@shifti)/%
1567 (880,800)(-240,-400){sixheterohi}%2002/4/30 by S. Fujita
1568 % \end{macrocode}
1569 %
1570 % \begin{macrocode}
1571 % %%%%%%%%%%%%%%%%%%
1572 % % outer skeleton %
1573 % %%%%%%%%%%%%%%%%%%
1574 {\resetbdsw%
1575 \@bond@@omit{#5}%
1576 \set@skel@bondh{#1}{a}{c}% bond between 1 and 2 \@aaa -> \hskbondc etc
1577 \set@skel@bondh{#1}{b}{b}% bond between 2 and 3 \@bbb -> \hskbondb etc
1578 \set@skel@bondh{#1}{c}{a}% bond between 3 and 4 \@ccc -> \hskbonda etc
1579 \set@skel@bondh{#1}{d}{f}% bond between 4 and 5 \@ddd -> \hskbondf etc
1580 \set@skel@bondh{#1}{e}{e}% bond between 5 and 6 \@eee -> \hskbonde etc
1581 \set@skel@bondh{#1}{f}{d}% bond between 6 and 1 \@fff -> \hskbondd etc
1582 }%
1583 % \end{macrocode}
1584 %
1585 % \begin{macrocode}
1586 % %%%%%%%%%%%%%%%%%%%%%
1587 % % inner double bond %
1588 % %%%%%%%%%%%%%%%%%%%%%
1589 \@tfor\member:=#2\do{%
1590 \if\member r\relax \hbondd \hbondf \hbondb%
1591 \else \if\member l\relax \hbonda \hbondc \hbonde%
1592 \else \if\member a\relax \hbondc%
1593 \else \if\member b\relax \hbondb%
1594 \else \if\member c\relax \hbonda%
1595 \else \if\member d\relax \hbondf%
1596 \else \if\member e\relax \hbonde%
1597 \else \if\member f\relax \hbondd%
1598 \else \if\member A%left aromatic circle
1599 % \Put@oCircle(0,203){240}% %circle
1600 \Put@oCircle(203,0){240}% %circle
1601 % %%%%%%%%%%%%%%%%%%%%%%%%%
1602 % % inner bond attachment %
1603 % %%%%%%%%%%%%%%%%%%%%%%%%%
1604 \else \expandafter\twoCH@@R\member//%
1605 \set@fusionadd@sixhi
1606 \fi\fi\fi\fi\fi\fi\fi\fi\fi}%
1607 % \end{macrocode}
1608 %
1609 % \begin{macrocode}
1610 % %%%%%%%%%%%%%%%%%%%%%%%%
1611 % % setting hetero atoms %
1612 % %%%%%%%%%%%%%%%%%%%%%%%%
1613 \set@hetatom@sixh{#3}{5}{0}{5}{-1}% %subst 1--4
1614 \set@hetatom@sixh{#3}{11}{4}{7}{-1}% %subst 5 and 6
1615 % \end{macrocode}
1616 %
1617 % \begin{macrocode}
1618 % %%%%%%%%%%%%%%%%%%%%%%%%
1619 % % setting substituents %
1620 % %%%%%%%%%%%%%%%%%%%%%%%%
1621 \setsixringh{#4}{5}{0}{5}{-1}% %subst 1--4
1622 \setsixringh{#4}{11}{4}{7}{-1}% %subst 5 and 6
1623 \end{ShiftPicEnv}%
1624 \iniatom\iniflag}% %end of \sixheterohi macro
1625 % \end{macrocode}
1626 % \end{macro}
1627 % \end{macro}
1628 % \end{macro}
1629 % \end{macro}
1630 %
1631 % The macro |\test@vrtx@sixhi| is used to test the presence of
1632 % a hetero atom or a spiro substituent on a vertex of the
1633 % sixheteroh nucleus.
1634 %
1635 % \begin{macro}{\test@vrtx@sixhi}
1636 % \begin{macrocode}
1637 \def\test@vrtx@sixhi#1{%
1638 \@forsemicol\member:=#1\do{%
1639 \ifx\member\empty\else
1640 \expandafter\@m@mb@r\member;\relax%
1641 \expandafter\twoch@r\@membera{}%
1642 \ifcase\@tmpa%
1643 \or \if\@tmpb s\relax\def\ddd{}\else\def\ddd{@}\fi
1644 \or \if\@tmpb s\relax\def\ccc{}\else\def\ccc{@}\fi
1645 \or \if\@tmpb s\relax\def\bbb{}\else\def\bbb{@}\fi
1646 \or \if\@tmpb s\relax\def\aaa{}\else\def\aaa{@}\fi
1647 \or \if\@tmpb s\relax\def\fff{}\else\def\fff{@}\fi
1648 \or \if\@tmpb s\relax\def\eee{}\else\def\eee{@}\fi
1649 \fi\fi}%
1650 }% end of \test@vrtx@sixhi
1651 % \end{macrocode}
1652 % \end{macro}
1653 %
1654 % \subsection{Pyridine derivatives of horizontal type}
1655 %
1656 % The macros |\sixheteroh| and |\sixheterohi| can be used in the
1657 % form of a fixed |ATOMLIST|. Hence, the resulting commands for
1658 % drawing a six-membered heterocyle with one or more nitrogen atoms
1659 % have an argument |SUBSLIST| as well as an optional argument |BONDLIST|.
1660 %
1661 % \begin{verbatim}
1662 % ************************
1663 % * pyridine derivatives *
1664 % * (horizontal type) *
1665 % ************************
1666 %
1667 % \pyridineh[BONDLIST]{SUBSLIST}
1668 % \pyridinehi[BONDLIST]{SUBSLIST}
1669 % \pyrazineh[BONDLIST]{SUBSLIST}
1670 % \pyrazinehi[BONDLIST]{SUBSLIST}
1671 % \pyrimidineh[BONDLIST]{SUBSLIST}
1672 % \pyrimidinehi[BONDLIST]{SUBSLIST}
1673 % \triazineh[BONDLIST]{SUBSLIST}
1674 % \triazinehi[BONDLIST]{SUBSLIST}
1675 % \end{verbatim}
1676 %
1677 % The |BONDLIST| argument contains one
1678 % character selected from a to f, each of which indicates the presence of
1679 % an inner (endcyclic) double bond on the corresponding position.
1680 % The option `A' represents an aromatic circle. The option
1681 % `$n+$' ($n=1$ to $6$) represents a plus charge on a hetero atom
1682 % at the $n$-position.
1683 %
1684 % \begin{verbatim}
1685 % BONDLIST =
1686 %
1687 % none or r : pyridine (right-handed)
1688 % l : pyridine (left-handed)
1689 % [] : fully saturated ring
1690 % a : 1,2-double bond
1691 % b : 2,3-double bond
1692 % c : 4,3-double bond
1693 % d : 4,5-double bond
1694 % e : 5,6-double bond
1695 % f : 6,1-double bond
1696 % A : aromatic circle
1697 % {n+} : plus at the nitrogen atom
1698 % \end{verbatim}
1699 %
1700 % The |SUBSLIST| argument contains one or more substitution descriptors
1701 % which are separated from each other by a semicolon. Each substitution
1702 % descriptor has a locant number with a bond modifier and a substituent,
1703 % where these are separated with a double equality symbol.
1704 %
1705 % \begin{verbatim}
1706 % SUBSLIST: list of substituents
1707 %
1708 % for n = 1 to 6
1709 %
1710 % nD : exocyclic double bond at n-atom
1711 % n or nS : exocyclic single bond at n-atom
1712 % nA : alpha single bond at n-atom
1713 % nB : beta single bond at n-atom
1714 % nSA : alpha single bond at n-atom (boldface)
1715 % nSB : beta single bond at n-atom (dotted line)
1716 % nSa : alpha (not specified) single bond at n-atom
1717 % nSb : beta (not specified) single bond at n-atom
1718 %
1719 % nSd : alpha single bond at n-atom (dotted line)
1720 % with an alternative direction to nSA
1721 % nSu : beta single bond at n-atom (boldface)
1722 % with an alternative direction to nSB
1723 % nFA : alpha single bond at n-atom (dotted line)
1724 % for ring fusion
1725 % nFB : beta single bond at n-atom (boldface)
1726 % for ring fusion
1727 % nGA : alpha single bond at n-atom (dotted line)
1728 % for the other ring fusion
1729 % nGB : beta single bond at n-atom (boldface)
1730 % for the other ring fusion
1731 % \end{verbatim}
1732 %
1733 % Several examples are shown as follows.
1734 % \begin{verbatim}
1735 % e.g.
1736 %
1737 % \pyridineh{1==Cl;2==F}
1738 % \pyridineh[c]{1==Cl;4==F;2==CH$_{3}$}
1739 % \pyridineh[eb]{1D==O;4SA==MeO;4SB==OMe;5W==Cl;6==Cl}
1740 % \end{verbatim}
1741 % \changes{v2.00}{1998/11/29}{Add: fused rings}
1742 %
1743 % \begin{macro}{\pyridineh}
1744 % \begin{macro}{\pyridinehi}
1745 % \begin{macrocode}
1746 \def\pyridineh{\@ifnextchar[{\@pyridineh[@}{\@pyridineh[r]}}%
1747 \def\@pyridineh[#1]#2{%
1748 \iforigpt \typeout{command `pyridineh' %
1749 is based on `sixheteroh'.}\fi%
1750 \sixheteroh[#1]{1==N}{#2}}%end of \pyridineh macro
1751 \def\pyridinehi{\@ifnextchar[{\@pyridinehi}{\@pyridinehi[r]}}%
1752 \def\@pyridinehi[#1]#2{%
1753 \iforigpt \typeout{command `pyridinehi' %
1754 is based on `sixheterohi'.}\fi%
1755 \sixheterohi[#1]{1==N}{#2}}% %end of \pyridinehi macro
1756 % \end{macrocode}
1757 % \end{macro}
1758 % \end{macro}
1759 %
1760 % \begin{macro}{\pyrazineh}
1761 % \begin{macro}{\pyrazinehi}
1762 % \changes{v5.01}{2013/03/17}{Add: pyrazinehi}
1763 % \begin{macrocode}
1764 \def\pyrazineh{\@ifnextchar[{\@pyrazineh[@}{\@pyrazineh[r]}}%
1765 \def\@pyrazineh[#1]#2{%
1766 \iforigpt \typeout{command `pyrazineh' %
1767 is based on `sixheteroh'.}\fi%
1768 \sixheteroh[#1]{1==N;4==N}{#2}}%end of \pyrazineh macro
1769 \def\pyrazinehi{\@ifnextchar[{\@pyrazinehi[@}{\@pyrazinehi[r]}}%
1770 \def\@pyrazinehi[#1]#2{%
1771 \iforigpt \typeout{command `pyrazinehi' %
1772 is based on `sixheterohi'.}\fi%
1773 \sixheterohi[#1]{1==N;4==N}{#2}}%end of \pyrazinehi macro
1774 % \end{macrocode}
1775 % \end{macro}
1776 % \end{macro}
1777 %
1778 % \begin{macro}{\pyrimidineh}
1779 % \begin{macro}{\pyrimidinehi}
1780 % \begin{macrocode}
1781 \def\pyrimidineh{%
1782 \@ifnextchar[{\@pyrimidineh[@}{\@pyrimidineh[r]}}%
1783 \def\@pyrimidineh[#1]#2{%
1784 \iforigpt \typeout{command `pyrimidineh' %
1785 is based on `sixheteroh'.}\fi%
1786 \sixheteroh[#1]{1==N;3==N}{#2}}%
1787 %end of \pyrimidineh macro
1788 \def\pyrimidinehi{%
1789 \@ifnextchar[{\@pyrimidinehi[@}{\@pyrimidinehi[r]}}%
1790 \def\@pyrimidinehi[#1]#2{%
1791 \iforigpt \typeout{command `pyrimidinehi' %
1792 is based on `sixheterohi'.}\fi%
1793 \sixheterohi[#1]{1==N;3==N}{#2}}%end of \pyrimidinehi macro
1794 % \end{macrocode}
1795 % \end{macro}
1796 % \end{macro}
1797 %
1798 % \begin{macro}{\pyridazineh}
1799 % \begin{macro}{\pyridazinehi}
1800 % \begin{macrocode}
1801 \def\pyridazineh{\@ifnextchar[{\@pyridazineh[@}{\@pyridazineh[r]}}%
1802 \def\@pyridazineh[#1]#2{%
1803 \iforigpt \typeout{command `pyridazineh' %
1804 is based on `sixheteroh'.}\fi%
1805 \sixheteroh[#1]{1==N;2==N}{#2}}%
1806 %end of \pyridazineh macro
1807 \def\pyridazinehi{%
1808 \@ifnextchar[{\@pyridazinehi}{\@pyridazinehi[r]}}%
1809 \def\@pyridazinehi[#1]#2{%
1810 \iforigpt \typeout{command `pyridazinehi' %
1811 is based on `sixheterohi'.}\fi%
1812 \sixheterohi[#1]{1==N;2==N}{#2}}%end of \pyridazinehi macro
1813 % \end{macrocode}
1814 % \end{macro}
1815 % \end{macro}
1816 %
1817 % \begin{macro}{\triazineh}
1818 % \begin{macro}{\triazinehi}
1819 % \begin{macrocode}
1820 \def\triazineh{\@ifnextchar[{\@triazineh[@}{\@triazineh[r]}}%
1821 \def\@triazineh[#1]#2{%
1822 \iforigpt \typeout{command `triazineh' %
1823 is based on `sixheteroh'.}\fi%
1824 \sixheteroh[#1]{1==N;3==N;5==N}{#2}}%end of \triazineh macro
1825 \def\triazinehi{\@ifnextchar[{\@triazinehi[@}{\@triazinehi[r]}}%
1826 \def\@triazinehi[#1]#2{%
1827 \iforigpt \typeout{command `triazinehi' %
1828 is based on `sixheterohi'.}\fi%
1829 \sixheterohi[#1]{1==N;3==N;5==N}{#2}}%end of \triazinehi macro
1830 % \end{macrocode}
1831 % \end{macro}
1832 % \end{macro}
1833 %
1834 % \section{Five-membered heterocycles}
1835 % \subsection{Horizontal type}
1836 %
1837 % The standard skeleton of a five-membered heterocycle
1838 % is selected to have the following locant numbers.
1839 %
1840 % \begin{verbatim}
1841 % ****************************
1842 % * fivehetero derivatives *
1843 % * (horizontal type) *
1844 % ****************************
1845 % The following numbering is adopted in this macro.
1846 %
1847 % 3 _____ 2
1848 % | *
1849 % | * 1 <===== the original point
1850 % | *
1851 % 4 ----- 5
1852 % \end{verbatim}
1853 %
1854 % The macro |\fiveheteroh| has two arguments |ATOMLIST| and |SUBSLIST|
1855 % as well as an optional argument |BONDLIST|.
1856 % Two optional arguments |SKBONDLIST| and |OMIT| are added to
1857 % treat stereochemical information or other bond situations.
1858 %
1859 % \begin{verbatim}
1860 % \fiveheteroh(SKBONDLIST)[BONDLIST]{ATOMLIST}{SUBSLIST}[OMIT]
1861 % \end{verbatim}
1862 %
1863 % The |SKBONDLIST| argument contains pairs of two alphabets in
1864 % parentheses, e.g. (\{bA\}\{fB\}). Each pair contains a lowercase
1865 % character selected from bond specifiers `a' to `e' and a uppercase
1866 % character `A' or `B'.
1867 %
1868 % The |BONDLIST| argument contains one
1869 % character selected from a to e, each of which indicates the presence of
1870 % an inner (endcyclic) double bond on the corresponding position.
1871 % The option `A' represents an aromatic circle. The option
1872 % `$n+$' ($n=1$ to $5$) represents a plus charge on a hetero atom
1873 % at the $n$-position. The option
1874 % `$0+$' represents a plus charge at the center of the ring.
1875 %
1876 % \begin{verbatim}
1877 % BONDLIST: list of inner double bonds
1878 %
1879 % a : 1,2-double bond
1880 % b : 2,3-double bond
1881 % c : 4,3-double bond
1882 % d : 4,5-double bond
1883 % e : 5,1-double bond
1884 % A : aromatic circle
1885 % {n+} : plus at the n-nitrogen atom (n = 1 to 5)
1886 % {0+} : plus (or others) at the center
1887 % \end{verbatim}
1888 %
1889 % The |ATOMLIST| argument contains one or more heteroatom descriptors
1890 % which are separated from each other by a semicolon. Each heteroatom
1891 % descriptor consists of a locant number and a heteroatom,
1892 % where these are separated with a double equality symbol.
1893 %
1894 % \begin{verbatim}
1895 % ATOMLIST: list of heteroatoms (max 5 atoms)
1896 %
1897 % for n = 1 to 5
1898 %
1899 % n : Hetero atom, e.g. N, O, etc. at n-position
1900 % e.g. 1==N for N at 1-position
1901 % \end{verbatim}
1902 %
1903 % The |SUBSLIST| argument contains one or more substitution descriptors
1904 % which are separated from each other by a semicolon. Each substitution
1905 % descriptor has a locant number with a bond modifier and a substituent,
1906 % where these are separated with a double equality symbol.
1907 %
1908 % \begin{verbatim}
1909 % SUBSLIST: list of substituents
1910 %
1911 % for n = 1 to 5
1912 %
1913 % nD : exocyclic double bond at n-atom
1914 % n or nS : exocyclic single bond at n-atom
1915 % nA : alpha single bond at n-atom
1916 % nB : beta single bond at n-atom
1917 % nSA : alpha single bond at n-atom (boldface)
1918 % nSB : beta single bond at n-atom (dotted line)
1919 % nSa : alpha (not specified) single bond at n-atom
1920 % nSb : beta (not specified) single bond at n-atom
1921 %
1922 % nSd : alpha single bond at n-atom (dotted line)
1923 % with an alternative direction to nSA
1924 % nSu : beta single bond at n-atom (boldface)
1925 % with an alternative direction to nSB
1926 % nFA : alpha single bond at n-atom (dotted line)
1927 % for ring fusion
1928 % nFB : beta single bond at n-atom (boldface)
1929 % for ring fusion
1930 % nGA : alpha single bond at n-atom (dotted line)
1931 % for the other ring fusion
1932 % nGB : beta single bond at n-atom (boldface)
1933 % for the other ring fusion
1934 % \end{verbatim}
1935 %
1936 % The argument |OMIT| represents one or more bonds to be omitted.
1937 % The omitted edges may be regarded as both fused and non-fused
1938 % positions.
1939 %
1940 % \begin{verbatim}
1941 % OMIT: one or more bonds omitted (a, b, c, d, or e)
1942 % \end{verbatim}
1943 %
1944 % Several examples are shown as follows.
1945 % \begin{verbatim}
1946 % e.g.
1947 %
1948 % \fiveheteroh{1==N}{1==H;2==F}
1949 % \fiveheteroh[c]{1==N}{1==Cl;4==F;2==CH$_{3}$}
1950 % \fiveheteroh[eb]{1==N}{1D==O;4SA==MeO;4SB==OMe;5==Cl;6==Cl}
1951 % \end{verbatim}
1952 %
1953 % The definition of |\fiveheteroh| uses a picture environment and
1954 % consists of the same unit processes as shown in |\sixheterov|:
1955 % \begin{enumerate}
1956 % \item treatment of atom list,
1957 % \item placing outer skeletons,
1958 % \item placing inner double bonds,
1959 % \item setting hetero atoms, and
1960 % \item placing substituents by |\setsixringh| partially.
1961 % \end{enumerate}
1962 % \changes{v1.02}{1998/10/31}{Adding \cs{ylpositionh}, \cs{if@ylsw},
1963 % \cs{yl@shifti}, \cs{@ylii}, \cs{yl@shiftii}, \cs{@ylii},
1964 % \cs{yl@xdiff} and \cs{yl@ydiff}}
1965 % \changes{v2.00}{1998/12/5}{Add: fused and spiro rings}
1966 %
1967 % \begin{macro}{\fiveheteroh}
1968 % \begin{macro}{\@five@heteroh}
1969 % \begin{macro}{\@five@@heteroh}
1970 % \begin{macro}{\@fiveheteroh}
1971 % \begin{macrocode}
1972 \def\fiveheteroh{\@ifnextchar({\@five@heteroh(@}{\@five@heteroh(@)}}
1973 \def\@five@heteroh(#1){\@ifnextchar[{\@five@@heteroh(#1)[@}%
1974 {\@five@@heteroh(#1)[@]}}
1975 \def\@five@@heteroh(#1)[#2]#3#4{\@ifnextchar[%
1976 {\@fiveheteroh(#1)[#2]{#3}{#4}[@}%
1977 {\@fiveheteroh(#1)[#2]{#3}{#4}[@]}}
1978 \def\@fiveheteroh(#1)[#2]#3#4[#5]{%
1979 \iniatom\iniflag%initialize
1980 % \end{macrocode}
1981 %
1982 % \begin{macrocode}
1983 % %%%%%%%%%%%%%%%%%%%%%%%%%%
1984 % % treatment of atom list %
1985 % %%%%%%%%%%%%%%%%%%%%%%%%%%
1986 \test@vrtx@fivehi{#3}%
1987 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1988 % % adustment of subs positions %
1989 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1990 \@reset@ylsw%
1991 \ylpositionh{#4}{5}{1}{5}{-1}% % for 1 to 3
1992 \if@ylsw \ifx\@@ylii\empty
1993 \def\@@ylii{0}\def\@@yli{0}\fi
1994 \else
1995 \ylpositionh{#4}{10}{4}{7}{-1}% % for 4 to 5
1996 \fi
1997 \if@ylsw \ifx\@@ylii\empty
1998 \def\@@ylii{0}\def\@@yli{0}\fi
1999 \fi
2000 \begin{ShiftPicEnvB}(0,0)(-\yl@shiftii,-\yl@shifti)/%
2001 (800,880)(-240,-400){fiveheteroh}%2002/4/30 by S. Fujita
2002 % \end{macrocode}
2003 %
2004 % \begin{macrocode}
2005 % %%%%%%%%%%%%%%%%%%
2006 % % outer skeleton %
2007 % %%%%%%%%%%%%%%%%%%
2008 {\resetbdsw%
2009 \@bond@@omit{#5}%
2010 \set@skel@bondh{#1}{a}{c}% bond between 1 and 2 \@aaa -> \skbondc etc
2011 \set@skel@bondh{#1}{b}{b}% bond between 2 and 3 \@bbb -> \skbondb etc
2012 \set@skel@longbond{#1}{c}{hskbondvert}%
2013 % bond between 3 and 4 \@ccc -> \skbondhoriz etc
2014 \set@skel@bondh{#1}{d}{e}% bond between 4 and 5 \@ddd -> \skbonde etc
2015 \set@skel@bondh{#1}{e}{d}% bond between 5 and 1 \@eee -> \skbondd etc
2016 }%
2017 % %%%%%%%%%%%%%%%%%%%%%
2018 % % inner double bond %
2019 % %%%%%%%%%%%%%%%%%%%%%
2020 \@tfor\member:=#2\do{%
2021 \if\member r%
2022 \else \if\member a\relax \hbondc%
2023 \else \if\member b\relax \hbondb%
2024 \else \if\member c\relax \hbondvert%
2025 \else \if\member d\relax \hbonde%
2026 \else \if\member e\relax \hbondd%
2027 \else \if\member A%left aromatic circle
2028 \Put@oCircle(233,0){180}% %circle
2029 \else
2030 \expandafter\twoCH@@R\member//%
2031 \set@fusionadd@fiveh
2032 \fi\fi\fi\fi\fi\fi\fi}%
2033 % \end{macrocode}
2034 %
2035 % \begin{macrocode}
2036 % %%%%%%%%%%%%%%%%%%%%%%%%
2037 % % setting hetero atoms %
2038 % %%%%%%%%%%%%%%%%%%%%%%%%
2039 \Put@Direct(0,0){\set@hetatom@sixh{#3}{5}{1}{5}{-1}%
2040 \storeclipinfo%added 2001/06/20 by S. Fujita
2041 }% % for 1 to 3
2042 \developclipinfo%added 2001/06/20 by S. Fujita
2043 \Put@Direct(0,0){\set@hetatom@sixh{#3}{10}{4}{7}{-1}%
2044 \storeclipinfo%added 2001/06/20 by S. Fujita
2045 }% % for 4 to 5
2046 \developclipinfo%added 2001/06/20 by S. Fujita
2047 % \end{macrocode}
2048 %
2049 % \begin{macrocode}
2050 % %%%%%%%%%%%%%%%%%%%%%%%%
2051 % % setting substituents %
2052 % %%%%%%%%%%%%%%%%%%%%%%%%
2053 \Put@Direct(0,0){\setsixringh{#4}{5}{1}{5}{-1}}% % for 1 to 3
2054 \Put@Direct(0,0){\setsixringh{#4}{10}{4}{7}{-1}}% % for 4 to 5
2055 \end{ShiftPicEnvB}%
2056 \iniatom\iniflag}% %end of \fiveheteroh macro
2057 % \end{macrocode}
2058 % \end{macro}
2059 % \end{macro}
2060 % \end{macro}
2061 % \end{macro}
2062 %
2063 % The macro |\test@vrtx@fivehi| is used to test the presence of
2064 % a hetero atom or a spiro substituent on a vertex of the
2065 % fiveheteroh nucleus.
2066 %
2067 % \begin{macro}{\test@vrtx@fivehi}
2068 % \begin{macrocode}
2069 \def\test@vrtx@fivehi#1{%
2070 \@forsemicol\member:=#1\do{%
2071 \ifx\member\empty\else
2072 \expandafter\@m@mb@r\member;\relax%
2073 \expandafter\twoch@r\@membera{}%
2074 \ifcase\@tmpa%
2075 \or \if\@tmpb s\relax\def\ddd{}\else\def\ddd{@}\fi
2076 \or \if\@tmpb s\relax\def\ccc{}\else\def\ccc{@}\fi
2077 \or \if\@tmpb s\relax\def\bbb{}\else\def\bbb{@}\fi
2078 \or \if\@tmpb s\relax\def\fff{}\else\def\fff{@}\fi
2079 \or \if\@tmpb s\relax\def\eee{}\else\def\eee{@}\fi
2080 \or \if\@tmpb s\relax\def\aaa{}\else\def\aaa{@}\fi% dummy
2081 \fi\fi}%
2082 }% end of \test@vrtx@sixhi
2083 % \end{macrocode}
2084 % \end{macro}
2085 %
2086 % \subsection{Inverse horizontal type}
2087 %
2088 % The standard skeleton of a five-membered heterocycle of inverse type
2089 % is selected to have the following locant numbers.
2090 %
2091 % \begin{verbatim}
2092 % *******************************
2093 % * fivehetero derivatives *
2094 % * (horizontal type, inverse) *
2095 % *******************************
2096 % The following numbering is adopted in this macro.
2097 %
2098 % 2 ----- 3
2099 % * |
2100 % the original point 1 * |
2101 % * |
2102 % _____|
2103 % 5 4
2104 % \end{verbatim}
2105 %
2106 % The macro |\fiveheterohi| has two arguments |ATOMLIST| and |SUBSLIST|
2107 % as well as an optional argument |BONDLIST|.
2108 % Two optional arguments |SKBONDLIST| and |OMIT| are added to
2109 % treat stereochemical information or other bond situations.
2110 %
2111 % \begin{verbatim}
2112 % \fiveheterohi(SKBONDLIST)[BONDLIST]{ATOMLIST}{SUBSLIST}[OMIT]
2113 % \end{verbatim}
2114 %
2115 % The |SKBONDLIST| argument contains pairs of two alphabets in
2116 % parentheses, e.g. (\{bA\}\{fB\}). Each pair contains a lowercase
2117 % character selected from bond specifiers `a' to `e' and a uppercase
2118 % character `A' or `B'.
2119 %
2120 % The |BONDLIST| argument contains one
2121 % character selected from a to e, each of which indicates the presence of
2122 % an inner (endcyclic) double bond on the corresponding position.
2123 % The option `A' represents an aromatic circle. The option
2124 % `$n+$' ($n=1$ to $5$) represents a plus charge on a hetero atom
2125 % at the $n$-position. The option
2126 % `$0+$' represents a plus charge at the center of the ring.
2127 %
2128 % \begin{verbatim}
2129 %
2130 % BONDLIST: list of inner double bonds
2131 %
2132 % a : 1,2-double bond
2133 % b : 2,3-double bond
2134 % c : 4,3-double bond
2135 % d : 4,5-double bond
2136 % e : 5,1-double bond
2137 % A : aromatic circle
2138 % {n+} : plus at the n-nitrogen atom (n = 1 to 5)
2139 % {0+} : plus (or others) at the center
2140 % \end{verbatim}
2141 %
2142 % The |ATOMLIST| argument contains one or more heteroatom descriptors
2143 % which are separated from each other by a semicolon. Each heteroatom
2144 % descriptor consists of a locant number and a heteroatom,
2145 % where these are separated with a double equality symbol.
2146 %
2147 % \begin{verbatim}
2148 % ATOMLIST: list of heteroatoms (max 5 atoms)
2149 %
2150 % for n = 1 to 5
2151 %
2152 % n : Hetero atom, e.g. N, O, etc. at n-position
2153 % e.g. 1==N for N at 1-position
2154 % \end{verbatim}
2155 %
2156 % The |SUBSLIST| argument contains one or more substitution descriptors
2157 % which are separated from each other by a semicolon. Each substitution
2158 % descriptor has a locant number with a bond modifier and a substituent,
2159 % where these are separated with a double equality symbol.
2160 %
2161 % \begin{verbatim}
2162 % SUBSLIST: list of substituents
2163 %
2164 % for n = 1 to 5
2165 %
2166 % nD : exocyclic double bond at n-atom
2167 % n or nS : exocyclic single bond at n-atom
2168 % nA : alpha single bond at n-atom
2169 % nB : beta single bond at n-atom
2170 % nSA : alpha single bond at n-atom (boldface)
2171 % nSB : beta single bond at n-atom (dotted line)
2172 % nSa : alpha (not specified) single bond at n-atom
2173 % nSb : beta (not specified) single bond at n-atom
2174 %
2175 % nSd : alpha single bond at n-atom (dotted line)
2176 % with an alternative direction to nSA
2177 % nSu : beta single bond at n-atom (boldface)
2178 % with an alternative direction to nSB
2179 % nFA : alpha single bond at n-atom (dotted line)
2180 % for ring fusion
2181 % nFB : beta single bond at n-atom (boldface)
2182 % for ring fusion
2183 % nGA : alpha single bond at n-atom (dotted line)
2184 % for the other ring fusion
2185 % nGB : beta single bond at n-atom (boldface)
2186 % for the other ring fusion
2187 % \end{verbatim}
2188 %
2189 % The argument |OMIT| represents one or more bonds to be omitted.
2190 % The omitted edges may be regarded as both fused and non-fused
2191 % positions.
2192 %
2193 % \begin{verbatim}
2194 % OMIT: one or more bonds omitted (a, b, c, d, or e)
2195 % \end{verbatim}
2196 %
2197 % Several examples are shown as follows.
2198 % \begin{verbatim}
2199 % e.g.
2200 %
2201 % \fiveheterohi{1==N}{1==H;2==F}
2202 % \fiveheterohi[c]{1==N}{1==Cl;4==F;2==CH$_{3}$}
2203 % \fiveheterohi[eb]{1==N}{1D==O;4SA==MeO;4SB==OMe;5==Cl;6==Cl}
2204 % \end{verbatim}
2205 %
2206 % The definition of |\fiveheterohi| uses a picture environment and
2207 % consists of the same unit processes as shown in |\sixheteroh|:
2208 % \begin{enumerate}
2209 % \item treatment of atom list,
2210 % \item placing outer skeletons,
2211 % \item placing inner double bonds,
2212 % \item setting hetero atoms, and
2213 % \item placing substituents by |\setsixringh| partially.
2214 % \end{enumerate}
2215 % \changes{v1.02}{1998/10/31}{Adding \cs{ylpositionh}, \cs{if@ylsw},
2216 % \cs{yl@shifti}, \cs{@ylii}, \cs{yl@shiftii}, \cs{@ylii},
2217 % \cs{yl@xdiff} and \cs{yl@ydiff}}
2218 % \changes{v2.00}{1998/12/5}{Add: fused and spiro rings}
2219 %
2220 % \begin{macro}{\fiveheterohi}
2221 % \begin{macro}{\@five@heterohi}
2222 % \begin{macro}{\@five@@heterohi}
2223 % \begin{macro}{\@fiveheterohi}
2224 % \begin{macrocode}
2225 \def\fiveheterohi{\@ifnextchar({\@five@heterohi(@}{\@five@heterohi(@)}}
2226 \def\@five@heterohi(#1){\@ifnextchar[{\@five@@heterohi(#1)[@}%
2227 {\@five@@heterohi(#1)[@]}}
2228 \def\@five@@heterohi(#1)[#2]#3#4{\@ifnextchar[%
2229 {\@fiveheterohi(#1)[#2]{#3}{#4}[@}%
2230 {\@fiveheterohi(#1)[#2]{#3}{#4}[@]}}
2231 \def\@fiveheterohi(#1)[#2]#3#4[#5]{%
2232 \iniatom\iniflag%initialize
2233 % \end{macrocode}
2234 %
2235 % \begin{macrocode}
2236 % %%%%%%%%%%%%%%%%%%%%%%%%%%
2237 % % treatment of atom list %
2238 % %%%%%%%%%%%%%%%%%%%%%%%%%%
2239 \test@vertix@sixv{#3}{a}{b}{c}{e}{f}{d}%d--dummy
2240 \@reset@ylsw%
2241 \ylpositionh{#4}{0}{0}{4}{0}% % for 1 to 3
2242 \if@ylsw \ifx\@@ylii\empty
2243 \def\@@ylii{0}\def\@@yli{0}\fi
2244 \else
2245 \ylpositionh{#4}{1}{4}{7}{0}% % for 4 to 5
2246 \fi
2247 \if@ylsw \ifx\@@ylii\empty
2248 \def\@@ylii{0}\def\@@yli{0}\fi
2249 \fi
2250 \begin{ShiftPicEnvB}(0,0)(-\yl@shiftii,-\yl@shifti)/%
2251 (800,880)(-240,-400){fiveheterohi}%2002/4/30 by S. Fujita
2252 % \end{macrocode}
2253 %
2254 % \begin{macrocode}
2255 % %%%%%%%%%%%%%%%%%%
2256 % % outer skeleton %
2257 % %%%%%%%%%%%%%%%%%%
2258 {\resetbdsw%
2259 \@bond@@omit{#5}%
2260 \set@skel@bondh{#1}{a}{a}% bond between 1 and 2 \@aaa -> \hskbonda etc
2261 \set@skel@bondh{#1}{b}{b}% bond between 2 and 3 \@bbb -> \hskbondb etc
2262 \set@skel@longbond{#1}{c}{hskbondverti}%
2263 % bond between 3 and 4 \@ccc -> \hskbondverti etc
2264 \set@skel@bondh{#1}{d}{e}% bond between 4 and 5 \@ddd -> \hskbonde etc
2265 \set@skel@bondh{#1}{e}{f}% bond between 5 and 6 \@eee -> \hskbondf etc
2266 }%
2267 % \end{macrocode}
2268 %
2269 % \begin{macrocode}
2270 % %%%%%%%%%%%%%%%%%%%%%
2271 % % inner double bond %
2272 % %%%%%%%%%%%%%%%%%%%%%
2273 \@tfor\member:=#2\do{%
2274 \if\member r%
2275 \else \if\member a\relax \hbonda%
2276 \else \if\member b\relax \hbondb%
2277 \else \if\member c\relax \hbondverti%
2278 \else \if\member d\relax \hbonde%
2279 \else \if\member e\relax \hbondf%
2280 \else \if\member A%left aromatic circle
2281 \Put@oCircle(173,0){180}% %circle
2282 \else
2283 \expandafter\twoCH@@R\member//%
2284 \set@fusionadd@fivehi
2285 \fi\fi\fi\fi\fi\fi\fi}%
2286 % \end{macrocode}
2287 %
2288 % \begin{macrocode}
2289 % %%%%%%%%%%%%%%%%%%%%%%%%
2290 % % setting hetero atoms %
2291 % %%%%%%%%%%%%%%%%%%%%%%%%
2292 \set@hetatom@sixh{#3}{0}{0}{4}{0}% % for 1 to 3
2293 \set@hetatom@sixh{#3}{1}{4}{7}{0}% % for 4 to 5
2294 % \end{macrocode}
2295 %
2296 % \begin{macrocode}
2297 % %%%%%%%%%%%%%%%%%%%%%%%%
2298 % % setting substituents %
2299 % %%%%%%%%%%%%%%%%%%%%%%%%
2300 \setsixringh{#4}{0}{0}{4}{0}% % for 1 to 3
2301 \setsixringh{#4}{1}{4}{7}{0}% % for 4 to 5
2302 \end{ShiftPicEnvB}%
2303 \iniatom\iniflag}% %end of \fiveheterohi macro
2304 % \end{macrocode}
2305 % \end{macro}
2306 % \end{macro}
2307 % \end{macro}
2308 % \end{macro}
2309 %
2310 % \subsection{Pyrrole derivatives of horizontal type}
2311 %
2312 % The macro |\fiveheteroh| can be used in the
2313 % form of a fixed |ATOMLIST|. Hence, the resulting commands for
2314 % drawing a five-membered heterocyle with one or more nitrogen atoms
2315 % have an argument |SUBSLIST| as well as an optional argument |BONDLIST|.
2316 %
2317 % \begin{verbatim}
2318 % ***********************************
2319 % * pyrrole derivatives and others *
2320 % * (horizontal type) *
2321 % ***********************************
2322 %
2323 % \pyrroleh[BONDLIST]{SUBSLIST}
2324 % \pyrazoleh[BONDLIST]{SUBSLIST}
2325 % \imidazoleh[BONDLIST]{SUBSLIST}
2326 % \isoxazoleh[BONDLIST]{SUBSLIST}
2327 % \oxazoleh[BONDLIST]{SUBSLIST}
2328 % \end{verbatim}
2329 %
2330 % The |BONDLIST| argument contains one
2331 % character selected from a to e, each of which indicates the presence of
2332 % an inner (endcyclic) double bond on the corresponding position.
2333 % The option
2334 % `$n+$' ($n=1$ to $5$) represents a plus charge on a hetero atom
2335 % at the $n$-position.
2336 %
2337 % \begin{verbatim}
2338 % BONDLIST: list of inner double bonds
2339 %
2340 % none : mother nucleus
2341 % [] : fully saturated form
2342 % a : 1,2-double bond
2343 % b : 2,3-double bond
2344 % c : 4,3-double bond
2345 % d : 4,5-double bond
2346 % e : 5,1-double bond
2347 % {n+} : plus at the n-nitrogen atom (n = 1 to 5)
2348 % \end{verbatim}
2349 %
2350 % The |SUBSLIST| argument contains one or more substitution descriptors
2351 % which are separated from each other by a semicolon. Each substitution
2352 % descriptor has a locant number with a bond modifier and a substituent,
2353 % where these are separated with a double equality symbol.
2354 %
2355 % \begin{verbatim}
2356 % SUBSLIST: list of substituents
2357 %
2358 % for n = 1 to 5
2359 %
2360 % nD : exocyclic double bond at n-atom
2361 % n or nS : exocyclic single bond at n-atom
2362 % nA : alpha single bond at n-atom
2363 % nB : beta single bond at n-atom
2364 % nSA : alpha single bond at n-atom (boldface)
2365 % nSB : beta single bond at n-atom (dotted line)
2366 % nSa : alpha (not specified) single bond at n-atom
2367 % nSb : beta (not specified) single bond at n-atom
2368 %
2369 % nSd : alpha single bond at n-atom (dotted line)
2370 % with an alternative direction to nSA
2371 % nSu : beta single bond at n-atom (boldface)
2372 % with an alternative direction to nSB
2373 % nFA : alpha single bond at n-atom (dotted line)
2374 % for ring fusion
2375 % nFB : beta single bond at n-atom (boldface)
2376 % for ring fusion
2377 % nGA : alpha single bond at n-atom (dotted line)
2378 % for the other ring fusion
2379 % nGB : beta single bond at n-atom (boldface)
2380 % for the other ring fusion
2381 % \end{verbatim}
2382 %
2383 % Several examples are shown as follows.
2384 % \begin{verbatim}
2385 % e.g.
2386 %
2387 % \pyrroleh{1==H;2==F}
2388 % \pyrroleh[]{1==H;2==F}
2389 % \imidazoleh[c]{1==Cl;4==F;2==CH$_{3}$}
2390 % \isoxazoleh[eb]{1==N}{1D==O;4SA==MeO;4SB==OMe;5==Cl;6==Cl}
2391 % \end{verbatim}
2392 %
2393 % \begin{macro}{\pyrroleh}
2394 % \begin{macro}{\pyrazoleh}
2395 % \begin{macro}{\imidazoleh}
2396 % \begin{macro}{\isoxazoleh}
2397 % \begin{macro}{\oxazoleh}
2398 % \begin{macrocode}
2399 \def\pyrroleh{\@ifnextchar[{\@pyrroleh[@}{\@pyrroleh[bd]}}%
2400 \def\@pyrroleh[#1]#2{%
2401 \iforigpt \typeout{command `pyrroleh' %
2402 is based on `fiveheteroh'.}\fi%
2403 \fiveheteroh[#1]{1==N}{#2}}%
2404 \def\pyrazoleh{\@ifnextchar[{\@pyrazoleh[@}{\@pyrazoleh[bd]}}%
2405 \def\@pyrazoleh[#1]#2{%
2406 \iforigpt \typeout{command `pyrazoleh' %
2407 is based on `fiveheteroh'.}\fi%
2408 \fiveheteroh[#1]{1==N;2==N}{#2}}%
2409 \def\imidazoleh{\@ifnextchar[{\@imidazoleh[@}{\@imidazoleh[bd]}}%
2410 \def\@imidazoleh[#1]#2{%
2411 \iforigpt \typeout{command `imidazoleh' %
2412 is based on `fiveheteroh'.}\fi%
2413 \fiveheteroh[#1]{1==N;3==N}{#2}}%
2414 \def\isoxazoleh{\@ifnextchar[{\@isoxazoleh[@}{\@isoxazoleh[bd]}}%
2415 \def\@isoxazoleh[#1]#2{%
2416 \iforigpt \typeout{command `isoxazoleh' %
2417 is based on `fiveheteroh'.}\fi%
2418 \fiveheteroh[#1]{1==O;2==N}{#2}}%
2419 \def\oxazoleh{\@ifnextchar[{\@oxazoleh[@}{\@oxazoleh[bd]}}%
2420 \def\@oxazoleh[#1]#2{%
2421 \iforigpt \typeout{command `oxazoleh' %
2422 is based on `fiveheteroh'.}\fi%
2423 \fiveheteroh[#1]{1==O;3==N}{#2}}%
2424 % \end{macrocode}
2425 % \end{macro}
2426 % \end{macro}
2427 % \end{macro}
2428 % \end{macro}
2429 % \end{macro}
2430 %
2431 % \begin{macro}{\furanh}
2432 % \begin{macro}{\thiopheneh}
2433 % \begin{macrocode}
2434 \def\furanh{\@ifnextchar[{\@furanh[@}{\@furanh[bd]}}
2435 \def\@furanh[#1]#2{%
2436 \iforigpt \typeout{command `furanh' %
2437 is based on `fiveheteroh'.}\fi%
2438 \fiveheteroh[#1]{1==O}{#2}}
2439 \def\thiopheneh{\@ifnextchar[{\@thiopheneh[@}{\@thiopheneh[bd]}}
2440 \def\@thiopheneh[#1]#2{%
2441 \iforigpt \typeout{command `thiopheneh' %
2442 is based on `fiveheteroh'.}\fi%
2443 \fiveheteroh[#1]{1==S}{#2}}
2444 % \end{macrocode}
2445 % \end{macro}
2446 % \end{macro}
2447 %
2448 % \subsection{Pyrrole derivatives of inverse horizontal type}
2449 %
2450 % The macro |\fiveheterohi| can be used in the
2451 % form of a fixed |ATOMLIST|. Hence, the resulting commands for
2452 % drawing a five-membered heterocyle with one or more nitrogen atoms
2453 % have an argument |SUBSLIST| as well as an optional argument |BONDLIST|.
2454 %
2455 % \begin{verbatim}
2456 % *************************************
2457 % * pyrrole derivatives and others *
2458 % * (horizontal type, inverse) *
2459 % *************************************
2460 %
2461 % \pyrrolehi[BONDLIST]{SUBSLIST}
2462 % \pyrazolehi[BONDLIST]{SUBSLIST}
2463 % \imidazolehi[BONDLIST]{SUBSLIST}
2464 % \isoxazolehi[BONDLIST]{SUBSLIST}
2465 % \oxazolehi[BONDLIST]{SUBSLIST}
2466 % \end{verbatim}
2467 %
2468 % The |BONDLIST| argument contains one
2469 % character selected from a to e, each of which indicates the presence of
2470 % an inner (endcyclic) double bond on the corresponding position.
2471 % The option
2472 % `$n+$' ($n=1$ to $5$) represents a plus charge on a hetero atom
2473 % at the $n$-position.
2474 %
2475 % \begin{verbatim}
2476 % BONDLIST: list of inner double bonds
2477 %
2478 % none : mother nucleus
2479 % [] : fully saturated form
2480 % a : 1,2-double bond
2481 % b : 2,3-double bond
2482 % c : 4,3-double bond
2483 % d : 4,5-double bond
2484 % e : 5,1-double bond
2485 % {n+} : plus at the n-nitrogen atom (n = 1 to 5)
2486 % \end{verbatim}
2487 %
2488 % The |SUBSLIST| argument contains one or more substitution descriptors
2489 % which are separated from each other by a semicolon. Each substitution
2490 % descriptor has a locant number with a bond modifier and a substituent,
2491 % where these are separated with a double equality symbol.
2492 %
2493 % \begin{verbatim}
2494 % SUBSLIST: list of substituents
2495 %
2496 % for n = 1 to 5
2497 %
2498 % nD : exocyclic double bond at n-atom
2499 % n or nS : exocyclic single bond at n-atom
2500 % nA : alpha single bond at n-atom
2501 % nB : beta single bond at n-atom
2502 % nSA : alpha single bond at n-atom (boldface)
2503 % nSB : beta single bond at n-atom (dotted line)
2504 % nSa : alpha (not specified) single bond at n-atom
2505 % nSb : beta (not specified) single bond at n-atom
2506 %
2507 % nSd : alpha single bond at n-atom (dotted line)
2508 % with an alternative direction to nSA
2509 % nSu : beta single bond at n-atom (boldface)
2510 % with an alternative direction to nSB
2511 % nFA : alpha single bond at n-atom (dotted line)
2512 % for ring fusion
2513 % nFB : beta single bond at n-atom (boldface)
2514 % for ring fusion
2515 % nGA : alpha single bond at n-atom (dotted line)
2516 % for the other ring fusion
2517 % nGB : beta single bond at n-atom (boldface)
2518 % for the other ring fusion
2519 % \end{verbatim}
2520 %
2521 % Several examples are shown as follows.
2522 % \begin{verbatim}
2523 % e.g.
2524 %
2525 % \pyrrolehi{1==H;2==F}
2526 % \pyrrolehi[]{1==H;2==F}
2527 % \imidazolehi[c]{1==Cl;4==F;2==CH$_{3}$}
2528 % \isoxazolehi[eb]{1==N}{1D==O;4SA==MeO;4SB==OMe;5==Cl}
2529 % \end{verbatim}
2530 %
2531 % \begin{macro}{\pyrrolehi}
2532 % \begin{macro}{\pyrazolehi}
2533 % \begin{macro}{\imidazolehi}
2534 % \begin{macro}{\isoxazolehi}
2535 % \begin{macro}{\oxazolehi}
2536 % \begin{macrocode}
2537 \def\pyrrolehi{\@ifnextchar[{\@pyrrolehi[@}{\@pyrrolehi[bd]}}%
2538 \def\@pyrrolehi[#1]#2{%
2539 \iforigpt \typeout{command `pyrrolehi' %
2540 is based on `fiveheterohi'.}\fi%
2541 \fiveheterohi[#1]{1==N}{#2}}%
2542 \def\pyrazolehi{\@ifnextchar[{\@pyrazolehi[@}{\@pyrazolehi[bd]}}%
2543 \def\@pyrazolehi[#1]#2{%
2544 \iforigpt \typeout{command `pyrazolehi' %
2545 is based on `fiveheterohi'.}\fi%
2546 \fiveheterohi[#1]{1==N;2==N}{#2}}%
2547 \def\imidazolehi{\@ifnextchar[{\@imidazolehi[@}{\@imidazolehi[bd]}}%
2548 \def\@imidazolehi[#1]#2{%
2549 \iforigpt \typeout{command `imidazolehi' %
2550 is based on `fiveheterohi'.}\fi%
2551 \fiveheterohi[#1]{1==N;3==N}{#2}}%
2552 \def\isoxazolehi{\@ifnextchar[{\@isoxazolehi[@}{\@isoxazolehi[bd]}}%
2553 \def\@isoxazolehi[#1]#2{%
2554 \iforigpt \typeout{command `isoxazolehi' %
2555 is based on `fiveheterohi'.}\fi%
2556 \fiveheterohi[#1]{1==O;2==N}{#2}}%
2557 \def\oxazolehi{\@ifnextchar[{\@oxazolehi[@}{\@oxazolehi[bd]}}%
2558 \def\@oxazolehi[#1]#2{%
2559 \iforigpt \typeout{command `oxazolehi' %
2560 is based on `fiveheterohi'.}\fi%
2561 \fiveheterohi[#1]{1==O;3==N}{#2}}%
2562 % \end{macrocode}
2563 % \end{macro}
2564 % \end{macro}
2565 % \end{macro}
2566 % \end{macro}
2567 % \end{macro}
2568 %
2569 % \begin{macro}{\furanhi}
2570 % \begin{macro}{\thiophenehi}
2571 % \begin{macrocode}
2572 \def\furanhi{\@ifnextchar[{\@furanhi[@}{\@furanhi[bd]}}
2573 \def\@furanhi[#1]#2{%
2574 \iforigpt \typeout{command `furanhi' %
2575 is based on `fiveheterohi'.}\fi%
2576 \fiveheterohi[#1]{1==O}{#2}}
2577 \def\thiophenehi{\@ifnextchar[{\@thiophenehi[@}{\@thiophenehi[bd]}}
2578 \def\@thiophenehi[#1]#2{%
2579 \iforigpt \typeout{command `thiophenehi' %
2580 is based on `fiveheterohi'.}\fi%
2581 \fiveheterohi[#1]{1==S}{#2}}
2582 % \end{macrocode}
2583 % \end{macro}
2584 % \end{macro}
2585 %
2586 % \section{Six-to-six fused heterocyles}
2587 % \subsection{Horizontal type}
2588 %
2589 % The standard skeleton of a six-to-six fused heterocycle is selected
2590 % to have the following locant numbers.
2591 %
2592 % \begin{verbatim}
2593 % ****************************
2594 % * decahetero derivatives *
2595 % * (horizontal type) *
2596 % ****************************
2597 % The following numbering is adopted in this macro.
2598 %
2599 % 2 3
2600 %
2601 % *1 4 (*1 origin)
2602 %
2603 % (10)8a 4a(9)
2604 %
2605 % 8 5
2606 %
2607 % 7 6
2608 % ____ ____
2609 % |cf. |
2610 % | 8 (10)1 |
2611 % | * 8a * |
2612 % | 7 * * * * 2 |
2613 % | | | | |
2614 % | | | | |
2615 % | 6 * * * * 3 |
2616 % | * 4a * |
2617 % | 5 (9) 4 |
2618 % | ^ |
2619 % | | |
2620 % | the original point |
2621 % |____ ____|
2622 % \end{verbatim}
2623 %
2624 % The macro |\decaheteroh| has two arguments |ATOMLIST| and |SUBSLIST|
2625 % as well as an optional argument |BONDLIST|.
2626 % Two optional arguments |SKBONDLIST| and |OMIT| are added to
2627 % treat stereochemical information or other bond situations.
2628 %
2629 % \begin{verbatim}
2630 % \decaheteroh(SKBONDLIST)[BONDLIST]{ATOMLIST}{SUBSLIST}[OMIT]
2631 % \end{verbatim}
2632 %
2633 % The |SKBONDLIST| argument contains pairs of two alphabets in
2634 % parentheses, e.g. (\{bA\}\{fB\}). Each pair contains a lowercase
2635 % character selected from bond specifiers `a' to `k' and a uppercase
2636 % character `A' or `B'.
2637 %
2638 % The |BONDLIST| argument contains one
2639 % character selected from a to k, each of which indicates the presence of
2640 % an inner (endcyclic) double bond on the corresponding position.
2641 % The option `A' and `B' represent aromatic circles. The option
2642 % `$n+$' ($n=1$ to $10$) represents a plus charge on a hetero atom
2643 % at the $n$-position.
2644 %
2645 % \begin{verbatim}
2646 % BONDLIST: list of bonds
2647 %
2648 % none or r : decahetero (right-handed)
2649 % l : no action
2650 % [] : fully saturated form
2651 % a : 1,2-double bond b : 2,3-double bond
2652 % c : 4,3-double bond d : 4,4a-double bond
2653 % e : 4a,5-double bond f : 5,6-double bond
2654 % g : 6,7-double bond h : 7,8-double bond
2655 % i : 8,8a-double bond j : 1,8a-double bond
2656 % k : 4a,8a-double bond
2657 % K : 4a,8a-double bond in the other ring
2658 % A : aromatic circle B : aromatic circle
2659 % {n+} : plus at the n-nitrogen atom (n = 1 to 10)
2660 % \end{verbatim}
2661 %
2662 % The |ATOMLIST| argument contains one or more heteroatom descriptors
2663 % which are separated from each other by a semicolon. Each heteroatom
2664 % descriptor consists of a locant number and a heteroatom,
2665 % where these are separated with a double equality symbol.
2666 %
2667 % \begin{verbatim}
2668 % ATOMLIST: list of heteroatoms (max 10 atoms)
2669 %
2670 % for n = 1 to 8
2671 %
2672 % n : Hetero atom, e.g. N, O, etc. at n-position
2673 % e.g. 1==N for N at 1-position
2674 % na : Hetero atom at 4a or 8b (n=4 or 8)
2675 % e.g. 4a==N (or 9==N) for N at 4a-position
2676 % 8a==N (or {{10}}==N) for N at 8a-position
2677 % \end{verbatim}
2678 %
2679 % The |SUBSLIST| argument contains one or more substitution descriptors
2680 % which are separated from each other by a semicolon. Each substitution
2681 % descriptor has a locant number with a bond modifier and a substituent,
2682 % where these are separated with a double equality symbol.
2683 %
2684 % \begin{verbatim}
2685 % SUBSLIST: list of substituents
2686 %
2687 % for n = 1 to 8
2688 %
2689 % nD : exocyclic double bond at n-atom
2690 % n or nS : exocyclic single bond at n-atom
2691 % nA : alpha single bond at n-atom
2692 % nB : beta single bond at n-atom
2693 % nSA : alpha single bond at n-atom (boldface)
2694 % nSB : beta single bond at n-atom (dotted line)
2695 % nSa : alpha (not specified) single bond at n-atom
2696 % nSb : beta (not specified) single bond at n-atom
2697 %
2698 % nSd : alpha single bond at n-atom (dotted line)
2699 % with an alternative direction to nSA
2700 % nSu : beta single bond at n-atom (boldface)
2701 % with an alternative direction to nSB
2702 % nFA : alpha single bond at n-atom (dotted line)
2703 % for ring fusion
2704 % nFB : beta single bond at n-atom (boldface)
2705 % for ring fusion
2706 % nGA : alpha single bond at n-atom (dotted line)
2707 % for the other ring fusion
2708 % nGB : beta single bond at n-atom (boldface)
2709 % for the other ring fusion
2710 %
2711 % for 9 (4a position) and 10 (8a position)
2712 %
2713 % nD : exocyclic double bond at n-atom
2714 % n or nS : exocyclic single bond at n-atom
2715 % nA : alpha single bond at n-atom
2716 % nB : beta single bond at n-atom
2717 % \end{verbatim}
2718 %
2719 % The argument |OMIT| represents one or more bonds to be omitted.
2720 % The omitted edges may be regarded as both fused and non-fused
2721 % positions.
2722 %
2723 % \begin{verbatim}
2724 % OMIT: one or more bonds omitted (a to k; see BONDLIST)
2725 % \end{verbatim}
2726 %
2727 % Several examples are shown as follows.
2728 % \begin{verbatim}
2729 % e.g.
2730 %
2731 % \decaheteroh{1==N}{1==Cl;2==F}
2732 % \decaheteroh[c]{1==N}{1==Cl;4==F;2==CH$_{3}$}
2733 % \decaheteroh[eb]{1==N}{1D==O;4SA==MeO;4SB==OMe;5==Cl;6==Cl}
2734 % \end{verbatim}
2735 %
2736 % The definition of |\decaheteroh| uses a picture environment and
2737 % consists of the same unit processes as shown in |\sixheterov|:
2738 % \begin{enumerate}
2739 % \item treatment of atom list,
2740 % \item placing outer skeletons,
2741 % \item placing inner double bonds,
2742 % \item setting hetero atoms, and
2743 % \item placing substituents by using |\setsixringh| several times.
2744 % \end{enumerate}
2745 % \changes{v1.02}{1998/10/31}{Adding \cs{ylposition}, \cs{if@ylsw},
2746 % \cs{yl@shifti}, \cs{@ylii}, \cs{yl@shiftii}, \cs{@ylii},
2747 % \cs{yl@xdiff} and \cs{yl@ydiff}}
2748 % \changes{v2.00}{1998/11/30}{Add: spiro and fused rings}
2749 % \changes{v2.01}{2001/6/20}{The
2750 % \cs{storeclipinfo} command is added.}
2751 % \changes{v4.03b}{2006/9/5}{bug fix \cs{ggg} etc. for \cs{test@vertix@sixv}
2752 % in chemstr.sty}
2753 %
2754 % \begin{macro}{\decaheteroh}
2755 % \begin{macro}{\@deca@heteroh}
2756 % \begin{macro}{\@deca@@heteroh}
2757 % \begin{macro}{\@decaheteroh}
2758 % \begin{macrocode}
2759 \def\decaheteroh{\@ifnextchar({\@deca@heteroh(@}{\@deca@heteroh(@)}}
2760 \def\@deca@heteroh(#1){\@ifnextchar[{\@deca@@heteroh(#1)[@}%
2761 {\@deca@@heteroh(#1)[@]}}
2762 \def\@deca@@heteroh(#1)[#2]#3#4{\@ifnextchar[%
2763 {\@decaheteroh(#1)[#2]{#3}{#4}[@}%
2764 {\@decaheteroh(#1)[#2]{#3}{#4}[@]}}
2765 \def\@decaheteroh(#1)[#2]#3#4[#5]{%
2766 % \end{macrocode}
2767 %
2768 % \begin{macrocode}
2769 % %%%%%%%%%%%%%%%%%%%%%%%%%%
2770 % % treatment of atom list %
2771 % %%%%%%%%%%%%%%%%%%%%%%%%%%
2772 \iniflag\iniatom%
2773 \test@vertix@sixv{#3}{a}{b}{c}{d}{e}{f}%
2774 \test@vertix@decav{#3}{g}{h}{i}{j}{@}{@}%
2775 % %%%%%%%%%%%%%%%%%%%%%%%
2776 % % adjustment for (yl) %
2777 % %%%%%%%%%%%%%%%%%%%%%%%
2778 \@reset@ylsw%
2779 \ylhetpositionh{#4}{0}{0}{5}{0}% %substituents on 1 to 4
2780 \if@ylsw \ifx\@@ylii\empty
2781 \def\@@ylii{0}\def\@@yli{0}\fi
2782 \else
2783 {\let\ddd=\eee\let\eee=\fff\let\fff=\gggA
2784 \ylhetpositionh{#4}{-1}{3}{7}{0}% %substituents on 5 to 7
2785 }%
2786 \fi
2787 \if@ylsw \ifx\@@ylii\empty
2788 \def\@@ylii{0}\def\@@yli{342}\fi
2789 \else
2790 {\let\aaa=\hhh
2791 \ylhetpositionh{#4}{-7}{0}{2}{0}% %substituent on 8
2792 }%
2793 \fi
2794 \if@ylsw \ifx\@@ylii\empty
2795 \def\@@ylii{0}\def\@@yli{342}\fi
2796 \else
2797 {%
2798 \clipdetection%
2799 \@clipfusefalse \if@iclip \@clipfusetrue \fi%
2800 \ylatombondposition{#4}{-8}{4}% %9 for 4a position
2801 }%
2802 \fi
2803 \if@ylsw \ifx\@@ylii\empty
2804 \def\@@ylii{-303}\def\@@yli{171}\fi
2805 \else
2806 {%
2807 \clipdetection%
2808 \@clipfusefalse \if@jclip \@clipfusetrue \fi%
2809 \ylatombondposition{#4}{-9}{10}% %10 for 8a position
2810 }%
2811 \fi
2812 \if@ylsw \ifx\@@ylii\empty
2813 \def\@@ylii{-103}\def\@@yli{171}\fi
2814 \fi
2815 \begin{ShiftPicEnvB}(0,0)(-\yl@shiftii,-\yl@shifti)/%
2816 (1200,1200)(-400,-800){decaheteroh}%2002/4/30 by S. Fujita
2817 % \end{macrocode}
2818 %
2819 % \begin{macrocode}
2820 % %%%%%%%%%%%%%%%%%%
2821 % % outer skeleton %
2822 % %%%%%%%%%%%%%%%%%%
2823 \begingroup
2824 \resetbdsw%
2825 \@bond@@omit{#5}%
2826 {\let\fff=\jjj \let\eee=\iii%
2827 \set@skel@bondh{#1}{a}{a}% bond between 1 and 2 \@aaa -> \hskbonda etc
2828 \set@skel@bondh{#1}{b}{b}% bond between 2 and 3 \@bbb -> \hskbondb etc
2829 \set@skel@bondh{#1}{c}{c}% bond between 3 and 4 \@ccc -> \hskbondc etc
2830 \set@skel@bondh{#1}{d}{d}% bond between 4 and 5 \@ddd -> \skbondd etc
2831 \set@skel@bondh{#1}{k}{e}% bond between 7 and 8 \@kkk -> \skbonde etc
2832 \set@skel@bondh{#1}{j}{f}% bond between 7 and 8 \@jjj -> \skbondf etc
2833 }%
2834 {\let\aaa=\hhh \let\ddd=\eee\let\eee=\fff\let\fff=\gggA%
2835 \let\ccc=\iii\let\bbb=\jjj%
2836 \Put@Direct(0,-342){\set@skel@bondh{#1}{i}{a}}%
2837 % bond between 8a and 8 \@iii -> \hskbonda etc
2838 \Put@Direct(0,-342){\set@skel@bondh{#1}{e}{c}}%
2839 % bond between 4a and 5 \@eee -> \hskbondc etc
2840 \Put@Direct(0,-342){\set@skel@bondh{#1}{f}{d}}%
2841 % bond between 5 and 6 \@fff -> \hskbondd etc
2842 \Put@Direct(0,-342){\set@skel@bondh{#1}{g}{e}}%
2843 % bond between 6 and 7 \@ggg -> \hskbonde etc
2844 \Put@Direct(0,-342){\set@skel@bondh{#1}{h}{f}}%
2845 % bond between 7 and 8 \@hhh -> \hskbondf etc
2846 }%
2847 \endgroup
2848 % \end{macrocode}
2849 %
2850 % \begin{macrocode}
2851 % %%%%%%%%%%%%%%%%%%%%%
2852 % % inner double bond %
2853 % %%%%%%%%%%%%%%%%%%%%%
2854 \@tfor\member:=#2\do{%
2855 \if\member r\relax%
2856 {\let\fff=\jjj \let\eee=\iii%
2857 \Put@Direct(0,0){\hbonda}% bond between 1 and 2%
2858 \Put@Direct(0,0){\hbondc}% bond between 3 and 4%
2859 }%
2860 {\let\aaa=\hhh \let\ddd=\eee\let\eee=\fff\let\fff=\gggA%
2861 \let\ccc=\iii\let\bbb=\jjj%
2862 \Put@Direct(0,-342){\hbondb}% bond between 8a and 4a
2863 \Put@Direct(0,-342){\hbondf}% bond between 8 and 7
2864 \Put@Direct(0,-342){\hbondd}% bond between 5 and 6
2865 }%
2866 \else \if\member l\relax%
2867 \else \if\member a\relax%
2868 \Put@Direct(0,0){\hbonda}% bond between 1 and 2
2869 \else \if\member b\relax%
2870 \Put@Direct(0,0){\hbondb}% bond between 2 and 3
2871 \else \if\member c\relax%
2872 \Put@Direct(0,0){\hbondc}% bond between 3 and 4
2873 % \Put@Direct(342,0){\hbondc}% bond between 3 and 4
2874 \else \if\member d\relax%
2875 {\let\eee=\iii%
2876 \Put@Direct(0,0){\hbondd}% bond between 4 and 4a
2877 }%
2878 \else \if\member e\relax%
2879 {\let\ccc=\iii \let\ddd=\eee%
2880 \Put@Direct(0,-342){\hbondc}% bond between 5 and 4a
2881 }%
2882 \else \if\member f\relax%
2883 {\let\ddd=\eee \let\eee=\fff%
2884 \Put@Direct(0,-342){\hbondd}% bond between 5 and 6
2885 }%
2886 \else \if\member g\relax%
2887 {\let\eee=\fff \let\fff=\gggA%
2888 \Put@Direct(0,-342){\hbonde}% bond between 6 and 7
2889 }%
2890 \else \if\member h\relax%
2891 {\let\aaa=\hhh \let\fff=\gggA%
2892 \Put@Direct(0,-342){\hbondf}% bond between 8 and 7
2893 }%
2894 \else \if\member i\relax%
2895 {\let\aaa=\hhh \let\bbb=\jjj%
2896 \Put@Direct(0,-342){\hbonda}% bond between 8 and 8a
2897 }%
2898 \else \if\member j\relax%
2899 {\let\fff=\jjj%
2900 \Put@Direct(0,0){\hbondf}% bond between 1 and 8a
2901 }%
2902 \else \if\member k\relax%
2903 {\let\ccc=\iii\let\bbb=\jjj%
2904 \Put@Direct(0,-342){\hbondb}% bond between 8a and 4a
2905 }%
2906 \else \if\member K\relax%
2907 {\let\eee=\iii\let\fff=\jjj%
2908 \Put@Direct(0,0){\hbonde}% bond between 8a and 4a in the other ring
2909 }%
2910 \else \if\member A%left aromatic circle
2911 \Put@oCircle(203,0){240}% %circle
2912 \else \if\member B%left aromatic circle
2913 \Put@oCircle(203,-342){240}% %circle
2914 \else
2915 \expandafter\twoCH@@R\member//%
2916 \def\aax{8a}\def\aay{4a}\def\aaz{10}%
2917 \if\@@tmpa 4\relax%
2918 \putratom{272}{-18}{\@@tmpb}% % right type
2919 \else\if\@@tmpa 1\relax%
2920 \putratom{68}{-18}{\@@tmpb}% % right type
2921 \else\if\@@tmpa 3\relax%
2922 \putratom{233}{60}{\@@tmpb}% % right type
2923 \else\if\@@tmpa 2\relax%
2924 \putratom{120}{60}{\@@tmpb}% % right type
2925 \else\ifx\@@tmpa\aaz\relax%
2926 \putratom{120}{-110}{\@@tmpb}% % right type
2927 \else\ifx\@@tmpa\aax\relax%
2928 \putratom{120}{-110}{\@@tmpb}% % right type
2929 \else\ifx\@@tmpa\aay\relax
2930 \putratom{233}{-110}{\@@tmpb}% % right type
2931 \else\if\@@tmpa 9\relax%
2932 \putratom{233}{-110}{\@@tmpb}% % right type
2933 \else\if\@@tmpa 5\relax%
2934 \putratom{272}{-360}{\@@tmpb}% % right type
2935 \else\if\@@tmpa 8\relax%
2936 \putratom{68}{-360}{\@@tmpb}% % right type
2937 \else\if\@@tmpa 6\relax%
2938 \putratom{233}{-452}{\@@tmpb}% % right type
2939 \else\if\@@tmpa 7\relax%
2940 \putratom{120}{-452}{\@@tmpb}% % right type
2941 \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi%
2942 % ***********************
2943 % * setting fused rings *
2944 % ***********************
2945 \expandafter\twoCH@R\member//%
2946 \set@fusion@decah
2947 \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi%
2948 \fi\fi\fi\fi\fi\fi}%
2949 % \end{macrocode}
2950 %
2951 % \changes{v2.00a}{2000/11/11}{The
2952 % \cs{iniflag} command is added to 5- and 8-substitution.}
2953 % \changes{v4.03}{2006/9/5}{The \cs{storeclipinfo} command, bugfixed}
2954 %
2955 % \begin{macrocode}
2956 % %%%%%%%%%%%%%%%%%%%%%%%%
2957 % % setting hetero atoms %
2958 % %%%%%%%%%%%%%%%%%%%%%%%%
2959 \iniflag
2960 \Put@Direct(0,0){\set@hetatom@sixh{#3}{0}{0}{5}{0}%
2961 % \if@aclip \global\@acliptrue\fi
2962 % \if@bclip \global\@bcliptrue\fi
2963 % \if@cclip \global\@ccliptrue\fi
2964 % \if@clip \global\@cliptrue\fi
2965 \storeclipinfo
2966 }% %substituents on 1 to 4
2967 \developclipinfo
2968 \Put@Direct(0,-342){\iniflag%2000/11/11 by Shinsaku Fujita
2969 \set@hetatom@sixh{#3}{-1}{3}{7}{0}%
2970 % \@gclipfalse \if@fclip \global\@gcliptrue \fi%
2971 % \@fclipfalse \if@eclip \global\@fcliptrue \fi%
2972 % \@eclipfalse \if@clip \global\@ecliptrue \fi
2973 \@gclipfalse \if@fclip \@gcliptrue \fi%
2974 \@fclipfalse \if@eclip \@fcliptrue \fi%
2975 \@eclipfalse \if@clip \@ecliptrue \fi
2976 \@clipfalse%2006/9/5added
2977 \storeclipinfo
2978 }%substituents on 5 to 7
2979 %\developclipinfo%%2006/9/5 deleted
2980 \Put@Direct(0,-342){\iniflag%2000/11/11 by Shinsaku Fujita
2981 \set@hetatom@sixh{#3}{-7}{0}{2}{0}%
2982 % \@hclipfalse \if@aclip \global\@hcliptrue \fi
2983 \@hclipfalse \if@aclip \@hcliptrue \fi
2984 \@aclipfalse%2006/9/5added
2985 \storeclipinfo
2986 }%%substituent on 8
2987 %\developclipinfo%%2006/9/5 deleted
2988 \Put@Direct(0,0){\set@vrtx@fuseh{#3}%
2989 % \if@iclip \global\@icliptrue \fi
2990 % \if@jclip \global\@jcliptrue \fi
2991 \storeclipinfo
2992 }% fused positions
2993 \developclipinfo
2994 % \end{macrocode}
2995 %
2996 % \begin{macrocode}
2997 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2998 % % setting substituents and exocyclic bonds %
2999 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3000 \global\drawsamesubsttrue%2002/05/30 warning on
3001 \Put@Direct(0,0){\setsixringh{#4}{0}{0}{5}{0}}% %substituents on 1 to 4
3002 \global\drawsamesubstfalse%2002/05/30 warning off
3003 {\@clipfalse \if@eclip \@cliptrue \fi% %substituents on 5 to 7
3004 \@eclipfalse \if@fclip \@ecliptrue \fi%
3005 \@fclipfalse \if@gclip \@fcliptrue \fi%
3006 \Put@Direct(0,-342){\setsixringh{#4}{-1}{3}{7}{0}}%
3007 }%
3008 {\@aclipfalse \if@hclip \@acliptrue \fi% %substituent on 8
3009 \Put@Direct(0,-342){\setsixringh{#4}{-7}{0}{2}{0}}%
3010 }%
3011 {\@clipfusefalse \if@iclip \@clipfusetrue \fi%
3012 \Put@Direct(303,-171){\setatombond{#4}{-8}{4}}% %9 for 4a position
3013 }%
3014 {\@clipfusefalse \if@jclip \@clipfusetrue \fi%
3015 \Put@Direct(103,-171){\setatombond{#4}{-9}{10}}% %10 for 8a position
3016 }%
3017 \end{ShiftPicEnvB}%
3018 \iniatom\iniflag}% %end of \decaheteroh macro
3019 % \end{macrocode}
3020 % \end{macro}
3021 % \end{macro}
3022 % \end{macro}
3023 % \end{macro}
3024 %
3025 % The command |\ylhetpositionh| is used in the |\decaheteroh| command,
3026 % giving the sift values for drawing a structure as a substituent.
3027 % \changes{v1.02}{1998/10/16}{Newly added command}
3028 %
3029 % \begin{macro}{\ylhetpositionh}
3030 % \begin{macrocode}
3031 \def\ylhetpositionh#1#2#3#4#5{%
3032 \@@ylswfalse%%%\@reset@ylsw
3033 \@forsemicol\member:=#1\do{%
3034 \if@@ylsw\else
3035 \ifx\member\empty\else
3036 \expandafter\@m@mb@r\member;\relax
3037 \expandafter\threech@r\@membera{}{}\relax
3038 \ifx\@memberb\@yl\relax\@@ylswtrue\else\@@ylswfalse\fi
3039 \if@@ylsw
3040 \ifnum#5<0\relax%
3041 \@tmpaa=-\@tmpa\relax \advance\@tmpaa by#2\relax%
3042 \else\@tmpaa=\@tmpa\relax \advance\@tmpaa by#2\relax\fi
3043 \ifnum\@tmpaa>#3\relax%
3044 \ifnum\@tmpaa<#4\relax%
3045 \ifcase\@tmpaa%0 omit
3046 \or
3047 \ifx\aaa\empty
3048 \gdef\@ylii{0}\gdef\@yli{0}\global\@ylswtrue%\@ylatrue% subst. on 1
3049 \else
3050 \gdef\@ylii{30}\gdef\@yli{0}\global\@ylswtrue%\@ylatrue% subst. on 1
3051 \fi
3052 \or
3053 \ifx\bbb\empty
3054 \gdef\@ylii{-103}\gdef\@yli{-171}\global\@ylswtrue%\@ylbtrue% subst. on 2
3055 \else
3056 \gdef\@ylii{-73}\gdef\@yli{-223}\global\@ylswtrue%\@ylbtrue% subst. on 2
3057 \fi
3058 \or
3059 \ifx\ccc\empty
3060 \gdef\@ylii{-303}\gdef\@yli{-171}\global\@ylswtrue%\@ylctrue% subst. on 3
3061 \else
3062 \gdef\@ylii{-333}\gdef\@yli{-223}\global\@ylswtrue%\@ylctrue% subst. on 3
3063 \fi
3064 \or
3065 \ifx\ddd\empty
3066 \gdef\@ylii{-406}\gdef\@yli{0}\global\@ylswtrue%\@yldtrue% subst. on 4
3067 \else
3068 \gdef\@ylii{-436}\gdef\@yli{0}\global\@ylswtrue%\@yldtrue% subst. on 4
3069 \fi
3070 \or
3071 \ifx\eee\empty
3072 \gdef\@ylii{-303}\gdef\@yli{171}\global\@ylswtrue%\@yletrue% subst. on 5
3073 \else
3074 \gdef\@ylii{-333}\gdef\@yli{223}\global\@ylswtrue%\@yletrue% subst. on 5
3075 \fi
3076 \or
3077 \ifx\fff\empty
3078 \gdef\@ylii{-103}\gdef\@yli{171}\global\@ylswtrue%\@ylftrue% subst. on 6
3079 \else
3080 \gdef\@ylii{-73}\gdef\@yli{223}\global\@ylswtrue%\@ylftrue% subst. on 6
3081 \fi
3082 \fi%end of ifcase
3083 \fi\fi\fi\fi\fi}}%
3084 % \end{macrocode}
3085 % \end{macro}
3086 %
3087 % \subsection{Inverse horizontal type}
3088 %
3089 % The standard skeleton of a six-to-six fused heterocycle is selected
3090 % to have the following locant numbers.
3091 %
3092 % \begin{verbatim}
3093 % ************************************
3094 % * decahetero derivatives *
3095 % * (horizonatl type, inverse type) *
3096 % ************************************
3097 % The following numbering is adopted in this macro.
3098 %
3099 % 3 2
3100 %
3101 % *4 1 (*4 origin)
3102 %
3103 % (8)4a 8a(10)
3104 %
3105 % 5 8
3106 %
3107 % 6 7
3108 % ____ ____
3109 % |cf. |
3110 % | 5 (9) 4 |
3111 % | * 4a * |
3112 % | 6 * * * * 3 |
3113 % | | | | |
3114 % | | | | |
3115 % | 7 * * * * 2 |
3116 % | * 8a * |
3117 % | 8 (9) 1 |
3118 % | ^ |
3119 % | | |
3120 % | the original point |
3121 % |____ ____|
3122 % \end{verbatim}
3123 %
3124 % The macro |\decaheterohi| has two arguments |ATOMLIST| and |SUBSLIST|
3125 % as well as an optional argument |BONDLIST|.
3126 % Two optional arguments |SKBONDLIST| and |OMIT| are added to
3127 % treat stereochemical information or other bond situations.
3128 %
3129 % \begin{verbatim}
3130 % \decaheterohi(SKBONDLIST)[BONDLIST]{ATOMLIST}{SUBSLIST}[OMIT]
3131 % \end{verbatim}
3132 %
3133 % The |SKBONDLIST| argument contains pairs of two alphabets in
3134 % parentheses, e.g. (\{bA\}\{fB\}). Each pair contains a lowercase
3135 % character selected from bond specifiers `a' to `k' and a uppercase
3136 % character `A' or `B'.
3137 %
3138 % The |BONDLIST| argument contains one
3139 % character selected from a to k, each of which indicates the presence of
3140 % an inner (endcyclic) double bond on the corresponding position.
3141 % The options `A' and `B' represent aromatic circles in two rings.
3142 % The option `$n+$' ($n=1$ to $10$) represents a plus charge on a hetero atom
3143 % at the $n$-position.
3144 %
3145 % \begin{verbatim}
3146 % BONDLIST: list of bonds
3147 %
3148 % none or r : decahetero (right-handed)
3149 % l : no action
3150 % [] : fully saturated form
3151 % a : 1,2-double bond b : 2,3-double bond
3152 % c : 4,3-double bond d : 4,4a-double bond
3153 % e : 4a,5-double bond f : 5,6-double bond
3154 % g : 6,7-double bond h : 7,8-double bond
3155 % i : 8,8a-double bond j : 1,8a-double bond
3156 % k : 4a,8a-double bond
3157 % K : 4a,8a-double bond in the other ring
3158 % A : aromatic circle B : aromatic circle
3159 % {n+} : plus at the n-nitrogen atom (n = 1 to 10)
3160 % \end{verbatim}
3161 %
3162 % The |ATOMLIST| argument contains one or more heteroatom descriptors
3163 % which are separated from each other by a semicolon. Each heteroatom
3164 % descriptor consists of a locant number and a heteroatom,
3165 % where these are separated with a double equality symbol.
3166 %
3167 % \begin{verbatim}
3168 % ATOMLIST: list of heteroatoms (max 10 atoms)
3169 %
3170 % for n = 1 to 8
3171 %
3172 % n : Hetero atom, e.g. N, O, etc. at n-position
3173 % e.g. 1==N for N at 1-position
3174 % na : Hetero atom at 4a or 8b (n=4 or 8)
3175 % e.g. 4a==N (or 9==N) for N at 4a-position
3176 % 8a==N (or {{10}}==N) for N at 8a-position
3177 % \end{verbatim}
3178 %
3179 % The |SUBSLIST| argument contains one or more substitution descriptors
3180 % which are separated from each other by a semicolon. Each substitution
3181 % descriptor has a locant number with a bond modifier and a substituent,
3182 % where these are separated with a double equality symbol.
3183 %
3184 % \begin{verbatim}
3185 % SUBSLIST: list of substituents
3186 %
3187 % for n = 1 to 8
3188 %
3189 % nD : exocyclic double bond at n-atom
3190 % n or nS : exocyclic single bond at n-atom
3191 % nA : alpha single bond at n-atom
3192 % nB : beta single bond at n-atom
3193 % nSA : alpha single bond at n-atom (boldface)
3194 % nSB : beta single bond at n-atom (dotted line)
3195 % nSa : alpha (not specified) single bond at n-atom
3196 % nSb : beta (not specified) single bond at n-atom
3197 %
3198 % nSd : alpha single bond at n-atom (dotted line)
3199 % with an alternative direction to nSA
3200 % nSu : beta single bond at n-atom (boldface)
3201 % with an alternative direction to nSB
3202 % nFA : alpha single bond at n-atom (dotted line)
3203 % for ring fusion
3204 % nFB : beta single bond at n-atom (boldface)
3205 % for ring fusion
3206 % nGA : alpha single bond at n-atom (dotted line)
3207 % for the other ring fusion
3208 % nGB : beta single bond at n-atom (boldface)
3209 % for the other ring fusion
3210 %
3211 % for 9 (4a position) and 10 (8a position)
3212 %
3213 % nD : exocyclic double bond at n-atom
3214 % n or nS : exocyclic single bond at n-atom
3215 % nA : alpha single bond at n-atom
3216 % nB : beta single bond at n-atom
3217 % \end{verbatim}
3218 %
3219 % The argument |OMIT| represents one or more bonds to be omitted.
3220 % The omitted edges may be regarded as both fused and non-fused
3221 % positions.
3222 %
3223 % \begin{verbatim}
3224 % OMIT: one or more bonds omitted (a to k; see BONDLIST)
3225 % \end{verbatim}
3226 %
3227 % Several examples are shown as follows.
3228 % \begin{verbatim}
3229 % e.g.
3230 %
3231 % \decaheterohi{1==N}{1==Cl;2==F}
3232 % \decaheterohi[c]{1==N}{1==Cl;4==F;2==CH$_{3}$}
3233 % \decaheterohi[eb]{1==N}{1D==O;4SA==MeO;4SB==OMe;5==Cl;6==Cl}
3234 % \end{verbatim}
3235 %
3236 % The definition of |\decaheterohi| uses a picture environment and
3237 % consists of the same unit processes as shown in |\sixheterov|:
3238 % \begin{enumerate}
3239 % \item treatment of atom list,
3240 % \item placing outer skeletons,
3241 % \item placing inner double bonds,
3242 % \item setting hetero atoms, and
3243 % \item placing substituents by using |\setsixringh| several times.
3244 % \end{enumerate}
3245 % \changes{v1.02}{1998/10/31}{Adding \cs{ylposition}, \cs{if@ylsw},
3246 % \cs{yl@shifti}, \cs{@ylii}, \cs{yl@shiftii}, \cs{@ylii},
3247 % \cs{yl@xdiff} and \cs{yl@ydiff}}
3248 % \changes{v2.00}{1998/12/1}{Add: spiro and fused rings}
3249 % \changes{v2.01}{2001/6/20}{The
3250 % \cs{storeclipinfo} command is added.}
3251 %
3252 % \begin{macro}{\decaheterohi}
3253 % \begin{macro}{\@deca@heterohi}
3254 % \begin{macro}{\@deca@@heterohi}
3255 % \begin{macro}{\@decaheterohi}
3256 % \begin{macrocode}
3257 \def\decaheterohi{\@ifnextchar({\@deca@heterohi(@}{\@deca@heterohi(@)}}
3258 \def\@deca@heterohi(#1){\@ifnextchar[{\@deca@@heterohi(#1)[@}%
3259 {\@deca@@heterohi(#1)[@]}}
3260 \def\@deca@@heterohi(#1)[#2]#3#4{\@ifnextchar[%
3261 {\@decaheterohi(#1)[#2]{#3}{#4}[@}%
3262 {\@decaheterohi(#1)[#2]{#3}{#4}[@]}}
3263 \def\@decaheterohi(#1)[#2]#3#4[#5]{%
3264 % \end{macrocode}
3265 %
3266 % \begin{macrocode}
3267 % %%%%%%%%%%%%%%%%%%%%%%%%%%
3268 % % treatment of atom list %
3269 % %%%%%%%%%%%%%%%%%%%%%%%%%%
3270 \iniflag\iniatom%
3271 \test@vertix@decavi{#3}%
3272 % %%%%%%%%%%%%%%%%%%%%%%%
3273 % % adjustment for (yl) %
3274 % %%%%%%%%%%%%%%%%%%%%%%%
3275 \@reset@ylsw%
3276 \ylhetpositionh{#4}{5}{0}{5}{-1}% %substituents on 1 to 4
3277 \if@ylsw \ifx\@@ylii\empty
3278 \def\@@ylii{0}\def\@@yli{0}\fi
3279 \else
3280 {\let\ddd=\eee\let\eee=\fff\let\fff=\gggA
3281 \ylhetpositionh{#4}{12}{3}{7}{-1}% %substituents on 6 to 8
3282 }%
3283 \fi
3284 \if@ylsw \ifx\@@ylii\empty
3285 \def\@@ylii{0}\def\@@yli{342}\fi
3286 \else
3287 {\let\aaa=\hhh
3288 \ylhetpositionh{#4}{-4}{0}{2}{0}% %substituent on 5
3289 }%
3290 \fi
3291 \if@ylsw \ifx\@@ylii\empty
3292 \def\@@ylii{0}\def\@@yli{342}\fi
3293 \else
3294 {%
3295 \clipdetection%
3296 \@clipfusefalse \if@iclip \@clipfusetrue \fi%
3297 \ylatombondposition{#4}{-9}{4}% %10 for 8a position
3298 }%
3299 \fi
3300 \if@ylsw \ifx\@@ylii\empty
3301 \def\@@ylii{-303}\def\@@yli{171}\fi
3302 \else
3303 {%
3304 \clipdetection%
3305 \@clipfusefalse \if@jclip \@clipfusetrue \fi%
3306 \ylatombondposition{#4}{-8}{10}% %9 for 4a position
3307 }%
3308 \fi
3309 \if@ylsw \ifx\@@ylii\empty
3310 \def\@@ylii{-103}\def\@@yli{171}\fi
3311 \fi
3312 \begin{ShiftPicEnvB}(0,0)(-\yl@shiftii,-\yl@shifti)/%
3313 (1200,1200)(-400,-800){decaheterohi}%2002/4/30 by S. Fujita
3314 % \end{macrocode}
3315 %
3316 % \begin{macrocode}
3317 % %%%%%%%%%%%%%%%%%%
3318 % % outer skeleton %
3319 % %%%%%%%%%%%%%%%%%%
3320 \begingroup
3321 \resetbdsw%
3322 \@bond@@omit{#5}%
3323 {\let\fff=\jjj \let\eee=\iii%
3324 \set@skel@bondh{#1}{a}{c}% bond between 1 and 2 \@aaa -> \hskbondc etc
3325 \set@skel@bondh{#1}{b}{b}% bond between 2 and 3 \@bbb -> \hskbondb etc
3326 \set@skel@bondh{#1}{c}{a}% bond between 3 and 4 \@ccc -> \hskbonda etc
3327 \set@skel@bondh{#1}{d}{f}% bond between 4 and 4a \@ddd -> \hskbondf etc
3328 \set@skel@bondh{#1}{k}{e}% bond between 4a and 8a \@kkk -> \hskbonde etc
3329 \set@skel@bondh{#1}{j}{d}% bond between 8a and 1 \@jjj -> \hskbondd etc
3330 }%
3331 {\let\aaa=\hhh \let\ddd=\eee\let\eee=\fff\let\fff=\gggA%
3332 \let\ccc=\iii\let\bbb=\jjj%
3333 \Put@Direct(0,-342){\set@skel@bondh{#1}{e}{a}}%
3334 % bond between 4a and 5 \@eee -> \hskbonda etc
3335 \Put@Direct(0,-342){\set@skel@bondh{#1}{i}{c}}%
3336 % bond between 8a and 8 \@iii -> \hskbondc etc
3337 \Put@Direct(0,-342){\set@skel@bondh{#1}{h}{d}}%
3338 % bond between 7 and 8 \@hhh -> \hskbondd etc
3339 \Put@Direct(0,-342){\set@skel@bondh{#1}{g}{e}}%
3340 % bond between 6 and 7 \@ggg -> \hskbonde etc
3341 \Put@Direct(0,-342){\set@skel@bondh{#1}{f}{f}}%
3342 % bond between 5 and 6 \@fff -> \hskbondf etc
3343 }%
3344 \endgroup
3345 % \end{macrocode}
3346 %
3347 % \begin{macrocode}
3348 % %%%%%%%%%%%%%%%%%%%%%
3349 % % inner double bond %
3350 % %%%%%%%%%%%%%%%%%%%%%
3351 \@tfor\member:=#2\do{%
3352 \if\member r\relax%
3353 {\let\fff=\jjj \let\eee=\iii%
3354 \Put@Direct(0,0){\hbonda}% bond between 1 and 2
3355 \Put@Direct(0,0){\hbondc}% bond between 3 and 4
3356 }%
3357 {\let\aaa=\hhh \let\ddd=\eee\let\eee=\fff\let\fff=\gggA%
3358 \let\ccc=\iii\let\bbb=\jjj%
3359 \Put@Direct(0,-342){\hbondb}% bond between 8a and 4a
3360 \Put@Direct(0,-342){\hbondf}% bond between 8 and 7
3361 \Put@Direct(0,-342){\hbondd}% bond between 5 and 6
3362 }%
3363 \else \if\member l\relax%
3364 \else \if\member a\relax%
3365 \Put@Direct(0,0){\hbondc}% bond between 3 and 4
3366 \else \if\member b\relax
3367 \Put@Direct(0,0){\hbondb}% bond between 2 and 3
3368 \else \if\member c\relax
3369 \Put@Direct(0,0){\hbonda}% bond between 1 and 2
3370 \else \if\member d\relax%
3371 {\let\fff=\jjj%
3372 \Put@Direct(0,0){\hbondf}% bond between 1 and 8a
3373 }%
3374 \else \if\member e\relax%
3375 {\let\aaa=\hhh \let\bbb=\jjj%
3376 \Put@Direct(0,-342){\hbonda}% bond between 8 and 8a
3377 }%
3378 \else \if\member f\relax%
3379 {\let\aaa=\hhh \let\fff=\gggA%
3380 \Put@Direct(0,-342){\hbondf}% bond between 8 and 7
3381 }%
3382 \else \if\member g\relax%
3383 {\let\eee=\fff \let\fff=\gggA%
3384 \Put@Direct(0,-342){\hbonde}% bond between 6 and 7
3385 }%
3386 \else \if\member h\relax%
3387 {\let\ddd=\eee \let\eee=\fff%
3388 \Put@Direct(0,-342){\hbondd}% bond between 5 and 6
3389 }%
3390 \else \if\member i\relax%
3391 {\let\ccc=\iii \let\ddd=\eee%
3392 \Put@Direct(0,-342){\hbondc}% bond between 5 and 4a
3393 }%
3394 \else \if\member j\relax%
3395 {\let\eee=\iii%
3396 \Put@Direct(0,0){\hbondd}% bond between 4 and 4a
3397 }%
3398 \else \if\member k\relax%
3399 {\let\ccc=\iii\let\bbb=\jjj%
3400 \Put@Direct(0,-342){\hbondb}% bond between 8a and 4a
3401 }%
3402 \else \if\member K\relax%
3403 {\let\eee=\iii\let\fff=\jjj%
3404 \Put@Direct(0,0){\hbonde}% bond between 8a and 4a
3405 }%
3406 \else \if\member A%left aromatic circle
3407 \Put@oCircle(203,0){240}% %circle
3408 \else \if\member B%left aromatic circle
3409 \Put@oCircle(203,-342){240}% %circle
3410 \else \expandafter\twoCH@@R\member//%
3411 \def\aax{8a}\def\aay{4a}\def\aaz{10}%
3412 \if\@@tmpa 4\relax%
3413 \putratom{68}{-18}{\@@tmpb}% % right type
3414 \else\if\@@tmpa 1\relax%
3415 \putratom{272}{-18}{\@@tmpb}% % right type
3416 \else\if\@@tmpa 3\relax%
3417 \putratom{120}{60}{\@@tmpb}% % right type
3418 \else\if\@@tmpa 2\relax%
3419 \putratom{233}{60}{\@@tmpb}% % right type
3420 \else\ifx\@@tmpa\aaz\relax%
3421 \putratom{233}{-110}{\@@tmpb}% % right type
3422 \else\ifx\@@tmpa\aax\relax%
3423 \putratom{233}{-110}{\@@tmpb}% % right type
3424 \else\ifx\@@tmpa\aay\relax%
3425 \putratom{120}{-110}{\@@tmpb}% % right type
3426 \else\if\@@tmpa 9\relax%
3427 \putratom{120}{-110}{\@@tmpb}% % right type
3428 \else\if\@@tmpa 5\relax%
3429 \putratom{68}{-360}{\@@tmpb}% % right type
3430 \else\if\@@tmpa 8\relax%
3431 \putratom{272}{-360}{\@@tmpb}% % right type
3432 \else\if\@@tmpa 6\relax%
3433 \putratom{120}{-452}{\@@tmpb}% % right type
3434 \else\if\@@tmpa 7\relax%
3435 \putratom{233}{-452}{\@@tmpb}% % right type
3436 \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi%
3437 % ***********************
3438 % * setting fused rings *
3439 % ***********************
3440 \expandafter\twoCH@R\member//%
3441 \set@fusion@decahi
3442 \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi%
3443 \fi\fi\fi\fi\fi\fi}%
3444 % \end{macrocode}
3445 %
3446 % \changes{v2.00a}{2000/11/11}{The
3447 % \cs{iniflag} command is added to 8-substitution.}
3448 %
3449 % \begin{macrocode}
3450 % %%%%%%%%%%%%%%%%%%%%%%%%
3451 % % setting hetero atoms %
3452 % %%%%%%%%%%%%%%%%%%%%%%%%
3453 \iniflag
3454 \@tmpclipfalse
3455 \Put@Direct(0,0){\set@hetatom@sixh{#3}{5}{0}{5}{-1}%
3456 % \if@aclip \global\@acliptrue\fi
3457 % \if@bclip \global\@bcliptrue\fi
3458 % \if@cclip \global\@ccliptrue\fi
3459 % \if@clip \global\@cliptrue\fi
3460 \storeclipinfo
3461 }% %substituents on 1 to 4
3462 \developclipinfo
3463 \Put@Direct(0,-342){\iniflag%2000/11/11 by Shinsaku Fujita
3464 \set@hetatom@sixh{#3}{12}{3}{7}{-1}%
3465 % \@gclipfalse \if@fclip \global\@gcliptrue \fi%
3466 % \@fclipfalse \if@eclip \global\@fcliptrue \fi%
3467 % \@eclipfalse \if@clip \global\@ecliptrue \fi%
3468 \@gclipfalse \if@fclip \@gcliptrue \fi%
3469 \@fclipfalse \if@eclip \@fcliptrue \fi%
3470 \@eclipfalse \if@clip \@ecliptrue \fi%
3471 \storeclipinfo
3472 }%substituents on 6 to 8
3473 \developclipinfo
3474 \Put@Direct(0,-342){\set@hetatom@sixh{#3}{-4}{0}{2}{0}%
3475 % \@aclipfalse \if@aclip \global\@hcliptrue \fi%
3476 \@aclipfalse \if@aclip \@hcliptrue \fi%
3477 \storeclipinfo
3478 }%%substituent on 5
3479 \developclipinfo
3480 \Put@Direct(0,0){\set@vrtx@decafusehi{#3}%
3481 \@tmpclipfalse
3482 % \if@iclip \global\@tmpcliptrue \fi
3483 % \if@jclip \global\@icliptrue \fi
3484 % \if@tmpclip \global\@jcliptrue \fi
3485 \if@iclip \@tmpcliptrue \fi
3486 \if@jclip \@icliptrue \fi
3487 \if@tmpclip \@jcliptrue \fi
3488 \storeclipinfo
3489 }% fused positions
3490 \developclipinfo
3491 % \end{macrocode}
3492 %
3493 % \begin{macrocode}
3494 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3495 % % setting substituents and exocyclic bonds %
3496 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3497 \global\drawsamesubsttrue%2002/05/30 warning on
3498 \Put@Direct(0,0){\setsixringh{#4}{5}{0}{5}{-1}}% %substituents on 1 to 4
3499 \global\drawsamesubstfalse%2002/05/30 warning off
3500 {\@clipfalse \if@eclip \@cliptrue \fi% %substituents on 6 to 8
3501 \@eclipfalse \if@fclip \@ecliptrue \fi%
3502 \@fclipfalse \if@gclip \@fcliptrue \fi%
3503 \Put@Direct(0,-342){\setsixringh{#4}{12}{3}{7}{-1}}%
3504 }%
3505 {\@aclipfalse \if@hclip \@acliptrue \fi% %substituent on 5
3506 \Put@Direct(0,-342){\setsixringh{#4}{-4}{0}{2}{0}}%
3507 }%
3508 {\@clipfusefalse \if@iclip \@clipfusetrue \fi%
3509 \Put@Direct(303,-171){\setatombond{#4}{-9}{4}}% %10 for 8a position
3510 }%
3511 {\@clipfusefalse \if@jclip \@clipfusetrue \fi
3512 \Put@Direct(103,-171){\setatombond{#4}{-8}{10}}% %9 for 4a position
3513 }%
3514 \end{ShiftPicEnvB}%
3515 \iniatom\iniflag}% %end of \decaheterohi macro
3516 % \end{macrocode}
3517 % \end{macro}
3518 % \end{macro}
3519 % \end{macro}
3520 % \end{macro}
3521 %
3522 % The macro |\set@vrtx@decafusehi| is an inner command contained
3523 % in the definition of |\decaheterohi|, where the macro is used to set
3524 % a hetero atom or on a vertex of a bridgehead location.
3525 %
3526 % \begin{macro}{\set@vrtx@decafusehi}
3527 % \begin{macrocode}
3528 \def\set@vrtx@decafusehi#1{%
3529 \@forsemicol\member:=#1\do{%
3530 \ifx\member\empty\else
3531 \expandafter\@m@mb@r\member;\relax%
3532 \expandafter\twoch@r\@membera{}%
3533 \ifcase\@tmpa\or\or\or
3534 \or%%%%4
3535 \if\@tmpb a%
3536 \global\@icliptrue%
3537 \putlatom{135}{-211}{\@memberb}% % left type
3538 \else\if\@tmpb h%
3539 \XyMTeXWarning{Forbidden fused position `4a' or `9'}%
3540 \else\if\@tmpb s%
3541 \XyMTeXWarning{Forbidden fused position `4a' or `9'}%
3542 \else\ifx\@tmpb\empty\relax
3543 \else
3544 \XyMTeXWarning{Forbidden fused position `4a' or `9'}%
3545 \fi\fi\fi\fi
3546 \or\or\or
3547 \or%8
3548 \if\@tmpb a%
3549 \global\@jcliptrue%
3550 \putratom{273}{-211}{\@memberb}% % right type
3551 \else\if\@tmpb h%
3552 \XyMTeXWarning{Forbidden fused position `8a' or `10'}%
3553 \else\if\@tmpb s%
3554 \XyMTeXWarning{Forbidden fused position `8a' or `10'}%
3555 \else\ifx\@tmpb\empty\relax
3556 \else
3557 \XyMTeXWarning{Forbidden fused position `8a' or `10'}%
3558 \fi\fi\fi\fi
3559 \or%9 (= 4a)
3560 \ifx\@tmpb\empty%
3561 \global\@icliptrue%
3562 \putlatom{135}{-211}{\@memberb}% % left type
3563 \else
3564 \XyMTeXWarning{Forbidden fused position `4a' or `9'}%
3565 \fi
3566 \or%10 (= 8a)
3567 \ifx\@tmpb\empty%
3568 \global\@jcliptrue%
3569 \putratom{273}{-211}{\@memberb}% % right type
3570 \else
3571 \XyMTeXWarning{Forbidden fused position `8a' or `10'}%
3572 \fi
3573 \fi\fi}%
3574 }% end of the macro \set@vrtx@decafusehi
3575 % \end{macrocode}
3576 % \end{macro}
3577 %
3578 % The macro |\set@fusion@decahi| is an inner command contained
3579 % in the definition of |\decaheterohi|, where
3580 % the macro is used for setting an additive
3581 % or a fused ring at each bond (designated by |\@@tmpa|). The
3582 % fused ring is typeset by the inner command |\set@fusionadd@sixhi|.
3583 %
3584 % \begin{macro}{\set@fusion@decahi}
3585 % \changes{v2.00}{1998/11/15}{New command: \cs{set@fusion@decahi}}
3586 % \begin{macrocode}
3587 \def\set@fusion@decahi{%
3588 \let\@@tmpa=\@tmpa
3589 \let\@@tmpb=\@tmpb
3590 \if\@tmpa a%
3591 \let\@@tmpa=\@tmpa
3592 \Put@Direct(0,0){\set@fusionadd@sixhi}%
3593 \else\if\@tmpa A%
3594 \let\@@tmpa=\@tmpa
3595 \Put@Direct(0,0){\set@fusionadd@sixhi}%
3596 \else\if\@tmpa b%
3597 \let\@@tmpa=\@tmpa
3598 \Put@Direct(0,0){\set@fusionadd@sixhi}%
3599 \else\if\@tmpa B%
3600 \let\@@tmpa=\@tmpa
3601 \Put@Direct(0,0){\set@fusionadd@sixhi}%
3602 \else\if\@tmpa c%
3603 \let\@@tmpa=\@tmpa
3604 \Put@Direct(0,0){\set@fusionadd@sixhi}%
3605 \else\if\@tmpa C%
3606 \let\@@tmpa=\@tmpa
3607 \Put@Direct(0,0){\set@fusionadd@sixhi}%
3608 \else\if\@tmpa d%
3609 \let\@@tmpa=\@tmpa
3610 \Put@Direct(0,0){\set@fusionadd@sixhi}%
3611 \if@smallringsw\else
3612 \XyMTeXWarning{Unfavorable Fusion for bond `d'}%
3613 \fi
3614 \else\if\@tmpa D%
3615 \let\@@tmpa=\@tmpa
3616 \Put@Direct(0,0){\set@fusionadd@sixhi}%
3617 \if@smallringsw\else
3618 \XyMTeXWarning{Unfavorable Fusion for bond `D'}%
3619 \fi
3620 \else\if\@tmpa e%
3621 \edef\@@tmpa{c}%
3622 \Put@Direct(0,-342){\set@fusionadd@sixhi}%
3623 \if@smallringsw\else
3624 \XyMTeXWarning{Unfavorable Fusion for bond `e'}%
3625 \fi
3626 \else\if\@tmpa E%
3627 \edef\@@tmpa{C}%
3628 \Put@Direct(0,-342){\set@fusionadd@sixhi}%
3629 \if@smallringsw\else
3630 \XyMTeXWarning{Unfavorable Fusion for bond `E'}%
3631 \fi
3632 \else\if\@tmpa f%
3633 \edef\@@tmpa{d}%
3634 \Put@Direct(0,-342){\set@fusionadd@sixhi}%
3635 \else\if\@tmpa F%
3636 \edef\@@tmpa{D}%
3637 \Put@Direct(0,-342){\set@fusionadd@sixhi}%
3638 \else\if\@tmpa g%
3639 \edef\@@tmpa{e}%
3640 \Put@Direct(0,-342){\set@fusionadd@sixhi}%
3641 \else\if\@tmpa G%
3642 \edef\@@tmpa{E}%
3643 \Put@Direct(0,-342){\set@fusionadd@sixhi}%
3644 \else\if\@tmpa h%
3645 \edef\@@tmpa{f}%
3646 \Put@Direct(0,-342){\set@fusionadd@sixhi}%
3647 \else\if\@tmpa H%
3648 \edef\@@tmpa{F}%
3649 \Put@Direct(0,-342){\set@fusionadd@sixhi}%
3650 \else\if\@tmpa i%
3651 \edef\@@tmpa{a}%
3652 \Put@Direct(0,-342){\set@fusionadd@sixhi}%
3653 \if@smallringsw\else
3654 \XyMTeXWarning{Unfavorable Fusion for bond `i'}%
3655 \fi
3656 \else\if\@tmpa I%
3657 \edef\@@tmpa{A}%
3658 \Put@Direct(0,-342){\set@fusionadd@sixhi}%
3659 \if@smallringsw\else
3660 \XyMTeXWarning{Unfavorable Fusion for bond `I'}%
3661 \fi
3662 \else\if\@tmpa j%
3663 \edef\@@tmpa{f}%
3664 \Put@Direct(0,0){\set@fusionadd@sixhi}%
3665 \if@smallringsw\else
3666 \XyMTeXWarning{Unfavorable Fusion for bond `j'}%
3667 \fi
3668 \else\if\@tmpa J%
3669 \edef\@@tmpa{F}%
3670 \Put@Direct(0,0){\set@fusionadd@sixhi}%
3671 \if@smallringsw\else
3672 \XyMTeXWarning{Unfavorable Fusion for bond `J'}%
3673 \fi
3674 \else\if\@tmpa k%
3675 \edef\@@tmpa{e}%
3676 \Put@Direct(0,0){\set@fusionadd@sixhi}%
3677 \if@smallringsw\else
3678 \XyMTeXWarning{Forbidden Fusion for bond `k'}%
3679 \fi
3680 \else\if\@tmpa K%
3681 \edef\@@tmpa{E}%
3682 \Put@Direct(0,0){\set@fusionadd@sixhi}%
3683 \if@smallringsw\else
3684 \XyMTeXWarning{Forbidden Fusion for bond `K'}%
3685 \fi
3686 \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi%
3687 \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi%
3688 }% end of the macro \set@fusion@decahi
3689 % \end{macrocode}
3690 % \end{macro}
3691 %
3692 % \subsection{Short-cut commands for fused heterocycles}
3693 %
3694 % The macro |\decaheteroh| can be used in the
3695 % form of a fixed |ATOMLIST|. Hence, the resulting commands for
3696 % drawing a fused heterocyle with one or more nitrogen atoms
3697 % have an argument |SUBSLIST| as well as an optional argument |BONDLIST|.
3698 %
3699 % \begin{verbatim}
3700 % ****************************************************
3701 % * heterocycles having two fused six-membered rings *
3702 % * (horizontal type) *
3703 % ****************************************************
3704 %
3705 % \quinolineh[BONDLIST]{SUBSLIST}
3706 % \quinolinehi[BONDLIST]{SUBSLIST}
3707 % \isoquinolineh[BONDLIST]{SUBSLIST}
3708 % \isoquinolinehi[BONDLIST]{SUBSLIST}
3709 % \quinoxalineh[BONDLIST]{SUBSLIST}
3710 % \quinoxalinehi[BONDLIST]{SUBSLIST}
3711 % \quinazolineh[BONDLIST]{SUBSLIST}
3712 % \quinazolinehi[BONDLIST]{SUBSLIST}
3713 % \cinnolineh[BONDLIST]{SUBSLIST}
3714 % \cinnolinehi[BONDLIST]{SUBSLIST}
3715 % \pteridineh[BONDLIST]{SUBSLIST}
3716 % \pteridinehi[BONDLIST]{SUBSLIST}
3717 % \end{verbatim}
3718 %
3719 % The |BONDLIST| argument contains one
3720 % character selected from a to k, each of which indicates the presence of
3721 % an inner (endcyclic) double bond on the corresponding position.
3722 % The optiona `A' and `B' typeset aromatic circles.
3723 % The option
3724 % `$n+$' ($n=1$ to $10$) represents a plus charge on a hetero atom
3725 % at the $n$-position.
3726 %
3727 % \begin{verbatim}
3728 % BONDLIST: list of bonds
3729 %
3730 % none or r : decahetero (right-handed)
3731 % l : decahetero (left-handed)
3732 % [] : fully saturated form
3733 % a : 1,2-double bond b : 2,3-double bond
3734 % c : 4,3-double bond d : 4,4a-double bond
3735 % e : 4a,5-double bond f : 5,6-double bond
3736 % g : 6,7-double bond h : 7,8-double bond
3737 % i : 8,8a-double bond j : 1,8a-double bond
3738 % k : 4a,8a-double bond
3739 % A : aromatic circle B : aromatic circle
3740 % {n+} : plus at the n-nitrogen atom (n = 1 to 10)
3741 % \end{verbatim}
3742 %
3743 % The |SUBSLIST| argument contains one or more substitution descriptors
3744 % which are separated from each other by a semicolon. Each substitution
3745 % descriptor has a locant number with a bond modifier and a substituent,
3746 % where these are separated with a double equality symbol.
3747 %
3748 % \begin{verbatim}
3749 % SUBSLIST: list of substituents
3750 %
3751 % for n = 1 to 8
3752 %
3753 % nD : exocyclic double bond at n-atom
3754 % n or nS : exocyclic single bond at n-atom
3755 % nA : alpha single bond at n-atom
3756 % nB : beta single bond at n-atom
3757 % nSA : alpha single bond at n-atom (boldface)
3758 % nSB : beta single bond at n-atom (dotted line)
3759 % nSa : alpha (not specified) single bond at n-atom
3760 % nSb : beta (not specified) single bond at n-atom
3761 %
3762 % nSd : alpha single bond at n-atom (dotted line)
3763 % with an alternative direction to nSA
3764 % nSu : beta single bond at n-atom (boldface)
3765 % with an alternative direction to nSB
3766 % nFA : alpha single bond at n-atom (dotted line)
3767 % for ring fusion
3768 % nFB : beta single bond at n-atom (boldface)
3769 % for ring fusion
3770 % nGA : alpha single bond at n-atom (dotted line)
3771 % for the other ring fusion
3772 % nGB : beta single bond at n-atom (boldface)
3773 % for the other ring fusion
3774 %
3775 % for 9 (4a position) and 10 (8a position)
3776 %
3777 % nD : exocyclic double bond at n-atom
3778 % n or nS : exocyclic single bond at n-atom
3779 % nA : alpha single bond at n-atom
3780 % nB : beta single bond at n-atom
3781 % \end{verbatim}
3782 %
3783 % Several examples are shown as follows.
3784 % \begin{verbatim}
3785 % e.g.
3786 %
3787 % \quinolineh{2==Cl;3==F}
3788 % \end{verbatim}
3789 %
3790 % \begin{macro}{\quinolineh}
3791 % \begin{macro}{\quinolinehi}
3792 % \begin{macrocode}
3793 \def\quinolineh{%
3794 \@ifnextchar[{\@quinolineh[@}{\@quinolineh[acfhk]}}%
3795 \def\@quinolineh[#1]#2{%
3796 \iforigpt \typeout{command `quinolineh' %
3797 is based on `decaheteroh'.}\fi%
3798 \decaheteroh[#1]{1==N}{#2}}%
3799 \def\quinolinehi{%
3800 \@ifnextchar[{\@quinolinehi[@}{\@quinolinehi[acfhk]}}%
3801 \def\@quinolinehi[#1]#2{%
3802 \iforigpt \typeout{command `quinolinehi' %
3803 is based on `decaheterohi'.}\fi%
3804 \decaheterohi[#1]{1==N}{#2}}%
3805 % \end{macrocode}
3806 % \end{macro}
3807 % \end{macro}
3808 %
3809 % \begin{macro}{\isoquinolineh}
3810 % \begin{macro}{\isoquinolinehi}
3811 % \begin{macrocode}
3812 \def\isoquinolineh{%
3813 \@ifnextchar[{\@isoquinolineh[@}{\@isoquinolineh[acfhk]}}%
3814 \def\@isoquinolineh[#1]#2{%
3815 \iforigpt \typeout{command `isoquinolineh' %
3816 is based on `decaheteroh'.}\fi%
3817 \decaheteroh[#1]{2==N}{#2}}%
3818 \def\isoquinolinehi{%
3819 \@ifnextchar[{\@isoquinolinehi[@}{\@isoquinolinehi[acfhk]}}%
3820 \def\@isoquinolinehi[#1]#2{%
3821 \iforigpt \typeout{command `isoquinolinehi' %
3822 is based on `decaheterohi'.}\fi%
3823 \decaheterohi[#1]{2==N}{#2}}%
3824 % \end{macrocode}
3825 % \end{macro}
3826 % \end{macro}
3827 %
3828 % \begin{macro}{quinoxalineh}
3829 % \begin{macro}{quinoxalinehi}
3830 % \begin{macrocode}
3831 \def\quinoxalineh{%
3832 \@ifnextchar[{\@quinoxalineh[@}{\@quinoxalineh[acfhk]}}%
3833 \def\@quinoxalineh[#1]#2{%
3834 \iforigpt \typeout{command `quinoxalineh' %
3835 is based on `decaheteroh'.}\fi%
3836 \decaheteroh[#1]{1==N;4==N}{#2}}%
3837 \def\quinoxalinehi{%
3838 \@ifnextchar[{\@quinoxalinehi[@}{\@quinoxalinehi[acfhk]}}%
3839 \def\@quinoxalinehi[#1]#2{%
3840 \iforigpt \typeout{command `quinoxalinehi' %
3841 is based on `decaheterohi'.}\fi%
3842 \decaheterohi[#1]{1==N;4==N}{#2}}%
3843 % \end{macrocode}
3844 % \end{macro}
3845 % \end{macro}
3846 %
3847 % \begin{macro}{\quinazolineh}
3848 % \begin{macro}{\quinazolinehi}
3849 % \begin{macrocode}
3850 \def\quinazolineh{%
3851 \@ifnextchar[{\@quinazolineh[@}{\@quinazolineh[acfhk]}}%
3852 \def\@quinazolineh[#1]#2{%
3853 \iforigpt \typeout{command `quinazolineh' %
3854 is based on `decaheteroh'.}\fi%
3855 \decaheteroh[#1]{1==N;3==N}{#2}}%
3856 \def\quinazolinehi{%
3857 \@ifnextchar[{\@quinazolinehi[@}{\@quinazolinehi[acfhk]}}%
3858 \def\@quinazolinehi[#1]#2{%
3859 \iforigpt \typeout{command `quinazolinehi' %
3860 is based on `decaheterohi'.}\fi%
3861 \decaheterohi[#1]{1==N;3==N}{#2}}%
3862 % \end{macrocode}
3863 % \end{macro}
3864 % \end{macro}
3865 %
3866 % \begin{macro}{\cinnolineh}
3867 % \begin{macro}{\cinnolinehi}
3868 % \begin{macrocode}
3869 \def\cinnolineh{%
3870 \@ifnextchar[{\@cinnolineh[@}{\@cinnolineh[acfhk]}}%
3871 \def\@cinnolineh[#1]#2{%
3872 \iforigpt \typeout{command `cinnolineh' %
3873 is based on `decaheteroh'.}\fi%
3874 \decaheteroh[#1]{1==N;2==N}{#2}}%
3875 \def\cinnolinehi{%
3876 \@ifnextchar[{\@cinnolinehi[@}{\@cinnolinehi[acfhk]}}%
3877 \def\@cinnolinehi[#1]#2{%
3878 \iforigpt \typeout{command `cinnolinehi' %
3879 is based on `decaheterohi'.}\fi%
3880 \decaheterohi[#1]{1==N;2==N}{#2}}%
3881 % \end{macrocode}
3882 % \end{macro}
3883 % \end{macro}
3884 %
3885 % \begin{macro}{\pteridineh}
3886 % \begin{macro}{\pteridinehi}
3887 % \begin{macrocode}
3888 \def\pteridineh{%
3889 \@ifnextchar[{\@pteridineh[@}{\@pteridineh[acfhk]}}%
3890 \def\@pteridineh[#1]#2{%
3891 \iforigpt \typeout{command `pteridineh' %
3892 is based on `decaheteroh'.}\fi%
3893 \decaheteroh[#1]{1==N;3==N;5==N;8==N}{#2}}%
3894 \def\pteridinehi{%
3895 \@ifnextchar[{\@pteridinehi[@}{\@pteridinehi[acfhk]}}%
3896 \def\@pteridinehi[#1]#2{%
3897 \iforigpt \typeout{command `pteridinehi' %
3898 is based on `decaheterohi'.}\fi%
3899 \decaheterohi[#1]{1==N;3==N;5==N;8==N}{#2}}%
3900 % \end{macrocode}
3901 % \end{macro}
3902 % \end{macro}
3903 %
3904 % \section{Six-to-five fused heterocycles}
3905 % \subsection{Horizontal type}
3906 %
3907 % The standard skeleton of a six-to-five fused heterocycle is selected
3908 % to have the following locant numbers.
3909 %
3910 % \begin{verbatim}
3911 % **************************
3912 % * nonahetero derivatives *
3913 % * (horizontal type) *
3914 % **************************
3915 % The following numbering is adopted in this macro.
3916 %
3917 % 3 2
3918 %
3919 % 1 (*1 origin)
3920 %
3921 % (8)3a 7a(9)
3922 %
3923 % 4 7
3924 %
3925 % 5 6
3926 % ____ ____
3927 % |cf. |
3928 % | 4 (8) |
3929 % | * 3a |
3930 % | 5 * * ----- 3 |
3931 % | | | | |
3932 % | | | | |
3933 % | 6 * * * * 2 |
3934 % | * 7a * |
3935 % | 7 (9) 1 |
3936 % | ^ |
3937 % | | |
3938 % | the original point |
3939 % |____ ____|
3940 % \end{verbatim}
3941 %
3942 % The macro |\nonaheteroh| has two arguments |ATOMLIST| and |SUBSLIST|
3943 % as well as an optional argument |BONDLIST|.
3944 % Two optional arguments |SKBONDLIST| and |OMIT| are added to
3945 % treat stereochemical information or other bond situations.
3946 %
3947 % \begin{verbatim}
3948 % \nonaheteroh(SKBONDLIST)[BONDLIST]{ATOMLIST}{SUBSLIST}[OMIT]
3949 % \end{verbatim}
3950 %
3951 % The |SKBONDLIST| argument contains pairs of two alphabets in
3952 % parentheses, e.g. (\{bA\}\{fB\}). Each pair contains a lowercase
3953 % character selected from bond specifiers `a' to `j' and a uppercase
3954 % character `A' or `B'.
3955 %
3956 % The |BONDLIST| argument contains one
3957 % character selected from a to j, each of which indicates the presence of
3958 % an inner (endcyclic) double bond on the corresponding position.
3959 % The options `A' and `B' represent aromatic circles in two rings.
3960 % The option `$n+$' ($n=1$ to $9$) represents a plus charge on a hetero atom
3961 % at the $n$-position.
3962 %
3963 % \begin{verbatim}
3964 % BONDLIST: list of bonds
3965 %
3966 % none or r : aromatic six-membered ring
3967 % [] : fully saturated form
3968 % a : 1,2-double bond b : 2,3-double bond
3969 % c : 3,3a-double bond d : 4,3a-double bond
3970 % e : 4,5-double bond f : 5,6-double bond
3971 % g : 6,7-double bond h : 7,7a-double bond
3972 % i : 1,7a-double bond
3973 % j : 3a,4a-double bond
3974 % J : 3a,4a-double bond in the other ring
3975 % A : aromatic circle (six-membered)
3976 % B : aromatic circle (five-membered)
3977 % {n+} : plus at the n-nitrogen atom (n = 1 to 9)
3978 % {0+} : plus (or others) at the center
3979 % of the five-membered cycle
3980 % \end{verbatim}
3981 %
3982 % The |ATOMLIST| argument contains one or more heteroatom descriptors
3983 % which are separated from each other by a semicolon. Each heteroatom
3984 % descriptor consists of a locant number and a heteroatom,
3985 % where these are separated with a double equality symbol.
3986 %
3987 % \begin{verbatim}
3988 % ATOMLIST: list of heteroatoms (max 9 atoms)
3989 %
3990 % for n = 1 to 7
3991 %
3992 % n : Hetero atom, e.g. N, O, etc. at n-position
3993 % e.g. 1==N for N at 1-position
3994 % na : Hetero atom at 3a or 7b (n=3 or 7)
3995 % e.g. 3a==N (or 8==N) for N at 4a-position
3996 % 7a==N (or 9==N) for N at 8a-position
3997 % \end{verbatim}
3998 %
3999 % The |SUBSLIST| argument contains one or more substitution descriptors
4000 % which are separated from each other by a semicolon. Each substitution
4001 % descriptor has a locant number with a bond modifier and a substituent,
4002 % where these are separated with a double equality symbol.
4003 %
4004 % \begin{verbatim}
4005 % SUBSLIST: list of substituents
4006 %
4007 % for n = 1 to 8
4008 %
4009 % nD : exocyclic double bond at n-atom
4010 % n or nS : exocyclic single bond at n-atom
4011 % nA : alpha single bond at n-atom
4012 % nB : beta single bond at n-atom
4013 % nSA : alpha single bond at n-atom (boldface)
4014 % nSB : beta single bond at n-atom (dotted line)
4015 % nSa : alpha (not specified) single bond at n-atom
4016 % nSb : beta (not specified) single bond at n-atom
4017 %
4018 % nSd : alpha single bond at n-atom (dotted line)
4019 % with an alternative direction to nSA
4020 % nSu : beta single bond at n-atom (boldface)
4021 % with an alternative direction to nSB
4022 % nFA : alpha single bond at n-atom (dotted line)
4023 % for ring fusion
4024 % nFB : beta single bond at n-atom (boldface)
4025 % for ring fusion
4026 % nGA : alpha single bond at n-atom (dotted line)
4027 % for the other ring fusion
4028 % nGB : beta single bond at n-atom (boldface)
4029 % for the other ring fusion
4030 %
4031 % for 8 (3a position) and 9 (7a position)
4032 %
4033 % nD : exocyclic double bond at n-atom
4034 % n or nS : exocyclic single bond at n-atom
4035 % nA : alpha single bond at n-atom
4036 % nB : beta single bond at n-atom
4037 % \end{verbatim}
4038 %
4039 % The argument |OMIT| represents one or more bonds to be omitted.
4040 % The omitted edges may be regarded as both fused and non-fused
4041 % positions.
4042 %
4043 % \begin{verbatim}
4044 % OMIT: one or more bonds omitted (a to j; see BONDLIST)
4045 % \end{verbatim}
4046 %
4047 % Several examples are shown as follows.
4048 % \begin{verbatim}
4049 % e.g.
4050 %
4051 % \nonaheteroh{1==N}{1==Cl;2==F}
4052 % \nonaheteroh[c]{1==N}{1==Cl;4==F;2==CH$_{3}$}
4053 % \end{verbatim}
4054 %
4055 % The definition of |\nonaheteroh| uses a picture environment and
4056 % consists of the same unit processes as shown in |\sixheteroh|:
4057 % \begin{enumerate}
4058 % \item treatment of atom list,
4059 % \item placing outer skeletons,
4060 % \item placing inner double bonds,
4061 % \item setting hetero atoms, and
4062 % \item placing substituents by using |\setsixringh| several times in
4063 % a restricted fashion.
4064 % \end{enumerate}
4065 % \changes{v1.02}{1998/10/31}{Adding \cs{ylpositionh}, \cs{if@ylsw},
4066 % \cs{yl@shifti}, \cs{@ylii}, \cs{yl@shiftii}, \cs{@ylii},
4067 % \cs{yl@xdiff} and \cs{yl@ydiff}}
4068 % \changes{v2.00}{1998/12/05}{Add: fused and spiro rings}
4069 % \changes{v2.01}{2001/6/20}{The
4070 % \cs{storeclipinfo} command is added.}
4071 %
4072 % \begin{macro}{\nonaheteroh}
4073 % \begin{macro}{\@nona@heteroh}
4074 % \begin{macro}{\@nona@@heteroh}
4075 % \begin{macro}{\@nonaheteroh}
4076 % \begin{macrocode}
4077 \def\nonaheteroh{\@ifnextchar({\@nona@heteroh(@}{\@nona@heteroh(@)}}
4078 \def\@nona@heteroh(#1){\@ifnextchar[{\@nona@@heteroh(#1)[@}%
4079 {\@nona@@heteroh(#1)[@]}}
4080 \def\@nona@@heteroh(#1)[#2]#3#4{\@ifnextchar[%
4081 {\@nonaheteroh(#1)[#2]{#3}{#4}[@}%
4082 {\@nonaheteroh(#1)[#2]{#3}{#4}[@]}}
4083 \def\@nonaheteroh(#1)[#2]#3#4[#5]{%
4084 % \end{macrocode}
4085 %
4086 % \begin{macrocode}
4087 % %%%%%%%%%%%%%%%%%%%%%%%%%%
4088 % % treatment of atom list %
4089 % %%%%%%%%%%%%%%%%%%%%%%%%%%
4090 \iniflag\iniatom%
4091 \test@vertix@nonav{#3}%
4092 % %%%%%%%%%%%%%%%%%%%%%%%
4093 % % adjustment for (yl) %
4094 % %%%%%%%%%%%%%%%%%%%%%%%
4095 \@reset@ylsw%
4096 \ylpositionh{#4}{5}{1}{5}{-1}% %substituents on 1 to 3
4097 \if@ylsw \ifx\@@ylii\empty
4098 \def\@@ylii{0}\def\@@yli{0}\fi
4099 \else
4100 {\let\ddd=\eee\let\eee=\fff\let\fff=\gggA
4101 \ylpositionh{#4}{11}{3}{7}{-1}% %substituents on 5 to 7
4102 }%
4103 \fi
4104 \if@ylsw \ifx\@@ylii\empty
4105 \def\@@ylii{0}\def\@@yli{342}\fi
4106 \else
4107 {\let\aaa=\hhh
4108 \ylpositionh{#4}{-3}{0}{2}{0}%%substituent on 4
4109 }%
4110 \fi
4111 \if@ylsw \ifx\@@ylii\empty
4112 \def\@@ylii{0}\def\@@yli{342}\fi
4113 \else
4114 {%
4115 \clipdetection%
4116 \@clipfusefalse \if@iclip \@clipfusetrue \fi%
4117 \ylatombondposition{#4}{-8}{4}% %9 for 7a position
4118 }%
4119 \fi
4120 \if@ylsw \ifx\@@ylii\empty
4121 \def\@@ylii{-303}\def\@@yli{171}\fi
4122 \else
4123 {%
4124 \clipdetection%
4125 \@clipfusefalse \if@jclip \@clipfusetrue \fi%
4126 \ylatombondposition{#4}{-7}{10}% %8 for 3a position
4127 }%
4128 \fi
4129 \if@ylsw \ifx\@@ylii\empty
4130 \def\@@ylii{-103}\def\@@yli{171}\fi
4131 \fi
4132 \begin{ShiftPicEnvB}(0,0)(-\yl@shiftii,-\yl@shifti)/%
4133 (1200,1200)(-400,-800){nonaheteroh}%2002/4/30 by S. Fujita
4134 % \end{macrocode}
4135 %
4136 % \begin{macrocode}
4137 % %%%%%%%%%%%%%%%%%%
4138 % % outer skeleton %
4139 % %%%%%%%%%%%%%%%%%%
4140 \begingroup
4141 \resetbdsw%
4142 \@bond@@omit{#5}%
4143 {\let\fff=\jjj \let\eee=\iii%
4144 \set@skel@bondh{#1}{a}{c}% bond between 1 and 2 \@aaa -> \hskbondc etc
4145 \set@skel@bondh{#1}{b}{b}% bond between 2 and 3 \@bbb -> \hskbondb etc
4146 \set@skel@longbond{#1}{c}{hskbondvert}%
4147 % bond between 3 and 3a \@ccc -> \hskbondhoriz etc
4148 \set@skel@bondh{#1}{j}{e}% bond between 3a and 7a \@jjj -> \hskbonde etc
4149 \set@skel@bondh{#1}{i}{d}% bond between 7a and 1 \@iii -> \hskbondd etc
4150 }%
4151 {\let\aaa=\hhh \let\ddd=\eee\let\eee=\fff\let\fff=\gggA
4152 \let\ccc=\iii\let\bbb=\jjj%
4153 \Put@Direct(0,-342){\set@skel@bondh{#1}{d}{a}}%
4154 % bond between 3a and 4 \@ddd -> \hskbonda etc
4155 \Put@Direct(0,-342){\set@skel@bondh{#1}{h}{c}}%
4156 % bond between 7a and 7 \@hhh -> \hskbondc etc
4157 \Put@Direct(0,-342){\set@skel@bondh{#1}{g}{d}}%
4158 % bond between 6 and 7 \@ggg -> \hskbondd etc
4159 \Put@Direct(0,-342){\set@skel@bondh{#1}{f}{e}}%
4160 % bond between 5 and 6 \@fff -> \hskbonde etc
4161 \Put@Direct(0,-342){\set@skel@bondh{#1}{e}{f}}%
4162 % bond between 4 and 5 \@eee -> \hskbondf etc
4163 }%
4164 \endgroup
4165 % \end{macrocode}
4166 %
4167 % \begin{macrocode}
4168 % %%%%%%%%%%%%%%%%%%%%%
4169 % % inner double bond %
4170 % %%%%%%%%%%%%%%%%%%%%%
4171 \@tfor\member:=#2\do{%
4172 \if\member r\relax%
4173 {\let\aaa=\hhh \let\ddd=\eee\let\eee=\fff\let\fff=\gggA%
4174 \let\ccc=\iii\let\bbb=\jjj%
4175 \Put@Direct(0,-342){\hbondb}% bond between 3a and 7a
4176 \Put@Direct(0,-342){\hbondf}% bond between 4 and 5
4177 \Put@Direct(0,-342){\hbondd}% bond between 6 and 7
4178 }%
4179 \else \if\member l\relax%
4180 \else \if\member a\relax%
4181 \Put@Direct(0,0){\hbondc}% bond between 3 and 4
4182 \else \if\member b\relax%
4183 \Put@Direct(0,0){\hbondb}% bond between 2 and 3
4184 \else \if\member c\relax%
4185 \Put@Direct(0,0){\hbondvert}% bond between 3 and 3a
4186 \else \if\member d\relax%
4187 {\let\aaa=\hhh \let\bbb=\jjj%
4188 \Put@Direct(0,-342){\hbonda}% bond between 4 and 3a
4189 }%
4190 \else \if\member e\relax%
4191 {\let\aaa=\hhh \let\fff=\gggA%
4192 \Put@Direct(0,-342){\hbondf}% bond between 4 and 5
4193 }%
4194 \else \if\member f\relax%
4195 {\let\eee=\fff \let\fff=\gggA%
4196 \Put@Direct(0,-342){\hbonde}% bond between 5 and 6
4197 }%
4198 \else \if\member g\relax%
4199 {\let\ddd=\eee \let\eee=\fff%
4200 \Put@Direct(0,-342){\hbondd}% bond between 6 and 7
4201 }%
4202 \else \if\member h\relax%
4203 {\let\ccc=\iii \let\ddd=\eee%
4204 \Put@Direct(0,-342){\hbondc}% bond between 7 and 7a
4205 }%
4206 \else \if\member i\relax%
4207 {\let\eee=\iii%
4208 \Put@Direct(0,0){\hbondd}% bond between 1 and 7a
4209 }%
4210 \else \if\member j\relax%
4211 {\let\ccc=\iii\let\bbb=\jjj%
4212 \Put@Direct(0,-342){\hbondb}% bond between 7a and 3a
4213 }%
4214 \else \if\member J\relax%
4215 {\let\eee=\iii\let\fff=\jjj%
4216 \Put@Direct(0,0){\hbonde}% bond between 7a and 3a
4217 }%
4218 \else \if\member B%left aromatic circle
4219 \Put@oCircle(233,0){180}% %circle (five-membered)
4220 \else \if\member A%left aromatic circle
4221 \Put@oCircle(203,-342){240}% %circle (six-membered)
4222 \else
4223 \expandafter\twoCH@@R\member//%
4224 \def\aax{3a}\def\aay{7a}%
4225 \if\@@tmpa 1\relax%
4226 \putratom{272}{-18}{\@@tmpb}% % right type
4227 \else\if\@@tmpa 2\relax%
4228 \putratom{233}{60}{\@@tmpb}% % right type
4229 \else\if\@@tmpa 3\relax%
4230 \putratom{120}{60}{\@@tmpb}% % right type
4231 \else\if\@@tmpa 4\relax%
4232 \putratom{68}{-360}{\@@tmpb}% % right type
4233 \else\if\@@tmpa 5\relax%
4234 \putratom{120}{-452}{\@@tmpb}% % right type
4235 \else\if\@@tmpa 6\relax%
4236 \putratom{233}{-452}{\@@tmpb}% % right type
4237 \else\if\@@tmpa 7\relax%
4238 \putratom{272}{-360}{\@@tmpb}% % right type
4239 \else\if\@@tmpa 8\relax%
4240 \putratom{120}{-110}{\@@tmpb}% % right type
4241 \else\ifx\@@tmpa\aax\relax%
4242 \putratom{120}{-110}{\@@tmpb}% % right type
4243 \else\ifx\@@tmpa\aay\relax%
4244 \putratom{233}{-110}{\@@tmpb}% % right type
4245 \else\if\@@tmpa 9\relax%
4246 \putratom{233}{-110}{\@@tmpb}% % right type
4247 \else\if\@@tmpa 0\relax%
4248 \putratom{196}{-30}{\@@tmpb}% % right type
4249 \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi%
4250 % ***********************
4251 % * setting fused rings *
4252 % ***********************
4253 \expandafter\twoCH@R\member//%
4254 \set@fusion@nonah
4255 \fi\fi\fi\fi\fi\fi\fi\fi\fi%
4256 \fi\fi\fi\fi\fi\fi}%
4257 % \end{macrocode}
4258 %
4259 % \begin{macrocode}
4260 % %%%%%%%%%%%%%%%%%%%%%%%%
4261 % % setting hetero atoms %
4262 % %%%%%%%%%%%%%%%%%%%%%%%%
4263 \iniflag
4264 \@tmpclipfalse
4265 %position 7 should be treated before
4266 %position 1 (using the same \if@clip)
4267 \Put@Direct(0,-342){%
4268 %%\@clipfalse%2003/5/1 bugfix by Shinsaku Fujita deleted/2006/9/5
4269 \set@hetatom@sixh{#3}{11}{3}{7}{-1}%
4270 % \@gclipfalse \if@fclip \global\@gcliptrue \fi%
4271 % \@fclipfalse \if@eclip \global\@fcliptrue \fi%
4272 % \@eclipfalse \if@clip \global\@ecliptrue \fi%
4273 \@gclipfalse \if@fclip \@gcliptrue \fi%
4274 \@fclipfalse \if@eclip \@fcliptrue \fi%
4275 \@eclipfalse \if@clip \@ecliptrue \fi%
4276 \@clipfalse%2006/9/5added
4277 \storeclipinfo
4278 }%substituents on 5 to 7
4279 %%\developclipinfo%%2006/9/5 deleted
4280 \Put@Direct(0,0){\set@hetatom@sixh{#3}{5}{1}{5}{-1}%
4281 % \if@aclip \global\@acliptrue\fi
4282 % \if@bclip \global\@bcliptrue\fi
4283 % \if@cclip \global\@ccliptrue\fi
4284 \storeclipinfo
4285 }% %substituents on 1 to 3
4286 %%\developclipinfo%%2006/9/5 deleted
4287 \Put@Direct(0,-342){\set@hetatom@sixh{#3}{-3}{0}{2}{0}%
4288 % \@aclipfalse \if@aclip \global\@hcliptrue \fi%
4289 % \@aclipfalse \if@aclip \@hcliptrue \fi
4290 \@hclipfalse \if@aclip \@hcliptrue \fi%%2006/9/5 bugfix
4291 \storeclipinfo
4292 }%%substituent on 4
4293 %%\developclipinfo%%2006/9/5 deleted
4294 \Put@Direct(0,0){\set@vrtx@nonafuseh{#3}%
4295 \@iclipfalse%2006/9/5 bugfix by Shinsaku Fujita
4296 \@jclipfalse%2006/9/5 bugfix by Shinsaku Fujita
4297 \@tmpclipfalse
4298 %% \if@iclip \global\@tmpcliptrue \fi
4299 %% \if@jclip \global\@icliptrue \fi
4300 %% \if@tmpclip \global\@jcliptrue \fi
4301 \if@iclip \@tmpcliptrue \fi
4302 \if@jclip \@icliptrue \else \@iclipfalse \fi
4303 \if@tmpclip \@jcliptrue \else \@jclipfalse \fi
4304 \storeclipinfo
4305 %===\clipinfo===
4306 }% fused positions
4307 \developclipinfo
4308 % \end{macrocode}
4309 %
4310 % \begin{macrocode}
4311 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4312 % % setting substituents and exocyclic bonds %
4313 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4314 \Put@Direct(0,0){\setsixringh{#4}{5}{1}{5}{-1}}% %substituents on 1 to 3
4315 {\@clipfalse \if@eclip \@cliptrue \fi% %substituents on 5 to 7
4316 \@eclipfalse \if@fclip \@ecliptrue \fi%
4317 \@fclipfalse \if@gclip \@fcliptrue \fi%
4318 \Put@Direct(0,-342){\setsixringh{#4}{11}{3}{7}{-1}}%
4319 }%
4320 {\@aclipfalse \if@hclip \@acliptrue \fi% %substituent on 4
4321 \Put@Direct(0,-342){\setsixringh{#4}{-3}{0}{2}{0}}%
4322 }%
4323 {%
4324 % \@clipfusefalse \if@iclip \@clipfusetrue \fi%change to the next line
4325 \@clipfusefalse \if@jclip \@clipfusetrue \fi%2006/9/5
4326 \Put@Direct(303,-171){\setatombond{#4}{-8}{4}}% %9 for 7a position
4327 }%
4328 {%
4329 % \@clipfusefalse \if@jclip \@clipfusetrue \fi%change to the next line
4330 \@clipfusefalse \if@iclip \@clipfusetrue \fi%2006/9/5
4331 \Put@Direct(103,-171){\setatombond{#4}{-7}{10}}% %8 for 3a position
4332 }%
4333 \end{ShiftPicEnvB}%
4334 \iniatom\iniflag}% %end of \nonaheteroh macro
4335 % \end{macrocode}
4336 % \end{macro}
4337 % \end{macro}
4338 % \end{macro}
4339 % \end{macro}
4340 %
4341 % The macro |\set@vrtx@nonafuseh| is an inner command contained
4342 % in the definition of |\nonaheteroh|, where the macro is used to set
4343 % a hetero atom on a vertex of a bridgehead location.
4344 % \changes{v2.00}{1998/12/05}{New command: \cs{set@vrtx@nonafuseh}}
4345 %
4346 % \begin{macro}{\set@vrtx@nonafuseh}
4347 % \begin{macrocode}
4348 \def\set@vrtx@nonafuseh#1{%
4349 \@forsemicol\member:=#1\do{%
4350 \ifx\member\empty\else
4351 \expandafter\@m@mb@r\member;\relax%
4352 \expandafter\twoch@r\@membera{}%
4353 \ifcase\@tmpa\or\or
4354 \or%%%%3
4355 \if\@tmpb a%
4356 \global\@icliptrue%
4357 \putlatom{135}{-211}{\@memberb}% % left type
4358 \else\if\@tmpb h%
4359 \XyMTeXWarning{Forbidden fused position `3a' or `8'}%
4360 \else\if\@tmpb s%
4361 \XyMTeXWarning{Forbidden fused position `3a' or `8'}%
4362 \else\ifx\@tmpb\empty\relax
4363 \else
4364 \XyMTeXWarning{Forbidden fused position `3a' or `8'}%
4365 \fi\fi\fi\fi
4366 \or\or\or
4367 \or%7
4368 \if\@tmpb a%
4369 \global\@jcliptrue%
4370 \putratom{273}{-211}{\@memberb}% % right type
4371 \else\if\@tmpb h%
4372 \XyMTeXWarning{Forbidden fused position `7a' or `9'}%
4373 \else\if\@tmpb s%
4374 \XyMTeXWarning{Forbidden fused position `7a' or `9'}%
4375 \else\ifx\@tmpb\empty\relax
4376 \else
4377 \XyMTeXWarning{Forbidden fused position `7a' or `9'}%
4378 \fi\fi\fi\fi
4379 \or%8 (= 3a)
4380 \ifx\@tmpb\empty%
4381 \global\@icliptrue%
4382 \putlatom{135}{-211}{\@memberb}% % left type
4383 \else
4384 \XyMTeXWarning{Forbidden fused position `3a' or `8'}%
4385 \fi
4386 \or%9 (= 7a)
4387 \ifx\@tmpb\empty%
4388 \global\@jcliptrue%
4389 \putratom{273}{-211}{\@memberb}% % right type
4390 \else
4391 \XyMTeXWarning{Forbidden fused position `7a' or `9'}%
4392 \fi
4393 \fi\fi}%
4394 }% end of the macro \set@vrtx@nonafuseh
4395 % \end{macrocode}
4396 % \end{macro}
4397 %
4398 % \subsection{Inverse horizontal type}
4399 %
4400 % The standard skeleton of a six-to-five fused heterocycle is selected
4401 % to have the following locant numbers.
4402 %
4403 % \begin{verbatim}
4404 % ************************************
4405 % * nonahetero derivatives *
4406 % * (horizontal type, inverse type) *
4407 % ************************************
4408 % The following numbering is adopted in this macro.
4409 %
4410 %
4411 % 2 3
4412 %
4413 % 1
4414 %
4415 % (9)7a 3a(8)
4416 %
4417 % 7 4
4418 %
4419 % 6 5
4420 % ____ ____
4421 % |cf. |
4422 % | 7 (9) 1 |
4423 % | * 7a * |
4424 % | 6 * * * * 2 |
4425 % | | | | |
4426 % | | | | |
4427 % | 5 * * ----- 3 |
4428 % | * 3a |
4429 % | 4 (8) |
4430 % | ^ |
4431 % | | |
4432 % | the original point |
4433 % |____ ____|
4434 % \end{verbatim}
4435 %
4436 % The macro |\nonaheterohi| has two arguments |ATOMLIST| and |SUBSLIST|
4437 % as well as an optional argument |BONDLIST|.
4438 % Two optional arguments |SKBONDLIST| and |OMIT| are added to
4439 % treat stereochemical information or other bond situations.
4440 %
4441 % \begin{verbatim}
4442 % \nonaheterohi(SKBONDLIST)[BONDLIST]{ATOMLIST}{SUBSLIST}[OMIT]
4443 % \end{verbatim}
4444 %
4445 % The |SKBONDLIST| argument contains pairs of two alphabets in
4446 % parentheses, e.g. (\{bA\}\{fB\}). Each pair contains a lowercase
4447 % character selected from bond specifiers `a' to `j' and a uppercase
4448 % character `A' or `B'.
4449 %
4450 % The |BONDLIST| argument contains one
4451 % character selected from a to j, each of which indicates the presence of
4452 % an inner (endcyclic) double bond on the corresponding position.
4453 % The options `A' and `B' represent aromatic circles in two rings.
4454 % The option `$n+$' ($n=1$ to $9$) represents a plus charge on a hetero atom
4455 % at the $n$-position.
4456 %
4457 % \begin{verbatim}
4458 %
4459 % BONDLIST: list of bonds
4460 %
4461 % none or r : aromatic six-membered ring
4462 % [] : fully saturated form
4463 % a : 1,2-double bond b : 2,3-double bond
4464 % c : 3,3a-double bond d : 4,3a-double bond
4465 % e : 4,5-double bond f : 5,6-double bond
4466 % g : 6,7-double bond h : 7,7a-double bond
4467 % i : 1,7a-double bond
4468 % j : 3a,4a-double bond
4469 % J : 3a,4a-double bond in the other ring
4470 % A : aromatic circle (six-membered)
4471 % B : aromatic circle (five-membered)
4472 % {n+} : plus at the n-nitrogen atom (n = 1 to 9)
4473 % {0+} : plus (or others) at the center
4474 % of the five-membered cycle
4475 % \end{verbatim}
4476 %
4477 % The |ATOMLIST| argument contains one or more heteroatom descriptors
4478 % which are separated from each other by a semicolon. Each heteroatom
4479 % descriptor consists of a locant number and a heteroatom,
4480 % where these are separated with a double equality symbol.
4481 %
4482 % \begin{verbatim}
4483 % ATOMLIST: list of heteroatoms (max 9 atoms)
4484 %
4485 % for n = 1 to 7
4486 %
4487 % n : Hetero atom, e.g. N, O, etc. at n-position
4488 % e.g. 1==N for N at 1-position
4489 % na : Hetero atom at 3a or 7b (n=3 or 7)
4490 % e.g. 3a==N (or 8==N) for N at 4a-position
4491 % 7a==N (or 9==N) for N at 8a-position
4492 % \end{verbatim}
4493 %
4494 % The |SUBSLIST| argument contains one or more substitution descriptors
4495 % which are separated from each other by a semicolon. Each substitution
4496 % descriptor has a locant number with a bond modifier and a substituent,
4497 % where these are separated with a double equality symbol.
4498 %
4499 % \begin{verbatim}
4500 % SUBSLIST: list of substituents
4501 %
4502 % for n = 1 to 8
4503 %
4504 % nD : exocyclic double bond at n-atom
4505 % n or nS : exocyclic single bond at n-atom
4506 % nA : alpha single bond at n-atom
4507 % nB : beta single bond at n-atom
4508 % nSA : alpha single bond at n-atom (boldface)
4509 % nSB : beta single bond at n-atom (dotted line)
4510 % nSa : alpha (not specified) single bond at n-atom
4511 % nSb : beta (not specified) single bond at n-atom
4512 %
4513 % nSd : alpha single bond at n-atom (dotted line)
4514 % with an alternative direction to nSA
4515 % nSu : beta single bond at n-atom (boldface)
4516 % with an alternative direction to nSB
4517 % nFA : alpha single bond at n-atom (dotted line)
4518 % for ring fusion
4519 % nFB : beta single bond at n-atom (boldface)
4520 % for ring fusion
4521 % nGA : alpha single bond at n-atom (dotted line)
4522 % for the other ring fusion
4523 % nGB : beta single bond at n-atom (boldface)
4524 % for the other ring fusion
4525 %
4526 % for 8 (3a position) and 9 (7a position)
4527 %
4528 % nD : exocyclic double bond at n-atom
4529 % n or nS : exocyclic single bond at n-atom
4530 % nA : alpha single bond at n-atom
4531 % nB : beta single bond at n-atom
4532 % \end{verbatim}
4533 %
4534 % The argument |OMIT| represents one or more bonds to be omitted.
4535 % The omitted edges may be regarded as both fused and non-fused
4536 % positions.
4537 %
4538 % \begin{verbatim}
4539 % OMIT: one or more bonds omitted (a to j; see BONDLIST)
4540 % \end{verbatim}
4541 %
4542 % Several examples are shown as follows.
4543 % \begin{verbatim}
4544 % e.g.
4545 %
4546 % \nonaheterohi{1==N}{1==Cl;2==F}
4547 % \nonaheterohi[c]{1==N}{1==Cl;4==F;2==CH$_{3}$}
4548 % \end{verbatim}
4549 %
4550 % The definition of |\nonaheterohi| uses a picture environment and
4551 % consists of the same unit processes as shown in |\sixheteroh|:
4552 % \begin{enumerate}
4553 % \item treatment of atom list,
4554 % \item placing outer skeletons,
4555 % \item placing inner double bonds,
4556 % \item setting hetero atoms, and
4557 % \item placing substituents by using |\setsixringh| several times in
4558 % a restricted fashion.
4559 % \end{enumerate}
4560 % \changes{v1.02}{1998/10/31}{Adding \cs{ylpositionh}, \cs{if@ylsw},
4561 % \cs{yl@shifti}, \cs{@ylii}, \cs{yl@shiftii}, \cs{@ylii},
4562 % \cs{yl@xdiff} and \cs{yl@ydiff}}
4563 % \changes{v2.00}{1998/12/05}{Add: fused and spiro rings}
4564 % \changes{v2.01}{2001/6/20}{The
4565 % \cs{storeclipinfo} command is added.}
4566 %
4567 % \begin{macro}{\nonaheterohi}
4568 % \begin{macro}{\@nona@heterohi}
4569 % \begin{macro}{\@nona@@heterohi}
4570 % \begin{macro}{\@nonaheterohi}
4571 % \begin{macrocode}
4572 \def\nonaheterohi{\@ifnextchar({\@nona@heterohi(@}{\@nona@heterohi(@)}}
4573 \def\@nona@heterohi(#1){\@ifnextchar[{\@nona@@heterohi(#1)[@}%
4574 {\@nona@@heterohi(#1)[@]}}
4575 \def\@nona@@heterohi(#1)[#2]#3#4{\@ifnextchar[%
4576 {\@nonaheterohi(#1)[#2]{#3}{#4}[@}%
4577 {\@nonaheterohi(#1)[#2]{#3}{#4}[@]}}
4578 \def\@nonaheterohi(#1)[#2]#3#4[#5]{%
4579 % \end{macrocode}
4580 %
4581 % \begin{macrocode}
4582 % %%%%%%%%%%%%%%%%%%%%%%%%%%
4583 % % treatment of atom list %
4584 % %%%%%%%%%%%%%%%%%%%%%%%%%%
4585 \iniflag\iniatom%initialize
4586 \test@vertix@nonavi{#3}%
4587 % %%%%%%%%%%%%%%%%%%%%%%%
4588 % % adjustment for (yl) %
4589 % %%%%%%%%%%%%%%%%%%%%%%%
4590 \@reset@ylsw%
4591 \ylpositionh{#4}{0}{0}{4}{0}% %substituents on 1 to 3
4592 \if@ylsw \ifx\@@ylii\empty
4593 \def\@@ylii{0}\def\@@yli{0}\fi
4594 \else
4595 {\let\ddd=\eee\let\eee=\fff\let\fff=\gggA
4596 \ylpositionh{#4}{0}{3}{7}{0}%%substituents on 4 to 6
4597 }%
4598 \fi
4599 \if@ylsw \ifx\@@ylii\empty
4600 \def\@@ylii{0}\def\@@yli{342}\fi
4601 \else
4602 {\let\aaa=\hhh
4603 \ylpositionh{#4}{-6}{0}{2}{0}%%substituent on 7
4604 }%
4605 \fi
4606 \if@ylsw \ifx\@@ylii\empty
4607 \def\@@ylii{0}\def\@@yli{342}\fi
4608 \else
4609 {%
4610 \clipdetection%
4611 \@clipfusefalse \if@iclip \@clipfusetrue \fi%
4612 \ylatombondposition{#4}{-7}{4}% %8 for 3a position
4613 }%
4614 \fi
4615 \if@ylsw \ifx\@@ylii\empty
4616 \def\@@ylii{-303}\def\@@yli{171}\fi
4617 \else
4618 {%
4619 \clipdetection%
4620 \@clipfusefalse \if@jclip \@clipfusetrue \fi%
4621 \ylatombondposition{#4}{-8}{10}%%9 for 7a position
4622 }%
4623 \fi
4624 \if@ylsw \ifx\@@ylii\empty
4625 \def\@@ylii{-103}\def\@@yli{171}\fi
4626 \fi
4627 \begin{ShiftPicEnvB}(0,0)(-\yl@shiftii,-\yl@shifti)/%
4628 (1200,1200)(-400,-800){nonaheterohi}%2002/4/30 by S. Fujita
4629 % \end{macrocode}
4630 %
4631 % \begin{macrocode}
4632 % %%%%%%%%%%%%%%%%%%
4633 % % outer skeleton %
4634 % %%%%%%%%%%%%%%%%%%
4635 \begingroup
4636 \resetbdsw%
4637 \@bond@@omit{#5}%
4638 {\let\fff=\jjj \let\eee=\iii%
4639 \set@skel@bondh{#1}{a}{a}% bond between 1 and 2 \@aaa -> \hskbonda etc
4640 \set@skel@bondh{#1}{b}{b}% bond between 2 and 3 \@bbb -> \hskbondb etc
4641 \set@skel@longbond{#1}{c}{hskbondverti}%
4642 % bond between 3 and 3a \@ccc -> \hskbondverti etc
4643 \set@skel@bondh{#1}{j}{e}% bond between 3a and 7a \@jjj -> \hskbonde etc
4644 \set@skel@bondh{#1}{i}{f}% bond between 7a and 1 \@iii -> \hskbondf etc
4645 }%
4646 {\let\aaa=\hhh \let\ddd=\eee\let\eee=\fff\let\fff=\gggA%
4647 \let\ccc=\iii\let\bbb=\jjj%
4648 \Put@Direct(0,-342){\set@skel@bondh{#1}{h}{a}}%
4649 % bond between 7a and 7 \@hhh -> \hskbonda etc
4650 \Put@Direct(0,-342){\set@skel@bondh{#1}{d}{c}}%
4651 % bond between 3a and 4 \@ddd -> \hskbondc etc
4652 \Put@Direct(0,-342){\set@skel@bondh{#1}{e}{d}}%
4653 % bond between 4 and 5 \@eee -> \hskbondd etc
4654 \Put@Direct(0,-342){\set@skel@bondh{#1}{f}{e}}%
4655 % bond between 5 and 6 \@fff -> \hskbonde etc
4656 \Put@Direct(0,-342){\set@skel@bondh{#1}{g}{f}}%
4657 % bond between 6 and 7 \@ggg -> \hskbondf etc
4658 }%
4659 \endgroup
4660 % \end{macrocode}
4661 %
4662 % \begin{macrocode}
4663 % %%%%%%%%%%%%%%%%%%%%%
4664 % % inner double bond %
4665 % %%%%%%%%%%%%%%%%%%%%%
4666 \@tfor\member:=#2\do{%
4667 \if\member r\relax%
4668 {\let\aaa=\hhh \let\ddd=\eee\let\eee=\fff\let\fff=\gggA%
4669 \let\ccc=\iii\let\bbb=\jjj%
4670 \Put@Direct(0,-342){\hbondb}% bond between 3a and 7a
4671 \Put@Direct(0,-342){\hbondf}% bond between 6 and 7
4672 \Put@Direct(0,-342){\hbondd}% bond between 4 and 5
4673 }%
4674 \else \if\member l\relax%
4675 \else \if\member a\relax%
4676 \Put@Direct(0,0){\hbonda}% bond between 1 and 2
4677 \else \if\member b\relax%
4678 \Put@Direct(0,0){\hbondb}% bond between 2 and 3
4679 \else \if\member c\relax%
4680 \Put@Direct(0,0){\hbondverti}% bond between 3 and 3a
4681 \else \if\member d\relax%
4682 {\let\ccc=\iii \let\ddd=\eee%
4683 \Put@Direct(0,-342){\hbondc}% bond between 4 and 3a
4684 }%
4685 \else \if\member e\relax%
4686 {\let\ddd=\eee\let\eee=\fff%
4687 \Put@Direct(0,-342){\hbondd}% bond between 4 and 5
4688 }%
4689 \else \if\member f\relax%
4690 {\let\eee=\fff \let\fff=\gggA%
4691 \Put@Direct(0,-342){\hbonde}% bond between 5 and 6
4692 }%
4693 \else \if\member g\relax%
4694 {\let\aaa=\hhh \let\fff=\gggA%
4695 \Put@Direct(0,-342){\hbondf}% bond between 7 and 6
4696 }%
4697 \else \if\member h\relax%
4698 {\let\aaa=\hhh \let\bbb=\jjj%
4699 \Put@Direct(0,-342){\hbonda}% bond between 7 and 7a
4700 }%
4701 \else \if\member i\relax%
4702 {\let\fff=\jjj%
4703 \Put@Direct(0,0){\hbondf}% bond between 1 and 7a
4704 }%
4705 \else \if\member j\relax%
4706 {\let\ccc=\iii\let\bbb=\jjj%
4707 \Put@Direct(0,-342){\hbondb}% bond between 7a and 3a
4708 }%
4709 \else \if\member J\relax%
4710 {\let\eee=\iii\let\fff=\jjj%
4711 \Put@Direct(0,0){\hbonde}% bond between 7a and 3a
4712 }%
4713 \else \if\member B%aromatic circle
4714 \Put@oCircle(173,0){180}% %circle (five-membered)
4715 \else \if\member A%aromatic circle
4716 \Put@oCircle(203,-342){240}% %circle (six-membered)
4717 \else
4718 \expandafter\twoCH@@R\member//%
4719 \def\aax{7a}\def\aay{3a}%
4720 \if\@@tmpa 1\relax%
4721 \putratom{68}{-18}{\@@tmpb}% % right type
4722 \else\if\@@tmpa 3\relax%
4723 \putratom{233}{60}{\@@tmpb}% % right type
4724 \else\if\@@tmpa 2\relax%
4725 \putratom{120}{60}{\@@tmpb}% % right type
4726 \else\if\@@tmpa 7\relax%
4727 \putratom{68}{-360}{\@@tmpb}% % right type
4728 \else\if\@@tmpa 6\relax%
4729 \putratom{120}{-452}{\@@tmpb}% % right type
4730 \else\if\@@tmpa 5\relax%
4731 \putratom{233}{-452}{\@@tmpb}% % right type
4732 \else\if\@@tmpa 4\relax%
4733 \putratom{272}{-360}{\@@tmpb}% % right type
4734 \else\if\@@tmpa 9\relax%
4735 \putratom{120}{-110}{\@@tmpb}% % right type
4736 \else\ifx\@@tmpa\aax\relax%
4737 \putratom{120}{-110}{\@@tmpb}% % right type
4738 \else\ifx\@@tmpa\aay\relax%
4739 \putratom{233}{-110}{\@@tmpb}% % right type
4740 \else\if\@@tmpa 8\relax%
4741 \putratom{233}{-110}{\@@tmpb}% % right type
4742 \else\if\@@tmpa 0\relax%
4743 \putratom{140}{-30}{\@@tmpb}% % right type
4744 \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi%
4745 % ***********************
4746 % * setting fused rings *
4747 % ***********************
4748 \expandafter\twoCH@R\member//%
4749 \set@fusion@nonahi
4750 \fi\fi\fi\fi\fi\fi\fi\fi\fi%
4751 \fi\fi\fi\fi\fi\fi}%
4752 % \end{macrocode}
4753 %
4754 % \begin{macrocode}
4755 % %%%%%%%%%%%%%%%%%%%%%%%%
4756 % % setting hetero atoms %
4757 % %%%%%%%%%%%%%%%%%%%%%%%%
4758 \iniflag
4759 \Put@Direct(0,0){\set@hetatom@sixh{#3}{0}{0}{4}{0}%
4760 % \if@aclip \global\@acliptrue\fi
4761 % \if@bclip \global\@bcliptrue\fi
4762 % \if@cclip \global\@ccliptrue\fi
4763 \storeclipinfo
4764 }% %substituents on 1 to 3
4765 \developclipinfo
4766 \Put@Direct(0,-342){\set@hetatom@sixh{#3}{0}{3}{7}{0}%
4767 % \@gclipfalse \if@fclip \global\@gcliptrue \fi%
4768 % \@fclipfalse \if@eclip \global\@fcliptrue \fi%
4769 % \@eclipfalse \if@clip \global\@ecliptrue \fi
4770 \@gclipfalse \if@fclip \@gcliptrue \fi%
4771 \@fclipfalse \if@eclip \@fcliptrue \fi%
4772 \@eclipfalse \if@clip \@ecliptrue \fi
4773 \storeclipinfo
4774 }%substituents on 4 to 6
4775 \developclipinfo
4776 \Put@Direct(0,-342){%
4777 \@aclipfalse\@bclipfalse\@cclipfalse%2003/05/01 bugfix by Shinsaku Fujita
4778 \set@hetatom@sixh{#3}{-6}{0}{2}{0}%
4779 % \@hclipfalse \if@aclip \global\@hcliptrue \fi
4780 \@hclipfalse \if@aclip \@hcliptrue \fi
4781 \storeclipinfo
4782 }%%substituent on 7
4783 \developclipinfo
4784 \Put@Direct(0,0){\set@vrtx@nonafusehi{#3}%
4785 % \if@iclip \global\@icliptrue \fi
4786 % \if@jclip \global\@jcliptrue \fi
4787 \storeclipinfo
4788 }% fused positions
4789 \developclipinfo
4790 % \end{macrocode}
4791 %
4792 % \begin{macrocode}
4793 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4794 % % setting substituents and exocyclic bonds %
4795 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4796 \Put@Direct(0,0){\setsixringh{#4}{0}{0}{4}{0}}% %substituents on 1 to 3
4797 {\@clipfalse \if@eclip \@cliptrue \fi% %substituents on 4 to 6
4798 \@eclipfalse \if@fclip \@ecliptrue \fi%
4799 \@fclipfalse \if@gclip \@fcliptrue \fi%
4800 \Put@Direct(0,-342){\setsixringh{#4}{0}{3}{7}{0}}%
4801 }%
4802 {\@aclipfalse \if@hclip \@acliptrue \fi% %substituent on 7
4803 \Put@Direct(0,-342){\setsixringh{#4}{-6}{0}{2}{0}}%
4804 }%
4805 {\@clipfusefalse \if@iclip \@clipfusetrue \fi%
4806 \Put@Direct(303,-171){\setatombond{#4}{-7}{4}}% %8 for 3a position
4807 }%
4808 {\@clipfusefalse \if@jclip \@clipfusetrue \fi%
4809 \Put@Direct(103,-171){\setatombond{#4}{-8}{10}}%%9 for 7a position
4810 }%
4811 \end{ShiftPicEnvB}%
4812 \iniatom\iniflag}% %end of \nonaheterohi macro
4813 % \end{macrocode}
4814 % \end{macro}
4815 % \end{macro}
4816 % \end{macro}
4817 % \end{macro}
4818 %
4819 % The command |\set@vrtx@nonafusehi| is to set an atom (stored as
4820 % |\@memberb|) at one (stored as |\@tmpa|) of the fused vertices
4821 % of a six-five ring.
4822 % These vertices are incapable of accomodating a spiro group.
4823 % On the other hand, the other positions can take spiro groups
4824 % (stored as |\@memberb|), which are treated by means of
4825 % the command |\set@hetatom@sixh|.
4826 % The command |\set@vrtx@nonafusehi| is used in such commands
4827 % as |\nonaheterohi| for treating thier ATOMLISTs,
4828 %
4829 % \begin{macro}{\set@vrtx@nonafusehi}
4830 % \changes{v2.00}{1998/12/5}{New command: \cs{set@vrtx@nonafusehi}}
4831 % \begin{macrocode}
4832 \def\set@vrtx@nonafusehi#1{%
4833 \@forsemicol\member:=#1\do{%
4834 \ifx\member\empty\else
4835 \expandafter\@m@mb@r\member;\relax%
4836 \expandafter\twoCH@R\@membera//%
4837 \ifcase\@tmpa%
4838 \or
4839 \or
4840 \or%%%%3
4841 \if\@tmpb a%
4842 \global\@icliptrue%
4843 \putratom{273}{-211}{\@memberb}% % right type
4844 \else\relax
4845 \fi
4846 \or%4
4847 \or%5
4848 \or%6
4849 \or%7
4850 \if\@tmpb a%
4851 \global\@jcliptrue%
4852 \putlatom{135}{-211}{\@memberb}% % left type
4853 \else\relax
4854 \fi
4855 \or%8 (= 3a)
4856 \ifx\@tmpb\empty
4857 \global\@icliptrue%
4858 \putratom{273}{-211}{\@memberb}% % right type
4859 \else
4860 \XyMTeXWarning{Forbidden spiro ring for the 3a position}%
4861 \fi
4862 \or%9 (= 7a)
4863 \ifx\@tmpb\empty
4864 \global\@jcliptrue%
4865 \putlatom{135}{-211}{\@memberb}% % left type
4866 \else
4867 \XyMTeXWarning{Forbidden spiro ring for the 7a position}%
4868 \fi
4869 \fi\fi}%
4870 }% end of the macro \set@vrtx@nonafusehi
4871 % \end{macrocode}
4872 % \end{macro}
4873 %
4874 % \subsection{Short-cut commands for fused heterocycles}
4875 %
4876 % The macros |\nonaheteroh| and |\nonaheterohi| can be used in the
4877 % form of a fixed |ATOMLIST|. Hence, the resulting commands for
4878 % drawing a fused heterocyle with one or more nitrogen atoms
4879 % have an argument |SUBSLIST| as well as an optional argument |BONDLIST|.
4880 %
4881 % \begin{verbatim}
4882 % **********************************************************
4883 % * heterocycles having fused six- and five-membered rings *
4884 % * (horizontal type) *
4885 % **********************************************************
4886 %
4887 % N-heterocycles:
4888 %
4889 % \indoleh[BONDLIST]{SUBSLIST}
4890 % \indolehi[BONDLIST]{SUBSLIST}
4891 %
4892 % \isoindoleh[BONDLIST]{SUBSLIST}
4893 % \isoindolehi[BONDLIST]{SUBSLIST}
4894 %
4895 % \indolizineh[BONDLIST]{SUBSLIST}
4896 % \indolizinehi[BONDLIST]{SUBSLIST}
4897 % (different from the IUPAC numbering)
4898 %
4899 % \purineh[BONDLIST]{SUBSLIST}
4900 % \purinehi[BONDLIST]{SUBSLIST}
4901 % (different from the IUPAC numbering)
4902 %
4903 % O-heterocycles:
4904 %
4905 % \benzofuraneh[BONDLIST]{SUBSLIST}
4906 % \benzofuranehi[BONDLIST]{SUBSLIST}
4907 %
4908 % \isobenzofuranehi[BONDLIST]{SUBSLIST}
4909 %
4910 % \benzoxazoleh[BONDLIST]{SUBSLIST}
4911 % \benzoxazolehi[BONDLIST]{SUBSLIST}
4912 % \end{verbatim}
4913 %
4914 % The |BONDLIST| argument contains one
4915 % character selected from a to j, each of which indicates the presence of
4916 % an inner (endcyclic) double bond on the corresponding position.
4917 % The optiona `A' typesets an aromatic circle.
4918 % The option
4919 % `$n+$' ($n=1$ to $9$) represents a plus charge on a hetero atom
4920 % at the $n$-position.
4921 %
4922 % \begin{verbatim}
4923 % BONDLIST: list of bonds
4924 %
4925 % none or r : aromatic six-membered ring
4926 % [] : fully saturated form
4927 % a : 1,2-double bond b : 2,3-double bond
4928 % c : 3,3a-double bond d : 4,3a-double bond
4929 % e : 4,5-double bond f : 5,6-double bond
4930 % g : 6,7-double bond h : 7,7a-double bond
4931 % i : 1,7a-double bond
4932 % j : 3a,4a-double bond
4933 % J : 3a,4a-double bond in the other ring
4934 % A : aromatic circle
4935 % {n+} : plus at the n-nitrogen atom (n = 1 to 9)
4936 % \end{verbatim}
4937 %
4938 % The |SUBSLIST| argument contains one or more substitution descriptors
4939 % which are separated from each other by a semicolon. Each substitution
4940 % descriptor has a locant number with a bond modifier and a substituent,
4941 % where these are separated with a double equality symbol.
4942 %
4943 % \begin{verbatim}
4944 % SUBSLIST: list of substituents
4945 %
4946 % for n = 1 to 8
4947 %
4948 % nD : exocyclic double bond at n-atom
4949 % n or nS : exocyclic single bond at n-atom
4950 % nA : alpha single bond at n-atom
4951 % nB : beta single bond at n-atom
4952 % nSA : alpha single bond at n-atom (boldface)
4953 % nSB : beta single bond at n-atom (dotted line)
4954 % nSa : alpha (not specified) single bond at n-atom
4955 % nSb : beta (not specified) single bond at n-atom
4956 %
4957 % nSd : alpha single bond at n-atom (dotted line)
4958 % with an alternative direction to nSA
4959 % nSu : beta single bond at n-atom (boldface)
4960 % with an alternative direction to nSB
4961 % nFA : alpha single bond at n-atom (dotted line)
4962 % for ring fusion
4963 % nFB : beta single bond at n-atom (boldface)
4964 % for ring fusion
4965 % nGA : alpha single bond at n-atom (dotted line)
4966 % for the other ring fusion
4967 % nGB : beta single bond at n-atom (boldface)
4968 % for the other ring fusion
4969 %
4970 % for 8 (3a position) and 9 (7a position)
4971 %
4972 % nD : exocyclic double bond at n-atom
4973 % n or nS : exocyclic single bond at n-atom
4974 % nA : alpha single bond at n-atom
4975 % nB : beta single bond at n-atom
4976 % \end{verbatim}
4977 %
4978 % Several examples are shown as follows.
4979 % \begin{verbatim}
4980 % e.g.
4981 %
4982 % \indoleh{1==N}{1==Cl;2==F}
4983 % \indoleh[c]{1==N}{1==Cl;4==F;2==CH$_{3}$}
4984 % \end{verbatim}
4985 %
4986 % \begin{macro}{\purineh}
4987 % \begin{macro}{\purinehi}
4988 % \begin{macrocode}
4989 \def\purineh{\@ifnextchar[{\@purineh[@}{\@purineh[ra]}}%
4990 \def\@purineh[#1]#2{%
4991 \iforigpt \typeout{command `purineh' %
4992 is based on `nonaheteroh'.}\fi%
4993 \nonaheteroh[#1]{1==N;3==N;5==N;7==N}{#2}}%
4994 \def\purinehi{\@ifnextchar[{\@purinehi[@}{\@purinehi[ra]}}%
4995 \def\@purinehi[#1]#2{%
4996 \iforigpt \typeout{command `purinehi' %
4997 is based on `nonaheterohi'.}\fi%
4998 \nonaheterohi[#1]{1==N;3==N;5==N;7==N}{#2}}%
4999 % \end{macrocode}
5000 % \end{macro}
5001 % \end{macro}
5002 %
5003 % \begin{macro}{\indoleh}
5004 % \begin{macro}{\indolehi}
5005 % \begin{macrocode}
5006 \def\indoleh{\@ifnextchar[{\@indoleh[@}{\@indoleh[rb]}}%
5007 \def\@indoleh[#1]#2{%
5008 \iforigpt \typeout{command `indoleh' %
5009 is based on `nonaheteroh'.}\fi%
5010 \nonaheteroh[#1]{1==N}{#2}}%
5011 \def\indolehi{\@ifnextchar[{\@indolehi[@}{\@indolehi[rb]}}%
5012 \def\@indolehi[#1]#2{%
5013 \iforigpt \typeout{command `indolehi' %
5014 is based on `nonaheterohi'.}\fi%
5015 \nonaheterohi[#1]{1==N}{#2}}%
5016 % \end{macrocode}
5017 % \end{macro}
5018 % \end{macro}
5019 %
5020 % \begin{macro}{\indolizineh}
5021 % \begin{macro}{\indolizinehi}
5022 % \begin{macrocode}
5023 \def\indolizineh{%
5024 \@ifnextchar[{\@indolizineh[@}{\@indolizineh[aceg]}}%
5025 \def\@indolizineh[#1]#2{%
5026 \iforigpt \typeout{command `indolizineh' %
5027 is based on `nonaheteroh'.}\fi%
5028 \nonaheteroh[#1]{7a==N}{#2}}%
5029 \def\indolizinehi{%
5030 \@ifnextchar[{\@indolizinehi[@}{\@indolizinehi[aceg]}}%
5031 \def\@indolizinehi[#1]#2{%
5032 \iforigpt \typeout{command `indolizinehi' %
5033 is based on `nonaheterohi'.}\fi%
5034 \nonaheterohi[#1]{7a==N}{#2}}%
5035 % \end{macrocode}
5036 % \end{macro}
5037 % \end{macro}
5038 %
5039 % \begin{macro}{\isoindoleh}
5040 % \begin{macro}{\isoindolehi}
5041 % \begin{macrocode}
5042 \def\isoindoleh{%
5043 \@ifnextchar[{\@isoindoleh[@}{\@isoindoleh[cegi]}}%
5044 \def\@isoindoleh[#1]#2{%
5045 \iforigpt \typeout{command `isoindoleh' %
5046 is based on `nonaheteroh'.}\fi%
5047 \nonaheteroh[#1]{2==N}{#2}}%
5048 \def\isoindolehi{%
5049 \@ifnextchar[{\@isoindolehi[@}{\@isoindolehi[cegi]}}%
5050 \def\@isoindolehi[#1]#2{%
5051 \iforigpt \typeout{command `isoindolehi' %
5052 is based on `nonaheterohi'.}\fi%
5053 \nonaheterohi[#1]{2==N}{#2}}%
5054 % \end{macrocode}
5055 % \end{macro}
5056 % \end{macro}
5057 %
5058 % \begin{macro}{\benzofuraneh}
5059 % \begin{macro}{\benzofuranehi}
5060 % \begin{macrocode}
5061 \def\benzofuraneh{%
5062 \@ifnextchar[{\@benzofuraneh[@}{\@benzofuraneh[rb]}}%
5063 \def\@benzofuraneh[#1]#2{%
5064 \iforigpt \typeout{command `benzofuraneh' %
5065 is based on `nonaheteroh'.}\fi%
5066 \nonaheteroh[#1]{1==O}{#2}}%
5067 \def\benzofuranehi{%
5068 \@ifnextchar[{\@benzofuranehi[@}{\@benzofuranehi[rb]}}%
5069 \def\@benzofuranehi[#1]#2{%
5070 \iforigpt \typeout{command `benzofuranehi' %
5071 is based on `nonaheterohi'.}\fi%
5072 \nonaheterohi[#1]{1==O}{#2}}%
5073 % \end{macrocode}
5074 % \end{macro}
5075 % \end{macro}
5076 %
5077 % \begin{macro}{\isobenzofuraneh}
5078 % \begin{macro}{\isobenzofuranehi}
5079 % \begin{macrocode}
5080 \def\isobenzofuraneh{\@ifnextchar[{\@isobenzofuraneh[@}%
5081 {\@isobenzofuraneh[cegi]}}%
5082 \def\@isobenzofuraneh[#1]#2{%
5083 \iforigpt \typeout{command `isobenzofuraneh' %
5084 is based on `nonaheteroh'.}\fi%
5085 \nonaheteroh[#1]{2==O}{#2}}%
5086 \def\isobenzofuranehi{\@ifnextchar[{\@isobenzofuranehi[@}%
5087 {\@isobenzofuranehi[cegi]}}%
5088 \def\@isobenzofuranehi[#1]#2{%
5089 \iforigpt \typeout{command `isobenzofuranehi' %
5090 is based on `nonaheterohi'.}\fi%
5091 \nonaheterohi[#1]{2==O}{#2}}%
5092 % \end{macrocode}
5093 % \end{macro}
5094 % \end{macro}
5095 %
5096 % \begin{macro}{\benzoxazoleh}
5097 % \begin{macro}{\benzoxazolehi}
5098 % \begin{macrocode}
5099 \def\benzoxazoleh{%
5100 \@ifnextchar[{\@benzoxazoleh[@}{\@benzoxazoleh[rb]}}%
5101 \def\@benzoxazoleh[#1]#2{%
5102 \iforigpt \typeout{command `benzoxazoleh' %
5103 is based on `nonaheteroh'.}\fi%
5104 \nonaheteroh[#1]{1==O;3==N}{#2}}%
5105 \def\benzoxazolehi{%
5106 \@ifnextchar[{\@benzoxazolehi[@}{\@benzoxazolehi[rb]}}%
5107 \def\@benzoxazolehi[#1]#2{%
5108 \iforigpt \typeout{command `benzoxazolehi' %
5109 is based on `nonaheterohi'.}\fi%
5110 \nonaheterohi[#1]{1==O;3==N}{#2}}%
5111 % \end{macrocode}
5112 % \end{macro}
5113 % \end{macro}
5114 %
5115 % \section{Building blocks}
5116 % \subsection{Six-membered ring unit}
5117 %
5118 % The old function (v1.01) of |\sixunitv| as a fusing ring unit
5119 % is succeeded by |\sixfusev| and |\sixfusevi|.
5120 % The command |\sixunitv| has been changed into a subsidiary
5121 % command of |\sixheterov| (v2.00).
5122 %
5123 % The macro |\sixunith| is a six-membered fragment that can be
5124 % fused to another
5125 % ring structure to produce a new ring system. The following
5126 % numbering is adopted in this macro.
5127 %
5128 % \begin{verbatim}
5129 % **********************
5130 % * six-membered unit *
5131 % * (horizontal type) *
5132 % **********************
5133 % b
5134 % 2 3
5135 % a ----- c
5136 % * *
5137 % the original point ===> 1 * * 4
5138 % (0,0) * * d
5139 % f -----
5140 % 6 5
5141 % e
5142 % \end{verbatim}
5143 %
5144 % The macro |\sixunith| has three arguments |ATOMLIST|, |SUBSLIST|
5145 % and |OMIT|
5146 % as well as an optional argument |BONDLIST|.
5147 %
5148 % \begin{verbatim}
5149 % \sixunith[BONDLIST]{ATOMLIST}{SUBSLIST}{OMIT}
5150 % \end{verbatim}
5151 %
5152 % The |BONDLIST| argument contains one
5153 % character selected from a to f, each of which indicates the presence of
5154 % an inner (endcyclic) double bond on the corresponding position.
5155 % The option `$n+$' ($n=1$ to $6$) represents a plus charge on a hetero atom
5156 % at the $n$-position.
5157 %
5158 % \begin{verbatim}
5159 % BONDLIST =
5160 %
5161 % none : fully saturated
5162 % a : 1,2-double bond
5163 % b : 2,3-double bond
5164 % c : 4,3-double bond
5165 % d : 4,5-double bond
5166 % e : 5,6-double bond
5167 % f : 6,1-double bond
5168 % {n+} : plus at the n-nitrogen atom (n = 1 to 6)
5169 % \end{verbatim}
5170 %
5171 % The |ATOMLIST| argument contains one or more heteroatom descriptors
5172 % which are separated from each other by a semicolon. Each heteroatom
5173 % descriptor consists of a locant number and a heteroatom,
5174 % where these are separated with a double equality symbol.
5175 %
5176 % \begin{verbatim}
5177 % ATOMLIST: list of heteroatoms (max 6 atoms)
5178 %
5179 % for n = 1 to 6
5180 %
5181 % n : Hetero atom, e.g. N, O, etc. at n-position,
5182 % e.g. 1==N for N at 1-position
5183 % \end{verbatim}
5184 %
5185 % The |SUBSLIST| argument contains one or more substitution descriptors
5186 % which are separated from each other by a semicolon. Each substitution
5187 % descriptor has a locant number with a bond modifier and a substituent,
5188 % where these are separated with a double equality symbol.
5189 %
5190 % \begin{verbatim}
5191 % SUBSLIST: list of substituents
5192 %
5193 % for n = 1 to 6
5194 %
5195 % nD : exocyclic double bond at n-atom
5196 % n or nS : exocyclic single bond at n-atom
5197 % nA : alpha single bond at n-atom
5198 % nB : beta single bond at n-atom
5199 % nSA : alpha single bond at n-atom (boldface)
5200 % nSB : beta single bond at n-atom (dotted line)
5201 % nSa : alpha (not specified) single bond at n-atom
5202 % nSb : beta (not specified) single bond at n-atom
5203 %
5204 % nSd : alpha single bond at n-atom (dotted line)
5205 % with an alternative direction to nSA
5206 % nSu : beta single bond at n-atom (boldface)
5207 % with an alternative direction to nSB
5208 % nFA : alpha single bond at n-atom (dotted line)
5209 % for ring fusion
5210 % nFB : beta single bond at n-atom (boldface)
5211 % for ring fusion
5212 % nGA : alpha single bond at n-atom (dotted line)
5213 % for the other ring fusion
5214 % nGB : beta single bond at n-atom (boldface)
5215 % for the other ring fusion
5216 % \end{verbatim}
5217 %
5218 % The argument |OMIT| represents one bond to be omitted.
5219 % The omitted edge is regarded as a fused position.
5220 %
5221 % \begin{verbatim}
5222 % OMIT: one bond omitted (a, b, c, d, e, or f)
5223 % \end{verbatim}
5224 %
5225 % Several examples are shown as follows.
5226 % \begin{verbatim}
5227 % e.g.
5228 %
5229 % \sixhunitv{1==N}{1==Cl;2==F}{e}
5230 % \end{verbatim}
5231 %
5232 % The definition of |\sixunith| uses a picture environment and
5233 % consists of the same unit processes as shown in |\sixheteroh|:
5234 % \begin{enumerate}
5235 % \item treatment of atom list,
5236 % \item placing outer skeletons,
5237 % \item placing inner double bonds,
5238 % \item setting hetero atoms, and
5239 % \item placing substituents by using |\setsixringh|.
5240 % \end{enumerate}
5241 %
5242 % \begin{macro}{\sixunith}
5243 % \begin{macro}{\@sixunith}
5244 % \begin{macrocode}
5245 \def\sixunith{\@ifnextchar[{\@sixunith[@}{\@sixunith[@]}}
5246 \def\@sixunith[#1]#2#3#4{\sixheteroh[#1]{#2}{#3}[#4]}
5247 % \end{macrocode}
5248 % \end{macro}
5249 % \end{macro}
5250 %
5251 % \changes{v3.00}{2002/4/30}{\cs{sixunith}: Old definition deleted.}
5252 %
5253 % \subsection{Five-membered ring unit}
5254 % \subsubsection{Horizonatl type}
5255 %
5256 % The old function (v1.01) of |\fiveunith| as a fusing ring unit
5257 % is succeeded by |\fivefuseh|.
5258 % The command |\fiveunith| has been changed into a subsidiary
5259 % command of |\fiveheteroh| (v2.00).
5260 %
5261 % The macro |\fiveunith| is a five-membered fragment that can be
5262 % fused to another
5263 % ring structure to produce a new ring system. The following
5264 % numbering is adopted in this macro.
5265 %
5266 % \begin{verbatim}
5267 % **********************
5268 % * five-membered unit *
5269 % * (horizontal type) *
5270 % **********************
5271 %
5272 % 3 _____ 2
5273 % | *
5274 % | * 1 <===== the original point
5275 % | *
5276 % 4 ----- 5
5277 % \end{verbatim}
5278 %
5279 % The macro |\fiveunith| has three arguments |ATOMLIST|, |SUBSLIST|
5280 % and |OMIT|
5281 % as well as an optional argument |BONDLIST|.
5282 %
5283 % \begin{verbatim}
5284 % \fiveunith[BONDLIST]{ATOMLIST}{SUBSLIST}{OMIT}
5285 % \end{verbatim}
5286 %
5287 % The |BONDLIST| argument contains one
5288 % character selected from a to e, each of which indicates the presence of
5289 % an inner (endcyclic) double bond on the corresponding position.
5290 % The option `$n+$' ($n=1$ to $5$) represents a plus charge on a hetero atom
5291 % at the $n$-position.
5292 %
5293 % \begin{verbatim}
5294 % BONDLIST: list of inner double bonds
5295 %
5296 % a : 1,2-double bond
5297 % b : 2,3-double bond
5298 % c : 4,3-double bond
5299 % d : 4,5-double bond
5300 % e : 5,1-double bond
5301 % A : aromatic circle
5302 % {n+} : plus at the n-nitrogen atom (n = 1 to 5)
5303 % {0+} : plus (or others) at the center
5304 % \end{verbatim}
5305 %
5306 % The |ATOMLIST| argument contains one or more heteroatom descriptors
5307 % which are separated from each other by a semicolon. Each heteroatom
5308 % descriptor consists of a locant number and a heteroatom,
5309 % where these are separated with a double equality symbol.
5310 %
5311 % \begin{verbatim}
5312 % ATOMLIST: list of heteroatoms (max 5 atoms)
5313 %
5314 % for n = 1 to 5
5315 %
5316 % n : Hetero atom, e.g. N, O, etc. at n-position
5317 % e.g. 1==N for N at 1-position
5318 % \end{verbatim}
5319 %
5320 % The |SUBSLIST| argument contains one or more substitution descriptors
5321 % which are separated from each other by a semicolon. Each substitution
5322 % descriptor has a locant number with a bond modifier and a substituent,
5323 % where these are separated with a double equality symbol.
5324 %
5325 % \begin{verbatim}
5326 % SUBSLIST: list of substituents
5327 %
5328 % for n = 1 to 5
5329 %
5330 % nD : exocyclic double bond at n-atom
5331 % n or nS : exocyclic single bond at n-atom
5332 % nA : alpha single bond at n-atom
5333 % nB : beta single bond at n-atom
5334 % nSA : alpha single bond at n-atom (boldface)
5335 % nSB : beta single bond at n-atom (dotted line)
5336 % nSa : alpha (not specified) single bond at n-atom
5337 % nSb : beta (not specified) single bond at n-atom
5338 %
5339 % nSd : alpha single bond at n-atom (dotted line)
5340 % with an alternative direction to nSA
5341 % nSu : beta single bond at n-atom (boldface)
5342 % with an alternative direction to nSB
5343 % nFA : alpha single bond at n-atom (dotted line)
5344 % for ring fusion
5345 % nFB : beta single bond at n-atom (boldface)
5346 % for ring fusion
5347 % nGA : alpha single bond at n-atom (dotted line)
5348 % for the other ring fusion
5349 % nGB : beta single bond at n-atom (boldface)
5350 % for the other ring fusion
5351 % \end{verbatim}
5352 %
5353 % The argument |OMIT| represents one bond to be omitted.
5354 % The omitted edge is regarded as a fused position.
5355 %
5356 % \begin{verbatim}
5357 % OMIT: one bond omitted (a, b, c, d, e, or f)
5358 % \end{verbatim}
5359 %
5360 % Several examples are shown as follows.
5361 % \begin{verbatim}
5362 % e.g.
5363 %
5364 % \fiveunith{1==N}{1==H;2==F}{a}
5365 % \end{verbatim}
5366 %
5367 % The definition of |\fiveunith| uses a picture environment and
5368 % consists of the same unit processes as shown in |\sixheteroh|:
5369 % \begin{enumerate}
5370 % \item treatment of atom list,
5371 % \item placing outer skeletons,
5372 % \item placing inner double bonds,
5373 % \item setting hetero atoms, and
5374 % \item placing substituents by using |\setsixringh| partially.
5375 % \end{enumerate}
5376 %
5377 % \begin{macro}{\fiveunith}
5378 % \begin{macro}{\@fiveunith}
5379 % \begin{macrocode}
5380 \def\fiveunith{\@ifnextchar[{\@fiveunith[@}{\@fiveunith[r]}}
5381 \def\@fiveunith[#1]#2#3#4{\fiveheteroh[#1]{#2}{#3}[#4]}
5382 % \end{macrocode}
5383 % \end{macro}
5384 % \end{macro}
5385 %
5386 % \changes{v3.00}{2002/4/30}{\cs{fiveunith}: Old definition deleted.}
5387 %
5388 % \subsubsection{Inverse horizontal type}
5389 %
5390 % The old function (v1.01) of |\fiveunithi| as a fusing ring unit
5391 % is succeeded by |\fivefusehi|.
5392 % The command |\fiveunithi| has been changed into a subsidiary
5393 % command of |\fiveheterohi| (v2.00).
5394 %
5395 % The macro |\fiveunithi| typesets a five-membered fragment that can be
5396 % fused to another
5397 % ring structure to produce a new ring system. The following
5398 % numbering is adopted in this macro.
5399 %
5400 % \begin{verbatim}
5401 % ************************************
5402 % * five-membered unit *
5403 % * (horizontal type, inverse type) *
5404 % ************************************
5405 %
5406 % 2 ----- 3
5407 % * |
5408 % the original point 1 * |
5409 % * |
5410 % _____|
5411 % 5 4
5412 % \end{verbatim}
5413 %
5414 % The macro |\fiveunithi| has three arguments |ATOMLIST|, |SUBSLIST|
5415 % and |OMIT|
5416 % as well as an optional argument |BONDLIST|.
5417 %
5418 % \begin{verbatim}
5419 % \fiveunithi[BONDLIST]{ATOMLIST}{SUBSLIST}{OMIT}
5420 % \end{verbatim}
5421 %
5422 % The |BONDLIST| argument contains one
5423 % character selected from a to e, each of which indicates the presence of
5424 % an inner (endcyclic) double bond on the corresponding position.
5425 % The option `$n+$' ($n=1$ to $5$) represents a plus charge on a hetero atom
5426 % at the $n$-position.
5427 %
5428 % \begin{verbatim}
5429 % BONDLIST: list of inner double bonds
5430 %
5431 % a : 1,2-double bond
5432 % b : 2,3-double bond
5433 % c : 4,3-double bond
5434 % d : 4,5-double bond
5435 % e : 5,1-double bond
5436 % A : aromatic circle
5437 % {n+} : plus at the n-nitrogen atom (n = 1 to 5)
5438 % {0+} : plus (or others) at the center
5439 % \end{verbatim}
5440 %
5441 % The |ATOMLIST| argument contains one or more heteroatom descriptors
5442 % which are separated from each other by a semicolon. Each heteroatom
5443 % descriptor consists of a locant number and a heteroatom,
5444 % where these are separated with a double equality symbol.
5445 %
5446 % \begin{verbatim}
5447 % ATOMLIST: list of heteroatoms (max 5 atoms)
5448 %
5449 % for n = 1 to 5
5450 %
5451 % n : Hetero atom, e.g. N, O, etc. at n-position
5452 % e.g. 1==N for N at 1-position
5453 % \end{verbatim}
5454 %
5455 % The |SUBSLIST| argument contains one or more substitution descriptors
5456 % which are separated from each other by a semicolon. Each substitution
5457 % descriptor has a locant number with a bond modifier and a substituent,
5458 % where these are separated with a double equality symbol.
5459 %
5460 % \begin{verbatim}
5461 % SUBSLIST: list of substituents
5462 %
5463 % for n = 1 to 5
5464 %
5465 % nD : exocyclic double bond at n-atom
5466 % n or nS : exocyclic single bond at n-atom
5467 % nA : alpha single bond at n-atom
5468 % nB : beta single bond at n-atom
5469 % nSA : alpha single bond at n-atom (boldface)
5470 % nSB : beta single bond at n-atom (dotted line)
5471 % nSa : alpha (not specified) single bond at n-atom
5472 % nSb : beta (not specified) single bond at n-atom
5473 %
5474 % nSd : alpha single bond at n-atom (dotted line)
5475 % with an alternative direction to nSA
5476 % nSu : beta single bond at n-atom (boldface)
5477 % with an alternative direction to nSB
5478 % nFA : alpha single bond at n-atom (dotted line)
5479 % for ring fusion
5480 % nFB : beta single bond at n-atom (boldface)
5481 % for ring fusion
5482 % nGA : alpha single bond at n-atom (dotted line)
5483 % for the other ring fusion
5484 % nGB : beta single bond at n-atom (boldface)
5485 % for the other ring fusion
5486 % \end{verbatim}
5487 %
5488 % The argument |OMIT| represents one bond to be omitted.
5489 % The omitted edge is regarded as a fused position.
5490 %
5491 % \begin{verbatim}
5492 % OMIT: one bond omitted (a, b, c, d, e, or f)
5493 % \end{verbatim}
5494 %
5495 % Several examples are shown as follows.
5496 % \begin{verbatim}
5497 % e.g.
5498 %
5499 % \fiveunithi{1==N}{1==H;2==F}{a}
5500 % \end{verbatim}
5501 %
5502 % The definition of |\fiveunithi| uses a picture environment and
5503 % consists of the same unit processes as shown in |\sixheteroh|:
5504 % \begin{enumerate}
5505 % \item treatment of atom list,
5506 % \item placing outer skeletons,
5507 % \item placing inner double bonds,
5508 % \item setting hetero atoms, and
5509 % \item placing substituents by using |\setsixringh| partially.
5510 % \end{enumerate}
5511 %
5512 % \begin{macro}{\fiveunithi}
5513 % \begin{macro}{\@fiveunithi}
5514 % \begin{macrocode}
5515 \def\fiveunithi{\@ifnextchar[{\@fiveunithi[@}{\@fiveunithi[r]}}
5516 \def\@fiveunithi[#1]#2#3#4{\fiveheterohi[#1]{#2}{#3}[#4]}
5517 % \end{macrocode}
5518 % \end{macro}
5519 % \end{macro}
5520 %
5521 % \changes{v3.00}{2002/4/30}{\cs{fiveunithi}: Old definition deleted.}
5522 %
5523 % \section{Three-membered heterocycles}
5524 % \subsection{Horizontal type}
5525 %
5526 % The macro |\threeheteroh| typesets a three-membered ring. The following
5527 % numbering is adopted in this macro.
5528 %
5529 % \begin{verbatim}
5530 % ****************************
5531 % * thereehetero derivatives *
5532 % * (horizontal type) *
5533 % ****************************
5534
5535 % aaa fff
5536 % 3
5537 % | ` c
5538 % b | 1 bbb ccc
5539 % | / a
5540 % 2/
5541 % ddd eee
5542 %
5543 % -- --
5544 % | cf. threeehetero |
5545 % | fff 3--------2bbb |
5546 % | ` / |
5547 % | ddd `1/ <===== the original point |
5548 % | |
5549 % -- --
5550 % \end{verbatim}
5551 %
5552 % The macro |\threeheteroh| has two arguments |ATOMLIST| and |SUBSLIST|
5553 % as well as an optional argument |BONDLIST|.
5554 % Two optional arguments |SKBONDLIST| and |OMIT| are added to
5555 % treat stereochemical information or other bond situations.
5556 %
5557 % \begin{verbatim}
5558 % \threeheteroh(SKBONDLIST)[BONDLIST]{ATOMLIST}{SUBSLIST}[OMIT]
5559 % \end{verbatim}
5560 %
5561 % The |SKBONDLIST| argument contains pairs of two alphabets in
5562 % parentheses, e.g. (\{bA\}\{fB\}). Each pair contains a lowercase
5563 % character selected from bond specifiers `a' to `c' and a uppercase
5564 % character `A' or `B'.
5565 %
5566 % The |BONDLIST| argument contains one
5567 % character selected from a to c, each of which indicates the presence of
5568 % an inner (endcyclic) double bond on the corresponding position.
5569 % The option `$n+$' ($n=1$ to $3$) represents a plus charge on a hetero atom
5570 % at the $n$-position.
5571 % The option `$n+$' ($n=4$ to $6$) represents a plus charge outside the ring.
5572 % The option `$0+$' typesets a plus charge at the center of the ring.
5573 %
5574 % \begin{verbatim}
5575 % BONDLIST =
5576 %
5577 % none : saturated
5578 % a : 1,2-double bond
5579 % b : 2,3-double bond
5580 % c : 3,1-double bond
5581 % A : aromatic circle
5582 % {n+} : plus at the n-hetero atom (n = 1 to 3)
5583 % : n=4 -- outer plus at 1 position
5584 % : n=5 -- outer plus at 2 position
5585 % : n=6 -- outer plus at 3 position
5586 % {0+} : plus at the center of a cyclopropane ring
5587 % \end{verbatim}
5588 %
5589 % The |ATOMLIST| argument contains one or more heteroatom descriptors
5590 % which are separated from each other by a semicolon. Each heteroatom
5591 % descriptor consists of a locant number and a heteroatom,
5592 % where these are separated with a double equality symbol.
5593 %
5594 % \begin{verbatim}
5595 % ATOMLIST: list of heteroatoms (max 3 atoms)
5596 %
5597 % for n = 1 to 3
5598 %
5599 % n : Hetero atom, e.g. N, O, etc. at n-position,
5600 % e.g. 1==N for N at 1-position
5601 % \end{verbatim}
5602 %
5603 % The |SUBSLIST| argument contains one or more substitution descriptors
5604 % which are separated from each other by a semicolon. Each substitution
5605 % descriptor has a locant number with a bond modifier and a substituent,
5606 % where these are separated with a double equality symbol.
5607 %
5608 % \begin{verbatim}
5609 % SUBSLIST: list of substituents
5610 %
5611 % for n = 1 to 3
5612 %
5613 % nD : exocyclic double bond at n-atom
5614 % n or nS : exocyclic single bond at n-atom
5615 % nA : alpha single bond at n-atom
5616 % nB : beta single bond at n-atom
5617 % nSA : alpha single bond at n-atom (boldface)
5618 % nSB : beta single bond at n-atom (dotted line)
5619 % nSa : alpha (not specified) single bond at n-atom
5620 % nSb : beta (not specified) single bond at n-atom
5621 %
5622 % nSd : alpha single bond at n-atom (dotted line)
5623 % with an alternative direction to nSA
5624 % nSu : beta single bond at n-atom (boldface)
5625 % with an alternative direction to nSB
5626 % nFA : alpha single bond at n-atom (dotted line)
5627 % for ring fusion
5628 % nFB : beta single bond at n-atom (boldface)
5629 % for ring fusion
5630 % nGA : alpha single bond at n-atom (dotted line)
5631 % for the other ring fusion
5632 % nGB : beta single bond at n-atom (boldface)
5633 % for the other ring fusion
5634 % \end{verbatim}
5635 %
5636 % The argument |OMIT| represents one or more bonds to be omitted.
5637 % The omitted edges may be regarded as both fused and non-fused
5638 % positions.
5639 %
5640 % \begin{verbatim}
5641 % OMIT: one or more bonds omitted (a to c; see BONDLIST)
5642 % \end{verbatim}
5643 %
5644 % Several examples are shown as follows.
5645 % \begin{verbatim}
5646 % e.g.
5647 %
5648 % \threeheteroh{1==N}{1==Cl;2==F}
5649 % \threeheteroh[c]{1==N}{1==Cl;4==F;2==CH$_{3}$}
5650 % \threeheteroh{1==N}{1D==O;4SA==MeO;4SB==OMe;5==Cl;6==Cl}
5651 % \end{verbatim}
5652 %
5653 % The definition of |\threeheteroh| uses a picture environment and
5654 % consists of the same unit processes as shown in |\sixheterov|:
5655 % \begin{enumerate}
5656 % \item treatment of atom list,
5657 % \item placing outer skeletons,
5658 % \item placing inner double bonds,
5659 % \item setting hetero atoms, and
5660 % \item placing substituents by using |\setsixringv| partially.
5661 % \end{enumerate}
5662 % \changes{v1.02}{1998/10/31}{Adding \cs{ylposition}, \cs{if@ylsw},
5663 % \cs{yl@shifti}, \cs{@ylii}, \cs{yl@shiftii}, \cs{@ylii},
5664 % \cs{yl@xdiff} and \cs{yl@ydiff}}
5665 % \changes{v2.00}{1998/12/5}{Add: spiro and fused rings}
5666 % \changes{v2.01}{2001/6/20}{The
5667 % \cs{storeclipinfo} command is added.}
5668 %
5669 % \begin{macro}{\threeheteroh}
5670 % \begin{macro}{\@three@heteroh}
5671 % \begin{macro}{\@three@@heteroh}
5672 % \begin{macro}{\@threeheteroh}
5673 % \begin{macrocode}
5674 \def\threeheteroh{\@ifnextchar({\@three@heteroh(@}{\@three@heteroh(@)}}
5675 \def\@three@heteroh(#1){\@ifnextchar[{\@three@@heteroh(#1)[@}%
5676 {\@three@@heteroh(#1)[@]}}
5677 \def\@three@@heteroh(#1)[#2]#3#4{\@ifnextchar[%
5678 {\@threeheteroh(#1)[#2]{#3}{#4}[@}%
5679 {\@threeheteroh(#1)[#2]{#3}{#4}[@]}}
5680 \def\@threeheteroh(#1)[#2]#3#4[#5]{%
5681 % \end{macrocode}
5682 %
5683 % The procedure of adusting substitution positions is based on
5684 % a horizontal six-membered ring, in which the positions
5685 % 4 (ddd), 6 (fff), 2 (bbb) are used in place of the positions
5686 % 1, 2, and 3 of the three-membered ring.
5687 %
5688 % \begin{macrocode}
5689 % %%%%%%%%%%%%%%%%%%%%%%%%%%
5690 % % treatment of atom list %
5691 % %%%%%%%%%%%%%%%%%%%%%%%%%%
5692 \iniatom\iniflag%initialize
5693 \test@vertix@sixv{#3}{d}{f}{b}{@}{@}{@}%tentative use for six-h
5694 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
5695 % % adustment of subs positions %
5696 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
5697 \@reset@ylsw%
5698 \ylpositionh{#4}{3}{3}{5}{0}%subst 1
5699 \if@ylsw \ifx\@@ylii\empty
5700 \def\@@ylii{235}\def\@@yli{-103}\fi
5701 \else
5702 \ylpositionh{#4}{-1}{1}{3}{0}%subst 3
5703 \fi
5704 \if@ylsw \ifx\@@ylii\empty
5705 \def\@@ylii{103}\def\@@yli{-29}\fi
5706 \else
5707 \ylpositionh{#4}{4}{5}{7}{0}%subst 2
5708 \fi
5709 \if@ylsw \ifx\@@ylii\empty
5710 \def\@@ylii{103}\def\@@yli{-171}\fi
5711 \fi
5712 \begin{ShiftPicEnvB}(0,0)(-\yl@shiftii,-\yl@shifti)/%
5713 (580,700)(-200,-240){threeheteroh}%
5714 (200,240)%2002/4/30 by S. Fujita
5715 % \end{macrocode}
5716 %
5717 % The procedures of setting skeletal and inner bonds are based on
5718 % a vertical six-membered ring, where the bonds c, e, and a are
5719 % used in place of the bonds a, b, and c. Hence,
5720 % (1) the bond a of the latter should be related to |\bbb| and |\ccc| at
5721 % the one terminal and to |\eee| and |\ddd| at the other terminal;
5722 % (2) the bond b of the latter should be related to |\eee| and |\ddd| at
5723 % the one terminal and to |\aaa| and |\fff| at the other terminal; and
5724 % (3) the bond c of the latter should be related to |\bbb| and |\ccc| at
5725 % the one terminal and to |\aaa| and |\fff| at the other terminal.
5726 %
5727 % \begin{macrocode}
5728 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%
5729 % % retreatment of atom list %
5730 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%
5731 \iniatom\iniflag%initialize
5732 \test@vertix@sixv{#3}{c}{e}{a}{@}{@}{@}%
5733 \test@vertix@sixv{#3}{b}{d}{f}{@}{@}{@}%
5734 % %%%%%%%%%%%%%%%%%%
5735 % % outer skeleton %
5736 % %%%%%%%%%%%%%%%%%%
5737 {\resetbdsw%
5738 \@bond@@omit{#5}%
5739 \Put@Direct(0,0){\set@skel@bond{#1}{a}{c}}%
5740 % bond between 1 and 2 \@aaa -> \skbondc etc
5741 \Put@Direct(171,-103){\set@skel@bond{#1}{b}{e}}%
5742 % bond between 2 and 3 \@bbb -> \skbonde etc
5743 \Put@Direct(0,-200){\set@skel@bond{#1}{c}{a}}%
5744 % bond between 3 and 1 \@ccc -> \skbonda etc
5745 }%
5746 %
5747 % \Put@Direct(0,0){\skbondc}% bond between 1 and 2
5748 % \Put@Direct(0,-200){\skbonda}% bond between 1 and 3
5749 % \Put@Direct(171,-103){\skbonde}%bond between 2 and 3
5750 % \end{macrocode}
5751 %
5752 % \begin{macrocode}
5753 % %%%%%%%%%%%%%%%%%%%%%
5754 % % inner double bond %
5755 % %%%%%%%%%%%%%%%%%%%%%
5756 \@tfor\member:=#2\do{%
5757 \if\member r\relax%
5758 \else\if\member a\relax\Put@Direct(0,0){\bondc}%
5759 \else\if\member b\relax\Put@Direct(171,-103){\bonde}%
5760 \else\if\member c\relax\Put@Direct(0,-200){\bonda}%
5761 \else\if\member A\relax% aromatic circle
5762 \Put@oCircle(70,103){100}% %circle
5763 \else
5764 % %%%%%%%%%%%%%%%%%%%%%%%%%
5765 % % inner bond attachment %
5766 % %%%%%%%%%%%%%%%%%%%%%%%%%
5767 \expandafter\twoCH@@R\member//%
5768 \set@fusionadd@threeh
5769 \fi\fi\fi\fi\fi%
5770 }%
5771 % \end{macrocode}
5772 %
5773 % The proceduce of setting hetero atoms on the vertices of
5774 % a three-membered ring is based on the macro |\set@hetaromh@sixh|,
5775 % where the positions 4, 6, and 2 of a horizontal six-membered ring
5776 % are used in place of the positions 1, 2, and 3 of the three-membered ring.
5777 %
5778 % \begin{macrocode}
5779 % %%%%%%%%%%%%%%%%%%%%%%%%
5780 % % setting hetero atoms %
5781 % %%%%%%%%%%%%%%%%%%%%%%%%
5782 \iniflag
5783 %\Put@Direct(-235,103){\set@hetatom@sixh{#3}{3}{3}{5}{0}%
5784 \Put@Direct(-215,103){\set@hetatom@sixh{#3}{3}{3}{5}{0}%
5785 %\if@clip \global\@cliptrue\fi
5786 \storeclipinfo
5787 }%subst 1 <--six h 4
5788 \developclipinfo
5789 \Put@Direct(-103,29){\set@hetatom@sixh{#3}{-1}{1}{3}{0}%
5790 %\if@bclip \global\@bcliptrue\fi
5791 \storeclipinfo
5792 }%subst 3 <--six h 2
5793 \developclipinfo
5794 \Put@Direct(-103,171){\set@hetatom@sixh{#3}{4}{5}{7}{0}%
5795 %\if@fclip \global\@fcliptrue\fi
5796 \storeclipinfo
5797 }%subst 2 <--six h 6
5798 \developclipinfo
5799 % \end{macrocode}
5800 %
5801 % \begin{macrocode}
5802 % %%%%%%%%%%%%%%%%%%%%%%%%
5803 % % setting substituents %
5804 % %%%%%%%%%%%%%%%%%%%%%%%%
5805 \Put@Direct(-235,103){\setsixringh{#4}{3}{3}{5}{0}}%subst 1
5806 \Put@Direct(-103,29){\setsixringh{#4}{-1}{1}{3}{0}}%subst 3
5807 \Put@Direct(-103,171){\setsixringh{#4}{4}{5}{7}{0}}%subst 2
5808 \end{ShiftPicEnvB}%
5809 \iniatom\iniflag}% %end of \threeheteroh macro
5810 % \end{macrocode}
5811 % \end{macro}
5812 % \end{macro}
5813 % \end{macro}
5814 % \end{macro}
5815 %
5816 % The macro |\set@fusionadd@threeh| is an inner command contained
5817 % in the definition of |\threeheteroh| etc., where
5818 % the macro is used for setting an additive
5819 % or a fused ring at each bond (designated by |\@@tmpa|). The
5820 % fused ring is typeset by the inner command |\set@fusion@threeh|.
5821 %
5822 % \begin{macro}{\set@fusionadd@threeh}
5823 % \changes{v2.00}{1998/12/5}{New command: \cs{set@fusionadd@threeh}}
5824 % \begin{macrocode}
5825 \def\set@fusionadd@threeh{%
5826 \if\@@tmpa 0\relax%
5827 \putratom{35}{85}{\scriptsize\@@tmpb}% % right type
5828 \else\if\@@tmpa 1\relax%
5829 \putratom{80}{85}{\scriptsize\@@tmpb}% % right type
5830 \else\if\@@tmpa 2\relax%
5831 \putratom{15}{50}{\scriptsize\@@tmpb}% % right type
5832 \else\if\@@tmpa 3\relax%
5833 \putratom{15}{120}{\scriptsize\@@tmpb}% % right type
5834 \else\if\@@tmpa 4\relax%
5835 \putratom{180}{130}{\scriptsize\@@tmpb}% % right type
5836 \else\if\@@tmpa 5\relax%
5837 \putratom{20}{-60}{\scriptsize\@@tmpb}% % right type
5838 \else\if\@@tmpa 6\relax%
5839 \putratom{20}{230}{\scriptsize\@@tmpb}% % right type
5840 \else
5841 % %%%%%%%%%%%%%%%%%%%%%
5842 % % inner bond fusion %
5843 % %%%%%%%%%%%%%%%%%%%%%
5844 \set@fusion@threeh
5845 \fi\fi\fi\fi\fi\fi\fi%
5846 }%
5847 % \end{macrocode}
5848 % \end{macro}
5849 %
5850 % The inner command |\set@fusion@threeh| is used for typesetting
5851 % a fused ring at each bond represented by |\@@tmpa|. Warnings
5852 % concerning mismatched ring-fusions are based on the command
5853 % |\FuseWarning|.
5854 %
5855 % \begin{macro}{\set@fusion@threeh}
5856 % \changes{v2.00}{1998/12/5}{New command: \cs{set@fusion@threeh}}
5857 % \changes{v5.00}{2010/10/01}{\cs{FuseWarning} recovered for bond coloring}
5858 % \begin{macrocode}
5859 \def\set@fusion@threeh{%
5860 % %%%%%%%%%%%%%%%%%%%%%
5861 % % inner bond fusion %
5862 % %%%%%%%%%%%%%%%%%%%%%
5863 \if\@@tmpa b\relax%
5864 \putlratom{0}{0}{\@@tmpb}% % bond fused
5865 \FuseWarning{0}{-200}%
5866 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{b}%
5867 \else\if\@@tmpa B\relax%
5868 \putlratom{0}{200}{\@@tmpb}% % bond fused
5869 \FuseWarning{0}{200}%
5870 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{B}%
5871 \else\if\@@tmpa a\relax%
5872 \putlratom{171}{103}{\@@tmpb}% % bond fused
5873 \FuseWarning{171}{103}%
5874 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{a}%
5875 \else\if\@@tmpa A\relax%
5876 \putlratom{0}{0}{\@@tmpb}% % bond fused
5877 \FuseWarning{-171}{-103}%
5878 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{A}%
5879 \else\if\@@tmpa c\relax%
5880 \putlratom{0}{200}{\@@tmpb}% % bond fused
5881 \FuseWarning{-171}{103}%
5882 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{c}%
5883 \else\if\@@tmpa C\relax%
5884 \putlratom{171}{103}{\@@tmpb}% % bond fused
5885 \FuseWarning{171}{-103}%
5886 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{C}%
5887 \fi\fi\fi\fi\fi\fi%
5888 \global\let\FuseWarning=\FuseW@rning%added 2010/10/01
5889 }% end of the macro \set@fusion@threeh
5890 % \end{macrocode}
5891 % \end{macro}
5892 %
5893 % \changes{v5.01}{2013/3/19}{added \cs{oxiraneh}, \cs{aziridineh}, and \cs{thiiraneh} }
5894 % \begin{macro}{\oxiraneh}
5895 % \begin{macro}{\aziridineh}
5896 % \begin{macro}{\thiiraneh}
5897 % \begin{macrocode}
5898 \def\oxiraneh{\@ifnextchar[{\@oxiraneh[@}{\@oxiraneh[]}}
5899 \def\@oxiraneh[#1]#2{%
5900 \iforigpt \typeout{command `oxiraneh' %
5901 is based on `threeheteroh'.}\fi%
5902 \threeheteroh[#1]{1==O}{#2}}
5903 \def\aziridineh{\@ifnextchar[{\@aziridineh[@}{\@aziridineh[]}}
5904 \def\@aziridineh[#1]#2{%
5905 \iforigpt \typeout{command `aziridineh' %
5906 is based on `threeheteroh'.}\fi%
5907 \threeheteroh[#1]{1==N}{#2}}
5908 \def\thiiraneh{\@ifnextchar[{\@thiiraneh[@}{\@thiiraneh[]}}
5909 \def\@thiiraneh[#1]#2{%
5910 \iforigpt \typeout{command `thiiraneh' %
5911 is based on `threeheteroh'.}\fi%
5912 \threeheteroh[#1]{1==S}{#2}}
5913 % \end{macrocode}
5914 % \end{macro}
5915 % \end{macro}
5916 % \end{macro}
5917 %
5918 % \subsection{Inverse horizontal type}
5919 %
5920 % The macro |\threeheterohi| typesets a three-membered ring. The following
5921 % numbering is adopted in this macro.
5922 %
5923 % \begin{verbatim}
5924 % *******************************
5925 % * thereehetero derivatives *
5926 % * (vertical horizontal type) *
5927 % *******************************
5928 %
5929 % aaa bbb
5930 % c 3
5931 % / |
5932 % eee 1 | b
5933 % fff a` |
5934 % 2 <---original point
5935 % ccc ddd
5936 % \end{verbatim}
5937 %
5938 % The macro |\threeheterohi| has two arguments |ATOMLIST| and |SUBSLIST|
5939 % as well as an optional argument |BONDLIST|.
5940 % Two optional arguments |SKBONDLIST| and |OMIT| are added to
5941 % treat stereochemical information or other bond situations.
5942 %
5943 % \begin{verbatim}
5944 % \threeheterohi(SKBONDLIST)[BONDLIST]{ATOMLIST}{SUBSLIST}[OMIT]
5945 % \end{verbatim}
5946 %
5947 % The |SKBONDLIST| argument contains pairs of two alphabets in
5948 % parentheses, e.g. (\{bA\}\{fB\}). Each pair contains a lowercase
5949 % character selected from bond specifiers `a' to `c' and a uppercase
5950 % character `A' or `B'.
5951 %
5952 % The |BONDLIST| argument contains one
5953 % character selected from a to c, each of which indicates the presence of
5954 % an inner (endcyclic) double bond on the corresponding position.
5955 % The option `$n+$' ($n=1$ to $3$) represents a plus charge on a hetero atom
5956 % at the $n$-position.
5957 % The option `$n+$' ($n=4$ to $6$) represents a plus charge outside the ring.
5958 % The option `$0+$' typesets a plus charge at the center of the ring.
5959 %
5960 % \begin{verbatim}
5961 % BONDLIST =
5962 %
5963 % none : saturated
5964 % a : 1,2-double bond
5965 % b : 2,3-double bond
5966 % c : 3,1-double bond
5967 % A : aromatic circle
5968 % {n+} : plus at the n-hetero atom (n = 1 to 3)
5969 % : n=4 -- outer plus at 1 position
5970 % : n=5 -- outer plus at 2 position
5971 % : n=6 -- outer plus at 3 position
5972 % {0+} : plus at the center of a cyclopropane ring
5973 % \end{verbatim}
5974 %
5975 % The |ATOMLIST| argument contains one or more heteroatom descriptors
5976 % which are separated from each other by a semicolon. Each heteroatom
5977 % descriptor consists of a locant number and a heteroatom,
5978 % where these are separated with a double equality symbol.
5979 %
5980 % \begin{verbatim}
5981 % ATOMLIST: list of heteroatoms (max 3 atoms)
5982 %
5983 % for n = 1 to 3
5984 %
5985 % n : Hetero atom, e.g. N, O, etc. at n-position,
5986 % e.g. 1==N for N at 1-position
5987 % \end{verbatim}
5988 %
5989 % The |SUBSLIST| argument contains one or more substitution descriptors
5990 % which are separated from each other by a semicolon. Each substitution
5991 % descriptor has a locant number with a bond modifier and a substituent,
5992 % where these are separated with a double equality symbol.
5993 %
5994 % \begin{verbatim}
5995 % SUBSLIST: list of substituents
5996 %
5997 % for n = 1 to 3
5998 %
5999 % nD : exocyclic double bond at n-atom
6000 % n or nS : exocyclic single bond at n-atom
6001 % nA : alpha single bond at n-atom
6002 % nB : beta single bond at n-atom
6003 % nSA : alpha single bond at n-atom (boldface)
6004 % nSB : beta single bond at n-atom (dotted line)
6005 % nSa : alpha (not specified) single bond at n-atom
6006 % nSb : beta (not specified) single bond at n-atom
6007 %
6008 % nSd : alpha single bond at n-atom (dotted line)
6009 % with an alternative direction to nSA
6010 % nSu : beta single bond at n-atom (boldface)
6011 % with an alternative direction to nSB
6012 % nFA : alpha single bond at n-atom (dotted line)
6013 % for ring fusion
6014 % nFB : beta single bond at n-atom (boldface)
6015 % for ring fusion
6016 % nGA : alpha single bond at n-atom (dotted line)
6017 % for the other ring fusion
6018 % nGB : beta single bond at n-atom (boldface)
6019 % for the other ring fusion
6020 % \end{verbatim}
6021 %
6022 % The argument |OMIT| represents one or more bonds to be omitted.
6023 % The omitted edges may be regarded as both fused and non-fused
6024 % positions.
6025 %
6026 % \begin{verbatim}
6027 % OMIT: one or more bonds omitted (a to c; see BONDLIST)
6028 % \end{verbatim}
6029 %
6030 % Several examples are shown as follows.
6031 % \begin{verbatim}
6032 % e.g.
6033 %
6034 % \threeheterohi{1==N}{1==Cl;2==F}
6035 % \threeheterohi[c]{1==N}{1==Cl;4==F;2==CH$_{3}$}
6036 % \threeheterohi{1==N}{1D==O;4SA==MeO;4SB==OMe;5==Cl;6==Cl}
6037 % \end{verbatim}
6038 %
6039 % \changes{v1.02}{1998/10/31}{Adding \cs{ylposition}, \cs{if@ylsw},
6040 % \cs{yl@shifti}, \cs{@ylii}, \cs{yl@shiftii}, \cs{@ylii},
6041 % \cs{yl@xdiff} and \cs{yl@ydiff}}
6042 % \changes{v2.00}{1998/12/5}{Add: spiro and fused rings}
6043 % \changes{v2.01}{2001/6/20}{The
6044 % \cs{storeclipinfo} command is added.}
6045 %
6046 % \begin{macro}{\threeheterohi}
6047 % \begin{macro}{\@three@heterohi}
6048 % \begin{macro}{\@three@@heterohi}
6049 % \begin{macro}{\@threeheterohi}
6050 % \begin{macrocode}
6051 \def\threeheterohi{\@ifnextchar({\@three@heterohi(@}{\@three@heterohi(@)}}
6052 \def\@three@heterohi(#1){\@ifnextchar[{\@three@@heterohi(#1)[@}%
6053 {\@three@@heterohi(#1)[@]}}
6054 \def\@three@@heterohi(#1)[#2]#3#4{\@ifnextchar[%
6055 {\@threeheterohi(#1)[#2]{#3}{#4}[@}%
6056 {\@threeheterohi(#1)[#2]{#3}{#4}[@]}}
6057 \def\@threeheterohi(#1)[#2]#3#4[#5]{%
6058 % \end{macrocode}
6059 %
6060 % The procedure of adusting substitution positions is based on
6061 % a horizontal six-membered ring, in which the positions
6062 % 1 (aaa), 5 (eee), 3 (ccc) are used in place of the positions
6063 % 1, 2, and 3 of the three-membered ring.
6064 %
6065 % \begin{macrocode}
6066 % %%%%%%%%%%%%%%%%%%%%%%%%%%
6067 % % treatment of atom list %
6068 % %%%%%%%%%%%%%%%%%%%%%%%%%%
6069 \iniatom\iniflag%initialize
6070 \test@vertix@sixv{#3}{a}{e}{c}{@}{@}{@}%tentative use for six-h
6071 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
6072 % % adustment of subs positions %
6073 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
6074 \@reset@ylsw%
6075 \ylpositionh{#4}{0}{0}{2}{0}%subst 1
6076 \if@ylsw \ifx\@@ylii\empty
6077 \def\@@ylii{171}\def\@@yli{-103}\fi
6078 \else
6079 \ylpositionh{#4}{0}{2}{4}{0}%subst 3
6080 \fi
6081 \if@ylsw \ifx\@@ylii\empty
6082 \def\@@ylii{303}\def\@@yli{-29}\fi
6083 \else
6084 \ylpositionh{#4}{3}{4}{6}{0}%subst 2
6085 \fi
6086 \if@ylsw \ifx\@@ylii\empty
6087 \def\@@ylii{303}\def\@@yli{-171}\fi
6088 \fi
6089 \begin{ShiftPicEnvB}(0,0)(-\yl@shiftii,-\yl@shifti)/%
6090 (580,700)(-400,-240){threeheterohi}%
6091 (400,240)%2002/4/30 by S. Fujita
6092 % \end{macrocode}
6093 %
6094 % The procedures of setting skeletal and inner bonds are based on
6095 % a vertical six-membered ring, where the bonds d, b, and f are
6096 % used in place of the bonds a, b, and c.
6097 %
6098 % \begin{macrocode}
6099 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%
6100 % % retreatment of atom list %
6101 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%
6102 \iniatom\iniflag%initialize
6103 \test@vertix@sixv{#3}{e}{c}{a}{@}{@}{@}%
6104 \test@vertix@sixv{#3}{f}{d}{b}{@}{@}{@}%
6105 % %%%%%%%%%%%%%%%%%%
6106 % % outer skeleton %
6107 % %%%%%%%%%%%%%%%%%%
6108 {\resetbdsw%
6109 \@bond@@omit{#5}%
6110 \Put@Direct(0,0){\set@skel@bond{#1}{a}{d}}%
6111 % bond between 1 and 2 \@aaa -> \skbondd etc
6112 \Put@Direct(-171,-103){\set@skel@bond{#1}{b}{b}}%
6113 % bond between 2 and 3 \@bbb -> \skbondb etc
6114 \Put@Direct(0,-200){\set@skel@bond{#1}{c}{f}}%
6115 % bond between 3 and 1 \@ccc -> \skbondf etc
6116 }%
6117 % \end{macrocode}
6118 %
6119 % \begin{macrocode}
6120 % %%%%%%%%%%%%%%%%%%%%%
6121 % % inner double bond %
6122 % %%%%%%%%%%%%%%%%%%%%%
6123 \@tfor\member:=#2\do{%
6124 \if\member r\relax%
6125 \else\if\member a\relax\Put@Direct(0,0){\bondd}%
6126 \else\if\member b\relax\Put@Direct(-171,-103){\bondb}%
6127 \else\if\member c\relax\Put@Direct(0,-200){\bondf}%
6128 \else\if\member A\relax% aromatic circle
6129 \Put@oCircle(70,103){100}% %circle
6130 \else
6131 % %%%%%%%%%%%%%%%%%%%%%%%%%
6132 % % inner bond attachment %
6133 % %%%%%%%%%%%%%%%%%%%%%%%%%
6134 \expandafter\twoCH@@R\member//%
6135 \set@fusionadd@threehi
6136 \fi\fi\fi\fi\fi%
6137 }%
6138 % \end{macrocode}
6139 %
6140 % The proceduce of setting hetero atoms on the vertices of
6141 % a three-membered ring is based on the macro |\set@hetaromh@sixh|,
6142 % where the positions 1, 5, and 3 of a horizontal six-membered ring
6143 % are used in place of the positions 1, 2, and 3 of the three-membered ring.
6144 %
6145 % \begin{macrocode}
6146 % %%%%%%%%%%%%%%%%%%%%%%%%
6147 % % setting hetero atoms %
6148 % %%%%%%%%%%%%%%%%%%%%%%%%
6149 \iniflag
6150 \Put@Direct(-171,103){\set@hetatom@sixh{#3}{0}{0}{2}{0}%
6151 %\if@aclip \global\@acliptrue\fi
6152 \storeclipinfo
6153 }%subst 1 <--six h 1
6154 \developclipinfo
6155 \Put@Direct(-303,29){\set@hetatom@sixh{#3}{0}{2}{4}{0}%
6156 %\if@cclip \global\@ccliptrue\fi
6157 \storeclipinfo
6158 \developclipinfo
6159 }%subst 3 <--six h 3
6160 \Put@Direct(-303,171){\set@hetatom@sixh{#3}{3}{4}{6}{0}%
6161 %\if@eclip \global\@ecliptrue\fi
6162 \storeclipinfo
6163 }%subst 2 <--six h 5
6164 \developclipinfo
6165 % \end{macrocode}
6166 %
6167 % \begin{macrocode}
6168 % %%%%%%%%%%%%%%%%%%%%%%%%
6169 % % setting substituents %
6170 % %%%%%%%%%%%%%%%%%%%%%%%%
6171 \Put@Direct(-171,103){\setsixringh{#4}{0}{0}{2}{0}}%subst 1
6172 \Put@Direct(-303,29){\setsixringh{#4}{0}{2}{4}{0}}%subst 3
6173 \Put@Direct(-303,171){\setsixringh{#4}{3}{4}{6}{0}}%subst 2
6174 \end{ShiftPicEnvB}%
6175 \iniatom\iniflag}% %end of \threeheterohi macro
6176 % \end{macrocode}
6177 % \end{macro}
6178 % \end{macro}
6179 % \end{macro}
6180 % \end{macro}
6181 %
6182 % The macro |\set@fusionadd@threehi| is an inner command contained
6183 % in the definition of |\threeheterohi| etc., where
6184 % the macro is used for setting an additive
6185 % or a fused ring at each bond (designated by |\@@tmpa|). The
6186 % fused ring is typeset by the inner command |\set@fusion@threehi|.
6187 %
6188 % \begin{macro}{\set@fusionadd@threeh}
6189 % \changes{v2.00}{1998/12/5}{New command: \cs{set@fusionadd@threehi}}
6190 % \begin{macrocode}
6191 \def\set@fusionadd@threehi{%
6192 \if\@@tmpa 0\relax%
6193 \putlatom{-35}{85}{\scriptsize\@@tmpb}% % left type
6194 \else\if\@@tmpa 1\relax%
6195 \putlatom{-80}{85}{\scriptsize\@@tmpb}% % left type
6196 \else\if\@@tmpa 2\relax%
6197 \putlatom{-15}{50}{\scriptsize\@@tmpb}% % left type
6198 \else\if\@@tmpa 3\relax%
6199 \putlatom{-15}{120}{\scriptsize\@@tmpb}% % left type
6200 \else\if\@@tmpa 4\relax%
6201 \putlatom{-180}{130}{\scriptsize\@@tmpb}% % left type
6202 \else\if\@@tmpa 5\relax%
6203 \putlatom{-20}{-60}{\scriptsize\@@tmpb}% % left type
6204 \else\if\@@tmpa 6\relax%
6205 \putlatom{-20}{230}{\scriptsize\@@tmpb}% % left type
6206 \else
6207 % %%%%%%%%%%%%%%%%%%%%%
6208 % % inner bond fusion %
6209 % %%%%%%%%%%%%%%%%%%%%%
6210 \set@fusion@threehi
6211 \fi\fi\fi\fi\fi\fi\fi%
6212 }%
6213 % \end{macrocode}
6214 % \end{macro}
6215 %
6216 % The inner command |\set@fusion@threehi| is used for typesetting
6217 % a fused ring at each bond represented by |\@@tmpa|. Warnings
6218 % concerning mismatched ring-fusions are based on the command
6219 % |\FuseWarning|.
6220 %
6221 % \begin{macro}{\set@fusion@threehi}
6222 % \changes{v2.00}{1998/12/5}{New command: \cs{set@fusion@threehi}}
6223 % \changes{v5.00}{2010/10/01}{\cs{FuseWarning} recovered for bond coloring}
6224 % \begin{macrocode}
6225 \def\set@fusion@threehi{%
6226 % %%%%%%%%%%%%%%%%%%%%%
6227 % % inner bond fusion %
6228 % %%%%%%%%%%%%%%%%%%%%%
6229 \if\@@tmpa b\relax%
6230 \putlratom{0}{0}{\@@tmpb}% % bond fused
6231 \FuseWarning{0}{-200}%
6232 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{b}%
6233 \else\if\@@tmpa B\relax%
6234 \putlratom{0}{200}{\@@tmpb}% % bond fused
6235 \FuseWarning{0}{200}%
6236 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{B}%
6237 \else\if\@@tmpa a\relax%
6238 \putlratom{-171}{103}{\@@tmpb}% % bond fused
6239 \FuseWarning{-171}{103}%
6240 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{a}%
6241 \else\if\@@tmpa A\relax%
6242 \putlratom{0}{0}{\@@tmpb}% % bond fused
6243 \FuseWarning{171}{-103}%
6244 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{A}%
6245 \else\if\@@tmpa c\relax%
6246 \putlratom{0}{200}{\@@tmpb}% % bond fused
6247 \FuseWarning{171}{103}%
6248 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{c}%
6249 \else\if\@@tmpa C\relax%
6250 \putlratom{-171}{103}{\@@tmpb}% % bond fused
6251 \FuseWarning{-171}{-103}%
6252 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{C}%
6253 \fi\fi\fi\fi\fi\fi%
6254 \global\let\FuseWarning=\FuseW@rning%added 2010/10/01
6255 }% end of the macro \set@fusion@threehi
6256 %</hetaromh>
6257 % \end{macrocode}
6258 % \end{macro}
6259 %
6260 % \changes{v5.01}{2013/3/19}{added \cs{oxiranehi}, \cs{aziridinehi}, and \cs{thiiranehi} }
6261 % \begin{macro}{\oxiranehi}
6262 % \begin{macro}{\aziridinehi}
6263 % \begin{macro}{\thiiranehi}
6264 % \begin{macrocode}
6265 \def\oxiranehi{\@ifnextchar[{\@oxiranehi[@}{\@oxiranehi[]}}
6266 \def\@oxiranehi[#1]#2{%
6267 \iforigpt \typeout{command `oxiranehi' %
6268 is based on `threeheterohi'.}\fi%
6269 \threeheterohi[#1]{1==O}{#2}}
6270 \def\aziridinehi{\@ifnextchar[{\@aziridinehi[@}{\@aziridinehi[]}}
6271 \def\@aziridinehi[#1]#2{%
6272 \iforigpt \typeout{command `aziridinehi' %
6273 is based on `threeheterohi'.}\fi%
6274 \threeheterohi[#1]{1==N}{#2}}
6275 \def\thiiranehi{\@ifnextchar[{\@thiiranehi[@}{\@thiiranehi[]}}
6276 \def\@thiiranehi[#1]#2{%
6277 \iforigpt \typeout{command `thiiranehi' %
6278 is based on `threeheterohi'.}\fi%
6279 \threeheterohi[#1]{1==S}{#2}}
6280 % \end{macrocode}
6281 % \end{macro}
6282 % \end{macro}
6283 % \end{macro}
6284 %
6285 % \Finale
6286 %
6287 \endinput