Debian Codegraph @

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

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