Debian Codegraph @

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

raw
1 % \iffalse meta-comment
2 %% File: chemstr.dtx
3 %
4 % Copyright 1993,1996,1998,2001,2002, 2004, 2005, 2006, 2009, 2010, 2011, 2013 by Shinsaku Fujita
5 %
6 % This file is part of XyMTeX system.
7 % -------------------------------------
8 %
9 % This file is a successor to:
10 %
11 % chemstr.sty
12 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
13 % \typeout{XyMTeX for Drawing Chemical Structural Formulas. Version 1.00}
14 % \typeout{ -- Released December 1, 1993 by Shinsaku Fujita}
15 % Copyright (C) 1993 by Shinsaku Fujita, all rights reserved.
16 %
17 % This file is a part of the macro package ``XyMTeX'' which has been
18 % designed for typesetting chemical structural formulas.
19 %
20 % This file is to be contained in the ``xymtex'' directory which is
21 % an input directory for TeX. It is a LaTeX optional style file and
22 % should be used only within LaTeX, because several macros of the file
23 % are based on LaTeX commands.
24 %
25 % For the review of XyMTeX, see
26 % (1) Shinsaku Fujita, ``Typesetting structural formulas with the text
27 % formatter TeX/LaTeX'', Computers and Chemistry, in press.
28 % The following book deals with an application of TeX/LaTeX to
29 % preparation of manuscripts of chemical fields:
30 % (2) Shinsaku Fujita, ``LaTeX for Chemists and Biochemists''
31 % Tokyo Kagaku Dozin, Tokyo (1993) [in Japanese].
32 %
33 % This work may be distributed and/or modified under the
34 % conditions of the LaTeX Project Public License, either version 1.3
35 % of this license or (at your option) any later version.
36 % The latest version of this license is in
37 % http://www.latex-project.org/lppl.txt
38 % and version 1.3 or later is part of all distributions of LaTeX
39 % version 2005/12/01 or later.
40 %
41 % This work has the LPPL maintenance status `maintained'.
42 % The Current Maintainer of this work is Shinsaku Fujita.
43 %
44 % This work consists of the files chemstr.dtx and chemstr.ins
45 % and the derived file chemstr.sty.
46 %
47 % Please report any bugs, comments, suggestions, etc. to:
48 % Shinsaku Fujita,
49 % Shonan Institute of Chemoinformatics and Mathematical Chemistry
50 % Kaneko 479-7 Ooimachi, Ashigara-Kami-Gun, Kanagawa 250-0019 Japan
51 % (old address)
52 % Ashigara Research Laboratories, Fuji Photo Film Co., Ltd.,
53 % Minami-Ashigara, Kanagawa-ken, 250-01, Japan.
54 % (old address)
55 % Department of Chemistry and Materials Technology,
56 % Kyoto Institute of Technology, \\
57 % Matsugasaki, Sakyoku, Kyoto, 606-8585 Japan
58 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
59 %
60 % Bug Fix:
61 % 1993/11/14 S. Fujita
62 % A and B are interchanged.
63 % a and b are interchanged.
64 %
65 % \def\j@urnalname{chemstr}
66 % \def\versi@ndate{December 01, 1993}
67 % \def\versi@nno{ver1.00}
68 % \def\copyrighth@lder{SF}% % Shinsaku Fujita
69 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
70 % \def\j@urnalname{chemstr}
71 % \def\versi@ndate{August 16, 1996}
72 % \def\versi@nno{ver1.01}
73 % \def\copyrighth@lder{SF} % Shinsaku Fujita
74 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
75 % \def\j@urnalname{chemstr}
76 % \def\versi@ndate{October 31, 1998}
77 % \def\versi@nno{ver1.02}
78 % \def\copyrighth@lder{SF} % Shinsaku Fujita
79 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
80 % \def\j@urnalname{chemstr}
81 % \def\versi@ndate{June 20, 2001}
82 % \def\versi@nno{ver2.01}
83 % \def\copyrighth@lder{SF} % Shinsaku Fujita
84 % (No Distribution)
85 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
86 % \def\j@urnalname{chemstr}
87 % \def\versi@ndate{April 30, 2002}
88 % \def\versi@nno{ver3.00}
89 % \def\copyrighth@lder{SF} % Shinsaku Fujita
90 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
91 % \def\j@urnalname{chemstr}
92 % \def\versi@ndate{May 30, 2002}
93 % \def\versi@nno{ver4.00}
94 % \def\copyrighth@lder{SF} % Shinsaku Fujita
95 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
96 % \def\j@urnalname{chemstr}
97 % \def\versi@ndate{August 30, 2004}
98 % \def\versi@nno{ver4.01}
99 % \def\copyrighth@lder{SF} % Shinsaku Fujita
100 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
101 % \def\j@urnalname{chemstr}
102 % \def\versi@ndate{November 11, 2004}
103 % \def\versi@nno{ver4.01a}
104 % \def\copyrighth@lder{SF} % Shinsaku Fujita
105 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
106 % \def\j@urnalname{chemstr}
107 % \def\versi@ndate{December 20, 2004}
108 % \def\versi@nno{ver4.02}
109 % \def\copyrighth@lder{SF} % Shinsaku Fujita
110 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
111 % \def\j@urnalname{chemstr}
112 % \def\versi@ndate{July 20, 2005}
113 % \def\versi@nno{ver4.03}
114 % \def\copyrighth@lder{SF} % Shinsaku Fujita
115 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
116 % \def\j@urnalname{chemstr}
117 % \def\versi@ndate{September 5, 2006}
118 % \def\versi@nno{ver4.03b}
119 % \def\copyrighth@lder{SF} % Shinsaku Fujita
120 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
121 % \def\j@urnalname{chemstr}
122 % \def\versi@ndate{July 7, 2009}
123 % \def\versi@nno{ver4.04a}
124 % \def\copyrighth@lder{SF} % Shinsaku Fujita
125 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
126 % \def\j@urnalname{chemstr}
127 % \def\versi@ndate{October 25, 2009}
128 % \def\versi@nno{ver4.05}
129 % \def\copyrighth@lder{SF} % Shinsaku Fujita
130 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
131 % \def\j@urnalname{chemstr}
132 % \def\versi@ndate{October 01, 2010}
133 % \def\versi@nno{ver5.00}
134 % \def\copyrighth@lder{SF} % Shinsaku Fujita
135 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
136 % \def\j@urnalname{chemstr}
137 % \def\versi@ndate{February 24, 2011}
138 % \def\versi@nno{ver5.01b}
139 % \def\copyrighth@lder{SF} % Shinsaku Fujita
140 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
141 %
142 % \fi
143 %
144 % \CheckSum{14811}
145 %% \CharacterTable
146 %% {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
147 %% 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
148 %% Digits \0\1\2\3\4\5\6\7\8\9
149 %% Exclamation \! Double quote \" Hash (number) \#
150 %% Dollar \$ Percent \% Ampersand \&
151 %% Acute accent \' Left paren \( Right paren \)
152 %% Asterisk \* Plus \+ Comma \,
153 %% Minus \- Point \. Solidus \/
154 %% Colon \: Semicolon \; Less than \<
155 %% Equals \= Greater than \> Question mark \?
156 %% Commercial at \@ Left bracket \[ Backslash \\
157 %% Right bracket \] Circumflex \^ Underscore \_
158 %% Grave accent \` Left brace \{ Vertical bar \|
159 %% Right brace \} Tilde \~}
160 %
161 % \setcounter{StandardModuleDepth}{1}
162 %
163 % \StopEventually{}
164 % \MakeShortVerb{\|}
165 %
166 % \iffalse
167 % \changes{v1.01}{1996/06/26}{first edition for LaTeX2e}
168 % \changes{v1.02}{1998/10/31}{revised edition for LaTeX2e}
169 % \changes{v2.00}{1998/12/25}{enhanced edition for LaTeX2e}
170 % \changes{v2.01}{2001/06/20}{Size reduction}
171 % \changes{v2.01}{2001/06/21}{The command \cs{dotorline} is added.}
172 % \changes{v3.00}{2002/04/30}{picture to sfpicture, etc.}
173 % \changes{v4.00}{2002/05/30}{PostScript output and ShiftPicEnv environment}
174 % \changes{v4.01}{2004/08/30}{Minor additions}
175 % \changes{v4.01a}{2004/11/11}{Bug fix}
176 % \changes{v4.02}{2004/12/20}{Adjustment for \cs{setbondatom..}}
177 % \changes{v4.02a}{2004/12/27}{Bug fix: change \cs{ggg} to \cs{gggA}}
178 % \changes{v4.03}{2005/07/20}{wave bonds for stereochemistry}
179 % \changes{v4.03b}{2006/9/5}{\cs{ggg} to \cs{gggA} in \cs{test@vertix}}
180 % \changes{v4.04}{2009/7/7}{Bug fix for the \cs{XyMTeX} logo}
181 % \changes{v4.05}{2009/10/25}{Bug fix for the \cs{XyMTeX} logo}
182 % \changes{v5.00}{2010/10/01}{bond coloring and the LaTeX Project Public License}
183 % \changes{v5.01b}{2011/02/24}{added commands for bond coloring of the PostScript Mode}
184 % \changes{v5.01}{2011/03/22}{\cs{SetTwoAtoms} added}
185 % \changes{v5.01}{2011/04/06}{bug fix}
186 % \changes{v5.01}{2011/06/19}{bug fix: \cs{ylposition}}
187 % \fi
188 %
189 % \iffalse
190 %<*driver>
191 \NeedsTeXFormat{pLaTeX2e}
192 % \fi
193 \ProvidesFile{chemstr.dtx}[2013/03/22 v5.01 XyMTeX{} package file]
194 % \iffalse
195 \documentclass{ltxdoc}
196 \GetFileInfo{chemstr.dtx}
197 %
198 % %%XyMTeX Logo: Definition 4%%%
199 \makeatletter
200 \def\select@@Upsionfont{%
201 \edef\test@rm{\rmdefault}%
202 \edef\test@sf{\sfdefault}%
203 \edef\test@tt{\ttdefault}%
204 \ifx\f@family \test@rm\relax
205 {\expandafter\csname OT1/cmr/\f@series/\f@shape/\f@size%
206 \endcsname\char'7}%
207 \else\ifx\f@family \test@sf\relax
208 {\expandafter\csname OT1/cmss/\f@series/\f@shape/\f@size%
209 \endcsname\char'7}%
210 \else\ifx\f@family \test@tt\relax
211 {\expandafter\csname OT1/cmtt/\f@series/\f@shape/\f@size%
212 \endcsname\char'7}%
213 \else{\expandafter\csname OT1/cmr/\f@series/\f@shape/\f@size%
214 \endcsname
215 \char'7}\fi\fi\fi%
216 }
217 \def\XyM{X\kern-.30em\smash{%
218 \raise.50ex\hbox to0.8em{\hss\select@@Upsionfont%
219 \hss}}\kern-.30em{M}}
220 \def\XyMTeX{\XyM\kern-.1em\TeX}
221 \makeatother
222 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
223 \title{Basic Commands for Drawing Chemical Structures
224 by {\sffamily chemstr.sty}
225 (\fileversion) of \XyMTeX{}}
226 \author{Shinsaku Fujita \\
227 Shonan Institute of Chemoinformatics and
228 Mathematical Chemistry \\
229 Kaneko 479-7 Ooimachi, Ashigara-Kami-Gun, Kanagawa, \\
230 258-0019 Japan
231 % % (old address)
232 % %Department of Chemistry and Materials Technology, \\
233 % %Kyoto Institute of Technology, \\
234 % %Matsugasaki, Sakyoku, Kyoto, 606-8585 Japan
235 % % (old old address)
236 % % Ashigara Research Laboratories,
237 % % Fuji Photo Film Co., Ltd., \\
238 % % Minami-Ashigara, Kanagawa, 250-01 Japan
239 }
240 \date{\filedate}
241 %
242 \begin{document}
243 \maketitle
244 \DocInput{chemstr.dtx}
245 \end{document}
246 %</driver>
247 % \fi
248 %
249 % \section{Introduction}\label{chemstr:intro}
250 %
251 % \subsection{Options for {\sffamily docstrip}}
252 %
253 % \DeleteShortVerb{\|}
254 % \begin{center}
255 % \begin{tabular}{|l|l|}
256 % \hline
257 % \emph{option} & \emph{function}\\ \hline
258 % chemstr & chemstr.sty \\
259 % driver & driver for this dtx file \\
260 % \hline
261 % \end{tabular}
262 % \end{center}
263 % \MakeShortVerb{\|}
264 %
265 % \subsection{Version Information}
266 %
267 % \begin{macrocode}
268 %<*chemstr>
269 \typeout{XyMTeX for Drawing Chemical Structural Formulas. Version 5.01}
270 \typeout{ -- Released June 19, 2013 by Shinsaku Fujita}
271 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
272 \def\j@urnalname{chemstr}
273 \def\versi@ndate{June 19, 2013}
274 \def\versi@nno{ver5.01}
275 \def\copyrighth@lder{SF} % Shinsaku Fujita
276 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
277 \typeout{XyMTeX Macro File `\j@urnalname' (\versi@nno) <\versi@ndate>%
278 \space[\copyrighth@lder]}
279 % \end{macrocode}
280 %
281 % \section{List of commands for chemstr.sty}
282 %
283 % \begin{verbatim}
284 % *********************************
285 % * chemstr.sty: list of commands *
286 % *********************************
287 %
288 % <For separating an augument list to each argument>
289 %
290 % \@forsemicol
291 % \@forl@@p
292 % \@iforl@@p
293 % \@m@mb@r
294 % \twoch@r
295 % \twoCH@R (terminater //)
296 % \twoch@@r
297 % \twoCH@@R (terminater //)
298 % \threech@r
299 %
300 % <For designating coordinates for drawing round arrows>
301 %
302 % \@forendparenthesis
303 % \end{verbatim}
304 %
305 % \begin{verbatim}
306 % <Convention>
307 %
308 % \rmoiety
309 % \lmoiety
310 % \putlatom
311 % \putratom
312 % \putlratom
313 % \Putlratom
314 %
315 % \dotorline
316 %
317 % \end{verbatim}
318 %
319 % \begin{verbatim}
320 % <Treatment of substitution positions>
321 %
322 % \if@clip \@clipfalse \@cliptrue
323 % \if@aclip \@aclipfalse \@acliptrue
324 % \if@bclip \@bclipfalse \@bcliptrue
325 % \if@cclip \@cclipfalse \@ccliptrue
326 % \if@eclip \@eclipfalse \@ecliptrue
327 % \if@fclip \@fclipfalse \@fcliptrue
328 % \iforigpt \origptfalse \origpttrue
329 % \@tmpaa (counter)
330 %
331 % \clipinfo \storeclipinfo \developclipinfo
332 %
333 % <Structures as substituents>
334 % \@yl
335 % \yl@xdiff \yl@ydiff
336 % \yl@shiftii
337 % \yl@shifti
338 % \@ylii
339 % \@yli
340 % \@@ylii
341 % \@@yli
342 %
343 % <Fused positions check>
344 % \fuseAx \fuseAy
345 % \fuseBx \fuseBy
346 %
347 % \end{verbatim}
348 %
349 % \begin{verbatim}
350 % <VERTICAL SETTING>
351 % Substitution
352 %
353 % \@substa
354 % \@substb
355 % \@substc
356 % \@substd
357 % \@subste
358 % \@substf
359 %
360 % \end{verbatim}
361 %
362 % \begin{verbatim}
363 % Setting of atoms and bonds
364 %
365 % \setsixringv (on a vertical six-membered ring)
366 % \setdecaringv (on a decaline (six-six) ring)
367 % \setfusedbond (at fused bond positions)
368 % \if@clipfuse \@clipfusefalse \@clipfusetrue
369 % \setatombond (at an appropiate position)
370 %
371 % Placing structures as substituents
372 % \ylposition
373 % \ylfusedpostion
374 % \ylatombondposition
375 %
376 % \end{verbatim}
377 %
378 % \begin{verbatim}
379 % <HORIZONTAL SETTING>
380 % Substitution
381 %
382 % \@hsubsta
383 % \@hsubstb
384 % \@hsubstc
385 % \@hsubstd
386 % \@hsubste
387 % \@hsubstf
388 %
389 % \end{verbatim}
390 %
391 % \begin{verbatim}
392 % Setting of atoms and bonds
393 %
394 % \setsixringh (on a horizontal six-membered ring)
395 %
396 % Placing structures as substituents
397 %
398 % \ylpositionh
399 %
400 % \end{verbatim}
401 %
402 % \begin{verbatim}
403 % <Linking units>
404 %
405 % \ryl (right linking unit)
406 % \lyl (left linking unit)
407
408
409 % <Minor Linking Units>
410 %
411 % \ayl
412 %
413 % \upnobond
414 % \downnobond
415 %
416 % \BiFunc
417 %
418 % <Setting fused rings>
419 %
420 % \set@fusionadd@sixv \set@fusion@sixv
421 % \set@fusionadd@sixvi \set@fusion@sixvi
422 % \set@fusionadd@sixh \set@fusion@sixh
423 % \set@fusionadd@sixhi \set@fusion@sixhi
424 %
425 % \set@fusion@decav
426 % \set@fusion@decavb
427 % \set@fusion@decavt
428 % \set@fusion@decah
429 %
430 % \set@fusion@hanthrav
431 % \set@fusion@hphenanv
432 %
433 % \set@fusionadd@fivev \set@fusion@fivev
434 % \set@fusionadd@fivevi \set@fusion@fivevi
435 % \set@fusionadd@fiveh \set@fusion@fiveh
436 % \set@fusionadd@fivehi \set@fusion@fivehi
437 %
438 % \set@fusion@nonav \set@fusion@nonavi
439 % \set@fusion@nonah \set@fusion@nonahi
440 %
441 % \end{verbatim}
442 %
443 % \begin{verbatim}
444 % <For PostScript output>
445 %
446 % \let\Put@Direct=\put
447 % \let\Multiput@Direct=\multiput
448 % \Put@@@Line
449 % \Put@@@sCircle
450 % \Put@@@oCircle
451 %
452 % <ShiftPicEnv environments>
453 %
454 % ShiftPicEnv
455 % ShiftPicEnvB
456 % \let\sfpicture=\picture
457 % \let\endsfpicture=\endpicture
458 %
459 % <Wave bonds for stereochemistry>
460 % \ifwavebond, \WaveBonds
461 %
462 % <Bond coloring>
463 % \addbscolor,
464 % \setbscolor, \setBScolor
465 % \bscolorswON, \bscolorswOFF
466 % \defineXyMcolor
467 % \XyMcolor
468 %
469 % <Truncation for two or more atoms>
470 % \SetTwoAtoms
471 % \SetTwoAtomx
472 % \end{verbatim}
473 %
474 % \section{Initialization and conventions}
475 % \subsection{Logos}
476 %
477 % The logo of \XyMTeX{} is defined in two ways. The first definition uses
478 % the \verb/\fam/ command, which sometimes shows unusual behavior. The
479 % second definition is adopted in the present version of \XyMTeX{}, since
480 % this aims at the compatibility to \LaTeXe{}.
481 %
482 % \begin{macro}{\XyMTeX}
483 % \begin{macrocode}
484 % ***************
485 % * XyMTeX Logo *
486 % ***************
487 % %%XyMTeX Logo: Definition 1%%%
488 % \newcount\TestCount
489 % \def\XyM{\ifnum\fam=-1\relax\fam=0\relax\fi\TestCount=\fam%
490 % X\kern-.30em\smash{\raise.50ex\hbox{$\fam\TestCount\Upsilon$}}%
491 % \kern-.30em{M}}
492 % \def\XyMTeX{\XyM\kern-.1em\TeX}
493 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
494 % \end{macrocode}
495 %
496 % \begin{macrocode}
497 % %%XyMTeX Logo: Definition 2%%%
498 % \def\UPSILON{\char'7}
499 % \def\XyM{X\kern-.30em\smash{\raise.50ex\hbox{\UPSILON}}\kern-.30em{M}}
500 % \def\XyMTeX{\XyM\kern-.1em\TeX}
501 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
502 % \end{macrocode}
503 %
504 % \begin{macrocode}
505 % %%XyMTeX Logo: Definition 3%%%2009/07/07
506 % \edef\test@it{\itdefault}
507 % \edef\test@sf{\sfdefault}
508 % \edef\test@tt{\ttdefault}
509 % \edef\test@sl{\sldefault}
510 % \edef\test@bx{\bfdefault}
511 % \def\XyM{X\kern-.30em\smash{%
512 % \raise.50ex\hbox to0.8em{\hss%
513 % \ifx\f@series \test@bx\relax
514 % $\mathbf{\Upsilon}$%
515 % \else\ifx\f@shape \test@it\relax
516 % $\mathit{\Upsilon}$%
517 % \else\ifx\f@family \test@sf\relax
518 % $\mathsf{\Upsilon}$%
519 % \else\ifx\f@family \test@tt\relax
520 % $\mathtt{\Upsilon}$%
521 % \else\ifx\f@shape \test@sl\relax
522 % $\mathit{\Upsilon}$%
523 % \else
524 % $\Upsilon$\fi\fi\fi\fi\fi%
525 % \hss}}\kern-.30em{M}}
526 % \def\XyMTeX{\XyM\kern-.1em\TeX}
527 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
528 % % \end{macrocode}
529 %
530 % \begin{macrocode}
531 % %%XyMTeX Logo: Definition 4%%%2009/10/25
532 \def\select@@Upsionfont{%
533 \edef\test@rm{\rmdefault}%
534 \edef\test@sf{\sfdefault}%
535 \edef\test@tt{\ttdefault}%
536 \ifx\f@family \test@rm\relax
537 {\expandafter\csname OT1/cmr/\f@series/\f@shape/\f@size%
538 \endcsname\char'7}%
539 \else\ifx\f@family \test@sf\relax
540 {\expandafter\csname OT1/cmss/\f@series/\f@shape/\f@size%
541 \endcsname\char'7}%
542 \else\ifx\f@family \test@tt\relax
543 {\expandafter\csname OT1/cmtt/\f@series/\f@shape/\f@size%
544 \endcsname\char'7}%
545 \else{\expandafter\csname OT1/cmr/\f@series/\f@shape/\f@size%
546 \endcsname
547 \char'7}\fi\fi\fi%
548 }
549 \def\XyM{X\kern-.30em\smash{%
550 \raise.50ex\hbox to0.8em{\hss\select@@Upsionfont%
551 \hss}}\kern-.30em{M}}
552 \def\XyMTeX{\XyM\kern-.1em\TeX}
553 % \end{macrocode}
554 % \end{macro}
555 %
556 % \subsection{Switches for Three Modes}
557 %
558 % Switches for determining three modes
559 % are added in the \XyMTeX{} system (Version 5.00).
560 % \changes{v5.00}{2010/10/01}{bond coloring and the LaTeX Project Public License}
561 %
562 % \begin{macro}{\ifPSmode etc.}
563 % \begin{macrocode}
564 \newif\ifPSmode \PSmodefalse
565 \newif\ifPDFmode \PDFmodefalse
566 \newif\ifTeXLaTeXmode \TeXLaTeXmodetrue%default TeX/LaTeX mode.
567 % \end{macrocode}
568 % \end{macro}
569 %
570 % \subsection{Temporary Counters and Dimentions}
571 %
572 % The following counter registers are used to draw wavy bonds
573 % by Bezier technique.
574 %
575 % \begin{macro}{\@tempcntXa etc.}
576 % \begin{macrocode}
577 \newcount\@tempcntXa \newcount\@tempcntYa \newcount\@tempcntz
578 \newcount\@tempcntXb \newcount\@tempcntYb \newcount\@tempcntzz
579 \newcount\@tempcntXc \newcount\@tempcntYc \newcount\@tempcntzzz
580 \newcount\@tempcntXd \newcount\@tempcntYd \newcount\@tempcntzzzz
581 % \end{macrocode}
582 % \end{macro}
583 %
584 % The following dimension registers can be used temporarily
585 % in addition to |\@tempdima| and |\@tempdimb| of LaTeX
586 % utility.
587 %
588 % \begin{macro}{\@dimtempa etc.}
589 % \begin{macrocode}
590 \newdimen\@dimtempa
591 \newdimen\@tempdimd
592 \newdimen\@tempdime
593 % \end{macrocode}
594 % \end{macro}
595 %
596 % \subsection{Wavy Bonds}
597 %
598 % Wavy bonds that represent unspecified stereochemistry are supported by using
599 % PostScript technique. To assure compatibility, the non-PostScript mode
600 % is revised to support wavy bonds.
601 % \changes{v4.03}{2005/07/20}{Wavy Bonds}
602 %
603 %
604 % \begin{macro}{\waveunitA}
605 % \begin{macrocode}
606 \def\waveunitA(#1,#2)#3{%
607 \@tempcntz=#1\relax
608 \@tempcntzz=#2\relax
609 %%%%%%%%%%%%%%%%%%%%%%%%%
610 %middle point parameters%
611 %%%%%%%%%%%%%%%%%%%%%%%%%
612 \ifnum\@tempcntz=3\relax%
613 \ifnum\@tempcntzz=5\relax%
614 \@tempcntXa=-16 \@tempcntYa=10\relax%
615 \@tempcntXd=16 \@tempcntYd=-10\relax
616 \else\ifnum\@tempcntzz=-5\relax%
617 \@tempcntXa=-16 \@tempcntYa=-10\relax
618 \@tempcntXd=16 \@tempcntYd=10\relax
619 \fi\fi
620 \else\ifnum\@tempcntz=-3\relax%
621 \ifnum\@tempcntzz=5\relax%
622 \@tempcntXa=-16 \@tempcntYa=-10\relax%
623 \@tempcntXd=16 \@tempcntYd=10\relax
624 \else\ifnum\@tempcntzz=-5\relax%
625 \@tempcntXa=-16 \@tempcntYa=10\relax
626 \@tempcntXd=16 \@tempcntYd=-10\relax
627 \fi\fi
628 \else\ifnum\@tempcntz=5\relax
629 \ifnum\@tempcntzz=3\relax
630 \@tempcntXa=-10 \@tempcntYa=16\relax
631 \@tempcntXd=10 \@tempcntYd=-16\relax
632 \else\ifnum\@tempcntzz=-3\relax
633 \@tempcntXa=-10 \@tempcntYa=-16\relax
634 \@tempcntXd=10 \@tempcntYd=16\relax
635 \fi\fi
636 \else\ifnum\@tempcntz=-5\relax
637 \ifnum\@tempcntzz=3\relax
638 \@tempcntXa=10 \@tempcntYa=16\relax
639 \@tempcntXd=10 \@tempcntYd=-16\relax
640 \else\ifnum\@tempcntzz=-3\relax
641 \@tempcntXa=10 \@tempcntYa=-16\relax
642 \@tempcntXd=-10 \@tempcntYd=16\relax
643 \fi\fi
644 \else\ifnum\@tempcntz=1\relax
645 \ifnum\@tempcntzz=0\relax
646 \@tempcntXa=0 \@tempcntYa=20\relax
647 \@tempcntXd=0 \@tempcntYd=-20\relax
648 \fi
649 \else\ifnum\@tempcntz=-1\relax
650 \ifnum\@tempcntzz=0\relax
651 \@tempcntXa=0 \@tempcntYa=-20\relax
652 \@tempcntXd=0 \@tempcntYd=20\relax
653 \fi
654 \else\ifnum\@tempcntz=0\relax
655 \ifnum\@tempcntzz=1\relax
656 \@tempcntXa=-20 \@tempcntYa=0\relax
657 \@tempcntXd=20 \@tempcntYd=0\relax
658 \fi
659 \fi\fi\fi\fi\fi\fi\fi
660 %%%%%%%%%%%%%%%%%%%%
661 % start and ending %
662 %%%%%%%%%%%%%%%%%%%%
663 \ifnum\@tempcntzz=0\relax%(1,0) (-1,0)
664 \ifnum\@tempcntz>0\relax
665 \@tempcntXb=#3\relax
666 \else
667 \@tempcntXb=-#3\relax
668 \fi
669 \@tempcntYb=0
670 \ifnum\@tempcntz>0\relax
671 \@tempcntXa=#3\relax
672 \else
673 \@tempcntXa=-#3\relax
674 \fi
675 \divide\@tempcntXa by2\relax
676 \@tempcntXd=\@tempcntXa
677 \else\ifnum\@tempcntz=0\relax%(0,1) (0,-1)
678 \@tempcntXb=0\relax
679 \ifnum\@tempcntzz>0\relax
680 \@tempcntYb=#3\relax
681 \@tempcntYa=#3\relax
682 \else
683 \@tempcntYb=-#3\relax
684 \@tempcntYa=-#3\relax
685 \fi
686 \divide\@tempcntYa by2\relax
687 \@tempcntYd=\@tempcntYa
688 \else
689 \ifnum\@tempcntz>0\relax
690 \@tempcntXb=#3\relax
691 \else
692 \@tempcntXb=-#3\relax
693 \fi
694 \ifnum\@tempcntzz>0\relax
695 \@tempcntYb=#3\relax
696 \else
697 \@tempcntYb=-#3\relax
698 \fi
699 \ifnum\@tempcntzz>0\relax
700 \@tempcntzzzz=#2\relax
701 \else
702 \@tempcntzzzz=-#2\relax
703 \fi
704 \multiply\@tempcntYb by10\relax
705 \multiply\@tempcntYb by\@tempcntzzzz\relax
706 \ifnum\@tempcntz>0\relax
707 \@tempcntzzzz=#1\relax
708 \else
709 \@tempcntzzzz=-#1\relax
710 \fi
711 \divide\@tempcntYb by\@tempcntzzzz\relax
712 \divide\@tempcntYb by10\relax
713 \@tempcntzzzz=\@tempcntXb
714 \divide\@tempcntzzzz by2\relax
715 \advance\@tempcntXa by\@tempcntzzzz
716 \advance\@tempcntXd by\@tempcntzzzz
717 \@tempcntzzzz=\@tempcntYb
718 \divide\@tempcntzzzz by2\relax
719 \advance\@tempcntYa by\@tempcntzzzz
720 \advance\@tempcntYd by\@tempcntzzzz
721 \fi\fi
722 %%%%%%%%%%%%%%%%%
723 % Bezier curves %
724 %%%%%%%%%%%%%%%%%
725 \@tempcntXc=\@tempcntXb
726 \multiply\@tempcntXc by2\relax
727 \@tempcntYc=\@tempcntYb
728 \multiply\@tempcntYc by2\relax
729 \begin{picture}(0,0)(0,0)%
730 \multiput(0,0)(\@tempcntXc,\@tempcntYc){3}{%
731 \qbezier(0,0)(\@tempcntXa,\@tempcntYa)(\@tempcntXb,\@tempcntYb)}%
732 \multiput(\@tempcntXb,\@tempcntYb)(\@tempcntXc,\@tempcntYc){2}{%
733 \qbezier(0,0)(\@tempcntXd,\@tempcntYd)(\@tempcntXb,\@tempcntYb)}%
734 \end{picture}%
735 }%end of \waveunitA
736 % \end{macrocode}
737 % \end{macro}
738 %
739 % A new switch for wave bonds for stereochemistry is
740 % added: |\ifwavebond|.
741 % \changes{v4.03}{2005/07/20}{New switch: \cs{ifwavebond}}
742 %
743 % \begin{macro}{\ifwavebond}
744 % \begin{macro}{\WaveBonds}
745 % \begin{macro}{\NormalBonds}
746 % \begin{macrocode}
747 \newif\ifwavebond \wavebondfalse
748 \def\WaveBonds{\wavebondtrue}
749 \def\NormalBonds{\wavebondfalse}
750 % \end{macrocode}
751 % \end{macro}
752 % \end{macro}
753 % \end{macro}
754 %
755 % \changes{v4.03}{2005/07/20}{Renewed command: \cs{Put@@Line}}
756 % \begin{macro}{\Put@@Line}
757 % \begin{macrocode}
758 \def\Put@@Line(#1,#2)(#3,#4)#5{\Put@Direct(#1,#2){%
759 \ifwavebond \@tempcnta=#5\relax
760 \divide\@tempcnta by5\relax
761 \waveunitA(#3,#4){\@tempcnta}\else
762 \line(#3,#4){#5}\fi}}
763 % \end{macrocode}
764 % \end{macro}
765 %
766 % \subsection{Conventions for PostScript}
767 %
768 % The picture environment is switched to be acceptable
769 % to another system such as PostScript.
770 %
771 % \changes{v4.00}{2002/5/30}{New commands: \cs{Put@@Line},
772 % \cs{Put@@sCircle}, and \cs{Put@@oCircle}}
773 % \begin{macro}{\Put@@Line}
774 % \begin{macro}{\Put@@sCircle}
775 % \begin{macro}{\Put@@oCircle}
776 % \begin{macrocode}
777 \global\let\@ldline=\line%store the oridinal line command of picture enviroment
778 \global\let\@ldthicklines=\thicklines
779 \global\let\@ldthinlines=\thinlines
780 %%\def\Put@@Line(#1,#2)(#3,#4)#5{\Put@Direct(#1,#2){\line(#3,#4){#5}}}
781 \def\Put@@sCircle(#1,#2)#3{\Put@Direct(#1,#2){\circle*{#3}}}
782 \def\Put@@oCircle(#1,#2)#3{\Put@Direct(#1,#2){\circle{#3}}}
783 % \end{macrocode}
784 % \end{macro}
785 % \end{macro}
786 % \end{macro}
787 %
788 %
789 % The initial setting is the original LaTeX picture environment.
790 % To switch the size-reduction meachism and the pstricks mechanism,
791 % we can use a switching command such as |\originalpicture|.
792 % \changes{v3.00}{2002/4/30}{New environment: sfpicture}
793 % \changes{v3.00}{2002/5/30}{New command: \cs{originalpicture}}
794 %
795 % \begin{macro}{\originalpicture}
796 % \begin{macro}{\sfpicture}
797 % \begin{macro}{\Put@Direct}
798 % \begin{macrocode}
799 \newif\ifxymtexpssw\xymtexpsswfalse
800 \def\originalpicture{%
801 \let\sfpicture=\picture
802 \let\endsfpicture=\endpicture
803 \let\Put@Direct=\put
804 \let\Multiput@Direct=\multiput
805 \let\line=\@ldline
806 \let\dotorline=\d@t@rline
807 \let\thicklines=\@ldthicklines
808 \let\thinlines=\@ldthinlines
809 \thinlines
810 \let\Put@Line=\Put@@Line
811 \let\Put@sCircle=\Put@@sCircle
812 \let\Put@oCircle=\Put@@oCircle
813 \xymtexpsswfalse
814 \@ifundefined{@changeunitlength}{}{%
815 \let\changeunitlength=\@changeunitlength}%
816 \unitlength=0.1pt}
817 % \end{macrocode}
818 % \end{macro}
819 % \end{macro}
820 % \end{macro}
821 %
822 % To switch from XyMTeX to XyMTeX with pstricks, we use the following command:
823 % \begin{macro}{\changexymtextops}
824 % \begin{macrocode}
825 \def\changexymtextops{\xymtexpsswtrue}
826 % \end{macrocode}
827 % \end{macro}
828 %
829 % \begin{macro}{\SlopetoXY}
830 % \changes{v5.00}{2010/10/01}{New command: \cs{SlopetoXY}}
831 % This command is extracted from |\Put@@@Line}| of the \textsf{xymtx-ps} package
832 % so as to be a common code for defining |\Put@@@Line}| (\textsf{xymtx-ps} package),
833 % |\Color@@@Line| (\textsf{xymtx-ps} package), |\Color@@@@Line| (\textsf{xymtx-pdf} package),
834 % and so on. This command changes a set of line specifiers (a starting point, a slope, and
835 % a line length of the \LaTeX{} picture environment) into another set
836 % (a starting point and a terminal point (|\@tempcntXa|,|\@tempcntYa|)).
837 %
838 % \begin{macrocode}
839 \def\SlopetoXY(#1,#2)(#3,#4)#5{%
840 %%x-coordinate
841 \@tempcntXa=0\relax
842 \ifnum#3>0\relax \@tempcntXa=#5\relax
843 \else\ifnum#3<0\relax\@tempcntXa=-#5\relax\fi\fi
844 \advance\@tempcntXa by#1\relax
845 %%y-coordinate
846 \@tempcntYa=#5\relax
847 \ifnum#3=0\relax\else
848 \multiply\@tempcntYa by#4\relax\multiply\@tempcntYa by10\relax
849 \divide\@tempcntYa by#3\relax\divide\@tempcntYa by10\relax\fi
850 \ifnum\@tempcntYa<0\relax
851 \ifnum#4>0\relax\@tempcntYa=-\@tempcntYa\fi
852 \else
853 \ifnum\@tempcntYa>0\relax
854 \ifnum#4<0\relax\@tempcntYa=-\@tempcntYa\fi\fi
855 \fi
856 \advance\@tempcntYa by#2\relax}
857 % \end{macrocode}
858 % \end{macro}
859 %
860 % \subsection{Macros for treating argumets}
861 %
862 % For separating each argument (BONDLIST, SUBSLIST or ATOMLIST) into
863 % components (descriptors), we define several useful macros.
864 %
865 % \begin{macro}{\@forsemicol}
866 % \begin{macro}{\@forl@@p}
867 % \begin{macro}{\@iforl@@p}
868 %
869 % The macro |\@forsemicol| resembles the |\@for| macro that is
870 % the \LaTeX{} original macro; however a semicolon is used as
871 % a separating key in place of a comma.
872 %
873 % \changes{v1.01}{1996/07/06}{\cs{@forsemicol}: \cs{edef}
874 % to \cs{expandafter}}
875 % \changes{v1.01}{1996/07/06}{\cs{@iforl@@p} replaced by
876 % a LaTeX2e-like definitiion}
877 %
878 % \begin{macrocode}
879 % ****************************************************
880 % * For separating an augument list to each argument *
881 % ****************************************************
882 %
883 \def\@forsemicol#1:=#2\do#3{%
884 % \edef\@fortmp{#2}%1996/07/06 by S. Fujita
885 \expandafter\def\expandafter\@fortmp\expandafter{#2}%
886 \ifx\@fortmp\@empty \else%
887 \expandafter\@forl@@p#2;\@nil;\@nil\@@#1{#3}\fi}
888 \long\def\@forl@@p#1;#2;#3\@@#4#5{\def#4{#1}\ifx #4\@nnil \else%
889 #5\def#4{#2}\ifx #4\@nnil \else#5\@iforl@@p #3\@@#4{#5}\fi\fi}
890 \long\def\@iforl@@p#1;#2\@@#3#4{\def#3{#1}\ifx #3\@nnil%
891 \expandafter\@fornoop \else
892 #4\relax\expandafter\@iforl@@p\fi#2\@@#3{#4}}
893 %\def\@iforl@@p#1;#2\@@#3#4{\def#3{#1}\ifx #3\@nnil%
894 % \let\@nextwhile=\@fornoop \else%
895 % #4\relax\let\@nextwhile=\@iforl@@p\fi\@nextwhile#2\@@#3{#4}}
896 % \end{macrocode}
897 % \end{macro}
898 % \end{macro}
899 % \end{macro}
900 %
901 % The macro |\@m@mb@r| separates a character string into to portions
902 % by using a double equality symbol (|==|) and a semicolon as delimiters.
903 % The first potion consists of a locant number and a bond modifier (stored
904 % in |\@membera|), which are further separated by the macro |\twoch@r|,
905 % |\twoch@@r| or |\threech@r|.
906 % The second potion shows a substituent (stored in |\@memberb|),
907 % which is printed by means of an appropiate command.
908 %
909 % \begin{macro}{\@m@mb@r}
910 % \begin{macro}{\twoch@r}
911 % \begin{macro}{\twoch@@r}
912 % \begin{macro}{\threech@r}
913 % \begin{macrocode}
914 %\def\@m@mb@r#1==#2;{\gdef\@membera{#1}\gdef\@memberb{#2}}
915 \def\@m@mb@r#1==#2;{\def\@membera{#1}\def\@memberb{#2}}
916 \def\twoch@r#1#2{\gdef\@tmpa{#1}\gdef\@tmpb{#2}}
917 \def\twoch@@r#1#2{\gdef\@@tmpa{#1}\gdef\@@tmpb{#2}}
918 %\def\threech@r#1#2#3{\gdef\@tmpa{#1}\gdef\@tmpb{#2}\gdef\@tmpc{#3}}%redefined
919 % \end{macrocode}
920 % \end{macro}
921 % \end{macro}
922 % \end{macro}
923 % \end{macro}
924 %
925 % The command |\threech@r| is redefined by using |\@get@first@char|
926 % in order to give a warning of a two-digit number.
927 % \changes{v4.00}{2002/05/30}{\cs{@get@first@char} has been added.}
928 %
929 % \begin{macro}{\@get@first@char}
930 % \begin{macrocode}
931 \newif\ifdrawsamesubst\drawsamesubstfalse
932 \def\@get@first@char#1{\if\noexpand#1\relax\else
933 \@cnttempa=`#1\relax
934 \ifnum\@cnttempa>47\relax
935 \ifnum\@cnttempa<58\relax
936 \XyMTeXWarning{The second number (\@tmpb) of a two-digit number (\@tmpa\@tmpb)
937 is missed. ^^J\space This should be written in braces,
938 ^^J\space e.g. `{\@tmpa\@tmpb}D==substituent' and `{{\@tmpa\@tmpb}}==substituent'.}
939 \fi\fi\fi}
940 % \end{macrocode}
941 % \end{macro}
942 %
943 % \changes{v4.00}{2002/05/30}{\cs{threech@r} has been redefined.}
944 %
945 % \begin{macro}{\threech@r}
946 % \begin{macrocode}
947 \def\threech@r#1#2#3{\gdef\@tmpa{#1}\gdef\@tmpb{#2}\gdef\@tmpc{#3}%
948 \begingroup
949 \ifdrawsamesubst\ifx\@tmpa\empty\relax\else\ifx\@tmpb\empty\relax\else
950 \setbox0=\hbox{\@get@first@char#2\relax}\fi\fi\fi
951 \endgroup}
952 % \end{macrocode}
953 % \end{macro}
954 %
955 % The following two commands are added to treat spiro fusion.
956 % \changes{v2.00}{1998/11/15}{Added for spiro fusion}
957 % To avoid the bugs in drawing multi-nested fused compounds, |\gdef| is
958 % changed to |\def| in the definitions of |\twoCH@@R| and |\twoCH@R|.
959 % \changes{v4.00}{2002/05/30}{Bug fix for \cs{twoCH@@R} and \cs{twoCH@R}}
960 %
961 % \begin{macro}{\twoCH@R}
962 % \begin{macro}{\twoCH@@R}
963 % \begin{macrocode}
964 %\def\twoCH@@R#1#2//{\gdef\@@tmpa{#1}\gdef\@@tmpb{#2}}
965 \def\twoCH@@R#1#2//{\def\@@tmpa{#1}\def\@@tmpb{#2}}
966 %\def\twoCH@R#1#2//{\gdef\@tmpa{#1}\gdef\@tmpb{#2}}
967 \def\twoCH@R#1#2//{\def\@tmpa{#1}\def\@tmpb{#2}}
968 % \end{macrocode}
969 % \end{macro}
970 % \end{macro}
971 %
972
973 % \begin{macro}{\@forendparenthesis}
974 %
975 % The macro |\@forendparenthesis| resembles the |\@for| macro that is
976 % the \LaTeX{} original macro; however a close parenthesis is used as
977 % a separating key in place of a comma.
978 %
979 % \changes{v5.00}{2010/10/01}{for drawing round arrows}
980 %
981 % \begin{macrocode}
982 % ************************************
983 % * For coordinates for round arrows *
984 % ************************************
985 %
986 \def\@forendparenthesis#1:=#2\do#3{%
987 \expandafter\def\expandafter\@fortmp\expandafter{#2}%
988 \ifx\@fortmp\@empty \else%
989 \expandafter\@forL@@P#2)\@nil)\@nil\@@#1{#3}\fi}
990 \long\def\@forL@@P#1)#2)#3\@@#4#5{\def#4{#1}\ifx #4\@nnil \else%
991 #5\def#4{#2}\ifx #4\@nnil \else#5\@iforL@@P #3\@@#4{#5}\fi\fi}
992 \long\def\@iforL@@P#1)#2\@@#3#4{\def#3{#1}\ifx #3\@nnil%
993 \expandafter\@fornoop \else
994 #4\relax\expandafter\@iforL@@P\fi#2\@@#3{#4}}
995 % \end{macrocode}
996 % \end{macro}
997 %
998 %
999 % \subsection{Conventions}
1000 %
1001 % Switches for characterizing substitution sites as
1002 % left, right or left-right boxes become effective in
1003 % the commands |\putlatom|, |\putratom| and |\putlratom|.
1004 % They are used for warning wrong or unnecessary usages of
1005 % |\lmoiety| or |\rmoiety|.
1006 %
1007 % \changes{v1.02}{1998/10/20}{Switches \cs{@leftput} added}
1008 %
1009 % \begin{macro}{\if@leftput}
1010 % \begin{macro}{\if@rightput}
1011 % \begin{macro}{\if@leftrightput}
1012 % \begin{macro}{\resetlrput}
1013 % \begin{macrocode}
1014 \newif\if@rightput \@rightputfalse
1015 \newif\if@leftput \@leftputfalse
1016 \newif\if@leftrightput \@leftrightputfalse
1017 \def\resetlrput{\@rightputfalse\@leftputfalse
1018 \@leftrightputfalse}
1019 % \end{macrocode}
1020 % \end{macro}
1021 % \end{macro}
1022 % \end{macro}
1023 % \end{macro}
1024 %
1025 % We can use the macro |\rmoiety| for drawing a right-hand substituent
1026 % and the macro |\lmoiety| for drawing a left-hand substituent.
1027 %
1028 % \changes{v1.02}{1998/10/20}{The definitions of \cs{rmoiety} and
1029 % \cs{lmoiety} are changed. Warning function is added.}
1030 %
1031 % When you use a |\rmoiety| command in a left box produced by
1032 % a |\putlatom| command, the warning ``Wrong |\rmoiety|'' is reported.
1033 % When you use a |\lmoiety| command in a right box produced by
1034 % a |\putratom| command, the warning ``Wrong |\lmoiety|'' is reported.
1035 % If the ``draft'' option is effective, these cases are designated by
1036 % solid squares at the corresponding positions on pages.
1037 %
1038 % \begin{macro}{\rmoiety}
1039 % \begin{macro}{\lmoiety}
1040 % \begin{macrocode}
1041 % **************
1042 % * Convention *
1043 % **************
1044 % %\def\rmoiety#1{#1 \hss}
1045 % %\def\lmoiety#1{\hss #1}
1046 \def\rmoiety#1{\if@leftput
1047 \XyMTeXWarning{Wrong \string\rmoiety\space used in a left box}%
1048 \hbox to0pt{%
1049 \hbox to0pt{\hss\vrule width\overfullrule height\overfullrule}#1\hss}%
1050 \else\if@rightput\XyMTeXWarning{Unnecessary \string\rmoiety\space
1051 used in a right box}\hbox to0pt{#1\hss}%
1052 \else\if@leftrightput\hbox to0pt{#1\hss}%
1053 \fi\fi\fi\resetlrput}
1054 \def\lmoiety#1{\if@rightput
1055 \XyMTeXWarning{Wrong \string\lmoiety\space used in a right box}%
1056 \hbox to0pt{\hss#1\kern-.72em%
1057 \hbox to0pt{\vrule width\overfullrule height\overfullrule\hss}}\else
1058 \if@leftput\XyMTeXWarning{Unnecessary \string\lmoiety\space
1059 used in a left box}\hbox to0pt{\hss#1}%
1060 \else\if@leftrightput\hbox to0pt{\hss#1\kern-.72em}%
1061 \else\hbox to0pt{\hss#1\kern-.72em}\fi\fi\fi\resetlrput}
1062 % \end{macrocode}
1063 % \end{macro}
1064 % \end{macro}
1065 %
1066 % Warnings from \XyMTeX{} are concerned with commands
1067 % |\rmoiety| and |\lmoiety|.
1068 % \changes{v5.00}{2010/10/01}{\cs{if@dbondcolor} added for bondcolor package}
1069 %
1070 % \begin{macro}{\XyMTeXWarning}
1071 % \begin{macrocode}
1072 \newif\if@dbondcolor \@dbondcolorfalse
1073 \def\XyMTeXWarning#1{%
1074 \begingroup
1075 \if@dbondcolor\else
1076 \let\protect\string
1077 \immediate\write\@unused{^^IXyMTeX Warning: #1\space
1078 on input line \the\inputlineno^^I}%
1079 \fi
1080 \endgroup%
1081 \global\@dbondcolorfalse%2010/10/01 for bond coloring
1082 }
1083 % \end{macrocode}
1084 % \end{macro}
1085 %
1086 % Warnings concerned with ring fusion are based on
1087 % the command |\FuseWarning| of \XyMTeX{}.
1088 % \changes{v2.00}{1998/11/15}{Warning function is added.}
1089 % \changes{v5.00}{2010/10/01}{\cs{futileFuseWarning} added for bondcolor package}
1090 %
1091 % \begin{macro}{\@cnttempa}
1092 % \begin{macro}{\@cnttempb}
1093 % \begin{macro}{\FuseWarning}
1094 % \begin{macrocode}
1095 \newcount\@cnttempa
1096 \newcount\@cnttempb
1097 \def\FuseW@rning#1#2#3#4#5#6#7{%
1098 \@tempcnta=#1 \@tempcntb=#2
1099 \@cnttempa=#3 \advance\@cnttempa-#5
1100 \@cnttempb=#4 \advance\@cnttempb-#6
1101 \ifnum\@tempcnta=\@cnttempa
1102 \ifnum\@tempcntb=\@cnttempb\else
1103 \XyMTeXWarning{Mismatched fusion at bond `#7'}%
1104 \fi
1105 \else
1106 \XyMTeXWarning{Mismatched fusion at bond `#7'}%
1107 \fi}
1108 \def\futileFuseWarning#1#2#3#4#5#6#7{}
1109 \let\FuseWarning=\FuseW@rning
1110 % \end{macrocode}
1111 % \end{macro}
1112 % \end{macro}
1113 % \end{macro}
1114 %
1115 % The font of a substituent and its size are designated explicitly.
1116 % \changes{v4.00}{2002/5/30}{%
1117 % The comands \cs{substfont} and \cs{substfontsize} are added to
1118 % \cs{putlatom}, etc.}
1119 %
1120 % \begin{macro}{\substfont}
1121 % \begin{macro}{\substfontsize}
1122 % \begin{macrocode}
1123 \let\substfont=\normalfont
1124 \let\substfontsize=\normalsize
1125 % \end{macrocode}
1126 % \end{macro}
1127 % \end{macro}
1128 %
1129 % The original \LaTeX{} command |\put| is changed into macros suitable to
1130 % more specific uses as follows.
1131 %
1132 % \changes{v1.02}{1998/10/20}{The definition is changed. Warning function
1133 % for \cs{rmoiety} is added.}
1134 %
1135 % \begin{macro}{\putlatom}
1136 % \begin{macrocode}
1137 \def\putlatom#1#2#3{\begingroup\resetlrput
1138 \Put@Direct(#1,#2){\@leftputtrue\substfont\substfontsize
1139 \hbox to0pt{\hss #3}\@leftputfalse}\endgroup}
1140 % \end{macrocode}
1141 % \end{macro}
1142 %
1143 % \changes{v1.02}{1998/10/20}{The definition is changed. Warning function
1144 % for \cs{lmoiety} is added.}
1145 %
1146 % \begin{macro}{\putratom}
1147 % \begin{macrocode}
1148 %\def\putratom#1#2#3{\Put@Direct(#1,#2){\hbox to0pt{#3 \hss}}}
1149 \def\putratom#1#2#3{\begingroup\resetlrput
1150 \Put@Direct(#1,#2){\@rightputtrue\substfont\substfontsize
1151 \hbox to0pt{#3 \hss}\@rightputfalse}\endgroup}
1152 % \end{macrocode}
1153 % \end{macro}
1154 %
1155 % \changes{v4.00}{2002/5/30}{The mechanism of centering the
1156 % first letter of a substituent by \cs{@getcharwidthput} is added to
1157 % \cs{putlratom}.}
1158 %
1159 % \changes{v4.01a}{2004/11/11}{The mechanism of \cs{@getcharwidthput}
1160 % is altered (one argument to two arguments). Treatments of \$ and commands are added.}
1161 %
1162 % \begin{macro}{\@getcharwidthput}
1163 % \begin{macrocode}
1164 \newif\ifspecial@ylcs \special@ylcsfalse
1165 \def\@getcharwidthput#1#2\owari{%
1166 \global\special@ylcsfalse
1167 \if\noexpand#1\relax \global\special@ylcstrue \else%\if the category #1 is 'command'
1168 \ifcat#1$\relax \global\special@ylcstrue\else%if the category of #1 is 'special letter'
1169 \ifcat#1a\relax%if the category of #1 is 'letter'
1170 \setbox0=\hbox{#1}%
1171 \global\@dimtempa=0.7em
1172 \global\advance\@dimtempa by-\wd0\relax
1173 \global\divide\@dimtempa by2\relax
1174 \else\global\@dimtempa=0em\relax\fi\fi\fi}
1175 % \end{macrocode}
1176 % \end{macro}
1177 %
1178 % \changes{v1.02}{1998/10/20}{The definition is changed. Warning function
1179 % for \cs{lmoiety} and \cs{rmoiety|} is added.}
1180 % \changes{v4.01a}{2004/11/11}{The mechanism of \cs{@getcharwidthput}
1181 % is altered (one argument to two arguments).}
1182 %
1183 % \begin{macro}{\putlratom}
1184 % \begin{macrocode}
1185 \def\putlratom#1#2#3{\begingroup\resetlrput
1186 \Put@Direct(#1,#2){\@leftrightputtrue\substfont\substfontsize
1187 \setbox1=\hbox{%
1188 \expandafter\@getcharwidthput#3\relax\owari}%the centering mechanism
1189 \@tempdima=\@dimtempa%global to local
1190 \ifspecial@ylcs\hbox to.72em{#3\hss}\else
1191 \hbox to0.72em{\kern\@tempdima #3\hss}\kern-\@tempdima
1192 \fi}%
1193 \@leftrightputfalse\endgroup}
1194 % \end{macrocode}
1195 % \end{macro}
1196 %
1197 % \changes{v1.01b}{1998/10/06}{\cs{putlratom}: delete \sc{setbox0}}
1198 % \changes{v1.02}{1998/10/20}{The old definition is
1199 % totally replaced by the new definition}
1200 %
1201 % \begin{verbatim}
1202 % % old definitions
1203 % % \begin{macrocode}
1204 % % changed to avoid Overfull warnings 1993/11/11/S.Fujita
1205 % % \newif\if@moiety \@moietyfalse
1206 % % \def\putlratom#1#2#3{%
1207 % % \def\lmoiety##1{\global\@moietytrue}%
1208 % % \setbox0=\hbox{#3}%deleted by S. Fujita
1209 % % \if@moiety\def\lmoiety##1{\hss ##1}%
1210 % % \Put@Direct(#1,#2){\hbox to.72em{#3}}\global\@moietyfalse
1211 % % \else\Put@Direct(#1,#2){\hbox to.6em{#3\hss}}\fi}%
1212 % % \def\putlratom#1#2#3{\Put@Direct(#1,#2){\hbox to.6em{#3}}}
1213 % % \end{macrocode}
1214 % \end{verbatim}
1215 %
1216 % \begin{macro}{\Putlratom}
1217 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1218 % \begin{macrocode}
1219 \def\Putlratom#1#2#3{\Put@Direct(#1,#2){\substfont\substfontsize
1220 \hbox to.8em{#3}}}
1221 % \end{macrocode}
1222 % \end{macro}
1223 %
1224 % \changes{v2.01}{2000/6/20}{New command: \cs{dotorline}}
1225 % \begin{macro}{\dotorline}
1226 % \begin{macrocode}
1227 \def\d@t@rline(#1,#2)(#3,#4)#5/(#6,#7)(#8,#9){%
1228 \@ifundefined{dottedline}{%
1229 \XyMTeXWarning{A dottedline is replaced by a solid line.}%
1230 \Put@Line(#1,#2)(#3,#4){#5}%
1231 }{{\thicklines%
1232 \ifdim\unitlength>0.08pt
1233 \dottedline{20}(#6,#7)(#8,#9)%
1234 \else
1235 \dottedline{30}(#6,#7)(#8,#9)\fi}}}
1236 \let\dotorline=\d@t@rline
1237 % \end{macrocode}
1238 % \end{macro}
1239 %
1240 %
1241 % \subsection{Parameters}
1242 %
1243 % The original point for drawing a structural formula is shifted to an
1244 % appropriate position, which is designated by the following parmeters
1245 % (counters) for coordinates.
1246 %
1247 %
1248 % \begin{macro}{\noshift}
1249 % \begin{macro}{\shifti}
1250 % \begin{macro}{\shiftii}
1251 % \begin{macro}{\shiftiii}
1252 % \begin{macrocode}
1253 % *******************************
1254 % * Parameters for Coordinates *
1255 % *******************************
1256 \newcount\noshift \noshift=0\relax%
1257 \newcount\shifti \shifti=240\relax%
1258 \newcount\shiftii \shiftii=400\relax%
1259 \newcount\shiftiii \shiftiii=800\relax%
1260 % \end{macrocode}
1261 % \end{macro}
1262 % \end{macro}
1263 % \end{macro}
1264 % \end{macro}
1265 %
1266 % The unit length for \XyMTeX{} is selected to be 0.1pt. This value
1267 % should not be maintained as possible as you can. A smaller value
1268 % may disapper a sloped line of short length.
1269 % \begin{macrocode}
1270 \unitlength.1pt%
1271 % \end{macrocode}
1272 %
1273 % Parameters for ring fusion are used in fusering.sty.
1274 % \changes{v2.00}{1999/2/16}{This has been added to process the old XyMTeX
1275 % manual for Version 1.01}
1276 %
1277 % \begin{macro}{\fuseAx}
1278 % \begin{macro}{\fuseBx}
1279 % \begin{macro}{\fuseAy}
1280 % \begin{macro}{\fuseBy}
1281 % \begin{macrocode}
1282 \def\fuseAx{0}
1283 \def\fuseBx{0}
1284 \def\fuseAy{0}
1285 \def\fuseBy{0}
1286 % \end{macrocode}
1287 % \end{macro}
1288 % \end{macro}
1289 % \end{macro}
1290 % \end{macro}
1291 %
1292 % \subsection{Various switchs}
1293 %
1294 % These macros are used for clipping spaces at substitution positions.
1295 % Note that |\if@clip| is used in place of |\if@dclip|.
1296 %
1297 % \changes{v3.00}{2002/4/30}{New Command: \cs{originoutput}}
1298 %
1299 % \begin{macro}{\if@clip}
1300 % \begin{macro}{\if@aclip}
1301 % \begin{macro}{\if@bclip}
1302 % \begin{macro}{\if@cclip}
1303 % \begin{macro}{\if@eclip}
1304 % \begin{macro}{\if@fclip}
1305 % \begin{macro}{\iforigpt}
1306 % \begin{macro}{\@tmpaa}
1307 % \begin{macro}{\oriptoutput}
1308 % \begin{macro}{\OriptOutput}
1309 % \begin{macro}{\OriptOutputA}
1310 % \begin{macrocode}
1311 % ***************************************
1312 % * various flags (switches) *
1313 % * treatment of substitution positions *
1314 % ***************************************
1315 %
1316 % for 6- or lower-membered cycles
1317 %
1318 \newif\if@clip \@clipfalse% % switch for clipping at 4
1319 \newif\if@aclip \@aclipfalse% % switch for clipping at 1
1320 \newif\if@bclip \@bclipfalse% % switch for clipping at 2
1321 \newif\if@cclip \@cclipfalse% % switch for clipping at 3
1322 \newif\if@eclip \@eclipfalse% % switch for clipping at 5
1323 \newif\if@fclip \@fclipfalse% % switch for clipping at 6
1324 \newif\iforigpt \origptfalse% % switch for showing the original point
1325 \newcount\@tmpaa%to use as a local counter
1326 \def\@rigpt@utput#1{\iforigpt
1327 \Put@sCircle(-\shiftii,-\shifti){50}%
1328 \Put@oCircle(-\noshift,-\noshift){50}%
1329 \typeout{command `#1' origin: %
1330 (\the\noshift,\the\noshift) ---> (\the\shiftii,\the\shifti)}\fi}
1331 \def\OrigptOutput(#1,#2)#3{\iforigpt
1332 \Put@sCircle(-#1,-#2){50}\Put@oCircle(0,0){50}%
1333 \typeout{command `#3' origin: (0,0) ---> (#1,#2)}\fi}
1334 \def\OrigptOutputA(#1,#2)(#3,#4)#5{\iforigpt
1335 \Put@sCircle(-#1,-#2){50}\Put@oCircle(-#3,-#4){50}%
1336 \typeout{command `#5' origin: (#3,#4) ---> (#1,#2)}\fi}
1337 \def\origptoutput{\@ifnextchar({\@origptoutput}{\@origptoutput(,)}}
1338 \def\@origptoutput(#1){%
1339 \@ifnextchar({\@@origptoutput(#1)}{\@@origptoutput(#1)(,)}}
1340 \def\@@origptoutput(#1,#2)(#3,#4)#5{%
1341 \def\TEMParga{#1}\def\TEMPargb{#3}%
1342 \ifx\TEMParga\empty\relax
1343 \@rigpt@utput{#5}\else\ifx\TEMPargb\empty\relax
1344 \OrigptOutput(#1,#2){#5}\else
1345 \OrigptOutputA(#1,#2)(#3,#4){#5}\fi\fi}
1346 % \end{macrocode}
1347 % \end{macro}
1348 % \end{macro}
1349 % \end{macro}
1350 % \end{macro}
1351 % \end{macro}
1352 % \end{macro}
1353 % \end{macro}
1354 % \end{macro}
1355 % \end{macro}
1356 % \end{macro}
1357 % \end{macro}
1358 %
1359 % \begin{macro}{\if@gclip}
1360 % \begin{macro}{\if@hclip}
1361 % \begin{macro}{\if@iclip}
1362 % \begin{macro}{\if@jclip}
1363 % \begin{macro}{\if@xclip}
1364 % \begin{macrocode}
1365 %
1366 % for further-membered cycles
1367 %
1368 \newif\if@gclip \@gclipfalse%
1369 \newif\if@hclip \@hclipfalse%
1370 \newif\if@iclip \@iclipfalse%
1371 \newif\if@jclip \@jclipfalse%
1372 \newif\if@xclip \@xclipfalse%added for temp. 2013/03/24
1373 % \end{macrocode}
1374 % \end{macro}
1375 % \end{macro}
1376 % \end{macro}
1377 % \end{macro}
1378 % \end{macro}
1379 %
1380 %
1381 % The yl-function provides some difficulties in carrying
1382 % out an |\if@aclip| switch etc. if |\@acliptrue| etc. are
1383 % declared globally. In Version 2.01, |\@acliptrue| etc. are
1384 % declared locally by the grouping mechanism of \TeX. In order to
1385 % communicate information on |\@acliptrue| etc. outside the grouping,
1386 % the command |\clipinfo| (globally declared) stores tentatively
1387 % information on |@acliptrue| etc. in the form of a,b,c,$\ldots$.
1388 % Out side the grouping, the command |\developclipinfo| is
1389 % declared to reset |\@acliptrue| etc.
1390 %
1391 % \changes{v2.01}{2001/06/20}{Newly defined to communicate clipping
1392 % information.}
1393 % \changes{v5.01}{2013/3/24}{\cs{if@xclip} added}
1394 % \begin{macro}{\clipinfo}
1395 % \begin{macro}{\storeclipinfo}
1396 % \begin{macrocode}
1397 \def\clipinfo{}
1398 \def\storeclipinfo{%
1399 \if@aclip \xdef\clipinfo{\clipinfo a,}\fi
1400 \if@bclip \xdef\clipinfo{\clipinfo b,}\fi
1401 \if@cclip \xdef\clipinfo{\clipinfo c,}\fi
1402 \if@clip \xdef\clipinfo{\clipinfo d,}\fi
1403 \if@eclip \xdef\clipinfo{\clipinfo e,}\fi
1404 \if@fclip \xdef\clipinfo{\clipinfo f,}\fi
1405 \if@gclip \xdef\clipinfo{\clipinfo g,}\fi
1406 \if@hclip \xdef\clipinfo{\clipinfo h,}\fi
1407 \if@iclip \xdef\clipinfo{\clipinfo i,}\fi
1408 \if@jclip \xdef\clipinfo{\clipinfo j,}\fi
1409 \if@xclip \xdef\clipinfo{\clipinfo x,}\fi
1410 }%
1411 % \end{macrocode}
1412 % \end{macro}
1413 % \end{macro}
1414 %
1415 % locally declared
1416 %
1417 % \begin{macro}{\developclipinfo}
1418 % \begin{macrocode}
1419 \def\developclipinfo{%
1420 \expandafter\@tfor\expandafter\MEMBER\expandafter:%
1421 \expandafter=\clipinfo\do{%
1422 \if\MEMBER a\relax \@acliptrue\fi
1423 \if\MEMBER b\relax \@bcliptrue\fi
1424 \if\MEMBER c\relax \@ccliptrue\fi
1425 \if\MEMBER d\relax \@cliptrue\fi
1426 \if\MEMBER e\relax \@ecliptrue\fi
1427 \if\MEMBER f\relax \@fcliptrue\fi
1428 \if\MEMBER g\relax \@gcliptrue\fi
1429 \if\MEMBER h\relax \@hcliptrue\fi
1430 \if\MEMBER i\relax \@icliptrue\fi
1431 \if\MEMBER j\relax \@jcliptrue\fi}%
1432 \gdef\clipinfo{}}
1433 % \end{macrocode}
1434 % \end{macro}
1435 %
1436 % \subsection{Various commands and switchs for using substituents}
1437 %
1438 % For drawing a structure as a substituent, the argument (yl) can
1439 % be used. The following commands and counters are used for shifting
1440 % the substituent.
1441 % \changes{v1.02}{1998/10/31}{Commands for setting substituents}
1442 % \changes{v2.00}{1998/12/25}{Added: \cs{reset@yl@xydiff}}
1443 %
1444 % \begin{macro}{\@yl}
1445 % \begin{macro}{\yl@xdiff}
1446 % \begin{macro}{\yl@ydiff}
1447 % \begin{macro}{\yl@shiftii}
1448 % \begin{macro}{\yl@shifti}
1449 % \begin{macro}{\@ylii}
1450 % \begin{macro}{\@yli}
1451 % \begin{macro}{\@@ylii}
1452 % \begin{macro}{\@@yli}
1453 % \begin{macrocode}
1454 \def\@yl{(yl)}
1455 \newcount\yl@xdiff
1456 \newcount\yl@ydiff
1457 \newcount\yl@shiftii
1458 \newcount\yl@shifti
1459 \def\@ylii{0}\def\@yli{0}
1460 \def\@@ylii{}\def\@@yli{}
1461 \def\reset@@yl{\gdef\@@ylii{}\gdef\@@yli{}}
1462 \def\reset@yl@xydiff{\yl@xdiff=0 \yl@ydiff=0\relax}
1463 % \end{macrocode}
1464 % \end{macro}
1465 % \end{macro}
1466 % \end{macro}
1467 % \end{macro}
1468 % \end{macro}
1469 % \end{macro}
1470 % \end{macro}
1471 % \end{macro}
1472 % \end{macro}
1473 %
1474 % The following switches are used for shifting the substituent.
1475 % The locant flags such as |\@ylatrue| have been stoped to use.
1476 % \changes{v1.02}{1998/10/11}{Delete \cs{@ylatrue} etc.}
1477 % \changes{v1.02}{1998/10/31}{Commands for setting substituents}
1478 %
1479 % Old definition:
1480 % \begin{macrocode}
1481 % %%%%% \newif\if@yla \@ylafalse
1482 % %%%%% \newif\if@ylb \@ylbfalse
1483 % %%%%% \newif\if@ylc \@ylcfalse
1484 % %%%%% \newif\if@yld \@yldfalse
1485 % %%%%% \newif\if@yle \@ylefalse
1486 % %%%%% \newif\if@ylf \@ylffalse
1487 % \end{macrocode}
1488 %
1489 % \begin{macro}{\if@ylsw}
1490 % \begin{macro}{\if@@ylsw}
1491 % \begin{macrocode}
1492 \newif\if@ylsw \@ylswfalse
1493 \newif\if@@ylsw \@@ylswfalse
1494 % \end{macrocode}
1495 % \end{macro}
1496 % \end{macro}
1497 %
1498 % \begin{verbatim}
1499 % Old definition:
1500 % % \begin{macrocode}
1501 % %%%%% \def\@reset@ylsw{\@ylafalse\@ylbfalse\@ylcfalse
1502 % %%%%% \@yldfalse\@ylefalse\@ylffalse\@ylswfalse}
1503 % % \end{macrocode}
1504 % \end{verbatim}
1505 %
1506 % \begin{macro}{\@reset@ylsw}
1507 % \begin{macrocode}
1508 \def\@reset@ylsw{\@ylswfalse\@@ylswfalse}
1509 % \end{macrocode}
1510 % \end{macro}
1511 %
1512 % \subsection{ShiftPicEnv and ShiftPicEnvB}
1513 %
1514 % For supporting the yl-function of the XyM notation system,
1515 % the mechanism for sifting the original point of each picture
1516 % enviroment is encapsulated so as to create the ShiftPicEnv and
1517 % the ShiftPicEnvB environments.
1518 %
1519 % \changes{v3.01}{2002/4/30}{Commands for shift of picture environment}
1520 % \changes{v4.00}{2002/5/30}{New environment: ShiftPicEnv}
1521 %
1522 % The original point and the size of a picture environment is shifted
1523 % due to whether a yl-function is declared or not. The first set of
1524 % coordinates is usually set as (0,0), which means that the subsituent
1525 % produced by a yl-funtions has no dimensions.
1526 %
1527 % Old definition for fused rings:
1528 % \begin{verbatim}
1529 % \if@sixfuseposv
1530 % \yl@shiftii=-\fuseAx
1531 % \yl@shifti=-\fuseAy
1532 % \advance\yl@shiftii\yl@xdiff
1533 % \advance\yl@shifti\yl@ydiff
1534 % \begin{sfpicture}(0,0)(-\yl@shiftii,-\yl@shifti)
1535 % \reset@yl@xydiff%1999/1/6 by S. Fujita
1536 % \else
1537 % \begin{sfpicture}(800,880)(-\shiftii,-\shifti)%
1538 % \origptoutput{sixfusev}%
1539 % \fi
1540 % \end{verbatim}
1541 %
1542 % For monocyclic compounds:
1543 % \begin{verbatim}
1544 % \ShiftPicEnv[1]%%[0] not for a fusion unit, [1] for a fusion usit
1545 % (0,0)(xshift,yshift)/%%picture after the action of yl function
1546 % %%no dimension
1547 % (x_size,y_size)(xshift,yshift)%%orginal picture
1548 % {name}%%name of control sequence
1549 % (xx_size,yy_size)(xxshift,yyshift)%%option to typeout abnormal shifts
1550 % \end{verbatim}
1551 %
1552 % \begin{macro}{\ShiftPicEnv}
1553 % \begin{macrocode}
1554 \newif\ifshiftpicsw\shiftpicswfalse
1555 \newif\if@sixfuseposv\@sixfuseposvfalse
1556 \def\ShiftPicEnv{%
1557 \@ifnextchar[{\ShiftPicEnv@}{\ShiftPicEnv@[0]}}
1558 \def\ShiftPicEnv@[#1](#2)(#3)/(#4)(#5)#6{%
1559 \@ifnextchar({\@ShiftPicEnv[#1](#2)(#3)/(#4)(#5){#6}}%
1560 {\@ShiftPicEnv[#1](#2)(#3)/(#4)(#5){#6}(,)}}
1561 \def\@ShiftPicEnv[#1](#2)(#3)/(#4)(#5)#6(#7){%
1562 \@ifnextchar({\@@ShiftPicEnv[#1](#2)(#3)/(#4)(#5){#6}(#7)}%
1563 {\@@ShiftPicEnv[#1](#2)(#3)/(#4)(#5){#6}(#7)(,)}}
1564 \def\@@ShiftPicEnv[#1](#2)(#3)/(#4)(#5)#6(#7)(#8){%
1565 \shiftpicswfalse%initialize
1566 \ifcase#1\relax%%%non-fused ring
1567 \if@ylsw \shiftpicswtrue
1568 \yl@shiftii=\@ylii
1569 \yl@shifti=\@yli
1570 \fi
1571 \or%%%fused ring
1572 \if@sixfuseposv \shiftpicswtrue
1573 \yl@shiftii=-\fuseAx
1574 \yl@shifti=-\fuseAy
1575 \fi
1576 \fi
1577 \ifshiftpicsw
1578 \advance\yl@shiftii\yl@xdiff
1579 \advance\yl@shifti\yl@ydiff
1580 \begin{sfpicture}(#2)(#3)%
1581 \reset@yl@xydiff%1999/1/6 by S. Fujita
1582 \else
1583 \begin{sfpicture}(#4)(#5)%
1584 \origptoutput(#7)(#8){#6}%
1585 \fi}
1586 \def\endShiftPicEnv{\end{sfpicture}}
1587 % \end{macrocode}
1588 % \end{macro}
1589 %
1590 % Old definition for bicyclic rings:
1591 % \begin{verbatim}
1592 % \if@ylsw
1593 % \yl@shiftii=\@ylii
1594 % \yl@shifti=\@yli
1595 % \advance\yl@shiftii\@@ylii
1596 % \advance\yl@shifti\@@yli
1597 % \advance\yl@shiftii\yl@xdiff
1598 % \advance\yl@shifti\yl@ydiff
1599 % \begin{sfpicture}(0,0)(-\yl@shiftii,-\yl@shifti)
1600 % \reset@yl@xydiff%1999/1/6 by S. Fujita
1601 % \else
1602 % \begin{sfpicture}(1200,880)(-\shiftii,-\shifti)%
1603 % \origptoutput{nonaheterov}%
1604 % \fi
1605 % \end{verbatim}
1606 %
1607 % For bicyclic compounds or others:
1608 % \begin{verbatim}
1609 % \ShiftPicEnvB(0,0)(xshift,yshift)/%%picture after the action of yl function
1610 % (x_size,y_size)(xshift,yshift)%%orginal picture
1611 % {name}%%name of control sequence
1612 % (xx_size,yy_size)(xxshift,yyshift)%%option to typeout abnormal shifts
1613 % \end{verbatim}
1614 %
1615 % \begin{macro}{\ShiftPicEnvB}
1616 % \begin{macrocode}
1617 \def\ShiftPicEnvB(#1)(#2)/(#3)(#4)#5{%
1618 \@ifnextchar({\@ShiftPicEnvB(#1)(#2)/(#3)(#4){#5}}%
1619 {\@ShiftPicEnvB(#1)(#2)/(#3)(#4){#5}(,)}}
1620 \def\@ShiftPicEnvB(#1)(#2)/(#3)(#4)#5(#6){%
1621 \@ifnextchar({\@@ShiftPicEnvB(#1)(#2)/(#3)(#4){#5}(#6)}%
1622 {\@@ShiftPicEnvB(#1)(#2)/(#3)(#4){#5}(#6)(,)}}
1623 \def\@@ShiftPicEnvB(#1)(#2)/(#3)(#4)#5(#6)(#7){%
1624 \if@ylsw
1625 \yl@shiftii=\@ylii
1626 \yl@shifti=\@yli
1627 \advance\yl@shiftii\@@ylii
1628 \advance\yl@shifti\@@yli
1629 \advance\yl@shiftii\yl@xdiff
1630 \advance\yl@shifti\yl@ydiff
1631 \begin{sfpicture}(#1)(#2)%
1632 \reset@yl@xydiff%1999/1/6 by S. Fujita
1633 \else
1634 \begin{sfpicture}(#3)(#4)%
1635 \origptoutput(#6)(#7){#5}%
1636 \fi}
1637 \def\endShiftPicEnvB{\end{sfpicture}}
1638 % \end{macrocode}
1639 % \end{macro}
1640 %
1641 % The further fusion of a three- or four-membered ring at a center bond
1642 % of a six-six or six-five ring is permitted, while that of a five-
1643 % or more-membered ring is not permitted. The macro |\@smallringsw|
1644 % is used for such switching (fusering.sty).
1645 %
1646 % \begin{macro}{\if@smallringsw}
1647 % \begin{macrocode}
1648 \newif\if@smallringsw \@smallringswfalse
1649 % \end{macrocode}
1650 % \end{macro}
1651 %
1652 % \subsection{Initialization}
1653 %
1654 % The |\iniflag| command initializes all of the clipping flags.
1655 % The |\iniatom| command initializes all of the strings of temporary use
1656 % such as |\aaa| and |\bbb|, which are associated with respective
1657 % atom positions.
1658 % The |\resetbdsw| command resets all of the strings of temporary use
1659 % such as |\@aaa| and |\@bbb|, which are associated with respective
1660 % bond positions.
1661 %
1662 % \begin{macro}{\iniflag}
1663 % \begin{macro}{\iniatom}
1664 % \begin{macro}{\resetbdsw}
1665 % \changes{v1.02}{1998/10/25}{Delete \sc{global}}
1666 % \changes{v4.02a}{2004/12/27}{Change \sc{ggg} to \sc{ggg}}
1667 %
1668 % \begin{macrocode}
1669 % %\def\iniflag{%
1670 % %\global\@aclipfalse\global\@bclipfalse%
1671 % %\global\@cclipfalse\global\@clipfalse\global\@eclipfalse%
1672 % %\global\@fclipfalse\global\@gclipfalse\global\@hclipfalse%
1673 % %\global\@iclipfalse\global\@jclipfalse%
1674 % %\global\@clipfusefalse}%
1675 % %\def\iniatom{%
1676 % %\gdef\aaa{}\gdef\bbb{}\gdef\ccc{}\gdef\ddd{}%
1677 % %\gdef\eee{}\gdef\fff{}%
1678 % %\gdef\gggA{}\gdef\hhh{}\gdef\iii{}\gdef\jjj{}%
1679 % %\gdef\@aaa{}\gdef\@bbb{}\gdef\@ccc{}\gdef\@ddd{}%
1680 % %\gdef\@eee{}\gdef\@fff{}%
1681 % %}%
1682 % %\def\resetbdsw{\gdef\@aaa{a}\gdef\@bbb{b}\gdef\@ccc{c}%
1683 % %\gdef\@ddd{d}\gdef\@eee{e}\gdef\@fff{f}}%
1684 % \end{macrocode}
1685 %
1686 % \begin{macrocode}
1687 \def\iniflag{%
1688 \@aclipfalse\@bclipfalse\@cclipfalse\@clipfalse\@eclipfalse%
1689 \@fclipfalse\@gclipfalse\@hclipfalse%
1690 \@iclipfalse\@jclipfalse\@clipfusefalse%
1691 \global\@smallringswfalse%
1692 }%
1693 \def\iniatom{%
1694 \def\aaa{}\def\bbb{}\def\ccc{}\gdef\ddd{}%
1695 \def\eee{}\def\fff{}%
1696 \def\gggA{}\def\hhh{}\def\iii{}\gdef\jjj{}%
1697 \def\@aaa{}\def\@bbb{}\def\@ccc{}\def\@ddd{}%
1698 \def\@eee{}\def\@fff{}%
1699 \def\@ggg{}\def\@hhh{}\def\@iii{}%
1700 \def\@jjj{}\def\@kkk{}%
1701 }%
1702 \def\resetbdsw{\def\@aaa{a}\def\@bbb{b}\def\@ccc{c}%
1703 \def\@ddd{d}\def\@eee{e}\def\@fff{f}%
1704 \def\@ggg{g}\def\@hhh{h}\def\@iii{i}%
1705 \def\@jjj{j}\def\@kkk{k}%
1706 }%
1707 % \end{macrocode}
1708 % \end{macro}
1709 % \end{macro}
1710 % \end{macro}
1711 %
1712 % At the beginning of \XyMTeX\ processing, we initialize atom
1713 % information by the command |\iniatom|.
1714 %
1715 % \begin{macrocode}
1716 \iniatom
1717 % \end{macrocode}
1718 %
1719 %
1720 % \section{Macros for Vertical Formulas}
1721 % \subsection{Placing substituents for vertical formulas}
1722 %
1723 % Such a drawing command as |\setsixringv| uses several inner macros
1724 % for placing substituents with bonds. The first set of inner macros
1725 % are shown as follows.
1726 %
1727 % The command |\ylposition| is to obtain the shift values
1728 % |\@ylii| and |\@yli| which are used for shifting the standard
1729 % point of a substituent.
1730 % The locant flags such as |\@ylatrue| have been stoped to use.
1731 % \changes{v1.02}{1998/10/11}{Delete \cs{@ylatrue} etc.}
1732 % \changes{v1.02}{1998/10/31}{Commands for setting substituents}
1733 % \changes{v5.01}{2013/06/19}{bug fix: initial setting of \cs{reset@@yl}}
1734 %
1735 % \begin{macro}{\ylposition}
1736 % \begin{macrocode}
1737 \def\ylposition#1#2#3#4#5{%
1738 \@@ylswfalse%%%\@reset@ylsw
1739 \reset@@yl%%2013/06/19bug fix
1740 \@forsemicol\member:=#1\do{%
1741 \if@@ylsw\else%
1742 \ifx\member\empty\else%
1743 \expandafter\@m@mb@r\member;\relax%
1744 \expandafter\threech@r\@membera{}{}\relax%
1745 \ifx\@memberb\@yl\relax\@@ylswtrue\else\@@ylswfalse\fi
1746 \if@@ylsw
1747 \ifnum#5<0\relax%
1748 \@tmpaa=-\@tmpa\relax \advance\@tmpaa by#2\relax%
1749 \else\@tmpaa=\@tmpa\relax \advance\@tmpaa by#2\relax\fi
1750 \ifnum\@tmpaa>#3\relax%
1751 \ifnum\@tmpaa<#4\relax%
1752 \ifcase\@tmpaa%0 omit
1753 % \end{macrocode}
1754 %
1755 % The flags |\@lyatrue| etc are not used in a revised edition.
1756 %
1757 % \begin{macrocode}
1758 \or\ifx\aaa\empty
1759 \gdef\@ylii{0}\gdef\@yli{-406}\global\@ylswtrue%\@ylatrue% subst. on 1
1760 \else
1761 \gdef\@ylii{0}\gdef\@yli{-442}\global\@ylswtrue%\@ylatrue% subst. on 1
1762 \fi
1763 \or\ifx\bbb\empty
1764 \gdef\@ylii{-171}\gdef\@yli{-303}\global\@ylswtrue%\@ylbtrue% subst. on 2
1765 \else
1766 \gdef\@ylii{-213}\gdef\@yli{-327}\global\@ylswtrue%\@ylbtrue% subst. on 2
1767 \fi
1768 \or\ifx\ccc\empty
1769 \gdef\@ylii{-171}\gdef\@yli{-103}\global\@ylswtrue%\@ylctrue% subst. on 3
1770 \else
1771 \gdef\@ylii{-213}\gdef\@yli{-79}\global\@ylswtrue%\@ylctrue% subst. on 3
1772 \fi
1773 \or\ifx\ddd\empty
1774 \gdef\@ylii{0}\gdef\@yli{0}\global\@ylswtrue%\@yldtrue% subst. on 4
1775 \else
1776 \gdef\@ylii{0}\gdef\@yli{36}\global\@ylswtrue%\@yldtrue% subst. on 4
1777 \fi
1778 \or\ifx\eee\empty
1779 \gdef\@ylii{171}\gdef\@yli{-103}\global\@ylswtrue%\@yletrue% subst. on 5
1780 \else
1781 \gdef\@ylii{213}\gdef\@yli{-79}\global\@ylswtrue%\@yletrue% subst. on 5
1782 \fi
1783 \or\ifx\fff\empty
1784 \gdef\@ylii{171}\gdef\@yli{-303}\global\@ylswtrue%\@ylftrue% subst. on 6
1785 \else
1786 \gdef\@ylii{213}\gdef\@yli{-327}\global\@ylswtrue%\@ylftrue% subst. on 6
1787 \fi%
1788 \fi%end of ifcase
1789 \fi\fi\fi\fi\fi}}%
1790 % \end{macrocode}
1791 % \end{macro}
1792 %
1793 % The |\@substa| command is used for placing a substituent (|\@memberb|) at
1794 % the 1-position (top) of a vertical six-membered ring. The bond linking
1795 % between the substituent and the 1-position is drawn in the light of
1796 % the corresponding bond modifier (|\@tmpc| = Sa, Sb, SA, SB etc.).
1797 % \changes{v1.02}{1998/10/31}{Adding \cs{yl@xdiff} and \cs{yl@ydiff}}
1798 % \changes{v2.00}{1998/12/15}{New bond modifiers: FA, FB, GA, GB, Su, and Sd}
1799 % \changes{v4.03}{2005/07/20}{wave bonds for stereochemistry: U, FU, GU, SU, SV}
1800 % \begin{macro}{\@substa}
1801 % \begin{macrocode}
1802 % %%%%%%%%%%%%%%%
1803 % % subst. on 1 %
1804 % %%%%%%%%%%%%%%%
1805 \def\@substa{%
1806 \if@aclip% %clipping
1807 \if\@tmpb S%single bond
1808 \ifx\@tmpc\empty%
1809 \yl@xdiff=31\relax
1810 \yl@ydiff=-17\relax
1811 \putlratom{-31}{563}{\@memberb}% % left or right type
1812 \Put@Line(0,436)(0,1){110}% % single bond at 1
1813 \else\if\@tmpc B%(B) beta
1814 \yl@xdiff=-36\relax
1815 \yl@ydiff=-27\relax
1816 \putlatom{-42}{563}{\@memberb}% % left type
1817 {%
1818 \thicklines%
1819 \Put@Line(-18,436)(-3,5){60}% % single bond at 1
1820 }%
1821 \else\if\@tmpc A%(A) alpha
1822 \yl@xdiff=37\relax
1823 \yl@ydiff=-27\relax
1824 \putratom{41}{563}{\@memberb}% % right type
1825 \dotorline(18,436)(3,5){60}/(18,436)(72,526)%
1826 \else\if\@tmpc u%(u) up --- (B) beta
1827 \yl@xdiff=36\relax
1828 \yl@ydiff=-27\relax
1829 \putratom{41}{563}{\@memberb}% % right type
1830 {%
1831 \thicklines%
1832 \Put@Line(18,436)(3,5){60}% % single bond at 1
1833 }%
1834 \else\if\@tmpc d%(d) down --- (A) alpha
1835 \yl@xdiff=-37\relax
1836 \yl@ydiff=-27\relax
1837 \putlatom{-42}{563}{\@memberb}% % left type
1838 \dotorline(-18,436)(-3,5){60}/(-18,436)(-72,526)%
1839 \else\if\@tmpc b%(b) beta
1840 \yl@xdiff=-36\relax
1841 \yl@ydiff=-27\relax
1842 \putlatom{-42}{563}{\@memberb}% % left type
1843 \Put@Line(-18,436)(-3,5){60}% % single bond at 1
1844 \else\if\@tmpc a%(a) alpha
1845 \yl@xdiff=37\relax
1846 \yl@ydiff=-27\relax
1847 \putratom{41}{563}{\@memberb}% % right type
1848 \Put@Line(18,436)(3,5){60}% % single bond at 1
1849 \else\if\@tmpc V%(V) beta undefined
1850 \yl@xdiff=-36\relax
1851 \yl@ydiff=-27\relax
1852 \putlatom{-42}{563}{\@memberb}% % left type
1853 {%
1854 \WaveBonds%
1855 \Put@Line(-18,436)(-3,5){60}% % single bond at 1
1856 }%
1857 \else\if\@tmpc U%(U) alpha undefined
1858 \yl@xdiff=37\relax
1859 \yl@ydiff=-27\relax
1860 \putratom{41}{563}{\@memberb}% % right type
1861 {%
1862 \WaveBonds%
1863 \Put@Line(18,436)(3,5){60}% % single bond at 1
1864 }%
1865 \fi\fi\fi\fi\fi%
1866 \fi\fi\fi\fi
1867 \else\if\@tmpb D%double bond
1868 \yl@xdiff=31\relax
1869 \yl@ydiff=-17\relax
1870 \putlratom{-31}{563}{\@memberb}% % left or right type
1871 \Put@Line(-12,436)(0,1){110}% % double bond at 1
1872 \Put@Line(12,436)(0,1){110}% % double bond at 1
1873 \else\if\@tmpb B%beta single bond
1874 \yl@xdiff=31\relax
1875 \yl@ydiff=-17\relax
1876 \putlratom{-31}{563}{\@memberb}% % left or right type
1877 {%
1878 \thicklines%
1879 \Put@Line(0,436)(0,1){110}% % single bond at 1
1880 }%
1881 \else\if\@tmpb A%alpha single bond
1882 \yl@xdiff=31\relax
1883 \yl@ydiff=-17\relax
1884 \putlratom{-31}{563}{\@memberb}% % left or right type
1885 \dotorline(0,436)(0,1){110}/(0,436)(0,546)%
1886 \else\if\@tmpb U%undefined single bond
1887 \yl@xdiff=31\relax
1888 \yl@ydiff=-17\relax
1889 \putlratom{-31}{563}{\@memberb}% % left or right type
1890 {%
1891 \WaveBonds%
1892 \Put@Line(0,436)(0,1){110}% % single wave bond at 1
1893 }%
1894 \else\if\@tmpb F%fused bond
1895 {\let\@tmpb=\@tmpc\@clipfusetrue
1896 \Put@Direct(0,406){\setatombondd}%
1897 }%
1898 \else\if\@tmpb G%fused bond
1899 {\let\@tmpb=\@tmpc\@clipfusetrue
1900 \Put@Direct(0,406){\setatombondf}%
1901 }%
1902 \else%
1903 \yl@xdiff=31\relax
1904 \yl@ydiff=-17\relax
1905 \putlratom{-31}{563}{\@memberb}% % left or right type
1906 \Put@Line(0,436)(0,1){110}% % single bond at 1
1907 \fi\fi\fi\fi%
1908 \fi\fi\fi%
1909 \else% % no clipping
1910 \if\@tmpb S%single bond
1911 \ifx\@tmpc\empty%
1912 \yl@xdiff=31\relax
1913 \yl@ydiff=-17\relax
1914 \putlratom{-31}{563}{\@memberb}% % left or right type
1915 \Put@Line(0,406)(0,1){140}% % single bond at 1
1916 \else\if\@tmpc B%(B) beta
1917 \yl@xdiff=-30\relax
1918 \yl@ydiff=-37\relax
1919 \putlatom{-42}{563}{\@memberb}% % left type
1920 {%
1921 \thicklines%
1922 \Put@Line(0,406)(-3,5){72}% % single bond at 1
1923 }%
1924 \else\if\@tmpc A%(A) alpha
1925 \yl@xdiff=31\relax
1926 \yl@ydiff=-37\relax
1927 \putratom{41}{563}{\@memberb}% % right type
1928 \dotorline(0,406)(3,5){72}/(0,406)(72,526)%
1929 \else\if\@tmpc u%(u) upper --- (B) beta
1930 \yl@xdiff=30\relax
1931 \yl@ydiff=-37\relax
1932 \putratom{41}{563}{\@memberb}% % right type
1933 {%
1934 \thicklines%
1935 \Put@Line(0,406)(3,5){72}% % single bond at 1
1936 }%
1937 \else\if\@tmpc d%(d) down --- (A) alpha
1938 \yl@xdiff=-31\relax
1939 \yl@ydiff=-37\relax
1940 \putlatom{-42}{563}{\@memberb}% % left type
1941 \dotorline(0,406)(-3,5){72}/(0,406)(-72,526)%
1942 \else\if\@tmpc b%(b) beta
1943 \yl@xdiff=-30\relax
1944 \yl@ydiff=-37\relax
1945 \putlatom{-42}{563}{\@memberb}% % left type
1946 \Put@Line(0,406)(-3,5){72}% % single bond at 1
1947 \else\if\@tmpc a%(a) alpha
1948 \yl@xdiff=31\relax
1949 \yl@ydiff=-37\relax
1950 \putratom{41}{563}{\@memberb}% % right type
1951 \Put@Line(0,406)(3,5){72}% % single bond at 1
1952 \else\if\@tmpc V%(V) beta undefined
1953 \yl@xdiff=-30\relax
1954 \yl@ydiff=-37\relax
1955 \putlatom{-42}{563}{\@memberb}% % left type
1956 {%
1957 \WaveBonds%
1958 \Put@Line(0,406)(-3,5){72}% % single bond at 1
1959 }%
1960 \else\if\@tmpc U%(U) alpha undefined
1961 \yl@xdiff=31\relax
1962 \yl@ydiff=-37\relax
1963 \putratom{41}{563}{\@memberb}% % right type
1964 {%
1965 \WaveBonds%
1966 \Put@Line(0,406)(3,5){72}% % single bond at 1
1967 }%
1968 \fi\fi\fi\fi\fi%
1969 \fi\fi\fi\fi%
1970 \else\if\@tmpb D%double bond
1971 \yl@xdiff=31\relax
1972 \yl@ydiff=-17\relax
1973 \putlratom{-31}{563}{\@memberb}% % left or right type
1974 \Put@Line(-12,406)(0,1){140}% % double bond at 1
1975 \Put@Line(12,406)(0,1){140}% % double bond at 1
1976 \else\if\@tmpb B%beta single bond
1977 \yl@xdiff=31\relax
1978 \yl@ydiff=-17\relax
1979 \putlratom{-31}{563}{\@memberb}% % left or right type
1980 {%
1981 \thicklines%
1982 \Put@Line(0,406)(0,1){140}% % single bond at 1
1983 }%
1984 \else\if\@tmpb A%alpha single bond
1985 \yl@xdiff=31\relax
1986 \yl@ydiff=-17\relax
1987 \putlratom{-31}{563}{\@memberb}% % left or right type
1988 \dotorline(0,406)(0,1){140}/(0,406)(0,546)%
1989 \else\if\@tmpb U%undefined single bond
1990 \yl@xdiff=31\relax
1991 \yl@ydiff=-17\relax
1992 \putlratom{-31}{563}{\@memberb}% % left or right type
1993 {%
1994 \WaveBonds%
1995 \Put@Line(0,406)(0,1){140}% % single wave bond at 1
1996 }%
1997 \else\if\@tmpb F%fused bond
1998 {\let\@tmpb=\@tmpc\@clipfusefalse
1999 \Put@Direct(0,406){\setatombondd}%
2000 }%
2001 \else\if\@tmpb G%fused bond
2002 {\let\@tmpb=\@tmpc\@clipfusefalse
2003 \Put@Direct(0,406){\setatombondf}%
2004 }%
2005 \else%
2006 \yl@xdiff=31\relax
2007 \yl@ydiff=-17\relax
2008 \putlratom{-31}{563}{\@memberb}% % left or right type
2009 \Put@Line(0,406)(0,1){140}% % single bond at 1
2010 \fi\fi\fi\fi%
2011 \fi\fi\fi
2012 \fi}% end of \@substa
2013 % \end{macrocode}
2014 % \end{macro}
2015 %
2016 % The |\@substb| command is used for placing a substituent (|\@memberb|) at
2017 % the 2-position (upper-right) of a vertical six-membered ring.
2018 % \changes{v1.02}{1998/10/31}{Adding \cs{yl@xdiff} and \cs{yl@ydiff}}
2019 % \changes{v2.00}{1998/12/15}{New bond modifiers: FA, FB, GA, GB, Su, and Sd}
2020 % \changes{v4.03}{2005/07/20}{wave bonds for stereochemistry: U, FU, GU, SU, SV}
2021 % \begin{macro}{\@substb}
2022 % \begin{macrocode}
2023 % %%%%%%%%%%%%%%%
2024 % % subst. on 2 %
2025 % %%%%%%%%%%%%%%%
2026 \def\@substb{%
2027 \if@bclip %clipping
2028 \if\@tmpb S%single bond
2029 \ifx\@tmpc\empty%
2030 \yl@xdiff=-10\relax
2031 \yl@ydiff=24\relax
2032 \putratom{311}{363}{\@memberb}% % right type
2033 \Put@Line(201,327)(5,3){100}% % single bond at 2
2034 \else\if\@tmpc B%(B) beta
2035 \yl@xdiff=-7\relax
2036 \yl@ydiff=38\relax
2037 \putratom{268}{420}{\@memberb}% % right type
2038 {%
2039 \thicklines%
2040 \Put@Line(201,358)(3,5){60}% % single bond at 2
2041 }%
2042 \else\if\@tmpc A%(A) alpha
2043 \yl@xdiff=-17\relax
2044 \yl@ydiff=23\relax
2045 \putratom{318}{280}{\@memberb}% % right type
2046 \dotorline(201,303)(1,0){100}/(201,303)(301,303)%
2047 \else\if\@tmpc u%(u) up --- (B) beta
2048 \yl@xdiff=-17\relax
2049 \yl@ydiff=23\relax
2050 \putratom{318}{280}{\@memberb}% % right type
2051 {%
2052 \thicklines%
2053 \Put@Line(201,303)(1,0){100}% % single bond at 2
2054 }%
2055 \else\if\@tmpc d%(d) down --- (A) alpha
2056 \yl@xdiff=-7\relax
2057 \yl@ydiff=38\relax
2058 \putratom{268}{420}{\@memberb}% % right type
2059 \dotorline(201,358)(3,5){60}/(201,358)(261,458)%
2060 \else\if\@tmpc b%(b) beta
2061 \yl@xdiff=-7\relax
2062 \yl@ydiff=38\relax
2063 \putratom{268}{420}{\@memberb}% % right type
2064 \Put@Line(201,358)(3,5){60}% % single bond at 2
2065 \else\if\@tmpc a%(a) alpha%
2066 \yl@xdiff=-17\relax
2067 \yl@ydiff=23\relax
2068 \putratom{318}{280}{\@memberb}% % right type
2069 \Put@Line(201,303)(1,0){100}% % single bond at 2
2070 \else\if\@tmpc V%(V) beta undefined
2071 \yl@xdiff=-7\relax
2072 \yl@ydiff=38\relax
2073 \putratom{268}{420}{\@memberb}% % right type
2074 {%
2075 \WaveBonds%
2076 \Put@Line(201,358)(3,5){60}% % single bond at 2
2077 }%
2078 \else\if\@tmpc U%(U) alphau undefined
2079 \yl@xdiff=-17\relax
2080 \yl@ydiff=23\relax
2081 \putratom{318}{280}{\@memberb}% % right type
2082 {%
2083 \WaveBonds%
2084 \Put@Line(201,303)(1,0){100}% % single bond at 2
2085 }%
2086 \fi\fi\fi\fi\fi%
2087 \fi\fi\fi\fi%
2088 \else\if\@tmpb D%double bond
2089 \yl@xdiff=-10\relax
2090 \yl@ydiff=18\relax
2091 \putratom{311}{363}{\@memberb}% % right type
2092 \Put@Line(194,331)(5,3){100}% % double bond at 2
2093 \Put@Line(200,305)(5,3){100}% % double bond at 2
2094 \else\if\@tmpb B%beta single bond
2095 \yl@xdiff=-10\relax
2096 \yl@ydiff=24\relax
2097 \putratom{311}{363}{\@memberb}% % right type
2098 {%
2099 \thicklines%
2100 \Put@Line(201,327)(5,3){100}% % single bond at 2
2101 }%
2102 \else\if\@tmpb A%alpha single bond
2103 \yl@xdiff=-10\relax
2104 \yl@ydiff=24\relax
2105 \putratom{311}{363}{\@memberb}% % right type
2106 \dotorline(201,327)(5,3){100}/(201,327)(301,387)%
2107 \else\if\@tmpb U%undefined single bond
2108 \yl@xdiff=-10\relax
2109 \yl@ydiff=24\relax
2110 \putratom{311}{363}{\@memberb}% % right type
2111 {%
2112 \WaveBonds%
2113 \Put@Line(210,327)(5,3){100}% % single wave bond at 2
2114 }%
2115 \else\if\@tmpb F%fused bond
2116 {\let\@tmpb=\@tmpc\@clipfusetrue
2117 \Put@Direct(171,303){\setatombonda}%
2118 }%
2119 \else\if\@tmpb G%fused bond
2120 {\let\@tmpb=\@tmpc\@clipfusetrue
2121 \Put@Direct(171,303){\setatombonde}%
2122 }%
2123 \else%
2124 \yl@xdiff=-10\relax
2125 \yl@ydiff=24\relax
2126 \putratom{311}{363}{\@memberb}% % right type
2127 \Put@Line(201,327)(5,3){100}% % single bond at 2
2128 \fi\fi\fi\fi%
2129 \fi\fi\fi%
2130 \else% %no clipping
2131 \if\@tmpb S%single bond
2132 \ifx\@tmpc\empty%
2133 \yl@xdiff=-10\relax
2134 \yl@ydiff=12\relax
2135 \putratom{301}{363}{\@memberb}% % right type
2136 \Put@Line(171,303)(5,3){120}% % single bond at 2
2137 \else\if\@tmpc B%(B) beta
2138 \yl@xdiff=-15\relax
2139 \yl@ydiff=13\relax
2140 \putratom{258}{410}{\@memberb}% % right type
2141 {%
2142 \thicklines%
2143 \Put@Line(171,303)(3,5){72}% % single bond at 2
2144 }%
2145 \else\if\@tmpc A%(A) alpha
2146 \yl@xdiff=-7\relax
2147 \yl@ydiff=23\relax
2148 \putratom{318}{280}{\@memberb}% % right type
2149 \dotorline(171,303)(1,0){140}/(171,303)(311,303)%
2150 \else\if\@tmpc u%(u) up --- (B) beta
2151 \yl@xdiff=-7\relax
2152 \yl@ydiff=23\relax
2153 \putratom{318}{280}{\@memberb}% % right type
2154 {%
2155 \thicklines%
2156 \Put@Line(171,303)(1,0){140}% % single bond at 2
2157 }%
2158 \else\if\@tmpc d%(d) down --- (A) alpha
2159 \yl@xdiff=-15\relax
2160 \yl@ydiff=13\relax
2161 \putratom{258}{410}{\@memberb}% % right type
2162 \dotorline(171,303)(3,5){72}/(171,303)(243,423)%
2163 \else\if\@tmpc b%(b) beta
2164 \yl@xdiff=-15\relax
2165 \yl@ydiff=13\relax
2166 \putratom{258}{410}{\@memberb}% % right type
2167 \Put@Line(171,303)(3,5){72}% % single bond at 2
2168 \else\if\@tmpc a%(a) alpha
2169 \yl@xdiff=-7\relax
2170 \yl@ydiff=23\relax
2171 \putratom{318}{280}{\@memberb}% % right type
2172 \Put@Line(171,303)(1,0){140}% % single bond at 2
2173 \else\if\@tmpc V%(V) beta undefined
2174 \yl@xdiff=-15\relax
2175 \yl@ydiff=13\relax
2176 \putratom{258}{410}{\@memberb}% % right type
2177 {%
2178 \WaveBonds%
2179 \Put@Line(171,303)(3,5){72}% % single bond at 2
2180 }%
2181 \else\if\@tmpc U%(U) alpha undefined
2182 \yl@xdiff=-7\relax
2183 \yl@ydiff=23\relax
2184 \putratom{318}{280}{\@memberb}% % right type
2185 {%
2186 \WaveBonds%
2187 \Put@Line(171,303)(1,0){140}% % single bond at 2
2188 }%
2189 \fi\fi\fi\fi\fi%
2190 \fi\fi\fi\fi%
2191 \else\if\@tmpb D%double bond
2192 \yl@xdiff=-10\relax
2193 \yl@ydiff=6\relax
2194 \putratom{301}{363}{\@memberb}% % right type
2195 \Put@Line(168,310)(5,3){120}% % double bond at 2
2196 \Put@Line(174,284)(5,3){120}% % double bond at 2
2197 \else\if\@tmpb B%beta single bond
2198 \yl@xdiff=-10\relax
2199 \yl@ydiff=12\relax
2200 \putratom{301}{363}{\@memberb}% % right type
2201 {%
2202 \thicklines%
2203 \Put@Line(171,303)(5,3){120}% % single bond at 2
2204 }%
2205 \else\if\@tmpb A%alpha single bond
2206 \yl@xdiff=-10\relax
2207 \yl@ydiff=12\relax
2208 \putratom{301}{363}{\@memberb}% % right type
2209 \dotorline(171,303)(5,3){120}/(171,303)(291,375)%
2210 \else\if\@tmpb U%undefined single bond
2211 \yl@xdiff=-10\relax
2212 \yl@ydiff=12\relax
2213 \putratom{301}{363}{\@memberb}% % right type
2214 {%
2215 \WaveBonds%
2216 \Put@Line(171,303)(5,3){120}% % single wave bond at 2
2217 }%
2218 \else\if\@tmpb F%fused bond
2219 {\let\@tmpb=\@tmpc\@clipfusefalse
2220 \Put@Direct(171,303){\setatombonda}%
2221 }%
2222 \else\if\@tmpb G%fused bond
2223 {\let\@tmpb=\@tmpc\@clipfusefalse
2224 \Put@Direct(171,303){\setatombonde}%
2225 }%
2226 \else%
2227 \yl@xdiff=-10\relax
2228 \yl@ydiff=12\relax
2229 \putratom{301}{363}{\@memberb}% % right type
2230 \Put@Line(171,303)(5,3){120}% % single bond at 2
2231 \fi\fi\fi\fi%
2232 \fi\fi\fi
2233 \fi}% end of \@substb
2234 % \end{macrocode}
2235 % \end{macro}
2236 %
2237 % The |\@substc| command is used for placing a substituent (|\@memberb|) at
2238 % the 3-position (lower-right) of a vertical six-membered ring.
2239 % \changes{v1.02}{1998/10/31}{Adding \cs{yl@xdiff|} and \cs{yl@ydiff}}
2240 % \changes{v2.00}{1998/12/15}{New bond modifiers: FA, FB, GA, GB, Su, and Sd}
2241 % \changes{v4.03}{2005/07/20}{wave bonds for stereochemistry: U, FU, GU, SU, SV}
2242 % \begin{macro}{\@substc}
2243 % \begin{macrocode}
2244 % %%%%%%%%%%%%%%%
2245 % % subst. on 3 %
2246 % %%%%%%%%%%%%%%%
2247 \def\@substc{%
2248 \if@cclip %clipping
2249 \if\@tmpb S%single bond
2250 \ifx\@tmpc\empty%
2251 \yl@xdiff=-10\relax
2252 \yl@ydiff=46\relax
2253 \putratom{311}{-27}{\@memberb}% % right type
2254 \Put@Line(201,79)(5,-3){110}% % single bond at 3
2255 \else\if\@tmpc B%(B) beta
2256 \yl@xdiff=-7\relax
2257 \yl@ydiff=28\relax
2258 \putratom{268}{-80}{\@memberb}% % right type
2259 {%
2260 \thicklines%
2261 \Put@Line(201,48)(3,-5){60}% % single bond at 3
2262 }%
2263 \else\if\@tmpc A%(A) alpha
2264 \yl@xdiff=-17\relax
2265 \yl@ydiff=29\relax
2266 \putratom{318}{74}{\@memberb}% % right type
2267 \dotorline(201,103)(1,0){100}/(201,103)(301,103)%
2268 \else\if\@tmpc u%(u) up --- (B) beta
2269 \yl@xdiff=-17\relax
2270 \yl@ydiff=29\relax
2271 \putratom{318}{74}{\@memberb}% % right type
2272 {%
2273 \thicklines%
2274 \Put@Line(201,103)(1,0){100}% % single bond at 3
2275 }%
2276 \else\if\@tmpc d%(d) down --- (A) alpha
2277 \yl@xdiff=-7\relax
2278 \yl@ydiff=28\relax
2279 \putratom{268}{-80}{\@memberb}% % right type
2280 \dotorline(201,48)(3,-5){60}/(201,48)(261,-52)%
2281 \else\if\@tmpc b%(b) beta
2282 \yl@xdiff=-7\relax
2283 \yl@ydiff=28\relax
2284 \putratom{268}{-80}{\@memberb}% % right type
2285 \Put@Line(201,48)(3,-5){60}% % single bond at 3
2286 \else\if\@tmpc a%(a) alpha
2287 \yl@xdiff=-17\relax
2288 \yl@ydiff=29\relax
2289 \putratom{318}{74}{\@memberb}% % right type
2290 \Put@Line(201,103)(1,0){100}% % single bond at 3
2291 \else\if\@tmpc V%(V) beta undefined
2292 \yl@xdiff=-7\relax
2293 \yl@ydiff=28\relax
2294 \putratom{268}{-80}{\@memberb}% % right type
2295 {%
2296 \WaveBonds%
2297 \Put@Line(201,48)(3,-5){60}% % single bond at 3
2298 }%
2299 \else\if\@tmpc U%(U) alpha undefined
2300 \yl@xdiff=-17\relax
2301 \yl@ydiff=29\relax
2302 \putratom{318}{74}{\@memberb}% % right type
2303 {%
2304 \WaveBonds%
2305 \Put@Line(201,103)(1,0){100}% % single bond at 3
2306 }%
2307 \fi\fi\fi\fi\fi%
2308 \fi\fi\fi\fi
2309 \else\if\@tmpb D%double bond
2310 \yl@xdiff=-10\relax
2311 \yl@ydiff=52\relax
2312 \putratom{311}{-27}{\@memberb}% % right type
2313 \Put@Line(194,76)(5,-3){100}% % double bond at 3
2314 \Put@Line(200,101)(5,-3){100}% % double bond at 3
2315 \else\if\@tmpb B%beta single bond
2316 \yl@xdiff=-10\relax
2317 \yl@ydiff=46\relax
2318 \putratom{311}{-27}{\@memberb}% % right type
2319 {%
2320 \thicklines%
2321 \Put@Line(201,79)(5,-3){100}% % single bond at 3
2322 }%
2323 \else\if\@tmpb A%alpha single bond
2324 \yl@xdiff=-10\relax
2325 \yl@ydiff=46\relax
2326 \putratom{311}{-27}{\@memberb}% % right type
2327 \dotorline(201,79)(5,-3){100}/(201,79)(301,19)%
2328 \else\if\@tmpb U%undefined single bond
2329 \yl@xdiff=-10\relax
2330 \yl@ydiff=46\relax
2331 \putratom{311}{-27}{\@memberb}% % right type
2332 {%
2333 \WaveBonds%
2334 \Put@Line(210,79)(5,-3){100}% % single wave bond at 3
2335 }%
2336 \else\if\@tmpb F%fused bond
2337 {\let\@tmpb=\@tmpc\@clipfusetrue
2338 \Put@Direct(171,103){\setatombondf}%
2339 }%
2340 \else\if\@tmpb G%fused bond
2341 {\let\@tmpb=\@tmpc\@clipfusetrue
2342 \Put@Direct(171,103){\setatombondc}%
2343 }%
2344 \else%
2345 \yl@xdiff=-10\relax
2346 \yl@ydiff=46\relax
2347 \putratom{311}{-27}{\@memberb}% % right type
2348 \Put@Line(201,79)(5,-3){100}% % single bond at 3
2349 \fi\fi\fi\fi%
2350 \fi\fi\fi%
2351 \else%no clipping
2352 \if\@tmpb S%single bond
2353 \ifx\@tmpc\empty%
2354 \yl@xdiff=-10\relax
2355 \yl@ydiff=58\relax
2356 \putratom{301}{-27}{\@memberb}% % right type
2357 \Put@Line(171,103)(5,-3){120}% % single bond at 3
2358 \else\if\@tmpc B%(B) beta
2359 \yl@xdiff=-10\relax
2360 \yl@ydiff=48\relax
2361 \putratom{258}{-70}{\@memberb}% % right type
2362 {%
2363 \thicklines%
2364 \Put@Line(171,103)(3,-5){72}% % single bond at 3
2365 }%
2366 \else\if\@tmpc A%(A) alpha
2367 \yl@xdiff=-10\relax
2368 \yl@ydiff=30\relax
2369 \putratom{318}{74}{\@memberb}% % right type
2370 \dotorline(171,103)(1,0){140}/(171,103)(311,103)%
2371 \else\if\@tmpc u%(u) up --- (B) beta
2372 \yl@xdiff=-10\relax
2373 \yl@ydiff=30\relax
2374 \putratom{318}{74}{\@memberb}% % right type
2375 {%
2376 \thicklines%
2377 \Put@Line(171,103)(1,0){140}% % single bond at 3
2378 }%
2379 \else\if\@tmpc d%(d) down --- (A) alpha
2380 \yl@xdiff=-10\relax
2381 \yl@ydiff=48\relax
2382 \putratom{258}{-70}{\@memberb}% % right type
2383 \dotorline(171,103)(3,-5){72}/(171,103)(243,-17)%
2384 \else\if\@tmpc b%(b) beta
2385 \yl@xdiff=-10\relax
2386 \yl@ydiff=48\relax
2387 \putratom{258}{-70}{\@memberb}% % right type
2388 \Put@Line(171,103)(3,-5){72}% % single bond at 3
2389 \else\if\@tmpc a%(a) alpha
2390 \yl@xdiff=-10\relax
2391 \yl@ydiff=30\relax
2392 \putratom{318}{74}{\@memberb}% % right type
2393 \Put@Line(171,103)(1,0){140}% % single bond at 3
2394 \else\if\@tmpc V%(V) beta undefined
2395 \yl@xdiff=-10\relax
2396 \yl@ydiff=48\relax
2397 \putratom{258}{-70}{\@memberb}% % right type
2398 {%
2399 \WaveBonds%
2400 \Put@Line(171,103)(3,-5){72}% % single bond at 3
2401 }%
2402 \else\if\@tmpc U%(U) alpha undefined
2403 \yl@xdiff=-10\relax
2404 \yl@ydiff=30\relax
2405 \putratom{318}{74}{\@memberb}% % right type
2406 {%
2407 \WaveBonds%
2408 \Put@Line(171,103)(1,0){140}% % single bond at 3
2409 }%
2410 \fi\fi\fi\fi\fi%
2411 \fi\fi\fi\fi
2412 \else\if\@tmpb D%double bond
2413 \yl@xdiff=-10\relax
2414 \yl@ydiff=65\relax
2415 \putratom{301}{-27}{\@memberb}% % right type
2416 \Put@Line(168,96)(5,-3){120}% % double bond at 3
2417 \Put@Line(174,121)(5,-3){120}% % double bond at 3
2418 \else\if\@tmpb B%beta single bond
2419 \yl@xdiff=-10\relax
2420 \yl@ydiff=58\relax
2421 \putratom{301}{-27}{\@memberb}% % right type
2422 {%
2423 \thicklines%
2424 \Put@Line(171,103)(5,-3){120}% % single bond at 3
2425 }%
2426 \else\if\@tmpb A%alpha single bond
2427 \yl@xdiff=-10\relax
2428 \yl@ydiff=58\relax
2429 \putratom{301}{-27}{\@memberb}% % right type
2430 \dotorline(171,103)(5,-3){120}/(171,103)(291,31)%
2431 \else\if\@tmpb U%undefined single bond
2432 \yl@xdiff=-10\relax
2433 \yl@ydiff=58\relax
2434 \putratom{301}{-27}{\@memberb}% % right type
2435 {%
2436 \WaveBonds%
2437 \Put@Line(171,103)(5,-3){120}% % single wave bond at 3
2438 }%
2439 \else\if\@tmpb F%fused bond
2440 {\let\@tmpb=\@tmpc\@clipfusefalse
2441 \Put@Direct(171,103){\setatombondf}%
2442 }%
2443 \else\if\@tmpb G%fused bond
2444 {\let\@tmpb=\@tmpc\@clipfusefalse
2445 \Put@Direct(171,103){\setatombondc}%
2446 }%
2447 \else%
2448 \yl@xdiff=-10\relax
2449 \yl@ydiff=58\relax
2450 \putratom{301}{-27}{\@memberb}% % right type
2451 \Put@Line(171,103)(5,-3){120}% % single bond at 3
2452 \fi\fi\fi\fi%
2453 \fi\fi\fi
2454 \fi
2455 }% end of \@substc
2456 % \end{macrocode}
2457 % \end{macro}
2458 %
2459 % The |\@substd| command is used for placing a substituent (|\@memberb|) at
2460 % the 4-position (bottom) of a vertical six-membered ring.
2461 % \changes{v1.02}{1998/10/31}{Adding \cs{yl@xdiff} and \cs{yl@ydiff}}
2462 % \changes{v2.00}{1998/12/15}{New bond modifiers: FA, FB, GA, GB, Su, and Sd}
2463 % \changes{v4.03}{2005/07/20}{wave bonds for stereochemistry: U, FU, GU, SU, SV}
2464 % \begin{macro}{\@substd}
2465 % \begin{macrocode}
2466 % %%%%%%%%%%%%%%%
2467 % % subst. on 4 %
2468 % %%%%%%%%%%%%%%%
2469 \def\@substd{%
2470 \if@clip %clipping
2471 \if\@tmpb S%single bond
2472 \ifx\@tmpc\empty%
2473 \yl@xdiff=31\relax
2474 \yl@ydiff=90\relax
2475 \putlratom{-31}{-230}{\@memberb}% % left or right type
2476 \Put@Line(0,-30)(0,-1){110}% % single bond at 4
2477 \else\if\@tmpc B%(B) beta
2478 \yl@xdiff=-36\relax
2479 \yl@ydiff=100\relax
2480 \putlatom{-42}{-230}{\@memberb}% % left type
2481 {%
2482 \thicklines%
2483 \Put@Line(-18,-30)(-3,-5){60}% % single bond at 4
2484 }%
2485 \else\if\@tmpc A%(A) alpha
2486 \yl@xdiff=37\relax
2487 \yl@ydiff=100\relax
2488 \putratom{41}{-230}{\@memberb}% % right type
2489 \dotorline(18,-30)(3,-5){60}/(18,-30)(72,-120)%
2490 \else\if\@tmpc u%(u) up --- (B) beta
2491 \yl@xdiff=37\relax
2492 \yl@ydiff=100\relax
2493 \putratom{41}{-230}{\@memberb}% % right type
2494 {%
2495 \thicklines%
2496 \Put@Line(18,-30)(3,-5){60}% % single bond at 4
2497 }%
2498 \else\if\@tmpc d%(d) down --- (A) alpha
2499 \yl@xdiff=-36\relax
2500 \yl@ydiff=100\relax
2501 \putlatom{-42}{-230}{\@memberb}% % left type
2502 \dotorline(-18,-30)(-3,-5){60}/(-18,-30)(-78,-130)%
2503 \else\if\@tmpc b%(b) beta
2504 \yl@xdiff=-36\relax
2505 \yl@ydiff=100\relax
2506 \putlatom{-42}{-230}{\@memberb}% % left type
2507 \Put@Line(-18,-30)(-3,-5){60}% % single bond at 4
2508 \else\if\@tmpc a%(a) alpha
2509 \yl@xdiff=37\relax
2510 \yl@ydiff=100\relax
2511 \putratom{41}{-230}{\@memberb}% % right type
2512 \Put@Line(18,-30)(3,-5){60}% % single bond at 4
2513 \else\if\@tmpc V%(V) beta undefined
2514 \yl@xdiff=-36\relax
2515 \yl@ydiff=100\relax
2516 \putlatom{-42}{-230}{\@memberb}% % left type
2517 {%
2518 \WaveBonds%
2519 \Put@Line(-18,-30)(-3,-5){60}% % single bond at 4
2520 }%
2521 \else\if\@tmpc U%(U) alpha undefined
2522 \yl@xdiff=37\relax
2523 \yl@ydiff=100\relax
2524 \putratom{41}{-230}{\@memberb}% % right type
2525 {%
2526 \WaveBonds%
2527 \Put@Line(18,-30)(3,-5){60}% % single bond at 4
2528 }%
2529 \fi\fi\fi\fi\fi%
2530 \fi\fi\fi\fi
2531 \else\if\@tmpb D%double bond
2532 \yl@xdiff=31\relax
2533 \yl@ydiff=90\relax
2534 \putlratom{-31}{-230}{\@memberb}% % left or right type
2535 \Put@Line(-12,-30)(0,-1){110}% % double bond at 4
2536 \Put@Line(12,-30)(0,-1){110}% % double bond at 4
2537 \else\if\@tmpb B%beta single bond
2538 \yl@xdiff=31\relax
2539 \yl@ydiff=90\relax
2540 \putlratom{-31}{-230}{\@memberb}% % left or right type
2541 {%
2542 \thicklines%
2543 \Put@Line(0,-30)(0,-1){110}% % single bond at 4
2544 }%
2545 \else\if\@tmpb A%alpha single bond
2546 \yl@xdiff=31\relax
2547 \yl@ydiff=90\relax
2548 \putlratom{-31}{-230}{\@memberb}% % left or right type
2549 \dotorline(0,-30)(0,-1){110}/(0,-30)(0,-140)%
2550 \else\if\@tmpb U%undefined single bond
2551 \yl@xdiff=31\relax
2552 \yl@ydiff=90\relax
2553 \putlratom{-31}{-230}{\@memberb}% % right type
2554 {%
2555 \WaveBonds%
2556 \Put@Line(0,-30)(0,-1){110}% % single wave bond at 4
2557 }%
2558 \else\if\@tmpb F%fused bond
2559 {\let\@tmpb=\@tmpc\@clipfusetrue
2560 \Put@Direct(0,0){\setatombonde}%
2561 }%
2562 \else\if\@tmpb G%fused bond
2563 {\let\@tmpb=\@tmpc\@clipfusetrue
2564 \Put@Direct(0,0){\setatombondg}%
2565 }%
2566 \else%
2567 \yl@xdiff=31\relax
2568 \yl@ydiff=90\relax
2569 \putlratom{-31}{-230}{\@memberb}% % left or right type
2570 \Put@Line(0,-30)(0,-1){110}% % single bond at 4
2571 \fi\fi\fi\fi%
2572 \fi\fi\fi%
2573 \else%no clipping
2574 \if\@tmpb S%single bond
2575 \ifx\@tmpc\empty%
2576 \yl@xdiff=31\relax
2577 \yl@ydiff=90\relax
2578 \putlratom{-31}{-230}{\@memberb}% % left or right type
2579 \Put@Line(0,0)(0,-1){140}% % single bond at 4
2580 \else\if\@tmpc B%(B) beta
2581 \yl@xdiff=-30\relax
2582 \yl@ydiff=110\relax
2583 \putlatom{-42}{-230}{\@memberb}% % left type
2584 {%
2585 \thicklines%
2586 \Put@Line(0,0)(-3,-5){72}% % single bond at 4
2587 }%
2588 \else\if\@tmpc A%(A) alpha
2589 \yl@xdiff=31\relax
2590 \yl@ydiff=110\relax
2591 \putratom{41}{-230}{\@memberb}% % right type
2592 \dotorline(0,0)(3,-5){72}/(0,0)(72,-120)%
2593 \else\if\@tmpc u%(u) up --- (B) beta
2594 \yl@xdiff=31\relax
2595 \yl@ydiff=110\relax
2596 \putratom{41}{-230}{\@memberb}% % right type
2597 {%
2598 \thicklines%
2599 \Put@Line(0,0)(3,-5){72}% % single bond at 4
2600 }%
2601 \else\if\@tmpc d%(d) down --- (A) alpha
2602 \yl@xdiff=-30\relax
2603 \yl@ydiff=110\relax
2604 \putlatom{-42}{-230}{\@memberb}% % left type
2605 \dotorline(0,0)(-3,-5){72}/(0,0)(-72,-120)%
2606 \else\if\@tmpc b%(b) beta
2607 \yl@xdiff=-30\relax
2608 \yl@ydiff=110\relax
2609 \putlatom{-42}{-230}{\@memberb}% % left type
2610 \Put@Line(0,0)(-3,-5){72}% % single bond at 4
2611 \else\if\@tmpc a%(a) alpha
2612 \yl@xdiff=31\relax
2613 \yl@ydiff=110\relax
2614 \putratom{41}{-230}{\@memberb}% % right type
2615 \Put@Line(0,0)(3,-5){72}% % single bond at 4
2616 \else\if\@tmpc V%(V) beta undefined
2617 \yl@xdiff=-30\relax
2618 \yl@ydiff=110\relax
2619 \putlatom{-42}{-230}{\@memberb}% % left type
2620 {%
2621 \WaveBonds%
2622 \Put@Line(0,0)(-3,-5){72}% % single bond at 4
2623 }%
2624 \else\if\@tmpc U%(U) alpha undefined
2625 \yl@xdiff=31\relax
2626 \yl@ydiff=110\relax
2627 \putratom{41}{-230}{\@memberb}% % right type
2628 {%
2629 \WaveBonds%
2630 \Put@Line(0,0)(3,-5){72}% % single bond at 4
2631 }%
2632 \fi\fi\fi\fi\fi%
2633 \fi\fi\fi\fi%
2634 \else\if\@tmpb D%double bond
2635 \yl@xdiff=31\relax
2636 \yl@ydiff=90\relax
2637 \putlratom{-31}{-230}{\@memberb}% % left or right type
2638 \Put@Line(-12,0)(0,-1){140}% % double bond at 4
2639 \Put@Line(12,0)(0,-1){140}% % double bond at 4
2640 \else\if\@tmpb B%beta single bond
2641 \yl@xdiff=31\relax
2642 \yl@ydiff=90\relax
2643 \putlratom{-31}{-230}{\@memberb}% % left or right type
2644 {%
2645 \thicklines%
2646 \Put@Line(0,0)(0,-1){140}% % single bond at 4
2647 }%
2648 \else\if\@tmpb A%alpha single bond
2649 \yl@xdiff=31\relax
2650 \yl@ydiff=90\relax
2651 \putlratom{-31}{-230}{\@memberb}% % left or right type
2652 \dotorline(0,0)(0,-1){140}/(0,0)(0,-140)%
2653 \else\if\@tmpb U%undefined single bond
2654 \yl@xdiff=31\relax
2655 \yl@ydiff=90\relax
2656 \putlratom{-31}{-230}{\@memberb}% % right type
2657 {%
2658 \WaveBonds%
2659 \Put@Line(0,0)(0,-1){140}% % single wave bond at 4
2660 }%
2661 \else\if\@tmpb F%fused bond
2662 {\let\@tmpb=\@tmpc\@clipfusefalse
2663 \Put@Direct(0,0){\setatombonde}%
2664 }%
2665 \else\if\@tmpb G%fused bond
2666 {\let\@tmpb=\@tmpc\@clipfusefalse
2667 \Put@Direct(0,0){\setatombondg}%
2668 }%
2669 \else%
2670 \yl@xdiff=31\relax
2671 \yl@ydiff=90\relax
2672 \putlratom{-31}{-230}{\@memberb}% % left or right type
2673 \Put@Line(0,0)(0,-1){140}% % single bond at 4
2674 \fi\fi\fi\fi%
2675 \fi\fi\fi%
2676 \fi}%end of \@substd
2677 % \end{macrocode}
2678 % \end{macro}
2679 %
2680 % The |\@subste| command is used for placing a substituent (|\@memberb|) at
2681 % the 5-position (lower-left) of a vertical six-membered ring.
2682 % \changes{v1.02}{1998/10/31}{Adding \cs{yl@xdiff} and \cs{yl@ydiff}}
2683 % \changes{v2.00}{1998/12/15}{New bond modifiers: FA, FB, GA, GB, Su, and Sd}
2684 % \changes{v4.03}{2005/07/20}{wave bonds for stereochemistry: U, FU, GU, SU, SV}
2685 % \begin{macro}{\@subste}
2686 % \begin{macrocode}
2687 % %%%%%%%%%%%%%%%
2688 % % subst. on 5 %
2689 % %%%%%%%%%%%%%%%
2690 \def\@subste{%
2691 \if@eclip%clipping
2692 \if\@tmpb S%single bond
2693 \ifx\@tmpc\empty%
2694 \yl@xdiff=10\relax
2695 \yl@ydiff=46\relax
2696 \putlatom{-311}{-27}{\@memberb}% % left type
2697 \Put@Line(-201,79)(-5,-3){110}% % single bond at 5
2698 \else\if\@tmpc B%(B) beta
2699 \yl@xdiff=7\relax
2700 \yl@ydiff=38\relax
2701 \putlatom{-268}{-80}{\@memberb}% % left type
2702 {%
2703 \thicklines%
2704 \Put@Line(-201,48)(-3,-5){60}% % single bond at 5
2705 }%
2706 \else\if\@tmpc A%(A) alpha
2707 \yl@xdiff=17\relax
2708 \yl@ydiff=29\relax
2709 \putlatom{-318}{74}{\@memberb}% % left type
2710 \dotorline(-201,103)(-1,0){100}/(-201,103)(-301,103)%
2711 \else\if\@tmpc u% (u) up --- (B) beta
2712 \yl@xdiff=17\relax
2713 \yl@ydiff=29\relax
2714 \putlatom{-318}{74}{\@memberb}% % left type
2715 {%
2716 \thicklines%
2717 \Put@Line(-201,103)(-1,0){100}% % single bond at 5
2718 }%
2719 \else\if\@tmpc d% (d) down --- (A) alpha
2720 \yl@xdiff=7\relax
2721 \yl@ydiff=38\relax
2722 \putlatom{-268}{-80}{\@memberb}% % left type
2723 \dotorline(-201,48)(-3,-5){60}/(-201,48)(-261,-52)%
2724 \else\if\@tmpc b%(b) beta
2725 \yl@xdiff=7\relax
2726 \yl@ydiff=38\relax
2727 \putlatom{-268}{-80}{\@memberb}% % left type
2728 \Put@Line(-201,48)(-3,-5){60}% % single bond at 5
2729 \else\if\@tmpc a%(a) alpha
2730 \yl@xdiff=17\relax
2731 \yl@ydiff=29\relax
2732 \putlatom{-318}{74}{\@memberb}% % left type
2733 \Put@Line(-201,103)(-1,0){100}% % single bond at 5
2734 \else\if\@tmpc V%(V) beta undefined
2735 \yl@xdiff=7\relax
2736 \yl@ydiff=38\relax
2737 \putlatom{-268}{-80}{\@memberb}% % left type
2738 {%
2739 \WaveBonds%
2740 \Put@Line(-201,48)(-3,-5){60}% % single bond at 5
2741 }%
2742 \else\if\@tmpc U%(U) alpha undefined
2743 \yl@xdiff=17\relax
2744 \yl@ydiff=29\relax
2745 \putlatom{-318}{74}{\@memberb}% % left type
2746 {%
2747 \WaveBonds%
2748 \Put@Line(-201,103)(-1,0){100}% % single bond at 5
2749 }%
2750 \fi\fi\fi\fi\fi%
2751 \fi\fi\fi\fi%
2752 \else\if\@tmpb D%double bond
2753 \yl@xdiff=10\relax
2754 \yl@ydiff=62\relax
2755 \putlatom{-311}{-27}{\@memberb}% % left type
2756 \Put@Line(-194,76)(-5,-3){100}% % double bond at 5
2757 \Put@Line(-200,101)(-5,-3){100}% % double bond at 5
2758 \else\if\@tmpb B%beta single bond
2759 \yl@xdiff=10\relax
2760 \yl@ydiff=46\relax
2761 \putlatom{-311}{-27}{\@memberb}% % left type
2762 {%
2763 \thicklines%
2764 \Put@Line(-201,79)(-5,-3){100}% % single bond at 5
2765 }%
2766 \else\if\@tmpb A%alpha single bond
2767 \yl@xdiff=10\relax
2768 \yl@ydiff=46\relax
2769 \putlatom{-311}{-27}{\@memberb}% % left type
2770 \dotorline(-201,79)(-5,-3){100}/(-201,79)(-301,21)%
2771 \else\if\@tmpb U%undefined single bond
2772 \yl@xdiff=10\relax
2773 \yl@ydiff=46\relax
2774 \putlatom{-311}{-27}{\@memberb}% % right type
2775 {%
2776 \WaveBonds%
2777 \Put@Line(-220,79)(-5,-3){100}% % single wave bond at 5
2778 }%
2779 \else\if\@tmpb F%fused bond
2780 {\let\@tmpb=\@tmpc\@clipfusetrue
2781 \Put@Direct(-171,103){\setatombondc}%
2782 }%
2783 \else\if\@tmpb G%fused bond
2784 {\let\@tmpb=\@tmpc\@clipfusetrue
2785 \Put@Direct(-171,103){\setatombondd}%
2786 }%
2787 \else%
2788 \yl@xdiff=10\relax
2789 \yl@ydiff=46\relax
2790 \putlatom{-311}{-27}{\@memberb}% % left type
2791 \Put@Line(-201,79)(-5,-3){100}% % single bond at 5
2792 \fi\fi\fi\fi%
2793 \fi\fi\fi%
2794 \else%no clipping
2795 \if\@tmpb S%single bond
2796 \ifx\@tmpc\empty%
2797 \yl@xdiff=10\relax
2798 \yl@ydiff=56\relax
2799 \putlatom{-301}{-27}{\@memberb}% % left type
2800 \Put@Line(-171,103)(-5,-3){120}% % single bond at 5
2801 \else\if\@tmpc B%(B) beta
2802 \yl@xdiff=15\relax
2803 \yl@ydiff=63\relax
2804 \putlatom{-258}{-70}{\@memberb}% % left type
2805 {%
2806 \thicklines%
2807 \Put@Line(-171,103)(-3,-5){72}% % single bond at 5
2808 }%
2809 \else\if\@tmpc A%(A) alpha
2810 \yl@xdiff=15\relax
2811 \yl@ydiff=29\relax
2812 \putlatom{-326}{74}{\@memberb}% % left type
2813 \dotorline(-171,103)(-1,0){140}/(-171,103)(-311,103)%
2814 \else\if\@tmpc u%(u) up --- (B) beta
2815 \yl@xdiff=15\relax
2816 \yl@ydiff=29\relax
2817 \putlatom{-326}{74}{\@memberb}% % left type
2818 {%
2819 \thicklines%
2820 \Put@Line(-171,103)(-1,0){140}% % single bond at 5
2821 }%
2822 \else\if\@tmpc d%(d) down --- (A) alpha
2823 \yl@xdiff=15\relax
2824 \yl@ydiff=63\relax
2825 \putlatom{-258}{-70}{\@memberb}% % left type
2826 \dotorline(-171,103)(-3,-5){72}/(-171,103)(-243,-17)%
2827 \else\if\@tmpc b%(b) beta
2828 \yl@xdiff=15\relax
2829 \yl@ydiff=63\relax
2830 \putlatom{-258}{-70}{\@memberb}% % left type
2831 \Put@Line(-171,103)(-3,-5){72}% % single bond at 5
2832 \else\if\@tmpc a%(a) alpha
2833 \yl@xdiff=15\relax
2834 \yl@ydiff=29\relax
2835 \putlatom{-326}{74}{\@memberb}% % left type
2836 \Put@Line(-171,103)(-1,0){140}% % single bond at 5
2837 \else\if\@tmpc V%(V) beta undefined
2838 \yl@xdiff=15\relax
2839 \yl@ydiff=63\relax
2840 \putlatom{-258}{-70}{\@memberb}% % left type
2841 {%
2842 \WaveBonds%
2843 \Put@Line(-171,103)(-3,-5){72}% % single bond at 5
2844 }%
2845 \else\if\@tmpc U%(U) alpha undefined
2846 \yl@xdiff=15\relax
2847 \yl@ydiff=29\relax
2848 \putlatom{-326}{74}{\@memberb}% % left type
2849 {%
2850 \WaveBonds%
2851 \Put@Line(-171,103)(-1,0){140}% % single bond at 5
2852 }%
2853 \fi\fi\fi\fi\fi%
2854 \fi\fi\fi\fi
2855 \else\if\@tmpb D%double bond
2856 \yl@xdiff=10\relax
2857 \yl@ydiff=62\relax
2858 \putlatom{-301}{-27}{\@memberb}% % left type
2859 \Put@Line(-168,96)(-5,-3){120}% % double bond at 5
2860 \Put@Line(-174,121)(-5,-3){120}% % double bond at 5
2861 \else\if\@tmpb B%beta single bond
2862 \yl@xdiff=10\relax
2863 \yl@ydiff=56\relax
2864 \putlatom{-301}{-27}{\@memberb}% % left type
2865 {%
2866 \thicklines%
2867 \Put@Line(-171,103)(-5,-3){120}% % single bond at 5
2868 }%
2869 \else\if\@tmpb A%alpha single bond
2870 \yl@xdiff=-10\relax
2871 \yl@ydiff=56\relax
2872 \putlatom{-301}{-27}{\@memberb}% % left type
2873 \dotorline(-171,103)(-5,-3){120}/(-171,103)(-311,31)%
2874 \else\if\@tmpb U%undefined single bond
2875 \yl@xdiff=-10\relax
2876 \yl@ydiff=56\relax
2877 \putlatom{-301}{-27}{\@memberb}% % right type
2878 {%
2879 \WaveBonds%
2880 \Put@Line(-171,103)(-5,-3){120}% % single wave bond at 5
2881 }%
2882 \else\if\@tmpb F%fused bond
2883 {\let\@tmpb=\@tmpc\@clipfusefalse
2884 \Put@Direct(-171,103){\setatombondc}%
2885 }%
2886 \else\if\@tmpb G%fused bond
2887 {\let\@tmpb=\@tmpc\@clipfusefalse
2888 \Put@Direct(-171,103){\setatombondd}%
2889 }%
2890 \else%
2891 \yl@xdiff=10\relax
2892 \yl@ydiff=56\relax
2893 \putlatom{-301}{-27}{\@memberb}% % left type
2894 \Put@Line(-171,103)(-5,-3){120}%% single bond at 5
2895 \fi\fi\fi\fi%
2896 \fi\fi\fi%
2897 \fi}% end of \@subste
2898 % \end{macrocode}
2899 % \end{macro}
2900 %
2901 % The |\@substf| command is used for placing a substituent (|\@memberb|) at
2902 % the 6-position (upper-left) of a vertical six-membered ring.
2903 % \changes{v1.02}{1998/10/31}{Adding \cs{yl@xdiff} and \cs{yl@ydiff}}
2904 % \changes{v2.00}{1998/12/15}{New bond modifiers: FA, FB, GA, GB, Su, and Sd}
2905 % \changes{v4.03}{2005/07/20}{wave bonds for stereochemistry: U, FU, GU, SU, SV}
2906 % \begin{macro}{\@substf}
2907 % \begin{macrocode}
2908 % %%%%%%%%%%%%%%%
2909 % % subst. on 6 %
2910 % %%%%%%%%%%%%%%%
2911 \def\@substf{%
2912 \if@fclip %clipping
2913 \if\@tmpb S%single bond
2914 \ifx\@tmpc\empty%
2915 \yl@xdiff=10\relax
2916 \yl@ydiff=24\relax
2917 \putlatom{-311}{363}{\@memberb}% % left type
2918 \Put@Line(-201,327)(-5,3){100}% % single bond at 6
2919 \else\if\@tmpc B%(B) beta
2920 \yl@xdiff=8\relax
2921 \yl@ydiff=38\relax
2922 \putlatom{-268}{420}{\@memberb}% % left type
2923 {%
2924 \thicklines%
2925 \Put@Line(-201,358)(-3,5){60}% % single bond at 6
2926 }%
2927 \else\if\@tmpc A%(A) alpha
2928 \yl@xdiff=17\relax
2929 \yl@ydiff=23\relax
2930 \putlatom{-318}{280}{\@memberb}% % left type
2931 \dotorline(-201,303)(-1,0){100}/(-201,303)(-301,303)%
2932 \else\if\@tmpc u%(u) up --- (B) beta
2933 \yl@xdiff=17\relax
2934 \yl@ydiff=23\relax
2935 \putlatom{-318}{280}{\@memberb}% % left type
2936 {%
2937 \thicklines%
2938 \Put@Line(-201,303)(-1,0){100}% % single bond at 6
2939 }%
2940 \else\if\@tmpc d%(d) down --- (A) alpha
2941 \yl@xdiff=8\relax
2942 \yl@ydiff=38\relax
2943 \putlatom{-268}{420}{\@memberb}% % left type
2944 \dotorline(-201,358)(-3,5){60}/(-201,358)(-261,458)%
2945 \else\if\@tmpc b%(b) beta
2946 \yl@xdiff=8\relax
2947 \yl@ydiff=38\relax
2948 \putlatom{-268}{420}{\@memberb}% % left type
2949 \Put@Line(-201,358)(-3,5){60}% % single bond at 6
2950 \else\if\@tmpc a%(a) alpha
2951 \yl@xdiff=17\relax
2952 \yl@ydiff=23\relax
2953 \putlatom{-318}{280}{\@memberb}% % left type
2954 \Put@Line(-201,303)(-1,0){100}% % single bond at 6
2955 \else\if\@tmpc V%(V) beta undefined
2956 \yl@xdiff=8\relax
2957 \yl@ydiff=38\relax
2958 \putlatom{-268}{420}{\@memberb}% % left type
2959 {%
2960 \WaveBonds%
2961 \Put@Line(-201,358)(-3,5){60}% % single bond at 6
2962 }%
2963 \else\if\@tmpc U%(U) alpha undefined
2964 \yl@xdiff=17\relax
2965 \yl@ydiff=23\relax
2966 \putlatom{-318}{280}{\@memberb}% % left type
2967 {%
2968 \WaveBonds%
2969 \Put@Line(-201,303)(-1,0){100}% % single bond at 6
2970 }%
2971 \fi\fi\fi\fi\fi%
2972 \fi\fi\fi\fi
2973 \else\if\@tmpb D%double bond
2974 \yl@xdiff=10\relax
2975 \yl@ydiff=6\relax
2976 \putlatom{-311}{363}{\@memberb}% % left type
2977 \Put@Line(-194,331)(-5,3){100}% % double bond at 6
2978 \Put@Line(-200,305)(-5,3){100}% % double bond at 6
2979 \else\if\@tmpb B%beta single bond
2980 \yl@xdiff=10\relax
2981 \yl@ydiff=24\relax
2982 \putlatom{-311}{363}{\@memberb}% % left type
2983 {%
2984 \thicklines%
2985 \Put@Line(-201,327)(-5,3){100}% % single bond at 6
2986 }%
2987 \else\if\@tmpb A%alpha single bond
2988 \yl@xdiff=10\relax
2989 \yl@ydiff=24\relax
2990 \putlatom{-311}{363}{\@memberb}% % left type
2991 \dotorline(-201,327)(-5,3){100}/(-201,327)(-301,387)%
2992 \else\if\@tmpb U%undefined single bond
2993 \yl@xdiff=10\relax
2994 \yl@ydiff=24\relax
2995 \putlatom{-311}{363}{\@memberb}% % right type
2996 {%
2997 \WaveBonds%
2998 \Put@Line(-211,327)(-5,3){100}% % single wave bond at 6
2999 }%
3000 \else\if\@tmpb F%fused bond
3001 {\let\@tmpb=\@tmpc\@clipfusetrue
3002 \Put@Direct(-171,303){\setatombondg}%
3003 }%
3004 \else\if\@tmpb G%fused bond
3005 {\let\@tmpb=\@tmpc\@clipfusetrue
3006 \Put@Direct(-171,303){\setatombonda}%
3007 }%
3008 \else%
3009 \yl@xdiff=10\relax
3010 \yl@ydiff=24\relax
3011 \putlatom{-311}{363}{\@memberb}% % left type
3012 \Put@Line(-201,327)(-5,3){100}% % single bond at 6
3013 \fi\fi\fi\fi%
3014 \fi\fi\fi
3015 \else%no clipping
3016 \if\@tmpb S%single bond
3017 \ifx\@tmpc\empty%
3018 \yl@xdiff=10\relax
3019 \yl@ydiff=12\relax
3020 \putlatom{-301}{363}{\@memberb}% % left type
3021 \Put@Line(-171,303)(-5,3){120}% % single bond at 6
3022 \else\if\@tmpc B%(B) beta
3023 \yl@xdiff=15\relax
3024 \yl@ydiff=13\relax
3025 \putlatom{-258}{410}{\@memberb}% % left type
3026 {%
3027 \thicklines%
3028 \Put@Line(-171,303)(-3,5){72}% % single bond at 6
3029 }%
3030 \else\if\@tmpc A%(A) alpha
3031 \yl@xdiff=15\relax
3032 \yl@ydiff=23\relax
3033 \putlatom{-326}{280}{\@memberb}% % left type
3034 \dotorline(-171,303)(-1,0){140}/(-171,303)(-311,303)%
3035 \else\if\@tmpc u%(u) up --- (B) beta
3036 \yl@xdiff=15\relax
3037 \yl@ydiff=23\relax
3038 \putlatom{-326}{280}{\@memberb}% % left type
3039 {%
3040 \thicklines%
3041 \Put@Line(-171,303)(-1,0){140}% % single bond at 6
3042 }%
3043 \else\if\@tmpc d%(d) down --- (A) alpha
3044 \yl@xdiff=15\relax
3045 \yl@ydiff=13\relax
3046 \putlatom{-258}{410}{\@memberb}% % left type
3047 \dotorline(-171,303)(-3,5){72}/(-171,303)(-243,423)%
3048 \else\if\@tmpc b%(b) beta
3049 \yl@xdiff=15\relax
3050 \yl@ydiff=13\relax
3051 \putlatom{-258}{410}{\@memberb}% % left type
3052 \Put@Line(-171,303)(-3,5){72}% % single bond at 6
3053 \else\if\@tmpc a%(a) alpha
3054 \yl@xdiff=15\relax
3055 \yl@ydiff=23\relax
3056 \putlatom{-326}{280}{\@memberb}% % left type
3057 \Put@Line(-171,303)(-1,0){140}% % single bond at 6
3058 \else\if\@tmpc V%(V) beta undefined
3059 \yl@xdiff=15\relax
3060 \yl@ydiff=13\relax
3061 \putlatom{-258}{410}{\@memberb}% % left type
3062 {%
3063 \WaveBonds%
3064 \Put@Line(-171,303)(-3,5){72}% % single bond at 6
3065 }%
3066 \else\if\@tmpc U%(U) alpha undefined
3067 \yl@xdiff=15\relax
3068 \yl@ydiff=23\relax
3069 \putlatom{-326}{280}{\@memberb}% % left type
3070 {%
3071 \WaveBonds%
3072 \Put@Line(-171,303)(-1,0){140}% % single bond at 6
3073 }%
3074 \fi\fi\fi\fi\fi%
3075 \fi\fi\fi\fi%
3076 \else\if\@tmpb D%double bond
3077 \yl@xdiff=10\relax
3078 \yl@ydiff=6\relax
3079 \putlatom{-301}{363}{\@memberb}% % left type
3080 \Put@Line(-168,310)(-5,3){120}% % double bond at 6
3081 \Put@Line(-174,284)(-5,3){120}% % double bond at 6
3082 \else\if\@tmpb B%beta single bond
3083 \yl@xdiff=10\relax
3084 \yl@ydiff=12\relax
3085 \putlatom{-301}{363}{\@memberb}% % left type
3086 {%
3087 \thicklines%
3088 \Put@Line(-171,303)(-5,3){120}% % single bond at 6
3089 }%
3090 \else\if\@tmpb A%alpha single bond
3091 \yl@xdiff=-10\relax
3092 \yl@ydiff=12\relax
3093 \putlatom{-301}{363}{\@memberb}% % left type
3094 \dotorline(-171,303)(-5,3){120}/(-171,303)(-311,375)%
3095 \else\if\@tmpb U%undefined single bond
3096 \yl@xdiff=-10\relax
3097 \yl@ydiff=12\relax
3098 \putlatom{-301}{363}{\@memberb}% % right type
3099 {%
3100 \WaveBonds%
3101 \Put@Line(-171,303)(-5,3){120}% % single wave bond at 6
3102 }%
3103 \else\if\@tmpb F%fused bond
3104 {\let\@tmpb=\@tmpc\@clipfusefalse
3105 \Put@Direct(-171,303){\setatombondg}%
3106 }%
3107 \else\if\@tmpb G%fused bond
3108 {\let\@tmpb=\@tmpc\@clipfusefalse
3109 \Put@Direct(-171,303){\setatombonda}%
3110 }%
3111 \else%
3112 \yl@xdiff=10\relax
3113 \yl@ydiff=12\relax
3114 \putlatom{-301}{363}{\@memberb}% % left type
3115 \Put@Line(-171,303)(-5,3){120}% % single bond at 6
3116 \fi\fi\fi\fi%
3117 \fi\fi\fi
3118 \fi}% end of \@substf
3119 % \end{macrocode}
3120 % \end{macro}
3121 %
3122 % \subsection{Coloring Atoms and Bonds}
3123 %
3124 % The \textsf{xcolor} package is loaded to color atoms and bonds.
3125 % \changes{v5.01}{2011/02/24}{Added}
3126 % \begin{macrocode}
3127 \RequirePackage{xcolor}
3128 % \end{macrocode}
3129 %
3130 % The command |\addbscolor| is defined to color substitution bonds.
3131 % \changes{v5.00}{2010/10/01}{Bond coloring}
3132 % \changes{v5.01}{2011/02/24}{Bond coloring: \cs{addbscolor} changed and
3133 % \cs{Addbscolor} added. But deleted.}
3134 %
3135 % \begin{verbatim}
3136 % e.g., \addbscolor{\cyan}{CH$_{3}$}
3137 % e.g., \Addbscolor{cyan}{CH$_{3}$}
3138 % \end{verbatim}
3139 %
3140 % \begin{macro}{\addbscolor}
3141 % \begin{macro}{\Addbscolor}
3142 % \begin{macro}{\setbscolor}
3143 % \begin{macrocode}
3144 \def\bondsubstcolor{}
3145 %\def\psbondsubstcolor{black}%added 2011/02/24
3146 \def\addbscolor#1#2{#2\gdef\bondsubstcolor{#1}}
3147 %\def\addbscolor#1#2{#2\gdef\bondsubstcolor{#1}%changed 2011/02/24
3148 %\gdef\psbondsubstcolor{\expandafter\@gobble\string #1}}
3149 %\def\Addbscolor#1#2{#2%added 2011/02/24
3150 %\expandafter\gdef\expandafter\bondsubstcolor\expandafter{\csname #1\endcsname}%
3151 %\gdef\psbondsubstcolor{#1}}
3152 \newif\ifbscolor
3153 \def\setbscolor{\addbscolor{}{}%
3154 \edef\@tmptmpb{\@tmpb}\edef\@tmptmpc{\@tmpc}%store original values
3155 \ifbscolor\setbox0=\hbox{\@memberb}\bondsubstcolor\setbox0=\hbox{}\fi
3156 \edef\@tmpb{\@tmptmpb}\edef\@tmpc{\@tmptmpc}%recover the original values
3157 }%
3158 \def\setBScolor#1{\begingroup\setbscolor#1\addbscolor{}{}\endgroup}%
3159 \def\bscolorswON{\bscolortrue}
3160 \def\bscolorswOFF{\bscolorfalse}
3161 \bscolorswON%default bond coloring
3162 % \end{macrocode}
3163 % \end{macro}
3164 % \end{macro}
3165 % \end{macro}
3166 %
3167 % In addition to standard colors (e.g., \verb/\cyan/),
3168 % any colors can be created by using \verb/\defineXyMcolor/.
3169 % \changes{v5.01}{2011/02/24}{New color: \cs{defineXyMcolor}}
3170 %
3171 % \begin{verbatim}
3172 % \defineXyMcolor{My color name}{Color model}{Color value}
3173 % e.g.,
3174 % \defineXyMcolor{MyXyMcolor}{cmyk}{1,0,1,0}
3175 % \end{verbatim}
3176 % This defines a color named ``MyXyMcolor'' and the
3177 % corresponding control sequence \verb/MyXyMcolor/,
3178 % just as ``cyan'' corresponds to \verb/\cyan/.
3179 %
3180 % \begin{macro}{\defineXyMcolor}
3181 % \begin{macrocode}
3182 \def\defineXyMcolor#1#2#3{%
3183 \definecolor{#1}{#2}{#3}%
3184 \@ifundefined{psset}{%
3185 \expandafter\def\csname#1\endcsname{\color{#1}}}%
3186 {\expandafter\def\csname#1\endcsname{\color{#1}%
3187 \psset{linecolor=#1}}}}
3188 % \end{macrocode}
3189 % \end{macro}
3190 %
3191 % Pre-defined colors (e.g., olive) in the \textsf{xcolor} package
3192 % can be renamed to be applied to atom- and bond-coloring.
3193 % \changes{v5.01}{2011/02/24}{New color: \cs{XyMcolor}}
3194 %
3195 % \begin{verbatim}
3196 % \XyMcolor{new color_name}[color_model]{pre-defined color_name}
3197 % \end{verbatime}
3198 % e.g.,
3199 % \begin{verbatim}
3200 % \XyMcolor{XyMolive}{olive}
3201 % \end{verbatime}
3202 %
3203 % \begin{macro}{\XyMcolor}
3204 % \begin{macrocode}
3205 \def\XyMcolor#1{%
3206 \@ifnextchar[{\@XyMcolor{#1}}{\@XyMcolor{#1}[]}}
3207 \def\@XyMcolor#1[#2]#3{%
3208 \edef\tempColorModel{#2}%
3209 \ifx\tempColorModel\@empty\colorlet{#1}{#3}\else
3210 \colorlet{#1}[#2]{#3}\fi
3211 \@ifundefined{psset}{%
3212 \expandafter\def\csname#1\endcsname{\color{#1}}}%
3213 {\expandafter\def\csname#1\endcsname{\color{#1}%
3214 \psset{linecolor=#1}}}}
3215 % \end{macrocode}
3216 % \end{macro}
3217 %
3218 % \subsection{Setting-up substituents and bonds on a six-membered ring}
3219 %
3220 % The |\setsixringv| takes 5 arguments.
3221 %
3222 % \begin{verbatim}
3223 % **************************************************************
3224 % * setting of atoms and bonds on a vertical six-membered ring *
3225 % **************************************************************
3226 %
3227 % \setsixringv{SUBSLIST}{AD}{LOWER}{UPPER}{ORDER}
3228 % \end{verbatim}
3229 %
3230 % The first argument |SUBSLIST| is a list of substituents, which is
3231 % represented in the standard format of \XyMTeX{}.
3232 %
3233 % \begin{verbatim}
3234 % SUBSLIST: list of substituents (max 6 substitution positions)
3235 %
3236 % for n = 1 to 6
3237 %
3238 % nD : exocyclic double bond at n-atom
3239 % n or nS : exocyclic single bond at n-atom
3240 % nA : alpha single bond at n-atom
3241 % nB : beta single bond at n-atom
3242 % nSA : alpha single bond at n-atom (boldface)
3243 % nSB : beta single bond at n-atom (dotted line)
3244 % nSa : alpha (not specified) single bond at n-atom
3245 % nSb : beta (not specified) single bond at n-atom
3246 %
3247 % nSd : alpha single bond at n-atom (dotted line)
3248 % with an alternative direction to nSA
3249 % nSu : beta single bond at n-atom (boldface)
3250 % with an alternative direction to nSB
3251 % nFA : alpha single bond at n-atom (dotted line)
3252 % for ring fusion
3253 % nFB : beta single bond at n-atom (boldface)
3254 % for ring fusion
3255 % nGA : alpha single bond at n-atom (dotted line)
3256 % for the other ring fusion
3257 % nGB : beta single bond at n-atom (boldface)
3258 % for the other ring fusion
3259 % \end{verbatim}
3260 %
3261 % The second argument |AD| is an adjustment value, which adjusts the original
3262 % set of locant numbers into the standard one between 1 to 6 for drawing
3263 % a six-membered ring.
3264 % The effective range of the standared set of locant numbers is
3265 % restricted by the auguments |LOWER| and |UPPER|. A minus value of
3266 % the last argument shows the anti-clockwise numbering, while zero or
3267 % a plus value represents the clockwise numbering.
3268 %
3269 % \begin{verbatim}
3270 %
3271 % AD : adjustment e.g. 0 for six-membered rings
3272 % LOWER : lower limit LOWER < effective range < UPPER
3273 % UPPER : upper limit
3274 % ORDER : >= 0 clockwise, <0 anti-clockwise
3275 % \end{verbatim}
3276 %
3277 % \changes{v1.02}{1998/10/31}{Adding switches \cs{@yla} etc.}
3278 %
3279 % \begin{macro}{\setsixringv}
3280 % \begin{macrocode}
3281 \def\setsixringv#1#2#3#4#5{%
3282 \@forsemicol\member:=#1\do{%
3283 \ifx\member\empty\else%
3284 \expandafter\@m@mb@r\member;\relax%
3285 \expandafter\threech@r\@membera{}{}%
3286 \ifx\@memberb\@yl\else
3287 \ifnum#5 < 0\relax%
3288 \@tmpaa=-\@tmpa\relax \advance\@tmpaa by#2\relax%
3289 \else\@tmpaa=\@tmpa\relax \advance\@tmpaa by#2\relax \fi
3290 \ifnum\@tmpaa >#3\relax%
3291 \ifnum\@tmpaa <#4\relax%
3292 \ifcase\@tmpaa%0 omit
3293 % \end{macrocode}
3294 %
3295 % The following commands are not used in a revised version
3296 % because of the direct use of |\ifx\@memberb\@yl\else...\fi|.
3297 %
3298 % \begin{macrocode}
3299 % %\or \if@yla\else\@substa\fi% subst. on 1
3300 % %\or \if@ylb\else\@substb\fi% subst. on 2
3301 % %\or \if@ylc\else\@substc\fi% subst. on 3
3302 % %\or \if@yld\else\@substd\fi% subst. on 4
3303 % %\or \if@yle\else\@subste\fi% subst. on 5
3304 % %\or \if@ylf\else\@substf\fi% subst. on 6
3305 % \end{macrocode}
3306 %
3307 % \begin{macrocode}
3308 \or{\setbscolor\@substa\addbscolor{}{}}%% subst. on 1
3309 \or{\setbscolor\@substb\addbscolor{}{}}%% subst. on 2
3310 \or{\setbscolor\@substc\addbscolor{}{}}%% subst. on 3
3311 \or{\setbscolor\@substd\addbscolor{}{}}%% subst. on 4
3312 \or{\setbscolor\@subste\addbscolor{}{}}%% subst. on 5
3313 \or{\setbscolor\@substf\addbscolor{}{}}%% subst. on 6
3314 \fi%end of ifcase
3315 \fi%
3316 \fi\fi\fi}}%
3317 % \end{macrocode}
3318 % \end{macro}
3319 %
3320 % \subsection{Setting-up substituents and bonds on a decaline ring}
3321 %
3322 % The command |\setdecaringv|
3323 % has been stopped to use and replaced by |\setsixringv|
3324 % (version 1.02).
3325 %
3326 % Definition of |\setdecaringv| has been deleted (version 2.01).
3327 %
3328 % \subsection{Setting-up substituents and bonds at fused positions}
3329 %
3330 % The command |\ylfusedposition| is to obtain the shift values
3331 % |\@ylii| and |\@yli| which are used for shifting the standard
3332 % point of a substituent.
3333 % The locant flags such as |\@ylatrue| have been stopped to use.
3334 % \changes{v1.02}{1998/10/11}{Delete \cs{@ylatrue} etc.}
3335 % \changes{v1.02}{1998/10/13}{Adding \cs{@fused@link} condition}
3336 % \changes{v1.02}{1998/10/31}{Commands for setting substituents}
3337 %
3338 % \begin{macro}{\ylfusedposition}
3339 % \begin{macrocode}
3340 \def\ylfusedposition#1#2#3#4#5{%
3341 \@@ylswfalse%\@reset@ylsw
3342 \@forsemicol\member:=#1\do{%
3343 \if@@ylsw\else%
3344 \ifx\member\empty\else%
3345 \expandafter\@m@mb@r\member;\relax%
3346 \expandafter\threech@r\@membera{}{}%
3347 \ifx\@memberb\@yl\relax\@@ylswtrue\else\@@ylswfalse\fi
3348 \if@@ylsw
3349 \ifnum#5<0\relax%
3350 \@tmpaa=-\@tmpa\relax\advance\@tmpaa by #2\relax%
3351 \@fused@linktrue
3352 \else\@tmpaa=\@tmpa\relax\advance\@tmpaa by #2\relax
3353 \@fused@linkfalse\fi%
3354 \ifnum\@tmpaa >#3\relax%
3355 \ifnum\@tmpaa <#4\relax%
3356 \ifcase\@tmpaa%
3357 % %%%%%%%%%%%%%%%%%%
3358 % 0 fused positions % F == (171,303) G == (171,103)
3359 % %%%%%%%%%%%%%%%%%%
3360 \if\@tmpb F%single bond at F (fused position)
3361 \def\@ylii{-171}\def\@yli{-303}\@ylswtrue%\@ylatrue% subst. on 0
3362 \else\if\@tmpb G%single bond at G (fused position)
3363 \def\@ylii{-171}\def\@yli{-103}\@ylswtrue%\@ylatrue% subst. on 0
3364 \fi\fi%
3365 % %%%%%%%%%%%%%%%%
3366 \or% subst. on 1 F == (0,406), G == (171,303) for \@fused@linkfalse
3367 % subst. on 1 G == (0,406), F == (171,303) for \@fused@linktrue
3368 % %%%%%%%%%%%%%%%%
3369 \if@fused@link
3370 \if\@tmpb G%single bond at F (5,-3) fusion
3371 \def\@ylii{0}\def\@yli{-406}\@ylswtrue%\@ylatrue% subst. on 1
3372 \else\if\@tmpb F%single bond at G
3373 \def\@ylii{-171}\def\@yli{-303}\@ylswtrue%\@ylatrue% subst. on 1
3374 \fi\fi%
3375 \else
3376 \if\@tmpb F%single bond at F (5,-3) fusion
3377 \def\@ylii{0}\def\@yli{-406}\@ylswtrue%\@ylatrue% subst. on 1
3378 \else\if\@tmpb G%single bond at G
3379 \def\@ylii{-171}\def\@yli{-303}\@ylswtrue%\@ylatrue% subst. on 1
3380 \fi\fi%
3381 \fi
3382 % %%%%%%%%%%%%%%%%
3383 \or% subst. on 2 F == (0,406), G == (-171,303) for \@fused@linkfalse
3384 % subst. on 2 G == (0,406), F == (-171,303) for \@fused@linktrue
3385 % %%%%%%%%%%%%%%%%
3386 \if@fused@link
3387 \if\@tmpb G%single bond at (-5,-3) fusion
3388 \def\@ylii{0}\def\@yli{-406}\@ylswtrue%\@ylatrue% subst. on 2
3389 \else\if\@tmpb F%single bond at G
3390 \def\@ylii{171}\def\@yli{-303}\@ylswtrue%\@ylatrue% subst. on 2
3391 \fi\fi%
3392 \else
3393 \if\@tmpb F%single bond at (-5,-3) fusion
3394 \def\@ylii{0}\def\@yli{-406}\@ylswtrue%\@ylatrue% subst. on 2
3395 \else\if\@tmpb G%single bond at G
3396 \def\@ylii{171}\def\@yli{-303}\@ylswtrue%\@ylatrue% subst. on 2
3397 \fi\fi%
3398 \fi
3399 % %%%%%%%%%%%%%%%%%%
3400 \or %3 fused positions % G == (303,171) F == (103,171)
3401 % %%%%%%%%%%%%%%%%%%
3402 \if\@tmpb G%single bond at G (fused position)
3403 \def\@ylii{-303}\def\@yli{-171}\@ylswtrue%\@ylatrue% subst. on 3
3404 \else\if\@tmpb F%single bond at F (fused position)
3405 \def\@ylii{-103}\def\@yli{-171}\@ylswtrue%\@ylatrue% subst. on 3
3406 \fi\fi%
3407 \fi%end of ifcase
3408 \fi\fi\fi\fi\fi}}% end of \ylfusedposition
3409 % \end{macrocode}
3410 % \end{macro}
3411 %
3412 % The bond-setting commands |\GFbonda|, |\GFbondb|, |\GFbondc| and
3413 % |\GFbondd|, which are separated from the old |\setfusedbond| command,
3414 % are used to place a bond and a substituent at a fulsed position of
3415 % such a compound as a decaline.
3416 %
3417 % \changes{v1.02}{1998/10/12}{Separate \cs{GFbonda} etc.}
3418 % \changes{v1.02}{1998/10/31}{Adding \cs{yl@xdiff} and \cs{yl@ydiff}}
3419 % \changes{v4.03}{2005/07/20}{wave bonds for stereochemistry: FU, GU}
3420 %
3421 % \begin{macro}{\GFbonda}
3422 % \begin{macro}{\GFbonda@a}
3423 % \begin{macro}{\GFbonda@b}
3424 % \begin{macrocode}
3425 \def\GFbonda{%
3426 % %%%%%%%%%%%%%%%%%%
3427 % 0 fused positions % F == (171,303) G == (171,103)
3428 % %%%%%%%%%%%%%%%%%%
3429 \if\@tmpb F%single bond at F (fused position)
3430 \GFbonda@a
3431 \else\if\@tmpb G%single bond at G (fused position)
3432 \GFbonda@b
3433 \fi\fi%
3434 }%end of GFbonda
3435 % \end{macrocode}
3436 %
3437 % \begin{macrocode}
3438 \def\GFbonda@a{%
3439 \if\@tmpc B%beta single bond
3440 \yl@xdiff=31\relax%171-140
3441 \yl@ydiff=-17\relax%460-(303+140)
3442 \putlratom{140}{460}{\@memberb}% % left or right type
3443 {%
3444 \thicklines%
3445 \Put@Line(171,303)(0,1){140}% % single bond at F
3446 }%
3447 \else\if\@tmpc A%alpha single bond
3448 \yl@xdiff=31\relax%171-140
3449 \yl@ydiff=-17\relax%460-(303+140)
3450 \putlratom{140}{460}{\@memberb}% % left or right type
3451 \dotorline(171,303)(0,1){140}/(171,303)(171,443)%
3452 \else\if\@tmpc U% unspecified single bond
3453 \yl@xdiff=31\relax%171-140
3454 \yl@ydiff=-17\relax%460-(303+140)
3455 \putlratom{140}{460}{\@memberb}% % left or right type
3456 % \Put@Direct(168,303){$\wr$}% unspecified single bond at F
3457 % \Put@Direct(168,353){$\wr$}%
3458 % \Put@Direct(168,403){$\wr$}%
3459 {%
3460 \WaveBonds%
3461 \Put@Line(171,303)(0,1){140}% % single wave bond at 1
3462 }%
3463 \else\if\@tmpc S%beta single bond
3464 \yl@xdiff=31\relax%171-140
3465 \yl@ydiff=-17\relax%460-(303+140)
3466 \putlratom{140}{460}{\@memberb}% % left or right type
3467 \Put@Line(171,303)(0,1){140}% % single bond at F
3468 \else\ifx\@tmpc\empty%beta single bond
3469 \yl@xdiff=31\relax%171-140
3470 \yl@ydiff=-17\relax%460-(303+140)
3471 \putlratom{140}{460}{\@memberb}% % left or right type
3472 \Put@Line(171,303)(0,1){140}% % single bond at F
3473 \fi\fi\fi\fi\fi%
3474 }%
3475 % \end{macrocode}
3476 %
3477 % \begin{macrocode}
3478 \def\GFbonda@b{%
3479 \if\@tmpc B%beta single bond
3480 \yl@xdiff=31\relax%171-140
3481 \yl@ydiff=90\relax%127-(140-103)
3482 \putlratom{140}{-127}{\@memberb}% % left or right type
3483 {%
3484 \thicklines%
3485 \Put@Line(171,103)(0,-1){140}% % single bond at G
3486 }%
3487 \else\if\@tmpc A%alpha single bond
3488 \yl@xdiff=31\relax%171-140
3489 \yl@ydiff=90\relax%127-(140-103)
3490 \putlratom{140}{-127}{\@memberb}% % left or right type
3491 \dotorline(171,103)(0,-1){140}/(171,103)(171,-37)%
3492 \else\if\@tmpc U%beta single bond
3493 \yl@xdiff=31\relax%171-140
3494 \yl@ydiff=90\relax%127-(140-103)
3495 \putlratom{140}{-127}{\@memberb}% % left or right type
3496 % \Put@Direct(168,43){$\wr$}% unspecified single bond at G
3497 % \Put@Direct(168,-8){$\wr$}%
3498 % \Put@Direct(168,-57){$\wr$}%
3499 {%
3500 \WaveBonds%
3501 \Put@Line(171,103)(0,-1){140}% % single wave bond at 1
3502 }%
3503 \else\if\@tmpc S%alpha single bond
3504 \yl@xdiff=31\relax%171-140
3505 \yl@ydiff=90\relax%127-(140-103)
3506 \putlratom{140}{-127}{\@memberb}% % left or right type
3507 \Put@Line(171,103)(0,-1){140}% % single bond at G
3508 \else\ifx\@tmpc\empty%alpha single bond
3509 \yl@xdiff=31\relax%171-140
3510 \yl@ydiff=90\relax%127-(140-103)
3511 \putlratom{140}{-127}{\@memberb}% % left or right type
3512 \Put@Line(171,103)(0,-1){140}% % single bond at G
3513 \fi\fi\fi\fi\fi%
3514 }%
3515 % \end{macrocode}
3516 % \end{macro}
3517 % \end{macro}
3518 % \end{macro}
3519 %
3520 % \begin{macro}{\GFbondb}
3521 % \begin{macro}{\GFbondb@a}
3522 % \begin{macro}{\GFbondb@b}
3523 % \begin{macrocode}
3524 \def\GFbondb{%
3525 % %%%%%%%%%%%%%%%%
3526 % subst. on 1 F == (0,406), G == (171,303) for \@fused@linkfalse
3527 % subst. on 1 G == (0,406), F == (171,303) for \@fused@linktrue
3528 % %%%%%%%%%%%%%%%%
3529 \if@fused@link
3530 \if\@tmpb G%single bond at G (5,-3) fusion
3531 \GFbondb@a
3532 \else\if\@tmpb F%single bond at F
3533 \GFbondb@b
3534 \fi\fi%
3535 \else
3536 \if\@tmpb F%single bond at F (5,-3) fusion
3537 \GFbondb@a
3538 \else\if\@tmpb G%single bond at G
3539 \GFbondb@b
3540 \fi\fi%
3541 \fi
3542 }% end of \GFbondb
3543 % \end{macrocode}
3544 %
3545 % \begin{macrocode}
3546 \def\GFbondb@a{%
3547 \if\@tmpc B%beta single bond
3548 \yl@xdiff=10\relax%
3549 \yl@ydiff=22\relax%
3550 \putlatom{-130}{466}{\@memberb}% % left type
3551 {%
3552 \thicklines%
3553 \Put@Line(0,406)(-5,3){120}% % single bond at F
3554 }%
3555 \else\if\@tmpc A%alpha single bond
3556 \yl@xdiff=10\relax%
3557 \yl@ydiff=22\relax%
3558 \putlatom{-130}{466}{\@memberb}% % left type
3559 \dotorline(0,406)(-5,3){120}/(0,406)(-120,478)%
3560 \else\if\@tmpc U%unspecified single bond
3561 \yl@xdiff=10\relax%
3562 \yl@ydiff=22\relax%
3563 \putlatom{-130}{466}{\@memberb}% % left type
3564 {%
3565 \WaveBonds%
3566 \Put@Line(0,406)(-5,3){120}% % single bond at F
3567 }%
3568 \else\if\@tmpc S%beta single bond
3569 \yl@xdiff=10\relax%
3570 \yl@ydiff=22\relax%
3571 \putlatom{-130}{466}{\@memberb}% % left type
3572 \Put@Line(0,406)(-5,3){120}% % single bond at F
3573 \else\ifx\@tmpc\empty%beta single bond
3574 \yl@xdiff=10\relax%
3575 \yl@ydiff=22\relax%
3576 \putlatom{-130}{466}{\@memberb}% % left type
3577 \Put@Line(0,406)(-5,3){120}% % single bond at F
3578 \else\if\@tmpc D%beta single bond (downward)
3579 \yl@xdiff=31\relax%
3580 \yl@ydiff=90\relax%
3581 \putlratom{-31}{176}{\@memberb}% % left or right type
3582 {%
3583 \thicklines%
3584 \Put@Line(0,406)(0,-1){140}% % single bond at F
3585 }%
3586 \else\if\@tmpc C%alpha single bond (downward)
3587 \yl@xdiff=31\relax%
3588 \yl@ydiff=90\relax%
3589 \putlratom{-31}{176}{\@memberb}% % left or right type
3590 \dotorline(0,406)(0,-1){140}/(0,406)(0,266)%
3591 \fi\fi\fi\fi\fi\fi\fi%
3592 }% end of \GFbondb@a
3593 % \end{macrocode}
3594 %
3595 % \begin{macrocode}
3596 \def\GFbondb@b{%
3597 \if\@tmpc B%beta single bond
3598 \yl@xdiff=-10\relax%
3599 \yl@ydiff=58\relax%
3600 \putratom{301}{173}{\@memberb}% % right type
3601 {%
3602 \thicklines%
3603 \Put@Line(171,303)(5,-3){120}% % single bond at G
3604 }%
3605 \else\if\@tmpc A%alpha single bond
3606 \yl@xdiff=-10\relax%
3607 \yl@ydiff=58\relax%
3608 \putratom{301}{173}{\@memberb}% % right type
3609 \dotorline(171,303)(5,-3){120}/(171,303)(291,231)%
3610 \else\if\@tmpc U%unspecified single bond
3611 \yl@xdiff=-10\relax%
3612 \yl@ydiff=58\relax%
3613 \putratom{301}{173}{\@memberb}% % right type
3614 {%
3615 \WaveBonds%
3616 \Put@Line(171,303)(5,-3){120}% % single bond at G
3617 }%
3618 \else\if\@tmpc S%alpha single bond
3619 \yl@xdiff=-10\relax%
3620 \yl@ydiff=58\relax%
3621 \putratom{301}{173}{\@memberb}% % right type
3622 \Put@Line(171,303)(5,-3){120}% % single bond at G
3623 \else\ifx\@tmpc\empty%alpha single bond
3624 \yl@xdiff=-10\relax%
3625 \yl@ydiff=58\relax%
3626 \putratom{301}{173}{\@memberb}% % right type
3627 \Put@Line(171,303)(5,-3){120}% % single bond at G
3628 \else\if\@tmpc D%beta single bond (upward)
3629 \yl@xdiff=31\relax%
3630 \yl@ydiff=-17\relax%
3631 \putlratom{140}{460}{\@memberb}% % left or right type
3632 {%
3633 \thicklines%
3634 \Put@Line(171,303)(0,1){140}% % single bond at G
3635 }%
3636 \else\if\@tmpc C%alpha single bond (upward)
3637 \yl@xdiff=31\relax%
3638 \yl@ydiff=-17\relax%
3639 \putlratom{140}{460}{\@memberb}% % left or right type
3640 \dotorline(171,303)(0,1){140}/(171,303)(171,443)%
3641 \fi\fi\fi\fi\fi\fi\fi%
3642 }% end of \GFbondb@b
3643 % \end{macrocode}
3644 % \end{macro}
3645 % \end{macro}
3646 % \end{macro}
3647 %
3648 % \begin{macro}{\GFbondc}
3649 % \begin{macro}{\GFbondc@a}
3650 % \begin{macro}{\GFbondc@b}
3651 % \begin{macrocode}
3652 \def\GFbondc{%
3653 % %%%%%%%%%%%%%%%%
3654 % subst. on 2 F == (0,406), G == (-171,303) for \@fused@linkfalse
3655 % subst. on 2 G == (0,406), F == (-171,303) for \@fused@linktrue
3656 % %%%%%%%%%%%%%%%%
3657 \if@fused@link
3658 \if\@tmpb G%single bond at (-5,-3) fusion
3659 \GFbondc@a
3660 \else\if\@tmpb F%single bond at F
3661 \GFbondc@b
3662 \fi\fi%
3663 \else
3664 \if\@tmpb F%single bond at (-5,-3) fusion
3665 \GFbondc@a
3666 \else\if\@tmpb G%single bond at G
3667 \GFbondc@b
3668 \fi\fi%
3669 \fi
3670 }% end of \GFbondc
3671 % \end{macrocode}
3672 %
3673 % \begin{macrocode}
3674 \def\GFbondc@a{%
3675 \if\@tmpc B%beta single bond
3676 \yl@xdiff=-10\relax%
3677 \yl@ydiff=12\relax%
3678 \putratom{130}{466}{\@memberb}% % right type
3679 {%
3680 \thicklines%
3681 \Put@Line(0,406)(5,3){120}% % single bond at F
3682 }%
3683 \else\if\@tmpc A%alpha single bond
3684 \yl@xdiff=-10\relax%
3685 \yl@ydiff=12\relax%
3686 \putratom{130}{466}{\@memberb}% % right type
3687 \dotorline(0,406)(5,3){120}/(0,406)(120,478)%
3688 \else\if\@tmpc U%unspecified single bond
3689 \yl@xdiff=-10\relax%
3690 \yl@ydiff=12\relax%
3691 \putratom{130}{466}{\@memberb}% % right type
3692 {%
3693 \WaveBonds%
3694 \Put@Line(0,406)(5,3){120}% % single bond at F
3695 }%
3696 \else\if\@tmpc S%beta single bond
3697 \yl@xdiff=-10\relax%
3698 \yl@ydiff=12\relax%
3699 \putratom{130}{466}{\@memberb}% % right type
3700 \Put@Line(0,406)(5,3){120}% % single bond at F
3701 \else\ifx\@tmpc\empty%beta single bond
3702 \yl@xdiff=-10\relax%
3703 \yl@ydiff=12\relax%
3704 \putratom{130}{466}{\@memberb}% % right type
3705 \Put@Line(0,406)(5,3){120}% % single bond at F
3706 \else\if\@tmpc D%beta single bond (downward)
3707 \yl@xdiff=31\relax%
3708 \yl@ydiff=90\relax%
3709 \putlratom{-31}{176}{\@memberb}% % left or right type
3710 {%
3711 \thicklines%
3712 \Put@Line(0,406)(0,-1){140}% % single bond at F
3713 }%
3714 \else\if\@tmpc C%alpha single bond (downward)
3715 \yl@xdiff=31\relax%
3716 \yl@ydiff=90\relax%
3717 \putlratom{-31}{176}{\@memberb}% % left or right type
3718 \dotorline(0,406)(0,-1){140}/(0,406)(0,266)%
3719 \fi\fi\fi\fi\fi\fi\fi%
3720 }% end of \GFbondc@a
3721 % \end{macrocode}
3722 %
3723 % \begin{macrocode}
3724 \def\GFbondc@b{%
3725 \if\@tmpc B%beta single bond
3726 \yl@xdiff=10\relax%
3727 \yl@ydiff=59\relax%
3728 \putlatom{-301}{173}{\@memberb}% % left type
3729 {%
3730 \thicklines%
3731 \Put@Line(-171,303)(-5,-3){120}% % single bond at G
3732 }%
3733 \else\if\@tmpc A%alpha single bond
3734 \yl@xdiff=10\relax%
3735 \yl@ydiff=59\relax%
3736 \putlatom{-301}{173}{\@memberb}% % left type
3737 \dotorline(-171,303)(-5,-3){120}/(-171,303)(-291,231)%
3738 \else\if\@tmpc U%unspecified single bond
3739 \yl@xdiff=10\relax%
3740 \yl@ydiff=59\relax%
3741 \putlatom{-301}{173}{\@memberb}% % left type
3742 {%
3743 \WaveBonds%
3744 \Put@Line(-171,303)(-5,-3){120}% single bond at G
3745 }%
3746 \else\if\@tmpc S%alpha single bond
3747 \yl@xdiff=10\relax%
3748 \yl@ydiff=59\relax%
3749 \putlatom{-301}{173}{\@memberb}% % left type
3750 \Put@Line(-171,303)(-5,-3){120}% single bond at G
3751 \else\ifx\@tmpc\empty%alpha single bond
3752 \yl@xdiff=10\relax%
3753 \yl@ydiff=59\relax%
3754 \putlatom{-301}{173}{\@memberb}% % left type
3755 \Put@Line(-171,303)(-5,-3){120}% single bond at G
3756 \else\if\@tmpc D%beta single bond (upward)
3757 \yl@xdiff=-30\relax%
3758 \yl@ydiff=-17\relax%
3759 \putlratom{201}{460}{\@memberb}% % left or right type
3760 {%
3761 \thicklines%
3762 \Put@Line(-171,303)(0,1){140}% % single bond at G
3763 }%
3764 \else\if\@tmpc C%alpha single bond (upward)
3765 \yl@xdiff=-30\relax%
3766 \yl@ydiff=-17\relax%
3767 \putlratom{201}{460}{\@memberb}% % left or right type
3768 \dotorline(-171,303)(0,1){140}/(-171,303)(-171,443)%
3769 \fi\fi\fi\fi\fi\fi\fi%
3770 }% end of \GFbondc@b
3771 % \end{macrocode}
3772 % \end{macro}
3773 % \end{macro}
3774 % \end{macro}
3775 %
3776 % \begin{macro}{\GFbondd}
3777 % \begin{macrocode}
3778 \def\GFbondd{%
3779 % %%%%%%%%%%%%%%%%%%
3780 % 3 fused positions % G == (303,171) F == (103,171)
3781 % %%%%%%%%%%%%%%%%%%
3782 \if\@tmpb G%single bond at G (fused position)
3783 \if\@tmpc B%beta single bond
3784 \yl@xdiff=-17\relax%
3785 \yl@ydiff=31\relax%
3786 \putlratom{460}{140}{\@memberb}% % left or right type
3787 {%
3788 \thicklines%
3789 \Put@Line(303,171)(1,0){140}% % single bond at G
3790 }%
3791 \else\if\@tmpc A%alpha single bond
3792 \yl@xdiff=-17\relax%
3793 \yl@ydiff=31\relax%
3794 \putlratom{460}{140}{\@memberb}% % left or right type
3795 \dotorline(303,171)(1,0){140}/(303,171)(443,171)%
3796 \else\if\@tmpc U% unspecified single bond
3797 \yl@xdiff=-17\relax%
3798 \yl@ydiff=31\relax%
3799 \putlratom{460}{140}{\@memberb}% % left or right type
3800 % \Put@Direct(303,148){$\sim$}% unspecified single bond at G
3801 % \Put@Direct(353,148){$\sim$}%
3802 % \Put@Direct(403,148){$\sim$}%
3803 {%
3804 \WaveBonds%
3805 \Put@Line(303,171)(1,0){140}% single bond at G
3806 }%
3807 \else\if\@tmpc S%beta single bond
3808 \yl@xdiff=-17\relax%
3809 \yl@ydiff=31\relax%
3810 \putlratom{460}{140}{\@memberb}% % left or right type
3811 \Put@Line(303,171)(1,0){140}% % single bond at G
3812 \else\ifx\@tmpc\empty%beta single bond
3813 \yl@xdiff=-17\relax%
3814 \yl@ydiff=31\relax%
3815 \putlratom{460}{140}{\@memberb}% % left or right type
3816 \Put@Line(303,171)(1,0){140}% % single bond at G
3817 \fi\fi\fi\fi\fi%
3818 \else\if\@tmpb F%single bond at F (fused position)
3819 \if\@tmpc B%beta single bond
3820 \yl@xdiff=20\relax%
3821 \yl@ydiff=31\relax%
3822 % \putlratom{-127}{140}{\@memberb}% % left or right type
3823 \putlatom{-57}{140}{\@memberb}% % left type
3824 {%
3825 \thicklines%
3826 \Put@Line(103,171)(-1,0){140}% % single bond at F
3827 }%
3828 \else\if\@tmpc A%alpha single bond
3829 \yl@xdiff=20\relax%
3830 \yl@ydiff=31\relax%
3831 \putlatom{-57}{140}{\@memberb}% % left type
3832 \dotorline(103,171)(-1,0){140}/(103,171)(-37,171)%
3833 \else\if\@tmpc U%beta single bond
3834 \yl@xdiff=20\relax%
3835 \yl@ydiff=31\relax%
3836 \putlatom{-57}{140}{\@memberb}% % left type
3837 % \Put@Direct(40,148){$\sim$}% unspecified single bond at F
3838 % \Put@Direct(-13,148){$\sim$}%
3839 % \Put@Direct(-62,148){$\sim$}%
3840 {%
3841 \WaveBonds%
3842 \Put@Line(103,171)(-1,0){140}% single bond at F
3843 }%
3844 \else\if\@tmpc S%alpha single bond
3845 \yl@xdiff=20\relax%
3846 \yl@ydiff=31\relax%
3847 \putlatom{-57}{140}{\@memberb}% % left type
3848 \Put@Line(103,171)(-1,0){140}% % single bond at F
3849 \else\ifx\@tmpc\empty%alpha single bond
3850 \yl@xdiff=20\relax%
3851 \yl@ydiff=31\relax%
3852 \putlatom{-57}{140}{\@memberb}% % left type
3853 \Put@Line(103,171)(-1,0){140}% % single bond at F
3854 \fi\fi\fi\fi\fi%
3855 \fi\fi%
3856 }% end of \GFbondd
3857 % \end{macrocode}
3858 % \end{macro}
3859 %
3860 % The |\setfusedbond| takes 5 arguments.
3861 %
3862 % \begin{verbatim}
3863 % ******************************************************
3864 % * setting of atoms and bonds at fused bond positions *
3865 % ******************************************************
3866 %
3867 % \setfusedbond{SUBSLIST}{AD}{LOWER}{UPPER}{ORDER}
3868 % \end{verbatim}
3869 %
3870 % The first argument |SUBSLIST| is a list of substituents, which is
3871 % represented in the standard format of \XyMTeX{}.
3872 % Substituents at the fused positions (vertical bonds) are designated by
3873 % the number 0 and the following bond modifiers.
3874 % They are placed by means of the |\GFbonda| command.
3875 %
3876 % \begin{verbatim}
3877 % SUBSLIST: list of substituents (max 3 substitution positions)
3878 %
3879 % for 0 (vertical (0,1) fused positions)
3880 % F == (171,303) G == (171,103)
3881 %
3882 % 0FA : alpha single bond at F
3883 % 0FB : beta single bond at F
3884 % 0FU : unspecified single bond at F
3885 % 0GA : alpha single bond at G
3886 % 0GB : beta single bond at G
3887 % 0GU : unspecified single bond at G
3888 %
3889 % \end{verbatim}
3890 %
3891 % Substituents at the fused positions (diagonal bonds) are designated by
3892 % the number 1 and the following bond modifiers.
3893 % They are placed by means of the |\GFbondb| command.
3894 % \begin{verbatim}
3895 % for 1 (diagonal (5,-3) fused positions)
3896 % F == (0,406), G == (171,303)
3897 %
3898 % 1FA : alpha single bond at F
3899 % 1FB : beta single bond at F
3900 % 1FC : alpha single bond (downward) at F
3901 % 1FD : beta single bond (downward) at F
3902 % 1FU : unspecified single bond at F
3903 % 1GA : alpha single bond at G
3904 % 1GB : beta single bond at G
3905 % 1GC : alpha single bond (upward) at G
3906 % 1GD : beta single bond (upward) at G
3907 % 1GU : unspecified single bond at G
3908 %
3909 % \end{verbatim}
3910 %
3911 % Substituents at the fused positions (other diagonal bonds) are designated by
3912 % the number 2 and the following bond modifiers.
3913 % They are placed by means of the |\GFbondc| command.
3914 % \begin{verbatim}
3915 % for 2 (diagonal (-5,-3) fused positions)
3916 % F == (0,406), G == (-171,303)
3917 %
3918 % 2FA : alpha single bond at F
3919 % 2FB : beta single bond at F
3920 % 2FC : alpha single bond (upward) at F
3921 % 2FD : beta single bond (upward) at F
3922 % 2FU : unspecified single bond at F
3923 % 2GA : alpha single bond at G
3924 % 2GB : beta single bond at G
3925 % 2GC : alpha single bond (downward) at G
3926 % 2GD : beta single bond (downward) at G
3927 % 2GU : unspecified single bond at G
3928 %
3929 % \end{verbatim}
3930 %
3931 % Substituents at the fused positions (horizontal bonds) are designated by
3932 % the number 3 and the following bond modifiers.
3933 % They are placed by means of the |\GFbondd| command.
3934 % \begin{verbatim}
3935 % for 3 (horizontal (1,0) fused positions)
3936 % G == (303,171) F == (103,171)
3937 % %%%% F == (303,171) G == (103,171)
3938 %
3939 % 3FA : alpha single bond at F
3940 % 3FB : beta single bond at F
3941 % 3FU : unspecified single bond at F
3942 % 3GA : alpha single bond at G
3943 % 3GB : beta single bond at G
3944 % 3GU : unspecified single bond at G
3945 % \end{verbatim}
3946 %
3947 % The second argument |AD| is an adjustment value, which adjusts the original
3948 % set of locant numbers into the standard one between 0 to 3 for drawing
3949 % substituents on fused positions.
3950 % The effective range of the standared set of locant numbers is
3951 % restricted by the auguments |LOWER| and |UPPER|. A minus value of
3952 % the last argument shows the anti-clockwise numbering, while zero or
3953 % a plus value represents the clockwise numbering.
3954 %
3955 % \begin{verbatim}
3956 %
3957 % AD : adjustment e.g. 0 for six-membered rings
3958 % LOWER : lower limit LOWER < effective range < UPPER
3959 % UPPER : upper limit
3960 % ORDER : >= 0 clockwise, <0 anti-clockwise
3961 %
3962 % \end{verbatim}
3963 %
3964 % \changes{v1.02}{1998/10/31}{Adding the \cs{\@memberb=\@y} condition}
3965 % \changes{v1.02}{1998/10/31}{Separate \cs{GFbonda} etc.}
3966 % \changes{v4.03}{2005/07/20}{Concrete wave bonds for stereochemistry: FU, GU}
3967 % \changes{v5.00}{2010/10/01}{Coloring Substitution Bond}
3968 %
3969 % \begin{macro}{\setfusedbond}
3970 % \begin{macrocode}
3971 \newif\if@fused@link \@fused@linkfalse
3972 \def\setfusedbond#1#2#3#4#5{%
3973 \@forsemicol\member:=#1\do{%
3974 \ifx\member\empty\else%
3975 \expandafter\@m@mb@r\member;\relax%
3976 \expandafter\threech@r\@membera{}{}%
3977 \ifx\@memberb\@yl\else
3978 \ifnum#5<0\relax%
3979 \@tmpaa=-\@tmpa\relax\advance\@tmpaa by #2\relax\@fused@linktrue
3980 \else\@tmpaa=\@tmpa\relax\advance\@tmpaa by #2\relax
3981 \@fused@linkfalse\fi%
3982 \ifnum\@tmpaa >#3\relax%
3983 \ifnum\@tmpaa <#4\relax%
3984 % \end{macrocode}
3985 %
3986 % \begin{macrocode}
3987 \ifcase\@tmpaa%
3988 % %%%%%%%%%%%%%%%%%%
3989 % 0 fused positions % F == (171,303) G == (171,103)
3990 % %%%%%%%%%%%%%%%%%%
3991 {\setbscolor\GFbonda\addbscolor{}{}}%2010/10/01
3992 % %%%%%%%%%%%%%%%%
3993 \or% subst. on 1 F == (0,406), G == (171,303)
3994 % %%%%%%%%%%%%%%%%
3995 {\setbscolor\GFbondb\addbscolor{}{}}%2010/10/01
3996 %\GFbondb
3997 % %%%%%%%%%%%%%%%%
3998 \or% subst. on 2 F == (0,406), G == (-171,303) for \@fused@linkfalse
3999 % subst. on 2 G == (0,406), F == (-171,303) for \@fused@linktrue
4000 % %%%%%%%%%%%%%%%%
4001 {\setbscolor\GFbondc\addbscolor{}{}}%2010/10/01
4002 %\GFbondc
4003 % %%%%%%%%%%%%%%%%%%
4004 \or %3 fused positions % G == (303,171) F == (103,171)
4005 % %%%%%%%%%%%%%%%%%%
4006 {\setbscolor\GFbondd\addbscolor{}{}}%2010/10/01
4007 %\GFbondd
4008 \fi%end of ifcase
4009 \fi\fi\fi\fi}}%
4010 % \end{macrocode}
4011 % \end{macro}
4012 %
4013 % \subsection{Setting-up substituents and bonds at a given position}
4014 %
4015 % The |\setatombond| takes 3 arguments.
4016 %
4017 % \begin{verbatim}
4018 % ********************************************************
4019 % * setting of atoms and bonds at an appropiate position *
4020 % ********************************************************
4021 %
4022 % \setatombond{SUBSLIST}{AD}{SLOPE}
4023 % \end{verbatim}
4024 %
4025 % The first argument |SUBSLIST| is a list of substituents, which is
4026 % represented in the standard format of \XyMTeX{}.
4027 % Substituents at the fused positions (vertical bonds) are designated by
4028 % the number 0 and the following bond modifiers.
4029 %
4030 % \begin{verbatim}
4031 % SUBSLIST: list of substituents (max 3 substitution positions)
4032 % \end{verbatim}
4033 %
4034 % The second argument |AD| is an adjustment value, which adjusts the original
4035 % locant number into 1.
4036 %
4037 % \begin{verbatim}
4038 % AD : adjustment,
4039 % Set AD as being 1 = position number - AD
4040 % \end{verbatim}
4041 %
4042 % The argument |SLOPE| has the following meanings.
4043 % \begin{verbatim}
4044 % SLOPE
4045 %
4046 % 1 : (0,1) 7 : (0,-1)
4047 % 2 : (3,5) 8 : (-3,-5)
4048 % 3 : (5,3) 9 : (-5,-3)
4049 % 4 : (1,0) 10 : (-1,0)
4050 % 5 : (5,-3) 11 : (-5,3)
4051 % 6 : (3,-5) 12 : (-3,5)
4052 % \end{verbatim}
4053 %
4054 % \changes{v1.02}{1998/10/14}{The bond-setting commands such as
4055 % \cs{setatombonda} ... \cs{setatombondh} are separated from
4056 % the original \cs{setatombond}.}
4057 %
4058 % \begin{macro}{\setatombond}
4059 % \begin{macrocode}
4060 \newif\if@clipfuse \@clipfusefalse
4061 \def\setatombond#1#2#3{%
4062 \@forsemicol\member:=#1\do{%
4063 \ifx\member\empty\else%
4064 \expandafter\@m@mb@r\member;\relax%
4065 \expandafter\threech@r\@membera{}{}%
4066 \@tmpaa=\@tmpa\relax\advance\@tmpaa by #2\relax
4067 \ifx\@memberb\@yl\else
4068 \ifnum\@tmpaa >0\relax%
4069 \ifnum\@tmpaa <2\relax%
4070 \ifcase\@tmpaa%
4071 % %%%%%%%%%%%%%%%%
4072 \or% subst. on 1
4073 % %%%%%%%%%%%%%%%%
4074 %
4075 % (0,1)
4076 %
4077 \ifnum#3=1\relax%(upward)
4078 {\setbscolor\setatombonda\addbscolor{}{}}%2010/10/01
4079 % \setatombonda
4080 %
4081 % (1,0)
4082 %
4083 \else\ifnum#3=4\relax%(right)
4084 {\setbscolor\setatombondb\addbscolor{}{}}%2010/10/01
4085 % \setatombondb
4086 %
4087 % (0,-1)
4088 %
4089 \else\ifnum#3=7\relax%(downward)
4090 {\setbscolor\setatombondc\addbscolor{}{}}%2010/10/01
4091 % \setatombondc
4092 %
4093 % (-5,3)
4094 %
4095 \else\ifnum#3=11\relax%
4096 {\setbscolor\setatombondd\addbscolor{}{}}%2010/10/01
4097 % \setatombondd
4098 %
4099 % (5,-3)
4100 %
4101 \else\ifnum#3=5\relax%
4102 {\setbscolor\setatombonde\addbscolor{}{}}%2010/10/01
4103 % \setatombonde
4104 %
4105 % (5,3)
4106 %
4107 \else\ifnum#3=3\relax%
4108 {\setbscolor\setatombondf\addbscolor{}{}}%2010/10/01
4109 % \setatombondf
4110 %
4111 % (-5,-3)
4112 %
4113 \else\ifnum#3=9\relax%
4114 {\setbscolor\setatombondg\addbscolor{}{}}%2010/10/01
4115 % \setatombondg
4116 %
4117 % (-1,0)
4118 %
4119 \else\ifnum#3=10\relax%(left)
4120 {\setbscolor\setatombondh\addbscolor{}{}}%2010/10/01
4121 % \setatombondh
4122 \fi\fi\fi\fi\fi\fi\fi\fi%
4123 \fi%end of ifcase
4124 \fi\fi\fi\fi}}%
4125 % \end{macrocode}
4126 % \end{macro}
4127 %
4128 % The command |\setatombond| uses the following bond-setting
4129 % commands.
4130 % \changes{v4.03}{2005/07/20}{Concrete wave bonds for stereochemistry: FU, GU}
4131 %
4132 % \begin{macro}{\setatombonda}
4133 % \begin{macro}{\setatombondb}
4134 % \begin{macro}{\setatombondc}
4135 % \begin{macro}{\setatombondd}
4136 % \begin{macro}{\setatombonde}
4137 % \begin{macro}{\setatombondf}
4138 % \begin{macro}{\setatombondg}
4139 % \begin{macro}{\setatombondh}
4140 % \changes{v1.02}{1998/10/31}{Adding \cs{yl@xdiff} and \cs{yl@ydiff}}
4141 % \begin{macrocode}
4142 \def\setatombonda{%upward (0,1)
4143 \if@clipfuse%
4144 \if\@tmpb B%beta single bond
4145 \yl@xdiff=31\relax
4146 \yl@ydiff=-17\relax
4147 {%
4148 \thicklines%
4149 \Put@Line(0,40)(0,1){100}% % single bond at 1
4150 }%
4151 \else\if\@tmpb A%alpha single bond
4152 \yl@xdiff=31\relax
4153 \yl@ydiff=-17\relax
4154 \dotorline(0,40)(0,1){100}/(0,40)(0,140)%
4155 \else\if\@tmpb U% unspecified single bond
4156 \yl@xdiff=31\relax
4157 \yl@ydiff=-17\relax
4158 % \Put@Direct(-3,30){$\wr$}% unspecified single bond at 1
4159 % \Put@Direct(-3,80){$\wr$}%
4160 {%
4161 \WaveBonds%
4162 \Put@Line(0,40)(0,1){100}% single bond at F
4163 }%
4164 \else\if\@tmpb S%beta single bond
4165 \yl@xdiff=31\relax
4166 \yl@ydiff=-17\relax
4167 \Put@Line(0,40)(0,1){100}% % single bond at 1
4168 \else\if\@tmpb D%double bond
4169 \yl@xdiff=31\relax
4170 \yl@ydiff=-17\relax
4171 \Put@Line(-10,40)(0,1){100}% % single bond at 1
4172 \Put@Line(10,40)(0,1){100}% % single bond at 1
4173 \else\if\@tmpb T%double bond
4174 \yl@xdiff=31\relax
4175 \yl@ydiff=-17\relax
4176 \Put@Line(-15,40)(0,1){100}% % single bond at 1
4177 \Put@Line(0,40)(0,1){100}% % single bond at 1
4178 \Put@Line(15,40)(0,1){100}% % single bond at 1
4179 \else\ifx\@tmpb\empty%beta single bond
4180 \yl@xdiff=31\relax
4181 \yl@ydiff=-17\relax
4182 \Put@Line(0,40)(0,1){100}% % single bond at 1
4183 \fi\fi\fi\fi\fi\fi\fi%
4184 \putlratom{-31}{157}{\@memberb}% % left or right type
4185 \else%no clip
4186 \if\@tmpb B%beta single bond
4187 \yl@xdiff=31\relax
4188 \yl@ydiff=-17\relax
4189 {%
4190 \thicklines%
4191 \Put@Line(0,0)(0,1){140}% % single bond at 1
4192 }%
4193 \else\if\@tmpb A%alpha single bond
4194 \yl@xdiff=31\relax
4195 \yl@ydiff=-17\relax
4196 \dotorline(0,0)(0,1){140}/(0,0)(0,140)%
4197 \else\if\@tmpb U% unspecified single bond
4198 \yl@xdiff=31\relax
4199 \yl@ydiff=-17\relax
4200 % \Put@Direct(-3,0){$\wr$}% unspecified single bond at 1
4201 % \Put@Direct(-3,50){$\wr$}%
4202 % \Put@Direct(-3,100){$\wr$}%
4203 {%
4204 \WaveBonds%
4205 \Put@Line(0,0)(0,1){140}% single bond at F
4206 }%
4207 \else\if\@tmpb S%beta single bond
4208 \yl@xdiff=31\relax
4209 \yl@ydiff=-17\relax
4210 \Put@Line(0,0)(0,1){140}% % single bond at 1
4211 \else\if\@tmpb D%beta single bond
4212 \yl@xdiff=31\relax
4213 \yl@ydiff=-17\relax
4214 \Put@Line(-10,0)(0,1){140}% % single bond at 1
4215 \Put@Line(10,0)(0,1){140}% % single bond at 1
4216 \else\if\@tmpb T%beta single bond
4217 \yl@xdiff=31\relax
4218 \yl@ydiff=-17\relax
4219 \Put@Line(-15,0)(0,1){140}% % single bond at 1
4220 \Put@Line(0,0)(0,1){140}% % single bond at 1
4221 \Put@Line(15,0)(0,1){140}% % single bond at 1
4222 \else\ifx\@tmpb\empty%beta single bond
4223 \yl@xdiff=31\relax
4224 \yl@ydiff=-17\relax
4225 \Put@Line(0,0)(0,1){140}% % single bond at 1
4226 \fi\fi\fi\fi\fi\fi\fi%
4227 \putlratom{-31}{157}{\@memberb}% % left or right type
4228 \fi%
4229 }% end of \setatombonda
4230 % \end{macrocode}
4231 %
4232 % \changes{v1.02}{1998/10/31}{Adding \cs{yl@xdiff} and \cs{yl@ydiff}}
4233 % \changes{v4.03}{2005/07/20}{Concrete wave bonds for stereochemistry: FU, GU}
4234 % \begin{macrocode}
4235 \def\setatombondb{%(right) (1,0)
4236 \if@clipfuse%
4237 \if\@tmpb B%beta single bond
4238 \yl@xdiff=-17\relax
4239 \yl@ydiff=31\relax
4240 {%
4241 \thicklines%
4242 \Put@Line(30,0)(1,0){110}% % single bond at 1
4243 }%
4244 \else\if\@tmpb A%alpha single bond
4245 \yl@xdiff=-17\relax
4246 \yl@ydiff=31\relax
4247 \dotorline(30,0)(1,0){110}/(30,0)(140,0)%
4248 \else\if\@tmpb U%beta single bond
4249 \yl@xdiff=-17\relax
4250 \yl@ydiff=31\relax
4251 {%
4252 \WaveBonds%
4253 \Put@Line(30,0)(1,0){110}% % single bond at 1
4254 }%
4255 \else\if\@tmpb S%alpha single bond
4256 \yl@xdiff=-17\relax
4257 \yl@ydiff=31\relax
4258 \Put@Line(40,0)(1,0){100}% % single bond at 1
4259 \else\if\@tmpb D%alpha single bond
4260 \yl@xdiff=-17\relax
4261 \yl@ydiff=31\relax
4262 \Put@Line(40,10)(1,0){100}% % single bond at 1
4263 \Put@Line(40,-10)(1,0){100}% % single bond at 1
4264 \else\if\@tmpb T%alpha single bond
4265 \yl@xdiff=-17\relax
4266 \yl@ydiff=31\relax
4267 \Put@Line(40,15)(1,0){100}% % single bond at 1
4268 \Put@Line(40,0)(1,0){100}% % single bond at 1
4269 \Put@Line(40,-15)(1,0){100}% % single bond at 1
4270 \else\ifx\@tmpb\empty%alpha single bond
4271 \yl@xdiff=-17\relax
4272 \yl@ydiff=31\relax
4273 \Put@Line(40,0)(1,0){100}% % single bond at 1
4274 \fi\fi\fi\fi\fi\fi\fi%
4275 \putratom{157}{-31}{\@memberb}% % right type only
4276 \else%
4277 \if\@tmpb B%beta single bond
4278 \yl@xdiff=-17\relax
4279 \yl@ydiff=31\relax
4280 {%
4281 \thicklines%
4282 \Put@Line(0,0)(1,0){140}% % single bond at 1
4283 }%
4284 \else\if\@tmpb A%alpha single bond
4285 \yl@xdiff=-17\relax
4286 \yl@ydiff=31\relax
4287 \dotorline(0,0)(1,0){140}/(0,0)(140,0)%
4288 \else\if\@tmpb U%beta single bond
4289 \yl@xdiff=-17\relax
4290 \yl@ydiff=31\relax
4291 {%
4292 \WaveBonds%
4293 \Put@Line(0,0)(1,0){140}% % single bond at 1
4294 }%
4295 \else\if\@tmpb S%alpha single bond
4296 \yl@xdiff=-17\relax
4297 \yl@ydiff=31\relax
4298 \Put@Line(0,0)(1,0){140}% % single bond at 1
4299 \else\if\@tmpb D%alpha single bond
4300 \yl@xdiff=-17\relax
4301 \yl@ydiff=31\relax
4302 \Put@Line(0,10)(1,0){140}% % single bond at 1
4303 \Put@Line(0,-10)(1,0){140}% % single bond at 1
4304 \else\if\@tmpb T%alpha single bond
4305 \yl@xdiff=-17\relax
4306 \yl@ydiff=31\relax
4307 \Put@Line(0,-15)(1,0){140}% % single bond at 1
4308 \Put@Line(0,0)(1,0){140}% % single bond at 1
4309 \Put@Line(0,15)(1,0){140}% % single bond at 1
4310 \else\ifx\@tmpb\empty%alpha single bond
4311 \yl@xdiff=-17\relax
4312 \yl@ydiff=31\relax
4313 \Put@Line(0,0)(1,0){140}% % single bond at 1
4314 \fi\fi\fi\fi\fi\fi\fi%
4315 \putratom{157}{-31}{\@memberb}% % right type only
4316 \fi%
4317 }% end of \setatombondb
4318 % \end{macrocode}
4319 %
4320 % \changes{v1.02}{1998/10/31}{Adding \cs{yl@xdiff} and \cs{yl@ydiff}}
4321 % \changes{v4.03}{2005/07/20}{Concrete wave bonds for stereochemistry: FU, GU}
4322 % \begin{macrocode}
4323 \def\setatombondc{%(downward) (0,-1)
4324 \if@clipfuse%
4325 \if\@tmpb B%beta single bond
4326 \yl@xdiff=31\relax
4327 \yl@ydiff=90\relax
4328 {%
4329 \thicklines%
4330 \Put@Line(0,-40)(0,-1){100}% % single bond at 1
4331 }%
4332 \else\if\@tmpb A%alpha single bond
4333 \yl@xdiff=31\relax
4334 \yl@ydiff=90\relax
4335 \dotorline(0,-40)(0,-1){100}/(0,-40)(0,-140)%
4336 \else\if\@tmpb U%beta single bond
4337 \yl@xdiff=31\relax
4338 \yl@ydiff=90\relax
4339 % \Put@Direct(-3,-90){$\wr$}% unspecified single bond at 1
4340 % \Put@Direct(-3,-140){$\wr$}%
4341 {%
4342 \WaveBonds%
4343 \Put@Line(0,-40)(0,-1){100}% % single bond at 1
4344 }%
4345 \else\if\@tmpb S%alpha single bond
4346 \yl@xdiff=31\relax
4347 \yl@ydiff=90\relax
4348 \Put@Line(0,-40)(0,-1){100}% % single bond at 1
4349 \else\if\@tmpb D%alpha single bond
4350 \yl@xdiff=31\relax
4351 \yl@ydiff=90\relax
4352 \Put@Line(10,-40)(0,-1){100}% % single bond at 1
4353 \Put@Line(-10,-40)(0,-1){100}% % single bond at 1
4354 \else\if\@tmpb T%alpha single bond
4355 \yl@xdiff=31\relax
4356 \yl@ydiff=90\relax
4357 \Put@Line(15,-40)(0,-1){100}% % single bond at 1
4358 \Put@Line(0,-40)(0,-1){100}% % single bond at 1
4359 \Put@Line(-15,-40)(0,-1){100}% % single bond at 1
4360 \else\ifx\@tmpb\empty%alpha single bond
4361 \yl@xdiff=31\relax
4362 \yl@ydiff=90\relax
4363 \Put@Line(0,-40)(0,-1){100}% % single bond at 1
4364 \fi\fi\fi\fi\fi\fi\fi%
4365 \putlratom{-31}{-230}{\@memberb}% % left or right type
4366 \else%no clipping
4367 \if\@tmpb B%beta single bond
4368 \yl@xdiff=31\relax
4369 \yl@ydiff=90\relax
4370 {%
4371 \thicklines%
4372 \Put@Line(0,0)(0,-1){140}% % single bond at 1
4373 }%
4374 \else\if\@tmpb A%alpha single bond
4375 \yl@xdiff=31\relax
4376 \yl@ydiff=90\relax
4377 \dotorline(0,0)(0,-1){140}/(0,0)(0,-140)%
4378 \else\if\@tmpb U%beta single bond
4379 \yl@xdiff=31\relax
4380 \yl@ydiff=90\relax
4381 % \Put@Direct(-3,-60){$\wr$}% unspecified single bond at 1
4382 % \Put@Direct(-3,-110){$\wr$}%
4383 % \Put@Direct(-3,-160){$\wr$}%
4384 {%
4385 \WaveBonds%
4386 \Put@Line(0,0)(0,-1){140}% % single bond at 1
4387 }%
4388 \else\if\@tmpb S%alpha single bond
4389 \yl@xdiff=31\relax
4390 \yl@ydiff=90\relax
4391 \Put@Line(0,0)(0,-1){140}% % single bond at 1
4392 \else\if\@tmpb D%alpha single bond
4393 \yl@xdiff=31\relax
4394 \yl@ydiff=90\relax
4395 \Put@Line(10,0)(0,-1){140}% % single bond at 1
4396 \Put@Line(-10,0)(0,-1){140}% % single bond at 1
4397 \else\if\@tmpb T%alpha single bond
4398 \yl@xdiff=31\relax
4399 \yl@ydiff=90\relax
4400 \Put@Line(15,0)(0,-1){140}% % single bond at 1
4401 \Put@Line(0,0)(0,-1){140}% % single bond at 1
4402 \Put@Line(-15,0)(0,-1){140}% % single bond at 1
4403 \else\ifx\@tmpb\empty%alpha single bond
4404 \yl@xdiff=31\relax
4405 \yl@ydiff=90\relax
4406 \Put@Line(0,0)(0,-1){140}% % single bond at 1
4407 \fi\fi\fi\fi\fi\fi\fi%
4408 \putlratom{-31}{-230}{\@memberb}% % left or right type
4409 \fi%
4410 }% end of \setatombondc
4411 % \end{macrocode}
4412 %
4413 % \begin{macrocode}
4414 \def\setatombondd{% (-5,3)
4415 \if@clipfuse%
4416 \yl@xdiff=20\relax
4417 \yl@ydiff=18\relax
4418 \if\@tmpb B%beta single bond
4419 {%
4420 \thicklines%
4421 \Put@Line(-30,18)(-5,3){100}% % single bond at 1
4422 }%
4423 \else\if\@tmpb A%alpha single bond
4424 \dotorline(-30,18)(-5,3){100}/(-30,18)(-130,78)%
4425 \else\if\@tmpb U%unspecified single bond
4426 {%
4427 \WaveBonds%
4428 \Put@Line(-30,18)(-5,3){100}% % single bond at 1
4429 }%
4430 \else\if\@tmpb S%beta single bond
4431 \Put@Line(-30,18)(-5,3){100}% % single bond at 1
4432 \else\if\@tmpb D%beta single bond
4433 \Put@Line(-36,8)(-5,3){100}% % single bond at 1
4434 \Put@Line(-24,24)(-5,3){100}% % single bond at 1
4435 \else\if\@tmpb T%beta single bond
4436 \Put@Line(-39,3)(-5,3){100}% % single bond at 1
4437 \Put@Line(-30,18)(-5,3){100}% % single bond at 1
4438 \Put@Line(-21,33)(-5,3){100}% % single bond at 1
4439 \else\ifx\@tmpb\empty%beta single bond
4440 \Put@Line(-30,18)(-5,3){100}% % single bond at 1
4441 \fi\fi\fi\fi\fi\fi\fi%
4442 \putlatom{-150}{60}{\@memberb}% % left type
4443 \else%no clipping
4444 \yl@xdiff=20\relax
4445 \yl@ydiff=18\relax
4446 \if\@tmpb B%beta single bond
4447 {%
4448 \thicklines%
4449 \Put@Line(0,0)(-5,3){130}% % single bond at 1
4450 }%
4451 \else\if\@tmpb A%alpha single bond
4452 \dotorline(0,0)(-5,3){130}/(0,0)(-130,78)%
4453 \else\if\@tmpb U%unspecified single bond
4454 {%
4455 \WaveBonds%
4456 \Put@Line(0,0)(-5,3){130}% % single bond at 1
4457 }%
4458 \else\if\@tmpb S%beta single bond
4459 \Put@Line(0,0)(-5,3){130}% % single bond at 1
4460 \else\if\@tmpb D%beta single bond
4461 \Put@Line(6,10)(-5,3){130}% % single bond at 1
4462 \Put@Line(-6,-10)(-5,3){130}% % single bond at 1
4463 \else\if\@tmpb T%beta single bond
4464 \Put@Line(9,15)(-5,3){130}% % single bond at 1
4465 \Put@Line(0,0)(-5,3){130}% % single bond at 1
4466 \Put@Line(-9,-15)(-5,3){130}% % single bond at 1
4467 \else\ifx\@tmpb\empty%beta single bond
4468 \Put@Line(0,0)(-5,3){130}% % single bond at 1
4469 \fi\fi\fi\fi\fi\fi\fi%
4470 \putlatom{-150}{60}{\@memberb}% % left type
4471 \fi%
4472 }% end of \setatombondd
4473 % \end{macrocode}
4474 %
4475 % \begin{macrocode}
4476 \def\setatombonde{%(5,-3)
4477 \if@clipfuse%
4478 \yl@xdiff=-10\relax
4479 \yl@ydiff=52\relax
4480 \if\@tmpb B%beta single bond
4481 {%
4482 \thicklines%
4483 \Put@Line(30,-18)(5,-3){100}% % single bond at 1
4484 }%
4485 \else\if\@tmpb A%alpha single bond
4486 \dotorline(30,-18)(5,-3){100}/(30,-18)(130,-78)%
4487 \else\if\@tmpb U%unspecified single bond
4488 {%
4489 \WaveBonds%
4490 \Put@Line(30,-18)(5,-3){100}% % single bond at 1
4491 }%
4492 \else\if\@tmpb S%alpha single bond
4493 \Put@Line(30,-18)(5,-3){100}% % single bond at 1
4494 \else\if\@tmpb D%alpha single bond
4495 \Put@Line(36,-12)(5,-3){100}% % single bond at 1
4496 \Put@Line(24,-28)(5,-3){100}% % single bond at 1
4497 \else\if\@tmpb T%alpha single bond
4498 \Put@Line(39,-3)(5,-3){100}% % single bond at 1
4499 \Put@Line(30,-18)(5,-3){100}% % single bond at 1
4500 \Put@Line(21,-33)(5,-3){100}% % single bond at 1
4501 \else\ifx\@tmpb\empty%alpha single bond
4502 \Put@Line(30,-18)(5,-3){100}% % single bond at 1
4503 \fi\fi\fi\fi\fi\fi\fi%
4504 \putratom{140}{-130}{\@memberb}% % right type
4505 \else%no clipping
4506 \yl@xdiff=-10\relax
4507 \yl@ydiff=52\relax
4508 \if\@tmpb B%beta single bond
4509 {%
4510 \thicklines%
4511 \Put@Line(0,0)(5,-3){130}% % single bond at 1
4512 }%
4513 \else\if\@tmpb A%alpha single bond
4514 \dotorline(0,0)(5,-3){130}/(0,0)(130,-78)%
4515 \else\if\@tmpb U%unspecified single bond
4516 {%
4517 \WaveBonds%
4518 \Put@Line(0,0)(5,-3){130}% % single bond at 1
4519 }%
4520 \else\if\@tmpb S%alpha single bond
4521 \Put@Line(0,0)(5,-3){130}% % single bond at 1
4522 \else\if\@tmpb D%alpha single bond
4523 \Put@Line(6,10)(5,-3){130}% % single bond at 1
4524 \Put@Line(-6,-10)(5,-3){130}% % single bond at 1
4525 \else\if\@tmpb T%alpha single bond
4526 \Put@Line(9,15)(5,-3){130}% % single bond at 1
4527 \Put@Line(0,0)(5,-3){130}% % single bond at 1
4528 \Put@Line(-9,-15)(5,-3){130}% % single bond at 1
4529 \else\ifx\@tmpb\empty%alpha single bond
4530 \Put@Line(0,0)(5,-3){130}% % single bond at 1
4531 \fi\fi\fi\fi\fi\fi\fi%
4532 \putratom{140}{-130}{\@memberb}% % right type
4533 \fi%
4534 }% end of \setatombonde
4535 % \end{macrocode}
4536 %
4537 % \begin{macrocode}
4538 \def\setatombondf{%% (5,3)
4539 \if@clipfuse%
4540 \yl@xdiff=-30\relax
4541 \yl@ydiff=18\relax
4542 \if\@tmpb B%beta single bond
4543 {%
4544 \thicklines%
4545 \Put@Line(30,18)(5,3){100}% % single bond at 1
4546 }%
4547 \else\if\@tmpb A%alpha single bond
4548 \dotorline(30,18)(5,3){100}/(30,18)(130,78)%
4549 \else\if\@tmpb U%unspecified single bond
4550 {%
4551 \WaveBonds%
4552 \Put@Line(30,18)(5,3){100}% % single bond at 1
4553 }%
4554 \else\if\@tmpb S%beta single bond
4555 \Put@Line(30,18)(5,3){100}% % single bond at 1
4556 \else\if\@tmpb D%beta single bond
4557 \Put@Line(36,8)(5,3){100}% % single bond at 1
4558 \Put@Line(24,24)(5,3){100}% % single bond at 1
4559 \else\if\@tmpb T%beta single bond
4560 \Put@Line(39,3)(5,3){100}% % single bond at 1
4561 \Put@Line(30,18)(5,3){100}% % single bond at 1
4562 \Put@Line(21,33)(5,3){100}% % single bond at 1
4563 \else\ifx\@tmpb\empty%beta single bond
4564 \Put@Line(30,18)(5,3){100}% % single bond at 1
4565 \fi\fi\fi\fi\fi\fi\fi%
4566 \putratom{160}{60}{\@memberb}% % right type
4567 \else%no clipping
4568 \yl@xdiff=-30\relax
4569 \yl@ydiff=18\relax
4570 \if\@tmpb B%beta single bond
4571 {%
4572 \thicklines%
4573 \Put@Line(0,0)(5,3){130}% % single bond at 1
4574 }%
4575 \else\if\@tmpb A%alpha single bond
4576 \dotorline(0,0)(5,3){120}/(0,0)(130,78)%
4577 \else\if\@tmpb U%unspecified single bond
4578 {%
4579 \WaveBonds%
4580 \Put@Line(0,0)(5,3){130}% % single bond at 1
4581 }%
4582 \else\if\@tmpb S%beta single bond
4583 \Put@Line(0,0)(5,3){130}% % single bond at 1
4584 \else\if\@tmpb D%beta single bond
4585 \Put@Line(6,-10)(5,3){130}% % single bond at 1
4586 \Put@Line(-6,10)(5,3){130}% % single bond at 1
4587 \else\if\@tmpb T%beta single bond
4588 \Put@Line(9,-15)(5,3){130}% % single bond at 1
4589 \Put@Line(0,0)(5,3){130}% % single bond at 1
4590 \Put@Line(-9,15)(5,3){130}% % single bond at 1
4591 \else\ifx\@tmpb\empty%beta single bond
4592 \Put@Line(0,0)(5,3){130}% % single bond at 1
4593 \fi\fi\fi\fi\fi\fi\fi%
4594 \putratom{160}{60}{\@memberb}% % right type
4595 \fi%
4596 }% end of \setatombondf
4597 % \end{macrocode}
4598 %
4599 % \begin{macrocode}
4600 \def\setatombondg{%% (-5,-3)
4601 \if@clipfuse%
4602 \yl@xdiff=0\relax
4603 \yl@ydiff=52\relax%1999/1/6 by Shinsaku Fujita
4604 \if\@tmpb B%beta single bond
4605 {%
4606 \thicklines%
4607 \Put@Line(-30,-18)(-5,-3){100}% % single bond at 1
4608 }%
4609 \else\if\@tmpb A%alpha single bond
4610 % \dotorline(-30,-18)(-5,-3){100}/(-20,-12)(-120,-72)%
4611 \dotorline(-35,-21)(-5,-3){100}/(-35,-21)(-120,-72)%
4612 \else\if\@tmpc U%unspecified single bond
4613 {%
4614 \WaveBonds%
4615 \Put@Line(-35,-21)(-5,-3){100}% % single bond at 1
4616 }%
4617 \else\if\@tmpc S%alpha single bond
4618 % \Put@Line(-30,-18)(-5,-3){100}% % single bond at 1
4619 \Put@Line(-35,-21)(-5,-3){100}% % single bond at 1
4620 \else\if\@tmpb D%double bond
4621 \Put@Line(-36,-12)(-5,-3){100}% % single bond at 1
4622 \Put@Line(-24,-28)(-5,-3){100}% % single bond at 1
4623 \else\if\@tmpb T%triple bond
4624 \Put@Line(-39,-3)(-5,-3){100}% % single bond at 1
4625 \Put@Line(-30,-18)(-5,-3){100}% % single bond at 1
4626 \Put@Line(-21,-33)(-5,-3){100}% % single bond at 1
4627 \else\ifx\@tmpc\empty%alpha single bond
4628 % \Put@Line(-30,-18)(-5,-3){100}% % single bond at 1
4629 \Put@Line(-35,-21)(-5,-3){100}% % single bond at 1
4630 \fi\fi\fi\fi\fi\fi\fi%
4631 \putlatom{-130}{-130}{\@memberb}% % left type
4632 \else%
4633 \yl@xdiff=0\relax
4634 % \yl@ydiff=62\relax
4635 \yl@ydiff=52\relax%1999/1/6 by Shinsaku Fujita
4636 \if\@tmpb B%beta single bond
4637 {%
4638 \thicklines%
4639 \Put@Line(0,0)(-5,-3){130}% % single bond at 1
4640 }%
4641 \else\if\@tmpb A%alpha single bond
4642 \dotorline(0,0)(-5,-3){130}/(0,0)(-130,-78)%
4643 \else\if\@tmpc U%unspecified single bond
4644 {%
4645 \WaveBonds%
4646 \Put@Line(0,0)(-5,-3){130}% % single bond at 1
4647 }%
4648 \else\if\@tmpc S%alpha single bond
4649 \Put@Line(0,0)(-5,-3){130}% % single bond at 1
4650 \else\if\@tmpb D%alpha single bond
4651 \Put@Line(-6,10)(-5,-3){130}% % single bond at 1
4652 \Put@Line(6,-10)(-5,-3){130}% % single bond at 1
4653 \else\if\@tmpb T%alpha single bond
4654 \Put@Line(-9,15)(-5,-3){130}% % single bond at 1
4655 \Put@Line(0,0)(-5,-3){130}% % single bond at 1
4656 \Put@Line(9,-15)(-5,-3){130}% % single bond at 1
4657 \else\ifx\@tmpc\empty%alpha single bond
4658 \Put@Line(0,0)(-5,-3){130}% % single bond at 1
4659 \fi\fi\fi\fi\fi\fi\fi%
4660 \putlatom{-130}{-130}{\@memberb}% % left type
4661 \fi%
4662 }% end of \setatombondg
4663 % \end{macrocode}
4664 %
4665 % \begin{macrocode}
4666 \def\setatombondh{% (-1,0)
4667 \yl@xdiff=17\relax
4668 \yl@ydiff=31\relax
4669 \if@clipfuse%
4670 \if\@tmpb B%beta single bond
4671 {%
4672 \thicklines%
4673 \Put@Line(-30,0)(-1,0){110}% % single bond at 1
4674 }%
4675 \else\if\@tmpb A%alpha single bond
4676 \dotorline(-30,0)(-1,0){110}/(-30,0)(-140,0)%
4677 \else\if\@tmpb U%beta single bond
4678 {%
4679 \WaveBonds%
4680 \Put@Line(-30,0)(-1,0){110}% % single bond at 1
4681 }%
4682 \else\if\@tmpb S%alpha single bond
4683 \Put@Line(-40,0)(-1,0){100}% % single bond at 1
4684 \else\if\@tmpb D%alpha single bond
4685 \Put@Line(-40,10)(-1,0){100}% % single bond at 1
4686 \Put@Line(-40,-10)(-1,0){100}% % single bond at 1
4687 \else\if\@tmpb T%alpha single bond
4688 \Put@Line(-40,15)(-1,0){100}% % single bond at 1
4689 \Put@Line(-40,0)(-1,0){100}% % single bond at 1
4690 \Put@Line(-40,-15)(-1,0){100}% % single bond at 1
4691 \else\ifx\@tmpb\empty%alpha single bond
4692 \Put@Line(-40,0)(-1,0){100}% % single bond at 1
4693 \fi\fi\fi\fi\fi\fi\fi%
4694 \putlatom{-157}{-31}{\@memberb}% % left type only
4695 \else%
4696 \if\@tmpb B%beta single bond
4697 {%
4698 \thicklines%
4699 \Put@Line(0,0)(-1,0){140}% % single bond at 1
4700 }%
4701 \else\if\@tmpb A%alpha single bond
4702 \dotorline(0,0)(-1,0){140}/(0,0)(-140,0)%
4703 \else\if\@tmpb U%beta single bond
4704 {%
4705 \WaveBonds%
4706 \Put@Line(0,0)(-1,0){140}% % single bond at 1
4707 }%
4708 \else\if\@tmpb S%alpha single bond
4709 \Put@Line(0,0)(-1,0){140}% % single bond at 1
4710 \else\if\@tmpb D%alpha single bond
4711 \Put@Line(0,10)(-1,0){140}% % single bond at 1
4712 \Put@Line(0,-10)(-1,0){140}% % single bond at 1
4713 \else\if\@tmpb T%alpha single bond
4714 \Put@Line(0,-15)(-1,0){140}% % single bond at 1
4715 \Put@Line(0,0)(-1,0){140}% % single bond at 1
4716 \Put@Line(0,15)(-1,0){140}% % single bond at 1
4717 \else\ifx\@tmpb\empty%alpha single bond
4718 \Put@Line(0,0)(-1,0){140}% % single bond at 1
4719 \fi\fi\fi\fi\fi\fi\fi%
4720 \putlatom{-157}{-31}{\@memberb}% % left type only
4721 \fi%
4722 }% end of \setatombondh
4723 % \end{macrocode}
4724 % \end{macro}
4725 % \end{macro}
4726 % \end{macro}
4727 % \end{macro}
4728 % \end{macro}
4729 % \end{macro}
4730 % \end{macro}
4731 % \end{macro}
4732 %
4733 % The macro |\ylatombondposition| is used to calculate the shift values
4734 % (|\@ylii| and |\@yli|) for applying the |\setatombond| command.
4735 % \changes{v1.02}{1998/10/15}{New command: \cs{ylatombondposition}
4736 % for setting substituents}
4737 %
4738 % \begin{macro}{\ylatombondposition}
4739 % \begin{macrocode}
4740 \def\ylatombondposition#1#2#3{%
4741 \@@ylswfalse%%%\@reset@ylsw
4742 \@forsemicol\member:=#1\do{%
4743 \if@@ylsw\else%
4744 \ifx\member\empty\else%
4745 \expandafter\@m@mb@r\member;\relax%
4746 \expandafter\threech@r\@membera{}{}%
4747 \ifx\@memberb\@yl\relax\@@ylswtrue\else\@@ylswfalse\fi
4748 \if@@ylsw
4749 \@tmpaa=\@tmpa\relax\advance\@tmpaa by #2\relax
4750 \ifnum\@tmpaa >0\relax%
4751 \ifnum\@tmpaa <2\relax%
4752 \ifcase\@tmpaa%
4753 % %%%%%%%%%%%%%%%%
4754 \or% subst. on 1
4755 % %%%%%%%%%%%%%%%%
4756 %
4757 % (0,1)
4758 %
4759 \ifnum#3=1\relax%upward
4760 \if@clipfuse%
4761 \gdef\@ylii{0}\gdef\@yli{-48}\global\@ylswtrue%
4762 \else
4763 \gdef\@ylii{0}\gdef\@yli{0}\global\@ylswtrue%
4764 \fi
4765 % \setatombonda
4766 %
4767 % (1,0)
4768 %
4769 \else\ifnum#3=4\relax%(right)
4770 \if@clipfuse%
4771 \gdef\@ylii{-40}\gdef\@yli{0}\global\@ylswtrue%
4772 \else
4773 \gdef\@ylii{0}\gdef\@yli{0}\global\@ylswtrue%
4774 \fi
4775 % \setatombondb
4776 %
4777 % (0,-1)
4778 %
4779 \else\ifnum#3=7\relax%(downward)
4780 \if@clipfuse%
4781 \gdef\@ylii{0}\gdef\@yli{48}\global\@ylswtrue%
4782 \else
4783 \gdef\@ylii{0}\gdef\@yli{0}\global\@ylswtrue%
4784 \fi
4785 % \setatombondc
4786 %
4787 % (-5,3)
4788 %
4789 \else\ifnum#3=11\relax%
4790 \if@clipfuse%
4791 \gdef\@ylii{50}\gdef\@yli{-30}\global\@ylswtrue%
4792 \else
4793 \gdef\@ylii{0}\gdef\@yli{0}\global\@ylswtrue%
4794 \fi
4795 % \setatombondd
4796 %
4797 % (5,-3)
4798 %
4799 \else\ifnum#3=5\relax%
4800 \if@clipfuse%
4801 \gdef\@ylii{-50}\gdef\@yli{30}\global\@ylswtrue%
4802 \else
4803 \gdef\@ylii{0}\gdef\@yli{0}\global\@ylswtrue%
4804 \fi
4805 % \setatombonde
4806 %
4807 % (5,3)
4808 %
4809 \else\ifnum#3=3\relax%
4810 \if@clipfuse%
4811 \gdef\@ylii{-50}\gdef\@yli{-30}\global\@ylswtrue%
4812 \else
4813 \gdef\@ylii{0}\gdef\@yli{0}\global\@ylswtrue%
4814 \fi
4815 % \setatombondf
4816 %
4817 % (-5,-3)
4818 %
4819 \else\ifnum#3=9\relax%
4820 \if@clipfuse%
4821 \gdef\@ylii{50}\gdef\@yli{30}\global\@ylswtrue%
4822 \else
4823 \gdef\@ylii{0}\gdef\@yli{0}\global\@ylswtrue%
4824 \fi
4825 % \setatombondg
4826 %
4827 % (-1,0)
4828 %
4829 \else\ifnum#3=10\relax%(left)
4830 \if@clipfuse%
4831 \gdef\@ylii{40}\gdef\@yli{0}\global\@ylswtrue%
4832 \else
4833 \gdef\@ylii{0}\gdef\@yli{0}\global\@ylswtrue%
4834 \fi
4835 % \setatombondh
4836 \fi\fi\fi\fi\fi\fi\fi\fi%
4837 \fi%end of ifcase
4838 \fi\fi\fi\fi%
4839 \fi}}% end of \ylatombondposition
4840 % \end{macrocode}
4841 % \end{macro}
4842 %
4843 % \section{Macros for horizontal formulas}
4844 % \subsection{Placing substituents for horizontal formulas}
4845 %
4846 % Such a drawing command as |\setsixringh| uses several inner macros
4847 % for placing substituents with bonds. The first set of inner macros
4848 % are shown as follows.
4849 %
4850 % The command |\ylpositionh| is to obtain the shift values
4851 % |\@ylii| and |\@yli| which are used for shifting the standard point
4852 % of a substituent.
4853 % The locant flags such as |\@ylatrue| have been stopped to use.
4854 % \changes{v1.02}{1998/10/31}{Adding \cs{ylpositionh}.
4855 % Commands for setting substituents}
4856 % \changes{v5.01}{2013/06/19}{bug fix: initial setting of \cs{reset@@yl}}
4857 %
4858 % \begin{macro}{\ylpositionh}
4859 % \begin{macrocode}
4860 \def\ylpositionh#1#2#3#4#5{%
4861 \@@ylswfalse%%%\@reset@ylsw
4862 \reset@@yl%%2013/06/19bug fix
4863 \@forsemicol\member:=#1\do{%
4864 \if@@ylsw\else%
4865 \ifx\member\empty\else%
4866 \expandafter\@m@mb@r\member;\relax%
4867 \expandafter\threech@r\@membera{}{}\relax%
4868 \ifx\@memberb\@yl\relax\@@ylswtrue\else\@@ylswfalse\fi
4869 \if@@ylsw
4870 \ifnum#5<0\relax%
4871 \@tmpaa=-\@tmpa\relax \advance\@tmpaa by#2\relax%
4872 \else\@tmpaa=\@tmpa\relax \advance\@tmpaa by#2\relax\fi
4873 \ifnum\@tmpaa>#3\relax%
4874 \ifnum\@tmpaa<#4\relax%
4875 \ifcase\@tmpaa%0 omit
4876 \or\ifx\aaa\empty
4877 \gdef\@ylii{0}\gdef\@yli{0}\global\@ylswtrue%\@ylatrue% subst. on 1
4878 \else
4879 \gdef\@ylii{30}\gdef\@yli{0}\global\@ylswtrue%\@ylatrue% subst. on 1
4880 \fi
4881 \or\ifx\bbb\empty
4882 \gdef\@ylii{-103}\gdef\@yli{-171}\global\@ylswtrue%\@ylbtrue% subst. on 2
4883 \else
4884 \gdef\@ylii{-73}\gdef\@yli{-223}\global\@ylswtrue%\@ylbtrue% subst. on 2
4885 \fi
4886 \or \ifx\ccc\empty
4887 \gdef\@ylii{-303}\gdef\@yli{-171}\global\@ylswtrue%\@ylctrue% subst. on 3
4888 \else
4889 \gdef\@ylii{-333}\gdef\@yli{-223}\global\@ylswtrue%\@ylctrue% subst. on 3
4890 \fi
4891 \or\ifx\ddd\empty
4892 \gdef\@ylii{-406}\gdef\@yli{0}\global\@ylswtrue%\@yldtrue% subst. on 4
4893 \else
4894 \gdef\@ylii{-436}\gdef\@yli{0}\global\@ylswtrue%\@yldtrue% subst. on 4
4895 \fi
4896 \or\ifx\eee\empty
4897 \gdef\@ylii{-303}\gdef\@yli{171}\global\@ylswtrue%\@yletrue% subst. on 5
4898 \else
4899 \gdef\@ylii{-333}\gdef\@yli{223}\global\@ylswtrue%\@yletrue% subst. on 5
4900 \fi
4901 \or \ifx\fff\empty
4902 \gdef\@ylii{-103}\gdef\@yli{171}\global\@ylswtrue%\@ylftrue% subst. on 6
4903 \else
4904 \gdef\@ylii{-73}\gdef\@yli{223}\global\@ylswtrue%\@ylftrue% subst. on 6
4905 \fi
4906 \fi%end of ifcase
4907 \fi\fi\fi\fi\fi}}%
4908 % \end{macrocode}
4909 % \end{macro}
4910 % The |\@hsubsta| command is used for placing a substituent (|\@memberb|) at
4911 % the 1-position (top) of a vertical six-membered ring. The bond linking
4912 % between the substituent and the 1-position is drawn in the light of
4913 % the corresponding bond modifier (|\@tmpc| = Sa, Sb, SA, SB etc.).
4914 % \changes{v1.02}{1998/10/31}{Adding \cs{yl@xdiff} and \cs{yl@ydiff}}
4915 % \changes{v2.00}{1998/12/15}{Added bond modifiers: FA, FB, GA, GB, Su, Sd}
4916 % \changes{v4.03}{2005/07/20}{Wave bonds for stereochemistry: U, FU, GU, SU, SV}
4917 % \begin{macro}{\@hsubsta}
4918 % *************************************************************
4919 % * treatment of substitution positions for a horizontal type *
4920 % *************************************************************
4921 % \begin{macrocode}
4922 % %%%%%%%%%%%%%%%
4923 % % subst. on 1 %
4924 % %%%%%%%%%%%%%%%
4925 \def\@hsubsta{%
4926 \if@aclip %clipping
4927 \if\@tmpb S%single bond
4928 \ifx\@tmpc\empty%
4929 \yl@xdiff=17\relax
4930 \yl@ydiff=31\relax
4931 \putlatom{-157}{-31}{\@memberb}% % left type only
4932 \Put@Line(-30,0)(-1,0){110}% % single bond at 1
4933 \else\if\@tmpc B%(B) beta
4934 \yl@xdiff=27\relax
4935 \yl@ydiff=36\relax
4936 \putlatom{-157}{42}{\@memberb}% % left type
4937 {%
4938 \thicklines%
4939 \Put@Line(-30,18)(-5,3){100}% % single bond at 1
4940 }%
4941 \else\if\@tmpc A%(A) alpha
4942 \yl@xdiff=37\relax
4943 \yl@ydiff=28\relax
4944 \putlatom{-157}{-100}{\@memberb}% % left type
4945 \dotorline(-30,-18)(-5,-3){100}/(-30,-18)(-120,-72)%
4946 \else\if\@tmpc u%(u) up --- (B) beta
4947 \yl@xdiff=37\relax
4948 \yl@ydiff=28\relax
4949 \putlatom{-157}{-100}{\@memberb}% % left type
4950 {%
4951 \thicklines%
4952 \Put@Line(-30,-18)(-5,-3){100}% % single bond at 1
4953 }%
4954 \else\if\@tmpc d%(d) down --- (A) alpha
4955 \yl@xdiff=27\relax
4956 \yl@ydiff=36\relax
4957 \putlatom{-157}{42}{\@memberb}% % left type
4958 \dotorline(-30,18)(-5,3){100}/(-30,18)(-130,78)%
4959 \else\if\@tmpc b%(b) beta
4960 \yl@xdiff=27\relax
4961 \yl@ydiff=36\relax
4962 \putlatom{-157}{42}{\@memberb}% % left type
4963 \Put@Line(-30,18)(-5,3){100}% % single bond at 1
4964 \else\if\@tmpc a%(a) alpha
4965 \yl@xdiff=27\relax
4966 \yl@ydiff=28\relax
4967 \putlatom{-157}{-100}{\@memberb}% % left type
4968 \Put@Line(-30,-18)(-5,-3){100}% % single bond at 1
4969 \else\if\@tmpc V%(V) beta undefined
4970 \yl@xdiff=27\relax
4971 \yl@ydiff=36\relax
4972 \putlatom{-157}{42}{\@memberb}% % left type
4973 {%
4974 \WaveBonds%
4975 \Put@Line(-30,18)(-5,3){100}% % single bond at 1
4976 }%
4977 \else\if\@tmpc U%(U) alpha undefined
4978 \yl@xdiff=27\relax
4979 \yl@ydiff=28\relax
4980 \putlatom{-157}{-100}{\@memberb}% % left type
4981 {%
4982 \WaveBonds%
4983 \Put@Line(-30,-18)(-5,-3){100}% % single bond at 1
4984 }%
4985 \fi\fi\fi\fi\fi
4986 \fi\fi\fi\fi
4987 \else\if\@tmpb D%double bond
4988 \yl@xdiff=17\relax
4989 \yl@ydiff=31\relax
4990 \putlatom{-157}{-31}{\@memberb}% % left type only
4991 \Put@Line(-30,-12)(-1,0){110}% % double bond at 1
4992 \Put@Line(-30,12)(-1,0){110}% % double bond at 1
4993 \else\if\@tmpb B%beta single bond
4994 \yl@xdiff=17\relax
4995 \yl@ydiff=31\relax
4996 \putlatom{-157}{-31}{\@memberb}% % left type only
4997 {%
4998 \thicklines%
4999 \Put@Line(-30,0)(-1,0){110}% % single bond at 1
5000 }%
5001 \else\if\@tmpb A%alpha single bond
5002 \yl@xdiff=17\relax
5003 \yl@ydiff=31\relax
5004 \putlatom{-157}{-31}{\@memberb}% % left type only
5005 \dotorline(-30,0)(-1,0){110}/(-30,0)(-140,0)%
5006 \else\if\@tmpb U%undefined single bond
5007 \yl@xdiff=17\relax
5008 \yl@ydiff=31\relax
5009 \putlatom{-157}{-31}{\@memberb}% % left type only
5010 {%
5011 \WaveBonds%
5012 \Put@Line(-30,0)(-1,0){110}% % single wave bond at 1
5013 }%
5014 \else\if\@tmpb F%fused bond
5015 {\let\@tmpb=\@tmpc\@clipfusetrue
5016 \Put@Direct(0,0){\setatombondG}%
5017 }%
5018 \else\if\@tmpb G%fused bond
5019 {\let\@tmpb=\@tmpc\@clipfusetrue
5020 \Put@Direct(0,0){\setatombondD}%
5021 }%
5022 \else%
5023 \yl@xdiff=17\relax
5024 \yl@ydiff=31\relax
5025 \putlatom{-157}{-31}{\@memberb}% % left type only
5026 \Put@Line(-40,0)(-1,0){100}% % single bond at 1
5027 \fi\fi\fi\fi
5028 \fi\fi\fi%
5029 \else%% no clipping
5030 \if\@tmpb S%single bond
5031 \ifx\@tmpc\empty%
5032 \yl@xdiff=17\relax
5033 \yl@ydiff=31\relax
5034 \putlatom{-157}{-31}{\@memberb}% % left type only
5035 \Put@Line(0,0)(-1,0){140}% % single bond at 1
5036 \else\if\@tmpc B%(B) beta
5037 \yl@xdiff=37\relax
5038 \yl@ydiff=30\relax
5039 \putlatom{-157}{42}{\@memberb}% % left type
5040 {%
5041 \thicklines%
5042 \Put@Line(0,0)(-5,3){120}% % single bond at 1
5043 }%
5044 \else\if\@tmpc A%(A) alpha
5045 \yl@xdiff=37\relax
5046 \yl@ydiff=28\relax
5047 \putlatom{-157}{-100}{\@memberb}% % left type
5048 \dotorline(0,0)(-5,-3){120}/(0,0)(-120,-72)%
5049 \else\if\@tmpc u%(u) up --- (B) beta
5050 \yl@xdiff=37\relax
5051 \yl@ydiff=28\relax
5052 \putlatom{-157}{-100}{\@memberb}% % left type
5053 {%
5054 \thicklines%
5055 \Put@Line(0,0)(-5,-3){120}% % single bond at 1
5056 }%
5057 \else\if\@tmpc d%(d) down --- (A) alpha
5058 \yl@xdiff=37\relax
5059 \yl@ydiff=30\relax
5060 \putlatom{-157}{42}{\@memberb}% % left type
5061 \dotorline(0,0)(-5,3){120}/(0,0)(-120,72)%
5062 \else\if\@tmpc b%(b) beta
5063 \yl@xdiff=37\relax
5064 \yl@ydiff=30\relax
5065 \putlatom{-157}{42}{\@memberb}% % left type
5066 \Put@Line(0,0)(-5,3){120}% % single bond at 1
5067 \else\if\@tmpc a%(a) alpha
5068 \yl@xdiff=37\relax
5069 \yl@ydiff=28\relax
5070 \putlatom{-157}{-100}{\@memberb}% % left type
5071 \Put@Line(0,0)(-5,-3){120}% % single bond at 1
5072 \else\if\@tmpc V%(V) beta undefined
5073 \yl@xdiff=37\relax
5074 \yl@ydiff=30\relax
5075 \putlatom{-157}{42}{\@memberb}% % left type
5076 {%
5077 \WaveBonds%
5078 \Put@Line(0,0)(-5,3){120}% % single bond at 1
5079 }%
5080 \else\if\@tmpc U%(U) alpha undefined
5081 \yl@xdiff=37\relax
5082 \yl@ydiff=28\relax
5083 \putlatom{-157}{-100}{\@memberb}% % left type
5084 {%
5085 \WaveBonds%
5086 \Put@Line(0,0)(-5,-3){120}% % single bond at 1
5087 }%
5088 \fi\fi\fi\fi\fi
5089 \fi\fi\fi\fi
5090 \else\if\@tmpb D%double bond
5091 \yl@xdiff=17\relax
5092 \yl@ydiff=31\relax
5093 \putlatom{-157}{-31}{\@memberb}% % left type only
5094 \Put@Line(0,-12)(-1,0){140}% % double bond at 1
5095 \Put@Line(0,12)(-1,0){140}% % double bond at 1
5096 \else\if\@tmpb B%beta single bond
5097 \yl@xdiff=17\relax
5098 \yl@ydiff=31\relax
5099 \putlatom{-157}{-31}{\@memberb}% % left type only
5100 {%
5101 \thicklines%
5102 \Put@Line(0,0)(-1,0){140}% % single bond at 1
5103 }%
5104 \else\if\@tmpb A%alpha single bond
5105 \yl@xdiff=17\relax
5106 \yl@ydiff=31\relax
5107 \putlatom{-157}{-31}{\@memberb}% % left type only
5108 \dotorline(0,0)(-1,0){140}/(0,0)(-140,0)%
5109 \else\if\@tmpb U%undefined single bond
5110 \yl@xdiff=17\relax
5111 \yl@ydiff=31\relax
5112 \putlatom{-157}{-31}{\@memberb}% % left type only
5113 {%
5114 \WaveBonds%
5115 \Put@Line(0,0)(-1,0){140}% % single wave bond at 1
5116 }%
5117 \else\if\@tmpb F%fused bond
5118 {\let\@tmpb=\@tmpc\@clipfusefalse
5119 \Put@Direct(0,0){\setatombondG}%
5120 }%
5121 \else\if\@tmpb G%fused bond
5122 {\let\@tmpb=\@tmpc\@clipfusefalse
5123 \Put@Direct(0,0){\setatombondD}%
5124 }%
5125 \else%
5126 \yl@xdiff=17\relax
5127 \yl@ydiff=31\relax
5128 \putlatom{-157}{-31}{\@memberb}% % left type only
5129 \Put@Line(0,0)(-1,0){140}% % single bond at 1
5130 \fi\fi\fi\fi%
5131 \fi\fi\fi
5132 \fi}%end of \@hsubsta
5133 % \end{macrocode}
5134 % \end{macro}
5135 %
5136 % The |\@hsubstb| command is used for placing a substituent (|\@memberb|) at
5137 % the 2-position (upper-left) of a vertical six-membered ring.
5138 % \changes{v1.02}{1998/10/31}{Adding \cs{yl@xdiff} and \cs{yl@ydiff}}
5139 % \changes{v2.00}{1998/12/15}{Added bond modifiers: FA, FB, GA, GB, Su, Sd}
5140 % \changes{v4.03}{2005/07/20}{Wave bonds for stereochemistry: U, FU, GU, SU, SV}
5141 % \begin{macro}{\@hsubstb}
5142 % \begin{macrocode}
5143 % %%%%%%%%%%%%%%%
5144 % % subst. on 2 %
5145 % %%%%%%%%%%%%%%%
5146 \def\@hsubstb{%
5147 \if@bclip %clipping
5148 \if\@tmpb S%single bond
5149 \ifx\@tmpc\empty%
5150 \yl@xdiff=53\relax
5151 \yl@ydiff=5\relax
5152 \putlratom{-37}{331}{\@memberb}%
5153 \Put@Line(79,221)(-3,5){63}% % single bond at 2 (62=>63)
5154 \else\if\@tmpc B%(B) beta
5155 \yl@xdiff=0\relax
5156 \yl@ydiff=21\relax
5157 \putlatom{-41}{240}{\@memberb}% % left type
5158 {%
5159 \thicklines%
5160 \Put@Line(59,201)(-5,3){100}% % single bond at 2
5161 }%
5162 \else\if\@tmpc A%(A) alpha
5163 \yl@xdiff=30\relax
5164 \yl@ydiff=-10\relax
5165 \putratom{73}{331}{\@memberb}% % right type
5166 \dotorline(103,221)(0,1){100}/(103,221)(103,321)%
5167 \else\if\@tmpc u%(u) up --- (B) beta
5168 \yl@xdiff=30\relax
5169 \yl@ydiff=-10\relax
5170 \putlratom{73}{331}{\@memberb}% % left-right type
5171 {%
5172 \thicklines%
5173 \Put@Line(103,221)(0,1){100}% % single bond at 2
5174 }%
5175 \else\if\@tmpc d%(d) down --- (A) alpha
5176 \yl@xdiff=0\relax
5177 \yl@ydiff=21\relax
5178 \putlatom{-41}{240}{\@memberb}% % left type
5179 \dotorline(59,201)(-5,3){100}/(59,201)(-41,261)%
5180 \else\if\@tmpc b%(b) beta
5181 \yl@xdiff=0\relax
5182 \yl@ydiff=21\relax
5183 \putlatom{-41}{240}{\@memberb}% % left type
5184 \Put@Line(59,201)(-5,3){100}% % single bond at 2
5185 \else\if\@tmpc a%(a) alpha
5186 \yl@xdiff=30\relax
5187 \yl@ydiff=-10\relax
5188 \putlratom{73}{331}{\@memberb}% % left-right type
5189 \Put@Line(103,221)(0,1){100}% % single bond at 2
5190 \else\if\@tmpc V%(V) beta undefined
5191 \yl@xdiff=0\relax
5192 \yl@ydiff=21\relax
5193 \putlatom{-41}{240}{\@memberb}% % left type
5194 {%
5195 \WaveBonds%
5196 \Put@Line(59,201)(-5,3){100}% % single bond at 2
5197 }%
5198 \else\if\@tmpc U%(U) alpha undefined
5199 \yl@xdiff=30\relax
5200 \yl@ydiff=-10\relax
5201 \putlratom{73}{331}{\@memberb}% % left-right type
5202 {%
5203 \WaveBonds%
5204 \Put@Line(103,221)(0,1){100}% % single bond at 2
5205 }%
5206 \fi\fi\fi\fi\fi%
5207 \fi\fi\fi\fi
5208 \else\if\@tmpb D%double bond
5209 \yl@xdiff=59\relax
5210 \yl@ydiff=-13\relax
5211 \putlratom{-37}{331}{\@memberb}%
5212 \Put@Line(78,208)(-3,5){63}% % double bond at 2(62->63)
5213 \Put@Line(100,219)(-3,5){63}% % double bond at 2(62->63)
5214 \else\if\@tmpb B%beta single bond
5215 \yl@xdiff=53\relax
5216 \yl@ydiff=5\relax
5217 \putlratom{-37}{331}{\@memberb}%
5218 {%
5219 \thicklines%
5220 \Put@Line(79,221)(-3,5){63}% % single bond at 2 (62->63)
5221 }%
5222 \else\if\@tmpb A%alpha single bond
5223 \yl@xdiff=53\relax
5224 \yl@ydiff=5\relax
5225 \putlratom{-37}{331}{\@memberb}%
5226 \dotorline(79,221)(-3,5){63}/(79,221)(16,326)%
5227 \else\if\@tmpb U%undefined single bond
5228 \yl@xdiff=53\relax
5229 \yl@ydiff=5\relax
5230 \putlratom{-37}{331}{\@memberb}%
5231 {%
5232 \WaveBonds%
5233 \Put@Line(79,221)(-3,5){63}% % single wave bond at 1
5234 }%
5235 \else\if\@tmpb F%fused bond
5236 {\let\@tmpb=\@tmpc\@clipfusetrue
5237 \Put@Direct(103,171){\setatombondh}%
5238 }%
5239 \else\if\@tmpb G%fused bond
5240 {\let\@tmpb=\@tmpc\@clipfusetrue
5241 \Put@Direct(103,171){\setatombondF}%
5242 }%
5243 \else%
5244 \yl@xdiff=53\relax
5245 \yl@ydiff=5\relax
5246 \putlratom{-37}{331}{\@memberb}%
5247 \Put@Line(79,221)(-3,5){63}% % single bond at 2 (62->63)
5248 \fi\fi\fi\fi%
5249 \fi\fi\fi
5250 \else%%no clipping
5251 \if\@tmpb S%single bond
5252 \ifx\@tmpc\empty%
5253 \yl@xdiff=58\relax
5254 \yl@ydiff=-21\relax
5255 \putlratom{-27}{311}{\@memberb}%
5256 \Put@Line(103,171)(-3,5){72}% % single bond at 2
5257 \else\if\@tmpc B%(B) beta
5258 \yl@xdiff=14\relax
5259 \yl@ydiff=-3\relax
5260 \putlatom{-31}{240}{\@memberb}% % left type
5261 {%
5262 \thicklines%
5263 \Put@Line(103,171)(-5,3){120}% % single bond at 2
5264 }%
5265 \else\if\@tmpc A%(A) alpha
5266 \yl@xdiff=30\relax
5267 \yl@ydiff=-20\relax
5268 \putlratom{73}{331}{\@memberb}% % left-right type
5269 \dotorline(103,171)(0,1){140}/(103,171)(103,311)%
5270 \else\if\@tmpc u%(u) up --- (B) beta
5271 \yl@xdiff=30\relax
5272 \yl@ydiff=-20\relax
5273 \putlratom{73}{331}{\@memberb}% % left-right type
5274 {%
5275 \thicklines%
5276 \Put@Line(103,171)(0,1){140}% % single bond at 2
5277 }%
5278 \else\if\@tmpc d%(d) down --- (A) alpha
5279 \yl@xdiff=14\relax
5280 \yl@ydiff=-3\relax
5281 \putlatom{-31}{240}{\@memberb}% % left type
5282 \dotorline(103,171)(-5,3){120}/(103,171)(-7,243)%
5283 \else\if\@tmpc b%(b) beta
5284 \yl@xdiff=14\relax
5285 \yl@ydiff=-3\relax
5286 \putlatom{-31}{240}{\@memberb}% % left type
5287 \Put@Line(103,171)(-5,3){120}% % single bond at 2
5288 \else\if\@tmpc a%(a) alpha
5289 \yl@xdiff=30\relax
5290 \yl@ydiff=-20\relax
5291 \putlratom{73}{331}{\@memberb}% % left-right type
5292 \Put@Line(103,171)(0,1){140}% % single bond at 2
5293 \else\if\@tmpc V%(V) beta undefined
5294 \yl@xdiff=14\relax
5295 \yl@ydiff=-3\relax
5296 \putlatom{-31}{240}{\@memberb}% % left type
5297 {%
5298 \WaveBonds%
5299 \Put@Line(103,171)(-5,3){120}% % single bond at 2
5300 }%
5301 \else\if\@tmpc U%(U) alpha undefined
5302 \yl@xdiff=30\relax
5303 \yl@ydiff=-20\relax
5304 \putlratom{73}{331}{\@memberb}% % left-right type
5305 {%
5306 \WaveBonds%
5307 \Put@Line(103,171)(0,1){140}% % single bond at 2
5308 }%
5309 \fi\fi\fi\fi\fi%
5310 \fi\fi\fi\fi
5311 \else\if\@tmpb D%double bond
5312 \yl@xdiff=64\relax
5313 \yl@ydiff=-21\relax
5314 \putlratom{-27}{311}{\@memberb}%
5315 \Put@Line(96,168)(-3,5){72}% % double bond at 2
5316 \Put@Line(121,174)(-3,5){72}% % double bond at 2
5317 \else\if\@tmpb B%beta single bond
5318 \yl@xdiff=58\relax
5319 \yl@ydiff=-21\relax
5320 \putlratom{-27}{311}{\@memberb}%
5321 {%
5322 \thicklines%
5323 \Put@Line(103,171)(-3,5){72}% % single bond at 2
5324 }%
5325 \else\if\@tmpb A%alpha single bond
5326 \yl@xdiff=58\relax
5327 \yl@ydiff=-21\relax
5328 \putlratom{-27}{311}{\@memberb}%
5329 \dotorline(103,171)(-3,5){72}/(103,171)(31,291)%
5330 \else\if\@tmpb U%undefined single bond
5331 \yl@xdiff=58\relax
5332 \yl@ydiff=-21\relax
5333 \putlratom{-27}{311}{\@memberb}%
5334 {%
5335 \WaveBonds%
5336 \Put@Line(103,171)(-3,5){72}% % single wave bond at 1
5337 }%
5338 \else\if\@tmpb F%fused bond
5339 {\let\@tmpb=\@tmpc\@clipfusefalse
5340 \Put@Direct(103,171){\setatombondh}%
5341 }%
5342 \else\if\@tmpb G%fused bond
5343 {\let\@tmpb=\@tmpc\@clipfusefalse
5344 \Put@Direct(103,171){\setatombondF}%
5345 }%
5346 \else%
5347 \yl@xdiff=58\relax
5348 \yl@ydiff=-21\relax
5349 \putlratom{-27}{311}{\@memberb}%
5350 \Put@Line(103,171)(-3,5){72}% % single bond at 2
5351 \fi\fi\fi\fi%
5352 \fi\fi\fi
5353 \fi}% end of \@hsubstb
5354 % \end{macrocode}
5355 % \end{macro}
5356 %
5357 % The |\@hsubstc| command is used for placing a substituent (|\@memberb|) at
5358 % the 3-position (upper-right) of a vertical six-membered ring.
5359 % \changes{v1.02}{1998/10/31}{Adding \cs{yl@xdiff} and \cs{yl@ydiff}}
5360 % \changes{v2.00}{1998/12/15}{Added bond modifiers: FA, FB, GA, GB, Su, Sd}
5361 % \changes{v4.03}{2005/07/20}{Wave bonds for stereochemistry: U, FU, GU, SU, SV}
5362 % \begin{macro}{\@hsubstc}
5363 % \begin{macrocode}
5364 % %%%%%%%%%%%%%%%
5365 % % subst. on 3 %
5366 % %%%%%%%%%%%%%%%
5367 \def\@hsubstc{%
5368 \if@cclip %clipping
5369 \if\@tmpb S%single bond
5370 \ifx\@tmpc\empty%
5371 \yl@xdiff=33\relax
5372 \yl@ydiff=5\relax
5373 \putratom{373}{331}{\@memberb}%
5374 \Put@Line(343,221)(3,5){63}% % single bond at 3 (62->63)
5375 \else\if\@tmpc B%(B) beta
5376 \yl@xdiff=0\relax
5377 \yl@ydiff=21\relax
5378 \putratom{443}{240}{\@memberb}% % right type
5379 {%
5380 \thicklines%
5381 \Put@Line(343,201)(5,3){100}% % single bond at 3
5382 }%
5383 \else\if\@tmpc A%(A) alpha
5384 \yl@xdiff=30\relax
5385 \yl@ydiff=0\relax
5386 \putlratom{273}{331}{\@memberb}% % left-right type
5387 \dotorline(303,221)(0,1){110}/(303,221)(303,321)%
5388 \else\if\@tmpc u%(u) up --- (B) beta
5389 \yl@xdiff=30\relax
5390 \yl@ydiff=0\relax
5391 \putlratom{273}{331}{\@memberb}% % left-right type
5392 {%
5393 \thicklines%
5394 \Put@Line(303,221)(0,1){100}% % single bond at 3
5395 }%
5396 \else\if\@tmpc d%(d) down --- (A) alpha
5397 \yl@xdiff=0\relax
5398 \yl@ydiff=21\relax
5399 \putratom{443}{240}{\@memberb}% % right type
5400 \dotorline(343,201)(5,3){100}/(343,201)(443,261)%
5401 \else\if\@tmpc b%(b) beta
5402 \yl@xdiff=0\relax
5403 \yl@ydiff=21\relax
5404 \putratom{443}{240}{\@memberb}% % right type
5405 \Put@Line(343,201)(5,3){100}% % single bond at 3
5406 \else\if\@tmpc a%(a) alpha
5407 \yl@xdiff=30\relax
5408 \yl@ydiff=0\relax
5409 \putlratom{273}{331}{\@memberb}% % left-right type
5410 \Put@Line(303,221)(0,1){100}% % single bond at 3
5411 \else\if\@tmpc V%(V) beta undefined
5412 \yl@xdiff=0\relax
5413 \yl@ydiff=21\relax
5414 \putratom{443}{240}{\@memberb}% % right type
5415 {%
5416 \WaveBonds%
5417 \Put@Line(343,201)(5,3){100}% % single bond at 3
5418 }%
5419 \else\if\@tmpc U%(U) alpha undefined
5420 \yl@xdiff=30\relax
5421 \yl@ydiff=0\relax
5422 \putlratom{273}{331}{\@memberb}% % left-right type
5423 {%
5424 \WaveBonds%
5425 \Put@Line(303,221)(0,1){100}% % single bond at 3
5426 }%
5427 \fi\fi\fi\fi\fi%
5428 \fi\fi\fi\fi
5429 \else\if\@tmpb D%double bond
5430 \yl@xdiff=12\relax
5431 \yl@ydiff=-18\relax
5432 \putratom{373}{331}{\@memberb}%
5433 \Put@Line(328,208)(3,5){63}% % double bond at 3
5434 \Put@Line(303,214)(3,5){63}% % double bond at 3
5435 \else\if\@tmpb B%beta single bond
5436 \yl@xdiff=33\relax
5437 \yl@ydiff=5\relax
5438 \putratom{373}{331}{\@memberb}%
5439 {%
5440 \thicklines%
5441 \Put@Line(343,221)(3,5){63}% % single bond at 3
5442 }%
5443 \else\if\@tmpb A%alpha single bond
5444 \yl@xdiff=33\relax
5445 \yl@ydiff=5\relax
5446 \putratom{373}{331}{\@memberb}%
5447 \dotorline(343,221)(3,5){63}/(343,221)(406,326)%
5448 \else\if\@tmpb U%undefined single bond
5449 \yl@xdiff=33\relax
5450 \yl@ydiff=5\relax
5451 \putratom{373}{331}{\@memberb}%
5452 {%
5453 \WaveBonds%
5454 \Put@Line(343,221)(3,5){63}% % single wave bond at 3
5455 }%
5456 \else\if\@tmpb F%fused bond
5457 {\let\@tmpb=\@tmpc\@clipfusetrue
5458 \Put@Direct(303,171){\setatombondD}%
5459 }%
5460 \else\if\@tmpb G%fused bond
5461 {\let\@tmpb=\@tmpc\@clipfusetrue
5462 \Put@Direct(303,171){\setatombondb}%
5463 }%
5464 \else%
5465 \yl@xdiff=33\relax
5466 \yl@ydiff=5\relax
5467 \putratom{373}{331}{\@memberb}%
5468 \Put@Line(343,221)(3,5){63}% % single bond at 3 (62->63)
5469 \fi\fi\fi\fi%
5470 \fi\fi\fi
5471 \else%no clipping
5472 \if\@tmpb S%single bond
5473 \ifx\@tmpc\empty%
5474 \yl@xdiff=12\relax
5475 \yl@ydiff=-20\relax
5476 \putratom{363}{311}{\@memberb}%
5477 \Put@Line(303,171)(3,5){72}% % single bond at 3
5478 \else\if\@tmpc B%(B) beta
5479 \yl@xdiff=-20\relax
5480 \yl@ydiff=3\relax
5481 \putratom{443}{240}{\@memberb}% % right type
5482 {%
5483 \thicklines%
5484 \Put@Line(303,171)(5,3){120}% % single bond at 3
5485 }%
5486 \else\if\@tmpc A%(A) alpha
5487 \yl@xdiff=30\relax
5488 \yl@ydiff=-20\relax
5489 \putratom{273}{331}{\@memberb}% % right type
5490 \dotorline(303,171)(0,1){140}/(303,171)(303,311)%
5491 \else\if\@tmpc u%(u) up --- (B) beta
5492 \yl@xdiff=30\relax
5493 \yl@ydiff=-20\relax
5494 \putratom{273}{331}{\@memberb}% % right type
5495 {%
5496 \thicklines%
5497 \Put@Line(303,171)(0,1){140}% % single bond at 3
5498 }%
5499 \else\if\@tmpc d%(d) down --- (A) alpha
5500 \yl@xdiff=-20\relax
5501 \yl@ydiff=3\relax
5502 \putratom{443}{240}{\@memberb}% % right type
5503 \dotorline(303,171)(5,3){120}/(303,171)(423,243)%
5504 \else\if\@tmpc b%(b) beta
5505 \yl@xdiff=-20\relax
5506 \yl@ydiff=3\relax
5507 \putratom{443}{240}{\@memberb}% % right type
5508 \Put@Line(303,171)(5,3){120}% % single bond at 3
5509 \else\if\@tmpc a%(a) alpha
5510 \yl@xdiff=30\relax
5511 \yl@ydiff=-20\relax
5512 \putratom{273}{331}{\@memberb}% % right type
5513 \Put@Line(303,171)(0,1){140}% % single bond at 3
5514 \else\if\@tmpc V%(V) beta undefined
5515 \yl@xdiff=-20\relax
5516 \yl@ydiff=3\relax
5517 \putratom{443}{240}{\@memberb}% % right type
5518 {%
5519 \WaveBonds%
5520 \Put@Line(303,171)(5,3){120}% % single bond at 3
5521 }%
5522 \else\if\@tmpc U%(U) alpha undefined
5523 \yl@xdiff=30\relax
5524 \yl@ydiff=-20\relax
5525 \putratom{273}{331}{\@memberb}% % right type
5526 {%
5527 \WaveBonds%
5528 \Put@Line(303,171)(0,1){140}% % single bond at 3
5529 }%
5530 \fi\fi\fi\fi\fi%
5531 \fi\fi\fi\fi%
5532 \else\if\@tmpb D%double bond
5533 \yl@xdiff=6\relax
5534 \yl@ydiff=-20\relax
5535 \putratom{363}{311}{\@memberb}%
5536 \Put@Line(310,168)(3,5){72}% % double bond at 3
5537 \Put@Line(284,174)(3,5){72}% % double bond at 3
5538 \else\if\@tmpb B%beta single bond
5539 \yl@xdiff=12\relax
5540 \yl@ydiff=-20\relax
5541 \putratom{363}{311}{\@memberb}%
5542 {%
5543 \thicklines%
5544 \Put@Line(303,171)(3,5){72}% % single bond at 3
5545 }%
5546 \else\if\@tmpb A%alpha single bond
5547 \yl@xdiff=12\relax
5548 \yl@ydiff=-20\relax
5549 \putratom{363}{311}{\@memberb}%
5550 \dotorline(303,171)(3,5){72}/(303,171)(375,291)%
5551 \else\if\@tmpb U%undefined single bond
5552 \yl@xdiff=12\relax
5553 \yl@ydiff=-20\relax
5554 \putratom{363}{311}{\@memberb}%
5555 {%
5556 \WaveBonds%
5557 \Put@Line(303,171)(3,5){72}% % single wave bond at 3
5558 }%
5559 \else\if\@tmpb F%fused bond
5560 {\let\@tmpb=\@tmpc\@clipfusefalse
5561 \Put@Direct(303,171){\setatombondD}%
5562 }%
5563 \else\if\@tmpb G%fused bond
5564 {\let\@tmpb=\@tmpc\@clipfusefalse
5565 \Put@Direct(303,171){\setatombondb}%
5566 }%
5567 \else%
5568 \yl@xdiff=12\relax
5569 \yl@ydiff=-20\relax
5570 \putratom{363}{311}{\@memberb}%
5571 \Put@Line(303,171)(3,5){72}% % single bond at 3
5572 \fi\fi\fi\fi%
5573 \fi\fi\fi
5574 \fi}% end of \@hsubstc
5575 % \end{macrocode}
5576 % \end{macro}
5577 %
5578 % The |\@hsubstd| command is used for placing a substituent (|\@memberb|) at
5579 % the 4-position (right-hand) of a vertical six-membered ring.
5580 % \changes{v1.02}{1998/10/31}{Adding \cs{yl@xdiff} and \cs{yl@ydiff}}
5581 % \changes{v2.00}{1998/12/15}{Added bond modifiers: FA, FB, GA, GB, Su, Sd}
5582 % \changes{v4.03}{2005/07/20}{Wave bonds for stereochemistry: U, FU, GU, SU, SV}
5583 % \begin{macro}{\@substd}
5584 % \begin{macrocode}
5585 % %%%%%%%%%%%%%%%
5586 % % subst. on 4 %
5587 % %%%%%%%%%%%%%%%
5588 \def\@hsubstd{%
5589 \if@clip %clipping
5590 \if\@tmpb S%single bond
5591 \ifx\@tmpc\empty%
5592 \yl@xdiff=-17\relax
5593 \yl@ydiff=31\relax
5594 \putratom{563}{-31}{\@memberb}% % right type only
5595 \Put@Line(436,0)(1,0){110}% % single bond at 4
5596 \else\if\@tmpc B%(B) beta
5597 \yl@xdiff=-27\relax
5598 \yl@ydiff=36\relax
5599 \putratom{563}{42}{\@memberb}% % right type only
5600 {%
5601 \thicklines%
5602 \Put@Line(436,18)(5,3){100}% % single bond at 4
5603 }%
5604 \else\if\@tmpc A%(A) alpha
5605 \yl@xdiff=-27\relax
5606 \yl@ydiff=22\relax
5607 \putratom{563}{-100}{\@memberb}% % right type only
5608 \dotorline(436,-18)(5,-3){100}/(436,-18)(526,-72)%
5609 \else\if\@tmpc u%(u) up --- (B) beta
5610 \yl@xdiff=-27\relax
5611 \yl@ydiff=22\relax
5612 \putratom{563}{-100}{\@memberb}% % right type only
5613 {%
5614 \thicklines%
5615 \Put@Line(436,-18)(5,-3){100}% % single bond at 4
5616 }%
5617 \else\if\@tmpc d%(d) down --- (A) alpha
5618 \yl@xdiff=-27\relax
5619 \yl@ydiff=36\relax
5620 \putratom{563}{42}{\@memberb}% % right type only
5621 \dotorline(436,18)(5,3){100}/(436,18)(536,78)%
5622 \else\if\@tmpc b%(b) beta
5623 \yl@xdiff=-27\relax
5624 \yl@ydiff=36\relax
5625 \putratom{563}{42}{\@memberb}% % right type only
5626 \Put@Line(436,18)(5,3){100}% % single bond at 4
5627 \else\if\@tmpc a%(a) alpha
5628 \yl@xdiff=-27\relax
5629 \yl@ydiff=22\relax
5630 \putratom{563}{-100}{\@memberb}% % right type only
5631 \Put@Line(436,-18)(5,-3){100}% % single bond at 4
5632 \else\if\@tmpc V%(V) beta undefined
5633 \yl@xdiff=-27\relax
5634 \yl@ydiff=36\relax
5635 \putratom{563}{42}{\@memberb}% % right type only
5636 {%
5637 \WaveBonds%
5638 \Put@Line(436,18)(5,3){100}% % single bond at 4
5639 }%
5640 \else\if\@tmpc U%(U) alpha undefined
5641 \yl@xdiff=-27\relax
5642 \yl@ydiff=22\relax
5643 \putratom{563}{-100}{\@memberb}% % right type only
5644 {%
5645 \WaveBonds%
5646 \Put@Line(436,-18)(5,-3){100}% % single bond at 4
5647 }%
5648 \fi\fi\fi\fi\fi%
5649 \fi\fi\fi\fi
5650 \else\if\@tmpb D%double bond
5651 \yl@xdiff=-17\relax
5652 \yl@ydiff=31\relax
5653 \putratom{563}{-31}{\@memberb}% % right type only
5654 \Put@Line(436,-12)(1,0){110}% % double bond at 4
5655 \Put@Line(436,12)(1,0){110}% % double bond at 4
5656 \else\if\@tmpb B%beta single bond
5657 \yl@xdiff=-17\relax
5658 \yl@ydiff=31\relax
5659 \putratom{563}{-31}{\@memberb}% % right type only
5660 {%
5661 \thicklines%
5662 \Put@Line(436,0)(1,0){110}% % single bond at 4
5663 }%
5664 \else\if\@tmpb A%alpha single bond
5665 \yl@xdiff=-17\relax
5666 \yl@ydiff=31\relax
5667 \putratom{563}{-31}{\@memberb}% % right type only
5668 \dotorline(436,0)(1,0){110}/(436,0)(546,0)%
5669 \else\if\@tmpb U%undefined single bond
5670 \yl@xdiff=-17\relax
5671 \yl@ydiff=31\relax
5672 \putratom{563}{-31}{\@memberb}% % right type only
5673 {%
5674 \WaveBonds%
5675 \Put@Line(436,0)(1,0){110}% % single wave bond at 3
5676 }%
5677 \else\if\@tmpb F%fused bond
5678 {\let\@tmpb=\@tmpc\@clipfusetrue
5679 \Put@Direct(406,0){\setatombondF}%
5680 }%
5681 \else\if\@tmpb G%fused bond
5682 {\let\@tmpb=\@tmpc\@clipfusetrue
5683 \Put@Direct(406,0){\setatombondE}%
5684 }%
5685 \else%
5686 \yl@xdiff=-17\relax
5687 \yl@ydiff=31\relax
5688 \putratom{563}{-31}{\@memberb}% % right type only
5689 \Put@Line(436,0)(1,0){110}% % single bond at 4
5690 \fi\fi\fi\fi%
5691 \fi\fi\fi
5692 \else%% no clipping
5693 \if\@tmpb S%single bond
5694 \ifx\@tmpc\empty%
5695 \yl@xdiff=-17\relax
5696 \yl@ydiff=31\relax
5697 \putratom{563}{-31}{\@memberb}% % right type only
5698 \Put@Line(406,0)(1,0){140}% % single bond at 4
5699 \else\if\@tmpc B%(B) beta
5700 \yl@xdiff=-37\relax
5701 \yl@ydiff=30\relax
5702 \putratom{563}{42}{\@memberb}% % right type only
5703 {%
5704 \thicklines%
5705 \Put@Line(406,0)(5,3){120}% % single bond at 4
5706 }%
5707 \else\if\@tmpc A%(A) alpha
5708 \yl@xdiff=-37\relax
5709 \yl@ydiff=28\relax
5710 \putratom{563}{-100}{\@memberb}% % right type only
5711 \dotorline(406,0)(5,-3){120}/(406,0)(526,-72)%
5712 \else\if\@tmpc u%(u) up --- (B) beta
5713 \yl@xdiff=-37\relax
5714 \yl@ydiff=28\relax
5715 \putratom{563}{-100}{\@memberb}% % right type only
5716 {%
5717 \thicklines%
5718 \Put@Line(406,0)(5,-3){120}% % single bond at 4
5719 }%
5720 \else\if\@tmpc d%(d) down --- (A) alpha
5721 \yl@xdiff=-37\relax
5722 \yl@ydiff=30\relax
5723 \putratom{563}{42}{\@memberb}% % right type only
5724 \dotorline(406,0)(5,3){120}/(406,0)(526,72)%
5725 \else\if\@tmpc b%(b) beta
5726 \yl@xdiff=-37\relax
5727 \yl@ydiff=30\relax
5728 \putratom{563}{42}{\@memberb}% % right type only
5729 \Put@Line(406,0)(5,3){120}% % single bond at 4
5730 \else\if\@tmpc a%(a) alpha
5731 \yl@xdiff=-37\relax
5732 \yl@ydiff=28\relax
5733 \putratom{563}{-100}{\@memberb}% % right type only
5734 \Put@Line(406,0)(5,-3){120}% % single bond at 4
5735 \else\if\@tmpc V%(V) beta undefined
5736 \yl@xdiff=-37\relax
5737 \yl@ydiff=30\relax
5738 \putratom{563}{42}{\@memberb}% % right type only
5739 {%
5740 \WaveBonds%
5741 \Put@Line(406,0)(5,3){120}% % single bond at 4
5742 }%
5743 \else\if\@tmpc U%(U) alpha undefined
5744 \yl@xdiff=-37\relax
5745 \yl@ydiff=28\relax
5746 \putratom{563}{-100}{\@memberb}% % right type only
5747 {%
5748 \WaveBonds%
5749 \Put@Line(406,0)(5,-3){120}% % single bond at 4
5750 }%
5751 \fi\fi\fi\fi\fi%
5752 \fi\fi\fi\fi
5753 \else\if\@tmpb D%double bond
5754 \yl@xdiff=-17\relax
5755 \yl@ydiff=31\relax
5756 \putratom{563}{-31}{\@memberb}% % right type only
5757 \Put@Line(406,-12)(1,0){140}% % double bond at 4
5758 \Put@Line(406,12)(1,0){140}% % double bond at 4
5759 \else\if\@tmpb B%beta single bond
5760 \yl@xdiff=-17\relax
5761 \yl@ydiff=31\relax
5762 \putratom{563}{-31}{\@memberb}% % right type only
5763 {%
5764 \thicklines%
5765 \Put@Line(406,0)(1,0){140}% % single bond at 4
5766 }%
5767 \else\if\@tmpb A%alpha single bond
5768 \yl@xdiff=-17\relax
5769 \yl@ydiff=31\relax
5770 \putratom{563}{-31}{\@memberb}% % right type only
5771 \dotorline(406,0)(1,0){140}/(406,0)(546,0)%
5772 \else\if\@tmpb U%undefined single bond
5773 \yl@xdiff=-17\relax
5774 \yl@ydiff=31\relax
5775 \putratom{563}{-31}{\@memberb}% % right type only
5776 {%
5777 \WaveBonds%
5778 \Put@Line(406,0)(1,0){140}% % single wave bond at 4
5779 }%
5780 \else\if\@tmpb F%fused bond
5781 {\let\@tmpb=\@tmpc\@clipfusefalse
5782 \Put@Direct(406,0){\setatombondF}%
5783 }%
5784 \else\if\@tmpb G%fused bond
5785 {\let\@tmpb=\@tmpc\@clipfusefalse
5786 \Put@Direct(406,0){\setatombondE}%
5787 }%
5788 \else%
5789 \yl@xdiff=-17\relax
5790 \yl@ydiff=31\relax
5791 \putratom{563}{-31}{\@memberb}% % right type only
5792 \Put@Line(406,0)(1,0){140}% % single bond at 4
5793 \fi\fi\fi\fi%
5794 \fi\fi\fi
5795 \fi}% end of \@hsubstd
5796 % \end{macrocode}
5797 % \end{macro}
5798 %
5799 % The |\@hsubste| command is used for placing a substituent (|\@memberb|) at
5800 % the 5-position (lower-right) of a vertical six-membered ring.
5801 % \changes{v1.02}{1998/10/31}{Adding \cs{yl@xdiff} and \cs{yl@ydiff}}
5802 % \changes{v2.00}{1998/12/15}{Added bond modifiers: FA, FB, GA, GB, Su, Sd}
5803 % \changes{v4.00}{2003/4/1}{Bug fix}
5804 % \changes{v4.03}{2005/07/20}{Wave bonds for stereochemistry: U, FU, GU, SU, SV}
5805 % \begin{macro}{\@hsubste}
5806 % \begin{macrocode}
5807 % %%%%%%%%%%%%%%%
5808 % % subst. on 5 %
5809 % %%%%%%%%%%%%%%%
5810 \def\@hsubste{%
5811 \if@eclip %clipping
5812 \if\@tmpb S%single bond
5813 \ifx\@tmpc\empty%
5814 % \yl@xdiff=43\relax
5815 \yl@xdiff=33\relax
5816 \yl@ydiff=76\relax
5817 % \putratom{363}{-402}{\@memberb}%
5818 \putratom{373}{-402}{\@memberb}%
5819 \Put@Line(343,-221)(3,-5){63}%% single bond at 5 (62=>63)
5820 \else\if\@tmpc B%(B) beta
5821 \yl@xdiff=0\relax
5822 \yl@ydiff=41\relax
5823 \putratom{443}{-301}{\@memberb}% % right type
5824 {%
5825 \thicklines%
5826 \Put@Line(343,-201)(5,-3){100}% % single bond at 5
5827 }%
5828 \else\if\@tmpc A%(A) alpha
5829 % \yl@xdiff=20\relax
5830 \yl@xdiff=30\relax
5831 \yl@ydiff=71\relax
5832 % \putratom{283}{-402}{\@memberb}% % right type
5833 \putlratom{273}{-402}{\@memberb}% % left-right type
5834 % \dotorline(303,-221)(0,-1){110}/(303,-221)(303,-321)%
5835 \dotorline(303,-221)(0,-1){110}/(303,-221)(303,-311)%
5836 \else\if\@tmpc u%(u) up --- (B) beta
5837 % \yl@xdiff=20\relax
5838 \yl@xdiff=30\relax
5839 \yl@ydiff=71\relax
5840 % \putratom{283}{-402}{\@memberb}% % right type
5841 \putlratom{273}{-402}{\@memberb}% % left-right type
5842 {%
5843 \thicklines%
5844 \Put@Line(303,-221)(0,-1){100}% % single bond at 5
5845 }%
5846 \else\if\@tmpc d%(d) down --- (A) alpha
5847 \yl@xdiff=0\relax
5848 \yl@ydiff=41\relax
5849 \putratom{443}{-301}{\@memberb}% % right type
5850 \dotorline(343,-201)(5,-3){100}/(343,-201)(443,-260)%
5851 \else\if\@tmpc b%(b) beta
5852 \yl@xdiff=0\relax
5853 \yl@ydiff=41\relax
5854 \putratom{443}{-301}{\@memberb}% % right type
5855 \Put@Line(343,-201)(5,-3){100}% % single bond at 5
5856 \else\if\@tmpc a%(a) alpha
5857 % \yl@xdiff=20\relax
5858 \yl@xdiff=30\relax
5859 \yl@ydiff=71\relax
5860 % \putratom{283}{-402}{\@memberb}% % right type
5861 \putratom{273}{-402}{\@memberb}% % left-right type
5862 \Put@Line(303,-221)(0,-1){100}% % single bond at 5
5863 \else\if\@tmpc V%(V) beta undefined
5864 \yl@xdiff=0\relax
5865 \yl@ydiff=41\relax
5866 \putratom{443}{-301}{\@memberb}% % right type
5867 {%
5868 \WaveBonds%
5869 \Put@Line(343,-201)(5,-3){100}% % single bond at 5
5870 }%
5871 \else\if\@tmpc U%(U) alpha undefined
5872 \yl@xdiff=30\relax
5873 \yl@ydiff=71\relax
5874 \putratom{273}{-402}{\@memberb}% % left-right type
5875 {%
5876 \WaveBonds%
5877 \Put@Line(303,-221)(0,-1){100}% % single bond at 5
5878 }%
5879 \fi\fi\fi\fi\fi%
5880 \fi\fi\fi\fi
5881 \else\if\@tmpb D%double bond
5882 % \yl@xdiff=22\relax
5883 \yl@xdiff=12\relax
5884 \yl@ydiff=82\relax
5885 % \putratom{363}{-402}{\@memberb}%
5886 \putratom{373}{-402}{\@memberb}%
5887 \Put@Line(328,-208)(3,-5){63}% % double bond at 5 (62->63)
5888 \Put@Line(306,-224)(3,-5){63}% % double bond at 5 (62->63)
5889 \else\if\@tmpb B%beta single bond
5890 % \yl@xdiff=43\relax
5891 \yl@xdiff=33\relax
5892 \yl@ydiff=76\relax
5893 % \putratom{363}{-402}{\@memberb}%
5894 \putratom{373}{-402}{\@memberb}%
5895 {%
5896 \thicklines%
5897 \Put@Line(343,-221)(3,-5){63}%% single bond at 5(62->63)
5898 }%
5899 \else\if\@tmpb A%alpha single bond
5900 \yl@xdiff=33\relax
5901 \yl@ydiff=76\relax
5902 \putratom{373}{-402}{\@memberb}%
5903 \dotorline(343,-221)(3,-5){63}/(343,-221)(406,-326)%
5904 \else\if\@tmpb U%undefined single bond
5905 \yl@xdiff=33\relax
5906 \yl@ydiff=76\relax
5907 \putratom{373}{-402}{\@memberb}%
5908 {%
5909 \WaveBonds%
5910 \Put@Line(343,-221)(3,-5){63}% % single wave bond at 5
5911 }%
5912 \else\if\@tmpb F%fused bond
5913 {\let\@tmpb=\@tmpc\@clipfusetrue
5914 \Put@Direct(303,-171){\setatombondb}%
5915 }%
5916 \else\if\@tmpb G%fused bond
5917 {\let\@tmpb=\@tmpc\@clipfusetrue
5918 \Put@Direct(303,-171){\setatombondG}%
5919 }%
5920 \else%
5921 % \yl@xdiff=43\relax
5922 \yl@xdiff=33\relax
5923 \yl@ydiff=76\relax
5924 % \putratom{363}{-402}{\@memberb}%
5925 \putratom{373}{-402}{\@memberb}%
5926 \Put@Line(343,-221)(3,-5){63}% % single bond at 5(62->63)
5927 \fi\fi\fi\fi%
5928 \fi\fi\fi
5929 \else%no clipping
5930 \if\@tmpb S%single bond
5931 \ifx\@tmpc\empty%
5932 \yl@xdiff=9\relax
5933 % \yl@ydiff=111\relax
5934 \yl@ydiff=91\relax
5935 % \putratom{363}{-402}{\@memberb}%
5936 \putratom{363}{-382}{\@memberb}%
5937 \Put@Line(303,-171)(3,-5){72}% % single bond at 5
5938 \else\if\@tmpc B%(B) beta
5939 \yl@xdiff=-20\relax
5940 \yl@ydiff=58\relax
5941 \putratom{443}{-301}{\@memberb}% % right type
5942 {%
5943 \thicklines%
5944 \Put@Line(303,-171)(5,-3){120}% % single bond at 5
5945 }%
5946 \else\if\@tmpc A%(A) alpha
5947 % \yl@xdiff=20\relax
5948 \yl@xdiff=30\relax
5949 \yl@ydiff=81\relax
5950 % \putratom{283}{-402}{\@memberb}% % right type
5951 \putratom{273}{-402}{\@memberb}% % right type
5952 % \dotorline(303,-171)(0,-1){140}/(303,-171)(303,-321)%
5953 \dotorline(303,-171)(0,-1){140}/(303,-171)(303,-311)%2002/5/30
5954 \else\if\@tmpc u%(u) up --- (B) beta
5955 % \yl@xdiff=20\relax
5956 \yl@xdiff=30\relax
5957 \yl@ydiff=81\relax
5958 % \putratom{283}{-402}{\@memberb}% % right type
5959 \putratom{273}{-402}{\@memberb}% % right type
5960 {%
5961 \thicklines%
5962 \Put@Line(303,-171)(0,-1){140}% % single bond at 5
5963 }%
5964 \else\if\@tmpc d%(d) down --- (A) alpha
5965 \yl@xdiff=-20\relax
5966 \yl@ydiff=58\relax
5967 \putratom{443}{-301}{\@memberb}% % right type
5968 \dotorline(303,-171)(5,-3){120}/(303,-171)(423,-243)%
5969 \else\if\@tmpc b%(b) beta
5970 \yl@xdiff=-20\relax
5971 \yl@ydiff=58\relax
5972 \putratom{443}{-301}{\@memberb}% % right type
5973 \Put@Line(303,-171)(5,-3){120}% % single bond at 5
5974 \else\if\@tmpc a%(a) alpha
5975 % \yl@xdiff=20\relax
5976 \yl@xdiff=30\relax
5977 \yl@ydiff=81\relax
5978 % \putratom{283}{-402}{\@memberb}% % right type
5979 \putratom{273}{-402}{\@memberb}% % right type
5980 \Put@Line(303,-171)(0,-1){140}% % single bond at 5
5981 \else\if\@tmpc V%(V) beta undefined
5982 \yl@xdiff=-20\relax
5983 \yl@ydiff=58\relax
5984 \putratom{443}{-301}{\@memberb}% % right type
5985 {%
5986 \WaveBonds%
5987 \Put@Line(303,-171)(5,-3){120}% % single bond at 5
5988 }%
5989 \else\if\@tmpc U%(U) alpha undefined
5990 \yl@xdiff=30\relax
5991 \yl@ydiff=81\relax
5992 \putratom{273}{-402}{\@memberb}% % right type
5993 {%
5994 \WaveBonds%
5995 \Put@Line(303,-171)(0,-1){140}% % single bond at 5
5996 }%
5997 \fi\fi\fi\fi\fi%
5998 \fi\fi\fi\fi
5999 \else\if\@tmpb D%double bond
6000 \yl@xdiff=3\relax
6001 % \yl@ydiff=111\relax
6002 \yl@ydiff=91\relax
6003 \putratom{363}{-382}{\@memberb}%
6004 % \putratom{363}{-402}{\@memberb}%
6005 \Put@Line(310,-168)(3,-5){72}% % double bond at 5
6006 \Put@Line(284,-174)(3,-5){72}% % double bond at 5
6007 \else\if\@tmpb B%beta single bond
6008 \yl@xdiff=9\relax
6009 % \yl@ydiff=111\relax
6010 \yl@ydiff=91\relax
6011 \putratom{363}{-382}{\@memberb}%
6012 % \putratom{363}{-402}{\@memberb}%
6013 {%
6014 \thicklines%
6015 \Put@Line(303,-171)(3,-5){72}% % single bond at 5
6016 }%
6017 \else\if\@tmpb A%alpha single bond
6018 \yl@xdiff=9\relax
6019 \yl@ydiff=91\relax
6020 \putratom{363}{-382}{\@memberb}%
6021 \dotorline(303,-171)(3,-5){72}/(303,-171)(375,-291)%
6022 \else\if\@tmpb U%undefined single bond
6023 \yl@xdiff=9\relax
6024 \yl@ydiff=91\relax
6025 \putratom{363}{-382}{\@memberb}%
6026 {%
6027 \WaveBonds%
6028 \Put@Line(303,-171)(3,-5){72}% % single wave bond at 5
6029 }%
6030 \else\if\@tmpb F%fused bond
6031 {\let\@tmpb=\@tmpc\@clipfusefalse
6032 \Put@Direct(303,-171){\setatombondb}%
6033 }%
6034 \else\if\@tmpb G%fused bond
6035 {\let\@tmpb=\@tmpc\@clipfusefalse
6036 \Put@Direct(303,-171){\setatombondG}%
6037 }%
6038 \else%
6039 \yl@xdiff=9\relax
6040 % \yl@ydiff=111\relax
6041 \yl@ydiff=91\relax
6042 % \putratom{363}{-402}{\@memberb}%
6043 \putratom{363}{-382}{\@memberb}%
6044 \Put@Line(303,-171)(3,-5){72}% % single bond at 5
6045 \fi\fi\fi\fi%
6046 \fi\fi\fi
6047 \fi}% end of \@hsubste
6048 % \end{macrocode}
6049 % \end{macro}
6050 %
6051 % The |\@hsubstf| command is used for placing a substituent (|\@memberb|) at
6052 % the 6-position (lower-left) of a vertical six-membered ring.
6053 % \changes{v1.02}{1998/10/31}{Adding \cs{yl@xdiff} and \cs{yl@ydiff}}
6054 % \changes{v2.00}{1998/12/15}{Added bond modifiers: FA, FB, GA, GB, Su, Sd}
6055 % \changes{v4.03}{2005/07/20}{Wave bonds for stereochemistry: U, FU, GU, SU, SV}
6056 % \begin{macro}{\@hsubstf}
6057 % \begin{macrocode}
6058 % %%%%%%%%%%%%%%%
6059 % % subst. on 6 %
6060 % %%%%%%%%%%%%%%%
6061 \def\@hsubstf{%
6062 \if@fclip %clipping
6063 \if\@tmpb S%single bond
6064 \ifx\@tmpc\empty%
6065 % \yl@xdiff=43\relax
6066 \yl@xdiff=53\relax
6067 \yl@ydiff=76\relax
6068 % \putlratom{-27}{-402}{\@memberb}%
6069 \putlratom{-37}{-402}{\@memberb}%
6070 \Put@Line(79,-221)(-3,-5){63}% % single bond at 6 (62=>63)
6071 \else\if\@tmpc B%(B) beta
6072 \yl@xdiff=-10\relax
6073 \yl@ydiff=40\relax
6074 \putlatom{-31}{-301}{\@memberb}% % right type
6075 {%
6076 \thicklines%
6077 \Put@Line(59,-201)(-5,-3){100}% % single bond at 6
6078 }%
6079 \else\if\@tmpc A%(A) alpha
6080 % \yl@xdiff=20\relax
6081 \yl@xdiff=30\relax
6082 \yl@ydiff=81\relax
6083 % \putratom{83}{-402}{\@memberb}% % right type
6084 \putlratom{73}{-402}{\@memberb}% % left-right type
6085 \dotorline(103,-221)(0,-1){100}/(103,-221)(103,-321)%
6086 \else\if\@tmpc u%(u) up --- (B) beta
6087 % \yl@xdiff=20\relax
6088 \yl@xdiff=30\relax
6089 \yl@ydiff=81\relax
6090 % \putratom{83}{-402}{\@memberb}% % right type
6091 \putlratom{73}{-402}{\@memberb}% % left-right type
6092 {%
6093 \thicklines%
6094 \Put@Line(103,-221)(0,-1){100}% % single bond at 6
6095 }%
6096 \else\if\@tmpc d%(d) down --- (A) alpha
6097 \yl@xdiff=-10\relax
6098 \yl@ydiff=40\relax
6099 \putlatom{-31}{-301}{\@memberb}% % right type
6100 \dotorline(59,-201)(-5,-3){100}/(59,-201)(-41,-261)%
6101 \else\if\@tmpc b%(b) beta
6102 \yl@xdiff=-10\relax
6103 \yl@ydiff=40\relax
6104 \putlatom{-31}{-301}{\@memberb}% % right type
6105 \Put@Line(59,-201)(-5,-3){100}% % single bond at 6
6106 \else\if\@tmpc a%(a) alpha
6107 % \yl@xdiff=20\relax
6108 \yl@xdiff=30\relax
6109 \yl@ydiff=81\relax
6110 % \putratom{83}{-402}{\@memberb}% % right type
6111 \putratom{73}{-402}{\@memberb}% % right type
6112 \Put@Line(103,-221)(0,-1){100}% % single bond at 6
6113 \else\if\@tmpc V%(V) beta undefined
6114 \yl@xdiff=-10\relax
6115 \yl@ydiff=40\relax
6116 \putlatom{-31}{-301}{\@memberb}% % right type
6117 {%
6118 \WaveBonds%
6119 \Put@Line(59,-201)(-5,-3){100}% % single bond at 6
6120 }%
6121 \else\if\@tmpc U%(U) alpha undefined
6122 \yl@xdiff=30\relax
6123 \yl@ydiff=81\relax
6124 \putratom{73}{-402}{\@memberb}% % right type
6125 {%
6126 \WaveBonds%
6127 \Put@Line(103,-221)(0,-1){100}% % single bond at 6
6128 }%
6129 \fi\fi\fi\fi\fi
6130 \fi\fi\fi\fi
6131 \else\if\@tmpb D%double bond
6132 % \yl@xdiff=49\relax
6133 \yl@xdiff=59\relax
6134 \yl@ydiff=82\relax
6135 % \putlratom{-27}{-402}{\@memberb}%
6136 \putlratom{-37}{-402}{\@memberb}%
6137 \Put@Line(78,-208)(-3,-5){63}% % double bond at 6 (62->63)
6138 \Put@Line(106,-219)(-3,-5){63}% % double bond at 6 (62->63)
6139 \else\if\@tmpb B%beta single bond
6140 % \yl@xdiff=43\relax
6141 \yl@xdiff=53\relax
6142 \yl@ydiff=76\relax
6143 % \putlratom{-27}{-402}{\@memberb}%
6144 \putlratom{-37}{-402}{\@memberb}%
6145 {%
6146 \thicklines%
6147 \Put@Line(79,-221)(-3,-5){63}% % single bond at 6 (62=>63)
6148 }%
6149 \else\if\@tmpb A%alpha single bond
6150 \yl@xdiff=53\relax
6151 \yl@ydiff=76\relax
6152 \putlratom{-37}{-402}{\@memberb}%
6153 \dotorline(79,-221)(-3,-5){63}/(79,-221)(16,-326)%
6154 \else\if\@tmpb U%undefined single bond
6155 \yl@xdiff=53\relax
6156 \yl@ydiff=76\relax
6157 \putlratom{-37}{-402}{\@memberb}%
6158 {%
6159 \WaveBonds%
6160 \Put@Line(79,-221)(-3,-5){63}% % single wave bond at 6
6161 }%
6162 \else\if\@tmpb F%fused bond
6163 {\let\@tmpb=\@tmpc\@clipfusetrue
6164 \Put@Direct(103,-171){\setatombondE}%
6165 }%
6166 \else\if\@tmpb G%fused bond
6167 {\let\@tmpb=\@tmpc\@clipfusetrue
6168 \Put@Direct(103,-171){\setatombondh}%
6169 }%
6170 \else%
6171 % \yl@xdiff=43\relax
6172 \yl@xdiff=53\relax
6173 \yl@ydiff=76\relax
6174 % \putlratom{-27}{-402}{\@memberb}%
6175 \putlratom{-37}{-402}{\@memberb}%
6176 \Put@Line(79,-221)(-3,-5){63}% % single bond at 6(62->63)
6177 \fi\fi\fi\fi%
6178 \fi\fi\fi
6179 \else%%no clipping
6180 \if\@tmpb S%single bond
6181 \ifx\@tmpc\empty%
6182 % \yl@xdiff=59\relax
6183 \yl@xdiff=63\relax
6184 % \yl@ydiff=111\relax
6185 \yl@ydiff=91\relax
6186 % \putlratom{-27}{-402}{\@memberb}%
6187 \putlratom{-27}{-382}{\@memberb}%
6188 \Put@Line(108,-171)(-3,-5){72}% % single bond at 6
6189 % \else\if\@tmpb B%beta single bond
6190 \else\if\@tmpc B%beta single bond%1998/10/11 by S. Fujita
6191 \yl@xdiff=8\relax
6192 \yl@ydiff=58\relax
6193 \putlatom{-31}{-301}{\@memberb}% % right type
6194 {%
6195 \thicklines%
6196 \Put@Line(103,-171)(-5,-3){120}% % single bond at 6
6197 }%
6198 \else\if\@tmpc A%(A) alpha
6199 % \yl@xdiff=20\relax
6200 \yl@xdiff=30\relax
6201 \yl@ydiff=91\relax
6202 % \putratom{83}{-402}{\@memberb}% % right type
6203 \putlratom{73}{-402}{\@memberb}% % left-right type
6204 \dotorline(103,-171)(0,-1){140}/(103,-171)(103,-311)%
6205 \else\if\@tmpc u%(u) up --- (B) beta
6206 % \yl@xdiff=20\relax
6207 \yl@xdiff=30\relax
6208 \yl@ydiff=91\relax
6209 % \putratom{83}{-402}{\@memberb}% % right type
6210 \putlratom{73}{-402}{\@memberb}% % left-right type
6211 {%
6212 \thicklines%
6213 \Put@Line(103,-171)(0,-1){140}% % single bond at 6
6214 }%
6215 \else\if\@tmpc d%(d) down --- (A) alpha
6216 \yl@xdiff=8\relax
6217 \yl@ydiff=58\relax
6218 \putlatom{-31}{-301}{\@memberb}% % right type
6219 \dotorline(103,-171)(-5,-3){120}/(103,-171)(-17,-243)%
6220 \else\if\@tmpc b%(b) beta
6221 \yl@xdiff=8\relax
6222 \yl@ydiff=58\relax
6223 \putlatom{-31}{-301}{\@memberb}% % right type
6224 \Put@Line(103,-171)(-5,-3){120}% % single bond at 6
6225 \else\if\@tmpc a%(a) alpha
6226 % \yl@xdiff=20\relax
6227 \yl@xdiff=30\relax
6228 \yl@ydiff=91\relax
6229 % \putratom{83}{-402}{\@memberb}% % right type
6230 \putlratom{73}{-402}{\@memberb}% % right-left type
6231 \Put@Line(103,-171)(0,-1){140}% % single bond at 6
6232 \else\if\@tmpc V%(V) beta undefined
6233 \yl@xdiff=8\relax
6234 \yl@ydiff=58\relax
6235 \putlatom{-31}{-301}{\@memberb}% % right type
6236 {%
6237 \WaveBonds%
6238 \Put@Line(103,-171)(-5,-3){120}% % single bond at 6
6239 }%
6240 \else\if\@tmpc U%(U) alpha undefined
6241 \yl@xdiff=30\relax
6242 \yl@ydiff=91\relax
6243 \putlratom{73}{-402}{\@memberb}% % right-left type
6244 {%
6245 \WaveBonds%
6246 \Put@Line(103,-171)(0,-1){140}% % single bond at 6
6247 }%
6248 \fi\fi\fi\fi\fi%
6249 \fi\fi\fi\fi
6250 \else\if\@tmpb D%double bond
6251 \yl@xdiff=65\relax
6252 % \yl@ydiff=111\relax
6253 \yl@ydiff=91\relax
6254 % \putlratom{-27}{-402}{\@memberb}%
6255 \putlratom{-27}{-382}{\@memberb}%
6256 \Put@Line(96,-168)(-3,-5){72}% % double bond at 6
6257 \Put@Line(121,-174)(-3,-5){72}% % double bond at 6
6258 \else\if\@tmpb B%beta single bond
6259 \yl@xdiff=59\relax
6260 % \yl@ydiff=111\relax
6261 \yl@ydiff=91\relax
6262 % \putlratom{-27}{-402}{\@memberb}%
6263 \putlratom{-27}{-382}{\@memberb}%
6264 \Put@Line(108,-171)(-3,-5){72}% % single bond at 6
6265 {%
6266 \thicklines%
6267 \Put@Line(108,-171)(-3,-5){72}% % single bond at 6
6268 }%
6269 \else\if\@tmpb A%alpha single bond
6270 \yl@xdiff=59\relax
6271 \yl@ydiff=91\relax
6272 \putlratom{-27}{-382}{\@memberb}%
6273 \dotorline(108,-171)(-3,-5){72}/(103,-171)(31,-291)%
6274 \else\if\@tmpb U%undefined single bond
6275 \yl@xdiff=59\relax
6276 \yl@ydiff=91\relax
6277 \putlratom{-27}{-382}{\@memberb}%
6278 {%
6279 \WaveBonds%
6280 \Put@Line(108,-171)(-3,-5){72}% % single wave bond at 6
6281 }%
6282 \else\if\@tmpb F%fused bond
6283 {\let\@tmpb=\@tmpc\@clipfusefalse
6284 \Put@Direct(103,-171){\setatombondE}%
6285 }%
6286 \else\if\@tmpb G%fused bond
6287 {\let\@tmpb=\@tmpc\@clipfusefalse
6288 \Put@Direct(103,-171){\setatombondh}%
6289 }%
6290 \else%
6291 \yl@xdiff=59\relax
6292 % \yl@ydiff=111\relax
6293 \yl@ydiff=91\relax
6294 % \putlratom{-27}{-402}{\@memberb}%
6295 \putlratom{-27}{-382}{\@memberb}%
6296 \Put@Line(108,-171)(-3,-5){72}% % single bond at 6
6297 \fi\fi\fi\fi%
6298 \fi\fi\fi
6299 \fi}% end of \@hsubstf
6300 % \end{macrocode}
6301 % \end{macro}
6302 %
6303 % \subsection{Setting-up substituents and bonds on a six-membered ring}
6304 %
6305 % The |\setsixringh| macro takes 5 arguments, which have the same meanings
6306 % as described in the definition of the |\setsixringv| macro.
6307 %
6308 % \begin{verbatim}
6309 % ****************************************************************
6310 % * setting of atoms and bonds on a horizontal six-membered ring *
6311 % ****************************************************************
6312 %
6313 % \setsixringh{SUBSLIST}{AD}{LOWER}{UPPER}{ORDER}
6314 %
6315 % \end{verbatim}
6316 %
6317 % The first argument |SUBSLIST| is a list of substituents, which is
6318 % represented in the standard format of \XyMTeX{}.
6319 %
6320 % \begin{verbatim}
6321 % SUBSLIST: list of substituents (max 6 substitution positions)
6322 %
6323 % for n = 1 to 6
6324 %
6325 % nD : exocyclic double bond at n-atom
6326 % n or nS : exocyclic single bond at n-atom
6327 % nA : alpha single bond at n-atom
6328 % nB : beta single bond at n-atom
6329 % nSA : alpha single bond at n-atom (boldface)
6330 % nSB : beta single bond at n-atom (dotted line)
6331 % nSa : alpha (not specified) single bond at n-atom
6332 % nSb : beta (not specified) single bond at n-atom
6333 %
6334 % nSd : alpha single bond at n-atom (dotted line)
6335 % with an alternative direction to nSA
6336 % nSu : beta single bond at n-atom (boldface)
6337 % with an alternative direction to nSB
6338 % nFA : alpha single bond at n-atom (dotted line)
6339 % for ring fusion
6340 % nFB : beta single bond at n-atom (boldface)
6341 % for ring fusion
6342 % nGA : alpha single bond at n-atom (dotted line)
6343 % for the other ring fusion
6344 % nGB : beta single bond at n-atom (boldface)
6345 % for the other ring fusion
6346 %
6347 % \end{verbatim}
6348 %
6349 % The second argument |AD| is an adjustment value, which adjusts the original
6350 % set of locant numbers into the standard one between 1 to 6 for drawing
6351 % a six-membered ring.
6352 % The effective range of the standared set of locant numbers is
6353 % restricted by the auguments |LOWER| and |UPPER|. A minus value of
6354 % the last argument shows the anti-clockwise numbering, while zero or
6355 % a plus value represents the clockwise numbering.
6356 %
6357 % \begin{verbatim}
6358 % AD : adjustment e.g. 0 for six-membered rings
6359 % LOWER : lower limit LOWER < effective range < UPPER
6360 % UPPER : upper limit
6361 % ORDER : >= 0 clockwise, <0 anti-clockwise
6362 %
6363 % \end{verbatim}
6364 %
6365 % \changes{v1.02}{1998/10/11}{Adding switches \cs{@yla} etc.}
6366 % \changes{v1.02}{1998/10/31}{Deleting switches \cs{@yla} etc.}
6367 %
6368 % \begin{macro}{\setsixringh}
6369 % \begin{macrocode}
6370 \def\setsixringh#1#2#3#4#5{%
6371 \@forsemicol\member:=#1\do{%
6372 \ifx\member\empty\else%
6373 \expandafter\@m@mb@r\member;\relax%
6374 \expandafter\threech@r\@membera{}{}%
6375 \ifx\@memberb\@yl\else
6376 \ifnum#5 < 0\relax%
6377 \@tmpaa=-\@tmpa\relax \advance\@tmpaa by#2\relax%
6378 \else\@tmpaa=\@tmpa\relax \advance\@tmpaa by#2\relax \fi
6379 \ifnum\@tmpaa >#3\relax%
6380 \ifnum\@tmpaa <#4\relax%
6381 \ifcase\@tmpaa%0 omit
6382 % \end{macrocode}
6383 %
6384 % The following commands are not used in a revised version
6385 % because of the direct use of |\ifx\@memberb\@yl\else...\fi|.
6386 %
6387 % \begin{macrocode}
6388 % %\or \if@yla\else\@hsubsta\fi% subst. on 1
6389 % %\or \if@ylb\else\@hsubstb\fi% subst. on 2
6390 % %\or \if@ylc\else\@hsubstc\fi% subst. on 3
6391 % %\or \if@yld\else\@hsubstd\fi% subst. on 4
6392 % %\or \if@yle\else\@hsubste\fi% subst. on 5
6393 % %\or \if@ylf\else\@hsubstf\fi% subst. on 6
6394 % \end{macrocode}
6395 %
6396 % \begin{macrocode}
6397 \or{\setbscolor\@hsubsta\addbscolor{}{}}% subst. on 1%2010/10/01
6398 \or{\setbscolor\@hsubstb\addbscolor{}{}}% subst. on 2%2010/10/01
6399 \or{\setbscolor\@hsubstc\addbscolor{}{}}% subst. on 3%2010/10/01
6400 \or{\setbscolor\@hsubstd\addbscolor{}{}}% subst. on 4%2010/10/01
6401 \or{\setbscolor\@hsubste\addbscolor{}{}}% subst. on 5%2010/10/01
6402 \or{\setbscolor\@hsubstf\addbscolor{}{}}% subst. on 6%2010/10/01
6403 \fi%end of ifcase
6404 \fi\fi\fi\fi}}% %end of setsixringh
6405 % \end{macrocode}
6406 % \end{macro}
6407 %
6408 % \section{Mocros linking Substituents}
6409 % \subsection{Right-handed linking unit}
6410 %
6411 % A structure-drawing command can be used to typeset a substituent
6412 % by using a (yl)-argument. Moreover, the macro |\ryl| permits us
6413 % to draw an intermediate linking unit.
6414 % \changes{v1.02}{1998/10/25}{New command: \cs{ryl} etc.}
6415 %
6416 % \begin{macro}{\ryl}
6417 % \begin{macro}{\@ryl}
6418 % \begin{macrocode}
6419 \newcount\x@ryl
6420 \newcount\y@ryl
6421 \def\ryl{\@ifnextchar({\@ryl}{\@ryl()}}
6422 \def\@ryl(#1)#2{%
6423 \iniatom\iniflag%initialize
6424 \@reset@ylsw%
6425 \def\centeraaa{}%
6426 \x@ryl=0\y@ryl=0
6427 \@forsemicol\member:=#1\do{%
6428 \if@ylsw%
6429 \XyMTeXWarning{Duplicated items in the first augument of \string\ryl}%
6430 \else%
6431 \ifx\member\empty\else%
6432 \expandafter\@m@mb@r\member;\relax%
6433 \expandafter\twoch@r\@membera{}%
6434 \settowidth{\dimen0}{\@memberb}%
6435 \x@ryl=\dimen0%%%dimension => counter
6436 \divide\x@ryl\unitlength
6437 \advance\x@ryl by-70
6438 \y@ryl=0
6439 \ifcase\@tmpa%
6440 \def\centeraaa{\@memberb}\@ylswtrue
6441 \advance\y@ryl by50
6442 \or%1
6443 \def\centeraaa{\@memberb}\@ylswtrue
6444 \advance\x@ryl by30
6445 \advance\y@ryl by50
6446 \or%2
6447 \def\centeraaa{\@memberb}\@ylswtrue
6448 \advance\x@ryl by40
6449 \advance\y@ryl by40
6450 \or%3
6451 \def\centeraaa{\@memberb}\@ylswtrue
6452 \advance\x@ryl by50
6453 \advance\y@ryl by30
6454 \or%4
6455 \def\centeraaa{\@memberb}\@ylswtrue
6456 \advance\x@ryl by50
6457 \advance\y@ryl by0
6458 \or%5
6459 \def\centeraaa{\@memberb}\@ylswtrue
6460 \advance\x@ryl by50
6461 \advance\y@ryl by-30
6462 \or%6
6463 \def\centeraaa{\@memberb}\@ylswtrue
6464 \advance\x@ryl by50
6465 \advance\y@ryl by-50
6466 \or%7
6467 \def\centeraaa{\@memberb}\@ylswtrue
6468 \advance\x@ryl by30
6469 \advance\y@ryl by-50
6470 \or%8
6471 \def\centeraaa{\@memberb}\@ylswtrue
6472 \advance\y@ryl by-50
6473 \fi
6474 \fi\fi}%
6475 \yl@shiftii=\x@ryl
6476 \yl@shifti=-\y@ryl
6477 \advance\yl@shiftii\yl@xdiff
6478 \advance\yl@shifti\yl@ydiff
6479 \begin{sfpicture}(0,0)(-\yl@shiftii,-\yl@shifti)%
6480 % %%%%%%%%%%%%%%%%%%%%%%%%
6481 % % setting hetero atoms %
6482 % %%%%%%%%%%%%%%%%%%%%%%%%
6483 \ifx\centeraaa\empty\else%
6484 \@clipfusetrue
6485 \putlatom{40}{-30}{\centeraaa}% % left type
6486 \fi%
6487 % %%%%%%%%%%%%%%%%%%%%%%%%
6488 % % setting substituents %
6489 % %%%%%%%%%%%%%%%%%%%%%%%%
6490 \@forsemicol\member:=#2\do{%
6491 \ifx\member\empty\else%
6492 \expandafter\@m@mb@r\member;\relax%
6493 \expandafter\threech@r\@membera{}{}%
6494 \let\local@tmpa=\@tmpa%global to local 2002/5/30 by SF
6495 \ifcase\local@tmpa%
6496 {\setbscolor\setatombonda\addbscolor{}{}}%2010/10/01%\setatombonda% 0 (upward) (0,1)
6497 \or{\setbscolor\setatombondF\addbscolor{}{}}%2010/10/01%\or\setatombondF%1 (3,5)
6498 \or{\setbscolor\setatombondA\addbscolor{}{}}%2010/10/01%\or\setatombondA%2 (1,1)
6499 \or{\setbscolor\setatombondf\addbscolor{}{}}%2010/10/01%\or\setatombondf%3 (5,3)
6500 \or{\setbscolor\setatombondb\addbscolor{}{}}%2010/10/01%\or\setatombondb%4 (1,0)
6501 \or{\setbscolor\setatombonde\addbscolor{}{}}%2010/10/01%\or\setatombonde%5 (5,-3)
6502 \or{\setbscolor\setatombondB\addbscolor{}{}}%2010/10/01%\or\setatombondB%6 (1,-1)
6503 \or{\setbscolor\setatombondE\addbscolor{}{}}%2010/10/01%\or\setatombondE%7 (3,-5)
6504 \or{\setbscolor\setatombondc\addbscolor{}{}}%2010/10/01%\or\setatombondc%8 (0,-1)
6505 \fi%end of ifcase
6506 \fi
6507 }\end{sfpicture}}% %end of \ryl macro
6508 % \end{macrocode}
6509 % \end{macro}
6510 % \end{macro}
6511 %
6512 % The substituent-setting commands |\setatombondF| etc. are used
6513 % in the macro |\ryl|.
6514 % \changes{v4.03}{2005/07/20}{Concrete wave bonds for stereochemistry: FU, GU}
6515 %
6516 % \begin{macro}{\setatombondF}
6517 % \changes{v1.02}{1998/10/25}{New command: \cs{setatombondF}}
6518 % \changes{v1.02}{1998/10/31}{Adding \cs{yl@xdiff} and \cs{yl@ydiff}}
6519 % \begin{macrocode}
6520 \def\setatombondF{%% (3,5)
6521 \if@clipfuse%
6522 \if\@tmpb B%beta single bond
6523 \yl@xdiff=10\relax
6524 \yl@ydiff=-10\relax
6525 {%
6526 \thicklines%
6527 \Put@Line(30,50)(3,5){60}% % single bond at 1
6528 }%
6529 \else\if\@tmpb A%alpha single bond
6530 \yl@xdiff=10\relax
6531 \yl@ydiff=-10\relax
6532 \dotorline(30,50)(3,5){60}/(30,50)(90,150)%
6533 \else\if\@tmpb U%unspecified single bond
6534 \yl@xdiff=10\relax
6535 \yl@ydiff=-10\relax
6536 {%
6537 \WaveBonds%
6538 \Put@Line(30,50)(3,5){60}% % single bond at 1
6539 }%
6540 \else\if\@tmpb S%beta single bond
6541 \yl@xdiff=10\relax
6542 \yl@ydiff=-10\relax
6543 \Put@Line(30,50)(3,5){60}% % single bond at 1
6544 \else\if\@tmpb D%double bond
6545 \yl@xdiff=10\relax
6546 \yl@ydiff=-10\relax
6547 \Put@Line(40,44)(3,5){60}% % single bond at 1
6548 \Put@Line(20,56)(3,5){60}% % single bond at 1
6549 \else\if\@tmpb T%triple bond
6550 \yl@xdiff=10\relax
6551 \yl@ydiff=-10\relax
6552 \Put@Line(45,41)(3,5){60}% % single bond at 1
6553 \Put@Line(30,50)(3,5){60}% % single bond at 1
6554 \Put@Line(15,59)(3,5){60}% % single bond at 1
6555 \else\ifx\@tmpb\empty%beta single bond
6556 \yl@xdiff=10\relax
6557 \yl@ydiff=-10\relax
6558 \Put@Line(30,50)(3,5){60}% % single bond at 1
6559 \fi\fi\fi\fi\fi\fi\fi%
6560 \putratom{80}{160}{\@memberb}% % right type
6561 \else%no clipping
6562 \if\@tmpb B%beta single bond
6563 \yl@xdiff=10\relax
6564 \yl@ydiff=-10\relax
6565 {%
6566 \thicklines%
6567 \Put@Line(0,0)(3,5){90}% % single bond at 1
6568 }%
6569 \else\if\@tmpb A%alpha single bond
6570 \yl@xdiff=10\relax
6571 \yl@ydiff=-10\relax
6572 \dotorline(0,0)(3,5){90}/(0,0)(90,150)%
6573 \else\if\@tmpb U%unspecified single bond
6574 \yl@xdiff=10\relax
6575 \yl@ydiff=-10\relax
6576 {%
6577 \WaveBonds%
6578 \Put@Line(0,0)(3,5){90}% % single bond at 1
6579 }%
6580 \else\if\@tmpb S%beta single bond
6581 \yl@xdiff=10\relax
6582 \yl@ydiff=-10\relax
6583 \Put@Line(0,0)(3,5){90}% % single bond at 1
6584 \else\if\@tmpb D%beta single bond
6585 \yl@xdiff=10\relax
6586 \yl@ydiff=-10\relax
6587 \Put@Line(10,-6)(3,5){90}% % single bond at 1
6588 \Put@Line(-10,6)(3,5){90}% % single bond at 1
6589 \else\if\@tmpb T%beta single bond
6590 \yl@xdiff=10\relax
6591 \yl@ydiff=-10\relax
6592 \Put@Line(15,-9)(3,5){90}% % single bond at 1
6593 \Put@Line(0,0)(3,5){90}% % single bond at 1
6594 \Put@Line(-15,9)(3,5){90}% % single bond at 1
6595 \else\ifx\@tmpb\empty%beta single bond
6596 \yl@xdiff=10\relax
6597 \yl@ydiff=-10\relax
6598 \Put@Line(0,0)(3,5){90}% % single bond at 1
6599 \fi\fi\fi\fi\fi\fi\fi%
6600 \putratom{80}{160}{\@memberb}% % right type
6601 \fi%
6602 }% end of \setatombondF
6603 % \end{macrocode}
6604 % \end{macro}
6605 %
6606 % \begin{macro}{\setatombondE}
6607 % \changes{v1.02}{1998/10/25}{New command: \cs{setatombondE}}
6608 % \changes{v1.02}{1998/10/31}{Adding \cs{yl@xdiff} and \cs{yl@ydiff}}
6609 % \changes{v4.03}{2005/07/20}{Concrete wave bonds for stereochemistry: FU, GU}
6610 % \begin{macrocode}
6611 \def\setatombondE{%% (3,-5)
6612 \if@clipfuse%
6613 \yl@xdiff=10\relax
6614 % \yl@ydiff=70\relax
6615 \yl@ydiff=90\relax
6616 \if\@tmpb B%beta single bond
6617 {%
6618 \thicklines%
6619 \Put@Line(30,-50)(3,-5){60}% % single bond at 1
6620 }%
6621 \else\if\@tmpb A%alpha single bond
6622 \dotorline(30,-50)(3,-5){60}/(30,-50)(90,-150)%
6623 \else\if\@tmpb U%unspecified single bond
6624 {%
6625 \WaveBonds%
6626 \Put@Line(30,-50)(3,-5){60}% % single bond at 1
6627 }%
6628 \else\if\@tmpb S%beta single bond
6629 \Put@Line(30,-50)(3,-5){60}% % single bond at 1
6630 \else\if\@tmpb D%double bond
6631 \Put@Line(40,-44)(3,-5){60}% % single bond at 1
6632 \Put@Line(20,-56)(3,-5){60}% % single bond at 1
6633 \else\if\@tmpb T%triple bond
6634 \Put@Line(45,-41)(3,-5){60}% % single bond at 1
6635 \Put@Line(30,-50)(3,-5){60}% % single bond at 1
6636 \Put@Line(15,-59)(3,-5){60}% % single bond at 1
6637 \else\ifx\@tmpb\empty%beta single bond
6638 \Put@Line(30,-50)(3,-5){60}% % single bond at 1
6639 \fi\fi\fi\fi\fi\fi\fi%
6640 % \putratom{80}{-220}{\@memberb}% % right type
6641 \putratom{80}{-240}{\@memberb}% % right type
6642 \else%no clipping
6643 \yl@xdiff=10\relax
6644 % \yl@ydiff=70\relax
6645 \yl@ydiff=90\relax
6646 \if\@tmpb B%beta single bond
6647 {%
6648 \thicklines%
6649 \Put@Line(0,0)(3,-5){90}% % single bond at 1
6650 }%
6651 \else\if\@tmpb A%alpha single bond
6652 \dotorline(0,0)(3,-5){90}/(0,0)(90,-150)%
6653 \else\if\@tmpb U%unspecified single bond
6654 {%
6655 \WaveBonds%
6656 \Put@Line(0,0)(3,-5){90}% % single bond at 1
6657 }%
6658 \else\if\@tmpb S%beta single bond
6659 \Put@Line(0,0)(3,-5){90}% % single bond at 1
6660 \else\if\@tmpb D%beta single bond
6661 \Put@Line(10,6)(3,-5){90}% % single bond at 1
6662 \Put@Line(-10,-6)(3,-5){90}% % single bond at 1
6663 \else\if\@tmpb T%beta single bond
6664 \Put@Line(15,9)(3,-5){90}% % single bond at 1
6665 \Put@Line(0,0)(3,-5){90}% % single bond at 1
6666 \Put@Line(-15,-9)(3,-5){90}% % single bond at 1
6667 \else\ifx\@tmpb\empty%beta single bond
6668 \Put@Line(0,0)(3,-5){90}% % single bond at 1
6669 \fi\fi\fi\fi\fi\fi\fi%
6670 % \putratom{80}{-220}{\@memberb}% % right type
6671 \putratom{80}{-240}{\@memberb}% % right type
6672 \fi%
6673 }% end of \setatombondE
6674 % \end{macrocode}
6675 % \end{macro}
6676 %
6677 % \begin{macro}{\setatombondA}
6678 % \changes{v1.02}{1998/10/25}{New command: \cs{setatombondA}}
6679 % \changes{v1.02}{1998/10/31}{Adding \cs{yl@xdiff} and \cs{yl@ydiff}}
6680 % \changes{v4.03}{2005/07/20}{Concrete wave bonds for stereochemistry: FU, GU}
6681 % \begin{macrocode}
6682 \def\setatombondA{%% (1,1)
6683 \yl@xdiff=0\relax
6684 \yl@ydiff=0\relax
6685 \if@clipfuse%
6686 \if\@tmpb B%beta single bond
6687 {%
6688 \thicklines%
6689 \Put@Line(40,40)(1,1){100}% % single bond at 1
6690 }%
6691 \else\if\@tmpb A%alpha single bond
6692 \dotorline(40,40)(1,1){100}/(40,40)(140,140)%
6693 \else\if\@tmpb U%unspecified single bond
6694 {%
6695 \WaveBonds%
6696 \Put@Line(40,40)(1,1){100}% % single bond at 1
6697 }%
6698 \else\if\@tmpb S%beta single bond
6699 \Put@Line(40,40)(1,1){100}% % single bond at 1
6700 \else\if\@tmpb D%double bond
6701 \Put@Line(46,36)(1,1){100}% % single bond at 1
6702 \Put@Line(36,46)(1,1){100}% % single bond at 1
6703 \else\if\@tmpb T%triple bond
6704 \Put@Line(50,30)(1,1){100}% % single bond at 1
6705 \Put@Line(40,40)(1,1){100}% % single bond at 1
6706 \Put@Line(30,50)(1,1){100}% % single bond at 1
6707 \else\ifx\@tmpb\empty%beta single bond
6708 \Put@Line(40,40)(1,1){100}% % single bond at 1
6709 \fi\fi\fi\fi\fi\fi\fi%
6710 \putratom{140}{140}{\@memberb}% % right type
6711 \else%no clipping
6712 \if\@tmpb B%beta single bond
6713 {%
6714 \thicklines%
6715 \Put@Line(0,0)(1,1){120}% % single bond at 1
6716 }%
6717 \else\if\@tmpb A%alpha single bond
6718 \dotorline(0,0)(1,1){120}/(0,0)(120,120)%
6719 \else\if\@tmpb U%unspecified single bond
6720 {%
6721 \WaveBonds%
6722 \Put@Line(0,0)(1,1){120}% % single bond at 1
6723 }%
6724 \else\if\@tmpb S%beta single bond
6725 \Put@Line(0,0)(1,1){120}% % single bond at 1
6726 \else\if\@tmpb D%beta single bond
6727 \Put@Line(6,-6)(1,1){120}% % single bond at 1
6728 \Put@Line(-6,6)(1,1){120}% % single bond at 1
6729 \else\if\@tmpb T%beta single bond
6730 \Put@Line(10,-10)(1,1){120}% % single bond at 1
6731 \Put@Line(0,0)(1,1){120}% % single bond at 1
6732 \Put@Line(-10,10)(1,1){120}% % single bond at 1
6733 \else\ifx\@tmpb\empty%beta single bond
6734 \Put@Line(0,0)(1,1){120}% % single bond at 1
6735 \fi\fi\fi\fi\fi\fi\fi%
6736 \putratom{120}{120}{\@memberb}% % right type
6737 \fi%
6738 }% end of \setatombondA
6739 % \end{macrocode}
6740 % \end{macro}
6741 %
6742 % \begin{macro}{\setatombondB}
6743 % \changes{v1.02}{1998/10/25}{New command: \cs{setatombondB}}
6744 % \changes{v1.02}{1998/10/31}{Adding \cs{yl@xdiff} and \cs{yl@ydiff}}
6745 % \changes{v4.03}{2005/07/20}{Concrete wave bonds for stereochemistry: FU, GU}
6746 % \begin{macrocode}
6747 \def\setatombondB{%% (1,-1)
6748 \if@clipfuse%
6749 \yl@xdiff=0\relax
6750 \yl@ydiff=60\relax
6751 \if\@tmpb B%beta single bond
6752 {%
6753 \thicklines%
6754 \Put@Line(40,-40)(1,-1){100}% % single bond at 1
6755 }%
6756 \else\if\@tmpb A%alpha single bond
6757 \dotorline(40,-40)(1,-1){100}/(40,-40)(140,-140)%
6758 \else\if\@tmpb U%unspecified single bond
6759 {%
6760 \WaveBonds%
6761 \Put@Line(40,-40)(1,-1){100}% % single bond at 1
6762 }%
6763 \else\if\@tmpb S%beta single bond
6764 \Put@Line(40,-40)(1,-1){100}% % single bond at 1
6765 \else\if\@tmpb D%double bond
6766 \Put@Line(46,-36)(1,-1){100}% % single bond at 1
6767 \Put@Line(36,-46)(1,-1){100}% % single bond at 1
6768 \else\if\@tmpb T%triple bond
6769 \Put@Line(50,-30)(1,-1){100}% % single bond at 1
6770 \Put@Line(40,-40)(1,-1){100}% % single bond at 1
6771 \Put@Line(30,-50)(1,-1){100}% % single bond at 1
6772 \else\ifx\@tmpb\empty%beta single bond
6773 \Put@Line(40,-40)(1,-1){100}% % single bond at 1
6774 \fi\fi\fi\fi\fi\fi\fi%
6775 \putratom{140}{-200}{\@memberb}% % right type
6776 \else%no clipping
6777 \yl@xdiff=0\relax
6778 \yl@ydiff=60\relax
6779 \if\@tmpb B%beta single bond
6780 {%
6781 \thicklines%
6782 \Put@Line(0,0)(1,-1){120}% % single bond at 1
6783 }%
6784 \else\if\@tmpb A%alpha single bond
6785 \dotorline(0,0)(1,-1){120}/(0,0)(120,-120)%
6786 \else\if\@tmpb U%unspecified single bond
6787 {%
6788 \WaveBonds%
6789 \Put@Line(0,0)(1,-1){120}% % single bond at 1
6790 }%
6791 \else\if\@tmpb S%beta single bond
6792 \Put@Line(0,0)(1,-1){120}% % single bond at 1
6793 \else\if\@tmpb D%beta single bond
6794 \Put@Line(6,6)(1,-1){120}% % single bond at 1
6795 \Put@Line(-6,-6)(1,-1){120}% % single bond at 1
6796 \else\if\@tmpb T%beta single bond
6797 \Put@Line(10,10)(1,-1){120}% % single bond at 1
6798 \Put@Line(0,0)(1,-1){120}% % single bond at 1
6799 \Put@Line(-10,-10)(1,-1){120}% % single bond at 1
6800 \else\ifx\@tmpb\empty%beta single bond
6801 \Put@Line(0,0)(1,-1){120}% % single bond at 1
6802 \fi\fi\fi\fi\fi\fi\fi%
6803 \putratom{120}{-180}{\@memberb}% % right type
6804 \fi%
6805 }% end of \setatombondB
6806 % \end{macrocode}
6807 % \end{macro}
6808 %
6809 % \subsection{Left-handed linking unit}
6810 %
6811 % A structure-drawing command can be used to typeset a substituent
6812 % by using a (yl)-argument. Moreover, the macro |\lyl| permits us
6813 % to draw an intermediate linking unit.
6814 % \changes{v1.02}{1998/10/25}{New command: \cs{lyl} etc.}
6815 % \begin{macro}{\lyl}
6816 % \begin{macrocode}
6817 \def\lyl{\@ifnextchar({\@lyl}{\@lyl()}}
6818 \def\@lyl(#1)#2{%
6819 \iniatom\iniflag%initialize
6820 \@reset@ylsw%
6821 \def\centeraaa{}%
6822 \x@ryl=0\y@ryl=0
6823 \@forsemicol\member:=#1\do{%
6824 \if@ylsw%
6825 \XyMTeXWarning{Duplicated items in the first augument of \string\ryl}%
6826 \else%
6827 \ifx\member\empty\else%
6828 \expandafter\@m@mb@r\member;\relax%
6829 \expandafter\twoch@r\@membera{}%
6830 \settowidth{\dimen0}{\@memberb}%
6831 \x@ryl=\dimen0%%%dimension => counter
6832 \divide\x@ryl\unitlength
6833 \advance\x@ryl by-80
6834 \y@ryl=0
6835 \ifcase\@tmpa%
6836 \def\centeraaa{\@memberb}\@ylswtrue
6837 %\advance\x@ryl by0
6838 \advance\y@ryl by50
6839 \or%1
6840 \def\centeraaa{\@memberb}\@ylswtrue
6841 \advance\x@ryl by30
6842 \advance\y@ryl by50
6843 \or%2
6844 \def\centeraaa{\@memberb}\@ylswtrue
6845 \advance\x@ryl by40
6846 \advance\y@ryl by40
6847 \or%3
6848 \def\centeraaa{\@memberb}\@ylswtrue
6849 \advance\x@ryl by50
6850 \advance\y@ryl by30
6851 \or%4
6852 \def\centeraaa{\@memberb}\@ylswtrue
6853 \advance\x@ryl by50
6854 \advance\y@ryl by0
6855 \or%5
6856 \def\centeraaa{\@memberb}\@ylswtrue
6857 \advance\x@ryl by50
6858 \advance\y@ryl by-30
6859 \or%6
6860 \def\centeraaa{\@memberb}\@ylswtrue
6861 \advance\x@ryl by50
6862 \advance\y@ryl by-50
6863 \or%7
6864 \def\centeraaa{\@memberb}\@ylswtrue
6865 \advance\x@ryl by30
6866 \advance\y@ryl by-50
6867 \or%8
6868 \def\centeraaa{\@memberb}\@ylswtrue
6869 %\advance\x@ryl by0
6870 \advance\y@ryl by-50
6871 \fi
6872 \fi\fi}%
6873 \yl@shiftii=-\x@ryl
6874 \yl@shifti=-\y@ryl
6875 \advance\yl@shiftii\yl@xdiff
6876 \advance\yl@shifti\yl@ydiff
6877 \begin{sfpicture}(0,0)(-\yl@shiftii,-\yl@shifti)%
6878 % %%%%%%%%%%%%%%%%%%%%%%%%
6879 % % setting hetero atoms %
6880 % %%%%%%%%%%%%%%%%%%%%%%%%
6881 \ifx\centeraaa\empty\else%
6882 \@clipfusetrue
6883 \putratom{-40}{-30}{\centeraaa}% % right type
6884 \fi%
6885 % %%%%%%%%%%%%%%%%%%%%%%%%
6886 % % setting substituents %
6887 % %%%%%%%%%%%%%%%%%%%%%%%%
6888 \@forsemicol\member:=#2\do{%
6889 \ifx\member\empty\else%
6890 \expandafter\@m@mb@r\member;\relax%
6891 \expandafter\threech@r\@membera{}{}%
6892 \let\local@tmpa=\@tmpa%global to local 2002/5/30 by SF
6893 \ifcase\local@tmpa%
6894 {\setbscolor\setatombonda\addbscolor{}{}}%2010/10/01%\setatombonda% 0 (upward) (0,1)
6895 \or{\setbscolor\setatombondD\addbscolor{}{}}%2010/10/01%\or\setatombondD%1 (-3,5)
6896 \or{\setbscolor\setatombondH\addbscolor{}{}}%2010/10/01%\or\setatombondH%2 (-1,1)
6897 \or{\setbscolor\setatombondd\addbscolor{}{}}%2010/10/01%\or\setatombondd%3 (-5,3)
6898 \or{\setbscolor\setatombondh\addbscolor{}{}}%2010/10/01%\or\setatombondh%4 (-1,0)
6899 \or{\setbscolor\setatombondg\addbscolor{}{}}%2010/10/01%\or\setatombondg%5 (-5,-3)
6900 \or{\setbscolor\setatombondC\addbscolor{}{}}%2010/10/01%\or\setatombondC%6 (-1,-1)
6901 \or{\setbscolor\setatombondG\addbscolor{}{}}%2010/10/01%\or\setatombondG%7 (-3,-5)
6902 \or{\setbscolor\setatombondc\addbscolor{}{}}%2010/10/01%\or\setatombondc%8 (0,-1)
6903 \fi%end of ifcase
6904 \fi
6905 }\end{sfpicture}}% %end of \lyl macro
6906 % \end{macrocode}
6907 % \end{macro}
6908 %
6909 % The substituent-setting commands |\setatombondD| etc. are used
6910 % in the macro |\ryl|.
6911 %
6912 % \begin{macro}{\setatombondD}
6913 % \changes{v1.02}{1998/10/25}{New command: \cs{setatombondD}}
6914 % \changes{v1.02}{1998/10/31}{Adding \cs{yl@xdiff} and \cs{yl@ydiff}}
6915 % \changes{v4.03}{2005/07/20}{Concrete wave bonds for stereochemistry: FU, GU}
6916 % \begin{macrocode}
6917 \def\setatombondD{%% (-3,5)
6918 \if@clipfuse%
6919 \if\@tmpb B%beta single bond
6920 % \yl@xdiff=-10\relax
6921 \yl@xdiff=10\relax
6922 \yl@ydiff=-10\relax
6923 {%
6924 \thicklines%
6925 \Put@Line(-30,50)(-3,5){60}% % single bond at 1
6926 }%
6927 \else\if\@tmpb A%alpha single bond
6928 % \yl@xdiff=-10\relax
6929 \yl@xdiff=10\relax
6930 \yl@ydiff=-10\relax
6931 \dotorline(-30,50)(-3,5){60}/(-30,50)(-90,150)%
6932 \else\if\@tmpb U%unspecified single bond
6933 % \yl@xdiff=-10\relax
6934 \yl@xdiff=10\relax
6935 \yl@ydiff=-10\relax
6936 {%
6937 \WaveBonds%
6938 \Put@Line(-30,50)(-3,5){60}% % single bond at 1
6939 }%
6940 \else\if\@tmpb S%beta single bond
6941 % \yl@xdiff=-10\relax
6942 \yl@xdiff=10\relax
6943 \yl@ydiff=-10\relax
6944 \Put@Line(-30,50)(-3,5){60}% % single bond at 1
6945 \else\if\@tmpb D%double bond
6946 % \yl@xdiff=-10\relax
6947 \yl@xdiff=10\relax
6948 \yl@ydiff=-10\relax
6949 \Put@Line(-40,44)(-3,5){60}% % single bond at 1
6950 \Put@Line(-20,56)(-3,5){60}% % single bond at 1
6951 \else\if\@tmpb T%triple bond
6952 % \yl@xdiff=-10\relax
6953 \yl@xdiff=10\relax
6954 \yl@ydiff=-10\relax
6955 \Put@Line(-45,41)(-3,5){60}% % single bond at 1
6956 \Put@Line(-30,50)(-3,5){60}% % single bond at 1
6957 \Put@Line(-15,59)(-3,5){60}% % single bond at 1
6958 \else\ifx\@tmpb\empty%beta single bond
6959 % \yl@xdiff=-10\relax
6960 \yl@xdiff=10\relax
6961 \yl@ydiff=-10\relax
6962 \Put@Line(-30,50)(-3,5){60}% % single bond at 1
6963 \fi\fi\fi\fi\fi\fi\fi%
6964 % \putlatom{-80}{160}{\@memberb}% % left type
6965 \putlatom{-100}{160}{\@memberb}% % left type
6966 \else%no clipping
6967 \if\@tmpb B%beta single bond
6968 % \yl@xdiff=-10\relax
6969 \yl@xdiff=10\relax
6970 \yl@ydiff=-10\relax
6971 {%
6972 \thicklines%
6973 \Put@Line(0,0)(-3,5){90}% % single bond at 1
6974 }%
6975 \else\if\@tmpb A%alpha single bond
6976 % \yl@xdiff=-10\relax
6977 \yl@xdiff=10\relax
6978 \yl@ydiff=-10\relax
6979 \dotorline(0,0)(-3,5){90}/(0,0)(-90,150)%
6980 \else\if\@tmpb U%unspecified single bond
6981 % \yl@xdiff=-10\relax
6982 \yl@xdiff=10\relax
6983 \yl@ydiff=-10\relax
6984 {%
6985 \WaveBonds%
6986 \Put@Line(0,0)(-3,5){90}% % single bond at 1
6987 }%
6988 \else\if\@tmpb S%beta single bond
6989 % \yl@xdiff=-10\relax
6990 \yl@xdiff=10\relax
6991 \yl@ydiff=-10\relax
6992 \Put@Line(0,0)(-3,5){90}% % single bond at 1
6993 \else\if\@tmpb D%beta single bond
6994 % \yl@xdiff=-10\relax
6995 \yl@xdiff=10\relax
6996 \yl@ydiff=-10\relax
6997 \Put@Line(-10,-6)(-3,5){90}% % single bond at 1
6998 \Put@Line(10,6)(-3,5){90}% % single bond at 1
6999 \else\if\@tmpb T%beta single bond
7000 % \yl@xdiff=-10\relax
7001 \yl@xdiff=10\relax
7002 \yl@ydiff=-10\relax
7003 \Put@Line(-15,-9)(-3,5){90}% % single bond at 1
7004 \Put@Line(0,0)(-3,5){90}% % single bond at 1
7005 \Put@Line(15,9)(-3,5){90}% % single bond at 1
7006 \else\ifx\@tmpb\empty%beta single bond
7007 % \yl@xdiff=-10\relax
7008 \yl@xdiff=10\relax
7009 \yl@ydiff=-10\relax
7010 \Put@Line(0,0)(-3,5){90}% % single bond at 1
7011 \fi\fi\fi\fi\fi\fi\fi%
7012 % \putlatom{-80}{160}{\@memberb}% % left type
7013 \putlatom{-100}{160}{\@memberb}% % left type
7014 \fi%
7015 }% end of \setatombondD
7016 % \end{macrocode}
7017 % \end{macro}
7018 %
7019 % \begin{macro}{\setatombondG}
7020 % \changes{v1.02}{1998/10/25}{New command: \cs{setatombondG}}
7021 % \changes{v1.02}{1998/10/31}{Adding \cs{yl@xdiff} and \cs{yl@ydiff}}
7022 % \changes{v4.03}{2005/07/20}{Concrete wave bonds for stereochemistry: FU, GU}
7023 % \begin{macrocode}
7024 \def\setatombondG{%% (-3,-5)
7025 \if@clipfuse%
7026 \yl@xdiff=-10\relax
7027 % \yl@ydiff=70\relax
7028 \yl@ydiff=90\relax
7029 \if\@tmpb B%beta single bond
7030 {%
7031 \thicklines%
7032 \Put@Line(-30,-50)(-3,-5){60}% % single bond at 1
7033 }%
7034 \else\if\@tmpb A%alpha single bond
7035 \dotorline(-30,-50)(-3,-5){60}/(-30,-50)(-90,-150)%
7036 % \dotorline(-33,-55)(-3,-5){60}/(-30,-50)(-90,-150)%
7037 \else\if\@tmpb U%unspecified single bond
7038 {%
7039 \WaveBonds%
7040 \Put@Line(-30,-50)(-3,-5){60}% % single bond at 1
7041 }%
7042 \else\if\@tmpb S%beta single bond
7043 \Put@Line(-30,-50)(-3,-5){60}% % single bond at 1
7044 \else\if\@tmpb D%double bond
7045 \Put@Line(-40,-44)(-3,-5){60}% % single bond at 1
7046 \Put@Line(-20,-56)(-3,-5){60}% % single bond at 1
7047 \else\if\@tmpb T%triple bond
7048 \Put@Line(-45,-41)(-3,-5){60}% % single bond at 1
7049 \Put@Line(-30,-50)(-3,-5){60}% % single bond at 1
7050 \Put@Line(-15,-59)(-3,-5){60}% % single bond at 1
7051 \else\ifx\@tmpb\empty%beta single bond
7052 \Put@Line(-30,-50)(-3,-5){60}% % single bond at 1
7053 \fi\fi\fi\fi\fi\fi\fi%
7054 % \putlatom{-80}{-220}{\@memberb}% % left type
7055 \putlatom{-80}{-240}{\@memberb}% % left type
7056 \else%no clipping
7057 \yl@xdiff=-10\relax
7058 % \yl@ydiff=70\relax
7059 \yl@ydiff=90\relax
7060 \if\@tmpb B%beta single bond
7061 {%
7062 \thicklines%
7063 \Put@Line(0,0)(-3,-5){90}% % single bond at 1
7064 }%
7065 \else\if\@tmpb A%alpha single bond
7066 \dotorline(0,0)(-3,-5){90}/(0,0)(-90,-150)%
7067 \else\if\@tmpb U%unspecified single bond
7068 {%
7069 \WaveBonds%
7070 \Put@Line(0,0)(-3,-5){90}% % single bond at 1
7071 }%
7072 \else\if\@tmpb S%beta single bond
7073 \Put@Line(0,0)(-3,-5){90}% % single bond at 1
7074 \else\if\@tmpb D%beta single bond
7075 \Put@Line(-10,6)(-3,-5){90}% % single bond at 1
7076 \Put@Line(10,-6)(-3,-5){90}% % single bond at 1
7077 \else\if\@tmpb T%beta single bond
7078 \Put@Line(-15,9)(-3,-5){90}% % single bond at 1
7079 \Put@Line(0,0)(-3,-5){90}% % single bond at 1
7080 \Put@Line(15,-9)(-3,-5){90}% % single bond at 1
7081 \else\ifx\@tmpb\empty%beta single bond
7082 \Put@Line(0,0)(-3,-5){90}% % single bond at 1
7083 \fi\fi\fi\fi\fi\fi\fi%
7084 % \putlatom{-80}{-220}{\@memberb}% % left type
7085 \putlatom{-80}{-240}{\@memberb}% % left type
7086 \fi%
7087 }% end of \setatombondG
7088 % \end{macrocode}
7089 % \end{macro}
7090 %
7091 % \begin{macro}{\setatombondH}
7092 % \changes{v1.02}{1998/10/25}{New command: \cs{setatombondH}}
7093 % \changes{v1.02}{1998/10/31}{Adding \cs{yl@xdiff} and \cs{yl@ydiff}}
7094 % \changes{v4.03}{2005/07/20}{Concrete wave bonds for stereochemistry: FU, GU}
7095 % \begin{macrocode}
7096 \def\setatombondH{%% (-1,1)
7097 \yl@xdiff=0\relax
7098 \yl@ydiff=0\relax
7099 \if@clipfuse%
7100 \if\@tmpb B%beta single bond
7101 {%
7102 \thicklines%
7103 \Put@Line(-40,40)(-1,1){100}% % single bond at 1
7104 }%
7105 \else\if\@tmpb A%alpha single bond
7106 \dotorline(-40,40)(-1,1){100}/(-40,40)(-140,140)%
7107 \else\if\@tmpb U%unspecified single bond
7108 {%
7109 \WaveBonds%
7110 \Put@Line(-40,40)(-1,1){100}% % single bond at 1
7111 }%
7112 \else\if\@tmpb S%beta single bond
7113 \Put@Line(-40,40)(-1,1){100}% % single bond at 1
7114 \else\if\@tmpb D%double bond
7115 \Put@Line(-46,36)(-1,1){100}% % single bond at 1
7116 \Put@Line(-36,46)(-1,1){100}% % single bond at 1
7117 \else\if\@tmpb T%triple bond
7118 \Put@Line(-50,30)(-1,1){100}% % single bond at 1
7119 \Put@Line(-40,40)(-1,1){100}% % single bond at 1
7120 \Put@Line(-30,50)(-1,1){100}% % single bond at 1
7121 \else\ifx\@tmpb\empty%beta single bond
7122 \Put@Line(-40,40)(-1,1){100}% % single bond at 1
7123 \fi\fi\fi\fi\fi\fi\fi%
7124 \putlatom{-140}{140}{\@memberb}% % left type
7125 \else%no clipping
7126 \if\@tmpb B%beta single bond
7127 {%
7128 \thicklines%
7129 \Put@Line(0,0)(-1,1){120}% % single bond at 1
7130 }%
7131 \else\if\@tmpb A%alpha single bond
7132 \dotorline(0,0)(-1,1){120}/(0,0)(-120,120)%
7133 \else\if\@tmpb U%unspecified single bond
7134 {%
7135 \WaveBonds%
7136 \Put@Line(0,0)(-1,1){120}% % single bond at 1
7137 }%
7138 \else\if\@tmpb S%beta single bond
7139 \Put@Line(0,0)(-1,1){120}% % single bond at 1
7140 \else\if\@tmpb D%beta single bond
7141 \Put@Line(-6,-6)(-1,1){120}% % single bond at 1
7142 \Put@Line(6,6)(-1,1){120}% % single bond at 1
7143 \else\if\@tmpb T%beta single bond
7144 \Put@Line(-10,-10)(-1,1){120}% % single bond at 1
7145 \Put@Line(0,0)(-1,1){120}% % single bond at 1
7146 \Put@Line(10,10)(-1,1){120}% % single bond at 1
7147 \else\ifx\@tmpb\empty%beta single bond
7148 \Put@Line(0,0)(-1,1){120}% % single bond at 1
7149 \fi\fi\fi\fi\fi\fi\fi%
7150 \putlatom{-120}{120}{\@memberb}% % left type
7151 \fi%
7152 }% end of \setatombondH
7153 % \end{macrocode}
7154 % \end{macro}
7155 %
7156 % \begin{macro}{\setatombondC}
7157 % \changes{v1.02}{1998/10/25}{New command: \cs{setatombondC}}
7158 % \changes{v1.02}{1998/10/31}{Adding \cs{yl@xdiff} and \cs{yl@ydiff}}
7159 % \changes{v4.03}{2005/07/20}{Concrete wave bonds for stereochemistry: FU, GU}
7160 % \begin{macrocode}
7161 \def\setatombondC{%% (-1,-1)
7162 \if@clipfuse%
7163 \yl@xdiff=0\relax
7164 \yl@ydiff=60\relax
7165 \if\@tmpb B%beta single bond
7166 {%
7167 \thicklines%
7168 \Put@Line(-40,-40)(-1,-1){100}% % single bond at 1
7169 }%
7170 \else\if\@tmpb A%alpha single bond
7171 \dotorline(-40,-40)(-1,-1){100}/(-40,-40)(-140,-140)%
7172 \else\if\@tmpb U%unspecified single bond
7173 {%
7174 \WaveBonds%
7175 \Put@Line(-40,-40)(-1,-1){100}% % single bond at 1
7176 }%
7177 \else\if\@tmpb S%beta single bond
7178 \Put@Line(-40,-40)(-1,-1){100}% % single bond at 1
7179 \else\if\@tmpb D%double bond
7180 \Put@Line(-46,-36)(-1,-1){100}% % single bond at 1
7181 \Put@Line(-36,-46)(-1,-1){100}% % single bond at 1
7182 \else\if\@tmpb T%triple bond
7183 \Put@Line(-50,-30)(-1,-1){100}% % single bond at 1
7184 \Put@Line(-40,-40)(-1,-1){100}% % single bond at 1
7185 \Put@Line(-30,-50)(-1,-1){100}% % single bond at 1
7186 \else\ifx\@tmpb\empty%beta single bond
7187 \Put@Line(-40,-40)(-1,-1){100}% % single bond at 1
7188 \fi\fi\fi\fi\fi\fi\fi%
7189 \putlatom{-140}{-200}{\@memberb}% % left type
7190 \else%no clipping
7191 \yl@xdiff=0\relax
7192 \yl@ydiff=60\relax
7193 \if\@tmpb B%beta single bond
7194 {%
7195 \thicklines%
7196 \Put@Line(0,0)(-1,-1){120}% % single bond at 1
7197 }%
7198 \else\if\@tmpb A%alpha single bond
7199 \dotorline(0,0)(-1,-1){120}/(0,0)(-120,-120)%
7200 \else\if\@tmpb U%unspecified single bond
7201 {%
7202 \WaveBonds%
7203 \Put@Line(0,0)(-1,-1){120}% % single bond at 1
7204 }%
7205 \else\if\@tmpb S%beta single bond
7206 \Put@Line(0,0)(-1,-1){120}% % single bond at 1
7207 \else\if\@tmpb D%beta single bond
7208 \Put@Line(-6,6)(-1,-1){120}% % single bond at 1
7209 \Put@Line(6,-6)(-1,-1){120}% % single bond at 1
7210 \else\if\@tmpb T%beta single bond
7211 \Put@Line(-10,10)(-1,-1){120}% % single bond at 1
7212 \Put@Line(0,0)(-1,-1){120}% % single bond at 1
7213 \Put@Line(10,-10)(-1,-1){120}% % single bond at 1
7214 \else\ifx\@tmpb\empty%beta single bond
7215 \Put@Line(0,0)(-1,-1){120}% % single bond at 1
7216 \fi\fi\fi\fi\fi\fi\fi%
7217 \putlatom{-120}{-180}{\@memberb}% % left type
7218 \fi%
7219 }% end of \setatombondC
7220 % \end{macrocode}
7221 % \end{macro}
7222 %
7223 % \section{Minor Linking Units}
7224 %
7225 % \begin{macro}{\ayl}
7226 % \begin{macrocode}
7227 \def\ayl{\@ifnextchar({\@ayl@}{\@ayl@(10,40)}}
7228 \def\@ayl@(#1,#2)#3{\begingroup\yl@xdiff=0 \yl@ydiff=0%
7229 \kern#1\unitlength\raise#2\unitlength\hbox to0pt{#3\hss}%
7230 \endgroup}
7231 % \end{macrocode}
7232 % \end{macro}
7233 %
7234 % \begin{macro}{\upnobond}
7235 % \begin{macro}{\downnobond}
7236 % \begin{macrocode}
7237 \def\upnobond#1#2{%
7238 \hbox{\hbox to0.72em{\hss#1\hss}\kern-0.72em\raise2.2ex\hbox{#2}}}
7239 \def\downnobond#1#2{%
7240 \hbox{\hbox to0.72em{\hss#1\hss}\kern-0.72em\lower2.2ex\hbox{#2}}}
7241 % \end{macrocode}
7242 % \end{macro}
7243 % \end{macro}
7244 %
7245 % \begin{macro}{\BiFunc}
7246 % \changes{v5.01}{2013/03/14}{\cs{BiFunc} added to biphenyl-type derivative}
7247 % The format (slope){length}{moietyA}{moietyB} supports the function for
7248 % linking moiety A and moiety B through a bond with a given slope.
7249 % \begin{macrocode}
7250 \def\BiFunc(#1,#2)#3#4#5{%
7251 \SlopetoXY(0,0)(#1,#2){#3}%
7252 \begin{picture}(\@tempcntXa,\@tempcntYa)(0,0)%
7253 \Put@Line(0,0)(#1,#2){#3}%
7254 \put(0,0){#4}%
7255 \put(\@tempcntXa,\@tempcntYa){#5}%
7256 \end{picture}}
7257 % \end{macrocode}
7258 % \end{macro}
7259 %
7260 % \section{Spriro-Ring Commands}
7261 % \subsection{Basic Commands for Six-Membered Rings}
7262 %
7263 % For treating spiro-ring fusion, the following basic commands
7264 % (|\test@vertix| and |\test@vertix@sixv|) are added at the
7265 % time of releasing Version 2.00. These commands are generally
7266 % used for detecting hetero atoms at respective vertices of a
7267 % heterocyclic ring.
7268 %
7269 % The command |\test@vertix| is used in |\test@vertix@sixv|.
7270 % which is designed to test the existence of a hetero atom
7271 % (or an equivalent) at each vertix of a six-membered ring.
7272 %
7273 % \begin{macro}{\test@vertix}
7274 % \begin{macro}{\test@vertix@sixv}
7275 % \changes{v2.00}{1998/11/15}{New command: \cs{test@vertix} and
7276 % \cs{test@vertix@sixv}}
7277 % \changes{v4.03b}{2006/9/6}{\cs{ggg} is changed into \cs{gggA} for \cs{test@vertix} and
7278 % \cs{test@vertix@sixv}}
7279 % \begin{macrocode}
7280 \def\test@vertix#1{%
7281 \def\tempG{#1}\relax%%%added 2006/9/6
7282 \if\tempG g\relax
7283 \expandafter\def\csname #1#1#1A\endcsname{@}%
7284 \if\@tmpb h\relax
7285 \expandafter\def\csname #1#1#1A\endcsname{@}%
7286 \else\if\@tmpb s\relax
7287 \expandafter\def\csname #1#1#1A\endcsname{}%
7288 \fi\fi
7289 \else
7290 \expandafter\def\csname #1#1#1\endcsname{@}%
7291 \if\@tmpb h\relax
7292 \expandafter\def\csname #1#1#1\endcsname{@}%
7293 \else\if\@tmpb s\relax
7294 \expandafter\def\csname #1#1#1\endcsname{}%
7295 \fi\fi
7296 \fi
7297 }
7298 % \end{macrocode}
7299 %
7300 % The command |\test@vertix@sixv| is designed to test
7301 % the existence of a hetero atom (or an equivalent)
7302 % at each vertix of a six-membered ring.
7303 %
7304 % \begin{macrocode}
7305 \def\test@vertix@sixv#1#2#3#4#5#6#7{%
7306 \@forsemicol\member:=#1\do{%
7307 \ifx\member\empty \relax\else%
7308 \expandafter\@m@mb@r\member;\relax%
7309 \expandafter\twoCH@R\@membera//%
7310 \ifcase\@tmpa%
7311 % \changes{v2.00}{1996/11/14}{@ in place of a net value}
7312 \or \test@vertix{#2}%
7313 \or \test@vertix{#3}%
7314 \or \test@vertix{#4}%
7315 \or
7316 \if\@tmpb a\relax%
7317 \def\iii{@}%
7318 \else
7319 \test@vertix{#5}%
7320 \fi
7321 \or \test@vertix{#6}%
7322 \or \test@vertix{#7}%
7323 \fi\fi}}% end of \test@vertix@sixv
7324 %\def\test@vertix@sixv#1#2#3#4#5#6#7{%
7325 %\@forsemicol\member:=#1\do{%
7326 %\expandafter\@m@mb@r\member;\relax%
7327 %\expandafter\twoch@r\@membera{}%
7328 %\ifcase\@tmpa%
7329 %% \changes{v2.00}{1996/11/14}{@ in place of a net value}
7330 % \or \test@vertix{#2}%
7331 % \or \test@vertix{#3}%
7332 % \or \test@vertix{#4}%
7333 % \or \test@vertix{#5}%
7334 % \or \test@vertix{#6}%
7335 % \or \test@vertix{#7}%
7336 %\fi}}
7337 % \end{macrocode}
7338 % \end{macro}
7339 % \end{macro}
7340 %
7341 % The command |\set@hetatom@sixv| is to set a spiro group
7342 % (stored as |\@memberb|)
7343 % at a vertix designated by |\@tmpaa| (or originally by |\@tmpa|).
7344 % The atom modifier `s' designates that the spiro group contains
7345 % a carbon atom (a vertix) at a spiro position, while `h'
7346 % represents the presence of a hetero atom at a spiro position.
7347 % The absence of such atom modifiers shows the substitution
7348 % of a usual hetero atom. The command |\set@hetatom@sixv| is
7349 % used in such commands as |\sixheterov| and |\sixheterovi|
7350 % for treating thier ATOMLISTs,
7351 % e.g. |1==N;1s==\sixheterov{}{1==(yl)}|.
7352 %
7353 % \begin{macro}{\set@hetatom@sixv}
7354 % \changes{v2.00}{1998/11/15}{New command: \cs{set@hetatom@sixv}}
7355 % \begin{macrocode}
7356 \def\set@hetatom@sixv#1#2#3#4#5{%
7357 \@forsemicol\member:=#1\do{%
7358 \ifx\member\empty \relax\else%
7359 \expandafter\@m@mb@r\member;\relax%
7360 \expandafter\twoch@r\@membera{}\relax%
7361 \ifnum#5 < 0\relax%
7362 \@tmpaa=-\@tmpa\relax \advance\@tmpaa by#2\relax%
7363 \else\@tmpaa=\@tmpa\relax \advance\@tmpaa by#2\relax \fi
7364 \ifnum\@tmpaa >#3\relax%
7365 \ifnum\@tmpaa <#4\relax%
7366 \ifcase\@tmpaa \relax%
7367 \or%position 1
7368 \if\@tmpb h\relax
7369 \@acliptrue%
7370 \putratom{0}{356}{\@memberb}% % right type
7371 \else\if\@tmpb s\relax
7372 \@aclipfalse%
7373 \putratom{0}{406}{\@memberb}% % right type
7374 \else\if\@tmpb a\relax%omit fused position
7375 \else\relax
7376 \@acliptrue%
7377 \putratom{-31}{356}{\@memberb}% % right type
7378 \fi\fi\fi
7379 \or%position 2
7380 \if\@tmpb h\relax
7381 \@bcliptrue%
7382 \putratom{135}{280}{\@memberb}% % right type
7383 \else\if\@tmpb s\relax
7384 \@bclipfalse%
7385 \putratom{175}{303}{\@memberb}% % right type
7386 \else\if\@tmpb a\relax%omit fused position
7387 \else\relax
7388 \@bcliptrue%
7389 \putratom{135}{280}{\@memberb}% % right type
7390 \fi\fi\fi
7391 \or%position 3
7392 \if\@tmpb h\relax
7393 \@ccliptrue%
7394 \putratom{135}{95}{\@memberb}% % right type
7395 \else\if\@tmpb s\relax
7396 \@cclipfalse%
7397 \putratom{175}{103}{\@memberb}% % right type
7398 \else\if\@tmpb a\relax%omit fused position
7399 \else\relax
7400 \@ccliptrue%
7401 \putratom{135}{65}{\@memberb}% % right type
7402 \fi\fi\fi
7403 \or%position 4
7404 \if\@tmpb h\relax
7405 \@cliptrue%
7406 \putratom{0}{50}{\@memberb}% % right type
7407 \else\if\@tmpb s\relax
7408 \@clipfalse%
7409 \putratom{0}{0}{\@memberb}% % right type
7410 \else\if\@tmpb a\relax%omit fused position
7411 \else\relax
7412 \@cliptrue%
7413 \putratom{-31}{-10}{\@memberb}% % right type
7414 \fi\fi\fi
7415 \or%position 5
7416 \if\@tmpb h\relax
7417 \@ecliptrue%
7418 \putlatom{-135}{95}{\@memberb}% % right type
7419 \else\if\@tmpb s\relax
7420 \@eclipfalse%
7421 \putlatom{-175}{103}{\@memberb}% % right type
7422 \else\if\@tmpb a\relax%omit fused position
7423 \else\relax
7424 \@ecliptrue%
7425 \putlatom{-135}{65}{\@memberb}% % left type
7426 \fi\fi\fi
7427 \or%position 6
7428 \if\@tmpb h\relax
7429 \@fcliptrue%
7430 \putlatom{-135}{280}{\@memberb}% % right type
7431 \else\if\@tmpb s\relax
7432 \@fclipfalse%
7433 \putlatom{-175}{303}{\@memberb}% % right type
7434 \else\if\@tmpb a\relax%omit fused position
7435 \else\relax
7436 \@fcliptrue%
7437 \putlatom{-135}{280}{\@memberb}% % left type
7438 \fi\fi\fi
7439 \fi% end of ifcase
7440 \fi\fi\fi}}% end of the macro \set@hetatom@sixv
7441 % \end{macrocode}
7442 % \end{macro}
7443 %
7444 % The command |\set@hetatom@sixh| is to set a spiro group
7445 % (stored as |\@memberb|)
7446 % at a vertix designated by |\@tmpaa| (or originally by |\@tmpa|).
7447 % The atom modifier `s' designates that the spiro group contains
7448 % a carbon atom (a vertix) at a spiro position, while `h'
7449 % represents the presence of a hetero atom at a spiro position.
7450 % The absence of such atom modifiers shows the substitution
7451 % of a usual hetero atom. The command |\set@hetatom@sixh| is
7452 % used in such commands as |\sixheteroh| and |\sixheterohi|
7453 % for treating thier ATOMLISTs,
7454 % e.g. |1==N;1s==\sixheteroh{}{1==(yl)}|.
7455 %
7456 % \begin{macro}{\set@hetatom@sixh}
7457 % \changes{v2.00}{1998/11/23}{New command: \cs{set@hetatom@sixh}}
7458 % \begin{macrocode}
7459 \def\set@hetatom@sixh#1#2#3#4#5{%
7460 \@forsemicol\member:=#1\do{%
7461 \ifx\member\empty\else%
7462 \expandafter\@m@mb@r\member;\relax%
7463 %\expandafter\twoch@r\@membera{}%
7464 \expandafter\twoCH@R\@membera//%
7465 \ifnum#5 < 0\relax%
7466 \@tmpaa=-\@tmpa\relax \advance\@tmpaa by#2\relax%
7467 \else\@tmpaa=\@tmpa\relax \advance\@tmpaa by#2\relax \fi
7468 \ifnum\@tmpaa >#3\relax%
7469 \ifnum\@tmpaa <#4\relax%
7470 \ifcase\@tmpaa%
7471 \or%position 1
7472 \if\@tmpb h\relax
7473 \@acliptrue%
7474 \putlatom{60}{0}{\@memberb}% % left type
7475 \else\if\@tmpb s\relax
7476 \@aclipfalse%
7477 \putlatom{0}{0}{\@memberb}% % left type
7478 \else\if\@tmpb a\relax%omit fused position
7479 \else
7480 \@acliptrue%
7481 \putlatom{60}{-36}{\@memberb}% % left type
7482 \fi\fi\fi
7483 \or%position 2
7484 \if\@tmpb h\relax
7485 \@bcliptrue%
7486 \putlatom{135}{141}{\@memberb}% % left type
7487 \else\if\@tmpb s\relax
7488 \@bclipfalse%
7489 \putlatom{103}{171}{\@memberb}% % left type
7490 \else\if\@tmpb a\relax%omit fused position
7491 \else
7492 \@bcliptrue%
7493 \putlatom{135}{141}{\@memberb}% % left type
7494 \fi\fi\fi
7495 \or%position 3
7496 \if\@tmpb h\relax
7497 \@ccliptrue%
7498 \putratom{273}{141}{\@memberb}% % right type
7499 \else\if\@tmpb s\relax
7500 \@cclipfalse%
7501 \putratom{303}{171}{\@memberb}% % right type
7502 \else\if\@tmpb a\relax%omit fused position
7503 \else
7504 \@ccliptrue%
7505 \putratom{273}{141}{\@memberb}% % right type
7506 \fi\fi\fi
7507 \or%position 4
7508 \if\@tmpb h\relax
7509 \@cliptrue%
7510 \putratom{346}{0}{\@memberb}% % right type
7511 \else\if\@tmpb s\relax
7512 \@clipfalse%
7513 \putratom{406}{0}{\@memberb}% % right type
7514 \else\if\@tmpb a\relax%omit fused position
7515 \else
7516 \@cliptrue%
7517 \putratom{346}{-36}{\@memberb}% % right type
7518 \fi\fi\fi
7519 \or%position 5
7520 \if\@tmpb h\relax
7521 \@ecliptrue%
7522 \putratom{283}{-131}{\@memberb}% % right type
7523 \else\if\@tmpb s\relax
7524 \@eclipfalse%
7525 \putratom{303}{-171}{\@memberb}% % right type
7526 \else\if\@tmpb a\relax%omit fused position
7527 \else
7528 \@ecliptrue%
7529 \putratom{273}{-211}{\@memberb}% % right type
7530 \fi\fi\fi
7531 \or%position 6
7532 \if\@tmpb h\relax
7533 \@fcliptrue%
7534 \putlatom{125}{-131}{\@memberb}% % left type
7535 \else\if\@tmpb s\relax
7536 \@fclipfalse%
7537 \putlatom{103}{-171}{\@memberb}% % left type
7538 \else\if\@tmpb a\relax%omit fused position
7539 \else
7540 \@fcliptrue%
7541 \putlatom{135}{-211}{\@memberb}% % left type
7542 \fi\fi\fi
7543 \fi% end of ifcase
7544 \fi\fi\fi}}% end of the macro \set@hetatom@sixh
7545 % \end{macrocode}
7546 % \end{macro}
7547 %
7548 % \subsection{Basic Commands for Six-Six Rings}
7549 %
7550 % The command |\test@vertix@decav| is designed to test
7551 % the existence of a hetero atom (or an equivalent)
7552 % at each vertix of a six-six fused ring.
7553 %
7554 % \begin{macro}{\test@vertix@decav}
7555 % \begin{macrocode}
7556 \def\test@vertix@decav#1#2#3#4#5#6#7{%
7557 \@forsemicol\member:=#1\do{%
7558 \ifx\member\empty\relax\else%
7559 \expandafter\@m@mb@r\member;\relax%
7560 \expandafter\twoch@r\@membera{}%
7561 \ifcase\@tmpa \relax%
7562 \or\or\or\or\or\or
7563 \or \test@vertix{#2}%
7564 \or
7565 \if\@tmpb a\relax%
7566 \def\jjj{@}%
7567 \else
7568 \test@vertix{#3}%
7569 \fi
7570 \or \test@vertix{#4}%
7571 \or \test@vertix{#5}%
7572 % \or \test@vertix{#6}%
7573 % \or \test@vertix{#7}%
7574 \fi\fi}}
7575 % \end{macrocode}
7576 % \end{macro}
7577 %
7578 % The command |\set@vrtx@fuse| is to set an atom (stored as
7579 % |\@memberb|) at one (stored as |\@tmpa|) of the fused vertices
7580 % of a six-six ring.
7581 % These vertices are incapable of accomodating a spiro group.
7582 % On the other hand, the other positions can take spiro groups
7583 % (stored as |\@memberb|), which are treated by means of
7584 % the command |\set@hetatom@sixv|.
7585 % The command |\set@vrtx@fuse| is used in such commands
7586 % as |\decaheterov| for treating thier ATOMLISTs,
7587 %
7588 % \begin{macro}{\set@vrtx@fuse}
7589 % \changes{v2.00}{1998/11/15}{New command: \cs{set@vrtx@fuse}}
7590 % \changes{v2.01}{1998/11/15}{The prefix \cs{\global} are omitted.}
7591 % \begin{macrocode}
7592 \def\set@vrtx@fuse#1{%
7593 \@forsemicol\member:=#1\do{%
7594 \ifx\member\empty\else%
7595 \expandafter\@m@mb@r\member;\relax%
7596 \expandafter\twoch@r\@membera{}%
7597 \ifcase\@tmpa%
7598 \or
7599 \or
7600 \or
7601 \or%%%%4
7602 \if\@tmpb a\relax%
7603 % \global\@icliptrue%
7604 \@icliptrue%2001/06/20 by S. Fujita
7605 \putlatom{207}{65}{\@memberb}% % left type
7606 \else\relax
7607 \fi
7608 \or%5
7609 \or%6
7610 \or%7
7611 \or%
7612 \if\@tmpb a\relax%
7613 % \global\@jcliptrue%
7614 \@jcliptrue%2001/06/20 by S. Fujita
7615 \putlatom{207}{280}{\@memberb}% % left type
7616 \else\relax
7617 \fi
7618 \or%9 (= 4a)
7619 % \global\@icliptrue%
7620 \@icliptrue%2001/06/20 by S. Fujita
7621 \putlatom{207}{65}{\@memberb}% % left type
7622 \or%10 (= 8a)
7623 % \global\@jcliptrue%
7624 \@jcliptrue%2001/06/20 by S. Fujita
7625 \putlatom{207}{280}{\@memberb}% % left type
7626 \fi\fi}%
7627 }% end of the macro \set@vrtx@fuse
7628 % \end{macrocode}
7629 % \end{macro}
7630 %
7631 % The command |\set@vrtx@fuseh| is to set an atom (stored as
7632 % |\@memberb|) at one (stored as |\@tmpa|) of the fused vertices
7633 % of a six-six ring.
7634 % These vertices are incapable of accomodating a spiro group.
7635 % On the other hand, the other positions can take spiro groups
7636 % (stored as |\@memberb|), which are treated by means of
7637 % the command |\set@hetatom@sixh|.
7638 % The command |\set@vrtx@fuseh| is used in such commands
7639 % as |\decaheteroh| for treating thier ATOMLISTs,
7640 %
7641 % \begin{macro}{\set@vrtx@fuseh}
7642 % \changes{v2.00}{1998/11/15}{New command: \cs{set@vrtx@fuseh}}
7643 % \changes{v2.01}{1998/11/15}{The prefix \cs{\global} are omitted.}
7644 % \begin{macrocode}
7645 \def\set@vrtx@fuseh#1{%
7646 \@forsemicol\member:=#1\do{%
7647 \ifx\member\empty\else%
7648 \expandafter\@m@mb@r\member;\relax%
7649 \expandafter\twoCH@R\@membera//%
7650 \ifcase\@tmpa%
7651 \or
7652 \or
7653 \or
7654 \or%%%%4
7655 \if\@tmpb a\relax%
7656 % \global\@icliptrue%
7657 \@icliptrue%%2001/06/20 by S. Fujita
7658 \putratom{273}{-211}{\@memberb}% % right type
7659 \else\relax
7660 \fi
7661 \or%5
7662 \or%6
7663 \or%7
7664 \or%
7665 \if\@tmpb a\relax%
7666 % \global\@jcliptrue%
7667 \@jcliptrue%2001/06/20 by S. Fujita%
7668 \putlatom{135}{-211}{\@memberb}% % left type
7669 \else\relax
7670 \fi
7671 \or%9 (= 4a)
7672 \ifx\@tmpb\empty\relax
7673 % \global\@icliptrue%
7674 \@icliptrue%%2001/06/20 by S. Fujita
7675 \putratom{273}{-211}{\@memberb}% % right type
7676 \else
7677 \XyMTeXWarning{Forbidden spiro ring for the 4a position}%
7678 \fi
7679 \or%10 (= 8a)
7680 \ifx\@tmpb\empty\relax
7681 % \global\@jcliptrue%
7682 \@jcliptrue%%2001/06/20 by S. Fujita
7683 \putlatom{135}{-211}{\@memberb}% % left type
7684 \else
7685 \XyMTeXWarning{Forbidden spiro ring for the 8a position}%
7686 \fi
7687 \fi\fi}%
7688 }% end of the macro \set@vrtx@fuseh
7689 % \end{macrocode}
7690 % \end{macro}
7691 %
7692 % \section{Ring-fusion Commands for Six-Membered Rings}
7693 % \subsection{Normal Vertical Type}
7694 %
7695 % The macro |\set@fusionadd@sixv| is an inner command contained
7696 % in the definition of |\sixheterov| etc., where
7697 % the macro is used for setting an additive
7698 % or a fused ring at each bond (designated by |\@@tmpa|). The
7699 % fused ring is typeset by the inner command |\set@fusion@sixv|.
7700 %
7701 % \begin{macro}{\set@fusionadd@sixv}
7702 % \changes{v2.00}{1998/11/15}{New command: \cs{set@fusionadd@sixv}}
7703 % \begin{macrocode}
7704 \def\set@fusionadd@sixv{%
7705 \if\@@tmpa 1\relax%
7706 \putratom{-38}{282}{\@@tmpb}% % right type
7707 \else\if\@@tmpa 2\relax%
7708 \putratom{60}{253}{\@@tmpb}% % right type
7709 \else\if\@@tmpa 3\relax%
7710 \putratom{60}{120}{\@@tmpb}% % right type
7711 \else\if\@@tmpa 4\relax%
7712 \putratom{-38}{88}{\@@tmpb}% % right type
7713 \else\if\@@tmpa 6\relax%
7714 \putratom{-90}{253}{\@@tmpb}% % right type
7715 \else\if\@@tmpa 5\relax%
7716 \putratom{-90}{120}{\@@tmpb}% % right type
7717 \else
7718 % %%%%%%%%%%%%%%%%%%%%%
7719 % % inner bond fusion %
7720 % %%%%%%%%%%%%%%%%%%%%%
7721 \set@fusion@sixv
7722 \fi\fi\fi\fi\fi\fi%
7723 }%
7724 % \end{macrocode}
7725 % \end{macro}
7726 %
7727 % The inner command |\set@fusion@sixv| is used for typesetting
7728 % a fused ring at each bond represented by |\@@tmpa|. Warnings
7729 % concerning mismatched ring-fusions are based on the command
7730 % |\FuseWarning|.
7731 %
7732 % \begin{macro}{\set@fusion@sixv}
7733 % \changes{v2.00}{1998/11/15}{New command: \cs{set@fusion@sixv}}
7734 % \begin{macrocode}
7735 \def\set@fusion@sixv{%
7736 % %%%%%%%%%%%%%%%%%%%%%
7737 % % inner bond fusion %
7738 % %%%%%%%%%%%%%%%%%%%%%
7739 \if\@@tmpa d\relax%
7740 \putlratom{0}{0}{\@@tmpb}% % bond fused
7741 \FuseWarning{171}{-103}%
7742 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{d, h, or other}%
7743 \else\if\@@tmpa D\relax%
7744 \putlratom{-171}{103}{\@@tmpb}% % bond fused
7745 \FuseWarning{-171}{103}%
7746 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{D, H, or other}%
7747 \else\if\@@tmpa e\relax%
7748 \putlratom{-171}{103}{\@@tmpb}% % bond fused
7749 \FuseWarning{0}{-200}%
7750 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{e, k, or other}%
7751 \else\if\@@tmpa E\relax%
7752 \putlratom{-171}{303}{\@@tmpb}% % bond fused
7753 \FuseWarning{0}{200}%
7754 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{E, K, or other}%
7755 \else\if\@@tmpa f\relax%
7756 \putlratom{-171}{303}{\@@tmpb}% % bond fused
7757 \FuseWarning{-171}{-103}%
7758 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{f, j, or other}%
7759 \else\if\@@tmpa F\relax%
7760 \putlratom{0}{406}{\@@tmpb}% % bond fused
7761 \FuseWarning{171}{103}%
7762 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{F, J, or other}%
7763 \else\if\@@tmpa a\relax%
7764 \putlratom{0}{406}{\@@tmpb}% % bond fused
7765 \FuseWarning{-171}{103}%
7766 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{a, i, or other}%
7767 \else\if\@@tmpa A\relax%
7768 \putlratom{171}{303}{\@@tmpb}% % bond fused
7769 \FuseWarning{171}{-103}%
7770 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{A, I, or other}%
7771 \else\if\@@tmpa b\relax%
7772 \putlratom{171}{303}{\@@tmpb}% % bond fused
7773 \FuseWarning{0}{200}%
7774 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{b, k, or other}%
7775 \else\if\@@tmpa B\relax%
7776 \putlratom{171}{103}{\@@tmpb}% % bond fused
7777 \FuseWarning{0}{-200}%
7778 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{B, K, or other}%
7779 \else\if\@@tmpa c\relax%
7780 \putlratom{171}{103}{\@@tmpb}% % bond fused
7781 \FuseWarning{171}{103}%
7782 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{c, e, or other}%
7783 \else\if\@@tmpa C\relax%
7784 \putlratom{0}{0}{\@@tmpb}% % bond fused
7785 \FuseWarning{-171}{-103}%
7786 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{C, E, or other}%
7787 \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi%
7788 }% end of the macro \set@fusion@sixv
7789 % \end{macrocode}
7790 % \end{macro}
7791 %
7792 % \subsection{Inverse Vertical Type}
7793 %
7794 % The macro |\set@fusionadd@sixvi| is an inner command contained
7795 % in the definition of |\sixheterovi| etc., where
7796 % the macro is used for setting an additive
7797 % or a fused ring at each bond (designated by |\@@tmpa|). The
7798 % fused ring is typeset by the inner command |\set@fusion@sixvi|.
7799 %
7800 % \begin{macro}{\set@fusionadd@sixvi}
7801 % \changes{v2.00}{1998/11/15}{New command: \cs{set@fusionadd@sixvi}}
7802 % \begin{macrocode}
7803 \def\set@fusionadd@sixvi{%
7804 \if\@@tmpa 4\relax%
7805 \putratom{-38}{282}{\@@tmpb}% % right type
7806 \else\if\@@tmpa 3\relax%
7807 \putratom{60}{253}{\@@tmpb}% % right type
7808 \else\if\@@tmpa 2\relax%
7809 \putratom{60}{120}{\@@tmpb}% % right type
7810 \else\if\@@tmpa 1\relax%
7811 \putratom{-38}{88}{\@@tmpb}% % right type
7812 \else\if\@@tmpa 5\relax%
7813 \putratom{-90}{253}{\@@tmpb}% % right type
7814 \else\if\@@tmpa 6\relax%
7815 \putratom{-90}{120}{\@@tmpb}% % right type
7816 \else
7817 % %%%%%%%%%%%%%%%%%%%%%
7818 % % inner bond fusion %
7819 % %%%%%%%%%%%%%%%%%%%%%
7820 \set@fusion@sixvi
7821 \fi\fi\fi\fi\fi\fi%
7822 }% end of the macro \set@fusionadd@sixvi
7823 % \end{macrocode}
7824 % \end{macro}
7825 %
7826 % The inner command |\set@fusion@sixvi| is used for typesetting
7827 % a fused ring at each bond represented by |\@@tmpa|. Warnings
7828 % concerning mismatched ring-fusions are based on the command
7829 % |\FuseWarning|.
7830 %
7831 % \begin{macro}{\set@fusion@sixvi}
7832 % \changes{v2.00}{1998/11/15}{New command: \cs{set@fusion@sixvi}}
7833 % \begin{macrocode}
7834 \def\set@fusion@sixvi{%
7835 % %%%%%%%%%%%%%%%%%%%%%
7836 % % inner bond fusion %
7837 % %%%%%%%%%%%%%%%%%%%%%
7838 \if\@@tmpa a\relax%
7839 \putlratom{0}{0}{\@@tmpb}% % right type
7840 \FuseWarning{-171}{-103}%
7841 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{a or other}%
7842 \else\if\@@tmpa A\relax%
7843 \putlratom{171}{103}{\@@tmpb}% % right type
7844 \FuseWarning{171}{103}%
7845 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{A or other}%
7846 \else\if\@@tmpa b\relax%
7847 \putlratom{171}{103}{\@@tmpb}% % right type
7848 \FuseWarning{0}{-200}%
7849 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{b or other}%
7850 \else\if\@@tmpa B\relax%
7851 \putlratom{171}{303}{\@@tmpb}% % right type
7852 \FuseWarning{0}{200}%
7853 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{B or other}%
7854 \else\if\@@tmpa c\relax%
7855 \putlratom{171}{303}{\@@tmpb}% % right type
7856 \FuseWarning{171}{-103}%
7857 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{c or other}%
7858 \else\if\@@tmpa C\relax%
7859 \putlratom{0}{406}{\@@tmpb}% % right type
7860 \FuseWarning{-171}{103}%
7861 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{C or other}%
7862 \else\if\@@tmpa d\relax%
7863 \putlratom{0}{406}{\@@tmpb}% % right type
7864 \FuseWarning{171}{103}%
7865 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{d or other}%
7866 \else\if\@@tmpa D\relax%
7867 \putlratom{-171}{303}{\@@tmpb}% % right type
7868 \FuseWarning{-171}{-103}%
7869 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{D or other}%
7870 \else\if\@@tmpa e\relax%
7871 \putlratom{-171}{303}{\@@tmpb}% % right type
7872 \FuseWarning{0}{200}%
7873 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{e or other}%
7874 \else\if\@@tmpa E\relax%
7875 \putlratom{-171}{103}{\@@tmpb}% % right type
7876 \FuseWarning{0}{-200}%
7877 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{E or other}%
7878 \else\if\@@tmpa f\relax%
7879 \putlratom{-171}{103}{\@@tmpb}% % right type
7880 \FuseWarning{171}{-103}%
7881 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{f or other}%
7882 \else\if\@@tmpa F\relax%
7883 \putlratom{0}{0}{\@@tmpb}% % right type
7884 \FuseWarning{-171}{103}%
7885 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{F or other}%
7886 \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi%
7887 }% end of the marcro \set@fusion@sixvi
7888 % \end{macrocode}
7889 % \end{macro}
7890 %
7891 % \subsection{Normal Horizontal Type}
7892 %
7893 % The macro |\set@fusionadd@sixh| is an inner command contained
7894 % in the definition of |\sixheteroh| etc., where
7895 % the macro is used for setting an additive
7896 % or a fused ring at each bond (designated by |\@@tmpa|). The
7897 % fused ring is typeset by the inner command |\set@fusion@sixh|.
7898 %
7899 % \begin{macro}{\set@fusionadd@sixh}
7900 % \changes{v2.00}{1998/11/23}{New command: \cs{set@fusionadd@sixh}}
7901 % \begin{macrocode}
7902 \def\set@fusionadd@sixh{%
7903 \if\@@tmpa 4\relax%
7904 \putratom{272}{-18}{\@@tmpb}% % right type
7905 \else\if\@@tmpa 1\relax%
7906 \putratom{68}{-18}{\@@tmpb}% % right type
7907 \else\if\@@tmpa 3\relax%
7908 \putratom{233}{60}{\@@tmpb}% % right type
7909 \else\if\@@tmpa 2\relax%
7910 \putratom{120}{60}{\@@tmpb}% % right type
7911 \else\if\@@tmpa 5\relax%
7912 \putratom{233}{-110}{\@@tmpb}% % right type
7913 \else\if\@@tmpa 6\relax%
7914 \putratom{120}{-110}{\@@tmpb}% % right type
7915 \else
7916 % %%%%%%%%%%%%%%%%%%%%%
7917 % % inner bond fusion %
7918 % %%%%%%%%%%%%%%%%%%%%%
7919 \set@fusion@sixh
7920 \fi\fi\fi\fi\fi\fi%
7921 }%
7922 % \end{macrocode}
7923 % \end{macro}
7924 %
7925 % The inner command |\set@fusion@sixh| is used for typesetting
7926 % a fused ring at each bond represented by |\@@tmpa|. Warnings
7927 % concerning mismatched ring-fusions are based on the command
7928 % |\FuseWarning|.
7929 %
7930 % \begin{macro}{\set@fusion@sixh}
7931 % \changes{v2.00}{1998/11/23}{New command: \cs{set@fusion@sixh}}
7932 % \begin{macrocode}
7933 \def\set@fusion@sixh{%
7934 % %%%%%%%%%%%%%%%%%%%%%
7935 % % inner bond fusion %
7936 % %%%%%%%%%%%%%%%%%%%%%
7937 \if\@@tmpa d\relax%
7938 \putlratom{406}{0}{\@@tmpb}% % bond fused
7939 \FuseWarning{103}{171}%
7940 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{d, h, or other}%
7941 \else\if\@@tmpa D\relax%
7942 \putlratom{303}{-171}{\@@tmpb}% % bond fused
7943 \FuseWarning{-103}{-171}%
7944 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{D, H, or other}%
7945 \else\if\@@tmpa e\relax%
7946 \putlratom{303}{-171}{\@@tmpb}% % bond fused
7947 \FuseWarning{200}{0}%
7948 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{e, k, or other}%
7949 \else\if\@@tmpa E\relax%
7950 \putlratom{103}{-171}{\@@tmpb}% % bond fused
7951 \FuseWarning{-200}{0}%
7952 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{E, K, or other}%
7953 \else\if\@@tmpa f\relax%
7954 \putlratom{103}{-171}{\@@tmpb}% % bond fused
7955 \FuseWarning{103}{-171}%
7956 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{f, j, or other}%
7957 \else\if\@@tmpa F\relax%
7958 \putlratom{0}{0}{\@@tmpb}% % bond fused
7959 \FuseWarning{-103}{171}%
7960 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{F, J, or other}%
7961 \else\if\@@tmpa a\relax%
7962 \putlratom{0}{0}{\@@tmpb}% % bond fused
7963 \FuseWarning{-103}{-171}%
7964 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{a, i, or other}%
7965 \else\if\@@tmpa A\relax%
7966 \putlratom{103}{171}{\@@tmpb}% % bond fused
7967 \FuseWarning{103}{171}%
7968 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{A, I, or other}%
7969 \else\if\@@tmpa b\relax%
7970 \putlratom{103}{171}{\@@tmpb}% % bond fused
7971 \FuseWarning{-200}{0}%
7972 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{b, k, or other}%
7973 \else\if\@@tmpa B\relax%
7974 \putlratom{303}{171}{\@@tmpb}% % bond fused
7975 \FuseWarning{200}{0}%
7976 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{B, K, or other}%
7977 \else\if\@@tmpa c\relax%
7978 \putlratom{303}{171}{\@@tmpb}% % bond fused
7979 \FuseWarning{-103}{171}%
7980 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{c, e, or other}%
7981 \else\if\@@tmpa C\relax%
7982 \putlratom{406}{0}{\@@tmpb}% % bond fused
7983 % \FuseWarning{103}{171}%
7984 \FuseWarning{103}{-171}%
7985 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{C, E, or other}%
7986 \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi%
7987 }% end of the macro \set@fusion@sixh
7988 % \end{macrocode}
7989 % \end{macro}
7990 %
7991 % \subsection{Inverse Horizontal Type}
7992 %
7993 % The macro |\set@fusionadd@sixhi| is an inner command contained
7994 % in the definition of |\sixheterohi| etc., where
7995 % the macro is used for setting an additive
7996 % or a fused ring at each bond (designated by |\@@tmpa|). The
7997 % fused ring is typeset by the inner command |\set@fusion@sixhi|.
7998 %
7999 % \begin{macro}{\set@fusionadd@sixhi}
8000 % \changes{v2.00}{1998/11/29}{New command: \cs{set@fusionadd@sixhi}}
8001 % \begin{macrocode}
8002 \def\set@fusionadd@sixhi{%
8003 \if\@@tmpa 1\relax%
8004 \putratom{272}{-18}{\@@tmpb}% % right type
8005 \else\if\@@tmpa 4\relax%
8006 \putratom{68}{-18}{\@@tmpb}% % right type
8007 \else\if\@@tmpa 2\relax%
8008 \putratom{233}{60}{\@@tmpb}% % right type
8009 \else\if\@@tmpa 3\relax%
8010 \putratom{120}{60}{\@@tmpb}% % right type
8011 \else\if\@@tmpa 6\relax%
8012 \putratom{233}{-110}{\@@tmpb}% % right type
8013 \else\if\@@tmpa 5\relax%
8014 \putratom{120}{-110}{\@@tmpb}% % right type
8015 \else
8016 % %%%%%%%%%%%%%%%%%%%%%
8017 % % inner bond fusion %
8018 % %%%%%%%%%%%%%%%%%%%%%
8019 \set@fusion@sixhi
8020 \fi\fi\fi\fi\fi\fi%
8021 }%
8022 % \end{macrocode}
8023 % \end{macro}
8024 %
8025 % The inner command |\set@fusion@sixhi| is used for typesetting
8026 % a fused ring at each bond represented by |\@@tmpa|. Warnings
8027 % concerning mismatched ring-fusions are based on the command
8028 % |\FuseWarning|.
8029 %
8030 % \begin{macro}{\set@fusion@sixhi}
8031 % \changes{v2.00}{1998/11/23}{New command: \cs{set@fusion@sixhi}}
8032 % \begin{macrocode}
8033 \def\set@fusion@sixhi{%
8034 % %%%%%%%%%%%%%%%%%%%%%
8035 % % inner bond fusion %
8036 % %%%%%%%%%%%%%%%%%%%%%
8037 \if\@@tmpa F\relax%
8038 \putlratom{406}{0}{\@@tmpb}% % bond fused
8039 \FuseWarning{103}{171}%
8040 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{F, J, or other}%
8041 \else\if\@@tmpa f\relax%
8042 \putlratom{303}{-171}{\@@tmpb}% % bond fused
8043 \FuseWarning{-103}{-171}%
8044 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{f, j, or other}%
8045 \else\if\@@tmpa E\relax%
8046 \putlratom{303}{-171}{\@@tmpb}% % bond fused
8047 \FuseWarning{200}{0}%
8048 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{E, K, or other}%
8049 \else\if\@@tmpa e\relax%
8050 \putlratom{103}{-171}{\@@tmpb}% % bond fused
8051 \FuseWarning{-200}{0}%
8052 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{e, k, or other}%
8053 \else\if\@@tmpa D\relax%
8054 \putlratom{103}{-171}{\@@tmpb}% % bond fused
8055 \FuseWarning{103}{-171}%
8056 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{D, H, or other}%
8057 \else\if\@@tmpa d\relax%
8058 \putlratom{0}{0}{\@@tmpb}% % bond fused
8059 \FuseWarning{-103}{171}%
8060 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{d, h, or other}%
8061 \else\if\@@tmpa C\relax%
8062 \putlratom{0}{0}{\@@tmpb}% % bond fused
8063 \FuseWarning{-103}{-171}%
8064 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{C, E, or other}%
8065 \else\if\@@tmpa c\relax%
8066 \putlratom{103}{171}{\@@tmpb}% % bond fused
8067 \FuseWarning{103}{171}%
8068 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{c, e, or other}%
8069 \else\if\@@tmpa B\relax%
8070 \putlratom{103}{171}{\@@tmpb}% % bond fused
8071 \FuseWarning{-200}{0}%
8072 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{B, K, or other}%
8073 \else\if\@@tmpa b\relax%
8074 \putlratom{303}{171}{\@@tmpb}% % bond fused
8075 \FuseWarning{200}{0}%
8076 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{b, k, or other}%
8077 \else\if\@@tmpa A\relax%
8078 \putlratom{303}{171}{\@@tmpb}% % bond fused
8079 \FuseWarning{-103}{171}%
8080 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{A, I, or other}%
8081 \else\if\@@tmpa a\relax%
8082 \putlratom{406}{0}{\@@tmpb}% % bond fused
8083 \FuseWarning{103}{-171}%
8084 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{a, i, or other}%
8085 \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi%
8086 }% end of the macro \set@fusion@sixhi
8087 % \end{macrocode}
8088 % \end{macro}
8089 %
8090 % \section{Ring-fusion Commands for Six-Six Fused Rings}
8091 % \subsection{Conventions for Warning}
8092 %
8093 % \begin{macro}{\UnfavorableFusion}
8094 % \changes{v2.00}{1998/12/23}{New command: \cs{UnfavorableFusion}}
8095 % \begin{macrocode}
8096 \def\UnfavorableFusion#1{\if@smallringsw\else
8097 \XyMTeXWarning{Unfavorable Fusion for bond `#1'}\fi}
8098 % \end{macrocode}
8099 % \end{macro}
8100 %
8101 % \begin{macro}{\ForbiddenFusion}
8102 % \changes{v2.00}{1998/12/23}{New command: \cs{ForbiddenFusion}}
8103 % \begin{macrocode}
8104 \def\ForbiddenFusion#1{\if@smallringsw\else
8105 \XyMTeXWarning{Forbidden Fusion for bond `#1'}\fi}
8106 % \end{macrocode}
8107 % \end{macro}
8108 %
8109 % \subsection{Normal Vertical Type}
8110 %
8111 % The macro |\set@fusion@decav| is an inner command contained
8112 % in the definition of |\decalinev| and |\decaheterov|, where
8113 % the macro is used for setting an additive
8114 % or a fused ring at each bond (designated by |\@@tmpa|). The
8115 % fused ring is typeset by the inner command |\set@fusionadd@sixv|.
8116 %
8117 % \begin{macro}{\set@fusion@decav}
8118 % \changes{v2.00}{1998/11/15}{New command: \cs{set@fusion@decav}}
8119 % \begin{macrocode}
8120 \def\set@fusion@decav{%
8121 \let\@@tmpa=\@tmpa
8122 \let\@@tmpb=\@tmpb
8123 \if\@tmpa a%
8124 \let\@@tmpa=\@tmpa
8125 \Put@Direct(342,0){\set@fusionadd@sixv}%
8126 \else\if\@tmpa A%
8127 \let\@@tmpa=\@tmpa
8128 \Put@Direct(342,0){\set@fusionadd@sixv}%
8129 \else\if\@tmpa b%
8130 \let\@@tmpa=\@tmpa
8131 \Put@Direct(342,0){\set@fusionadd@sixv}%
8132 \else\if\@tmpa B%
8133 \let\@@tmpa=\@tmpa
8134 \Put@Direct(342,0){\set@fusionadd@sixv}%
8135 \else\if\@tmpa c%
8136 \let\@@tmpa=\@tmpa
8137 \Put@Direct(342,0){\set@fusionadd@sixv}%
8138 \else\if\@tmpa C%
8139 \let\@@tmpa=\@tmpa
8140 \Put@Direct(342,0){\set@fusionadd@sixv}%
8141 \else\if\@tmpa d%
8142 \let\@@tmpa=\@tmpa
8143 \Put@Direct(342,0){\set@fusionadd@sixv}%
8144 \UnfavorableFusion{d}%
8145 \else\if\@tmpa D%
8146 \let\@@tmpa=\@tmpa
8147 \Put@Direct(342,0){\set@fusionadd@sixv}%
8148 \UnfavorableFusion{D}%
8149 \else\if\@tmpa e%
8150 \edef\@@tmpa{c}%
8151 \Put@Direct(0,0){\set@fusionadd@sixv}%
8152 \UnfavorableFusion{e}%
8153 \else\if\@tmpa E%
8154 \edef\@@tmpa{C}%
8155 \Put@Direct(0,0){\set@fusionadd@sixv}%
8156 \UnfavorableFusion{E}%
8157 \else\if\@tmpa f%
8158 \edef\@@tmpa{d}%
8159 \Put@Direct(0,0){\set@fusionadd@sixv}%
8160 \else\if\@tmpa F%
8161 \edef\@@tmpa{D}%
8162 \Put@Direct(0,0){\set@fusionadd@sixv}%
8163 \else\if\@tmpa g%
8164 \edef\@@tmpa{e}%
8165 \Put@Direct(0,0){\set@fusionadd@sixv}%
8166 \else\if\@tmpa G%
8167 \edef\@@tmpa{E}%
8168 \Put@Direct(0,0){\set@fusionadd@sixv}%
8169 \else\if\@tmpa h%
8170 \edef\@@tmpa{f}%
8171 \Put@Direct(0,0){\set@fusionadd@sixv}%
8172 \else\if\@tmpa H%
8173 \edef\@@tmpa{F}%
8174 \Put@Direct(0,0){\set@fusionadd@sixv}%
8175 \else\if\@tmpa i%
8176 \edef\@@tmpa{a}%
8177 \Put@Direct(0,0){\set@fusionadd@sixv}%
8178 \UnfavorableFusion{i}%
8179 \else\if\@tmpa I%
8180 \edef\@@tmpa{A}%
8181 \Put@Direct(0,0){\set@fusionadd@sixv}%
8182 \UnfavorableFusion{I}%
8183 \else\if\@tmpa j%
8184 \edef\@@tmpa{f}%
8185 \Put@Direct(342,0){\set@fusionadd@sixv}%
8186 \UnfavorableFusion{j}%
8187 \else\if\@tmpa J%
8188 \edef\@@tmpa{F}%
8189 \Put@Direct(342,0){\set@fusionadd@sixv}%
8190 \UnfavorableFusion{J}%
8191 \else\if\@tmpa k%
8192 \edef\@@tmpa{e}%
8193 \Put@Direct(342,0){\set@fusionadd@sixv}%
8194 \ForbiddenFusion{k}%
8195 \else\if\@tmpa K%
8196 \edef\@@tmpa{E}%
8197 \Put@Direct(342,0){\set@fusionadd@sixv}%
8198 \ForbiddenFusion{K}%
8199 \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi%
8200 \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi%
8201 }% end of the macro \set@fusion@decav
8202 % \end{macrocode}
8203 % \end{macro}
8204 %
8205 % \subsection{Vertical-Bottom Type}
8206 %
8207 % The macro |\set@fusion@decavb| is an inner command contained
8208 % in the definition of |\decalinevb| and |\decaheterovb| etc.,
8209 % where the macro is used for setting an additive
8210 % or a fused ring at each bond (designated by |\@@tmpa|). The
8211 % fused ring is typeset by the inner command |\set@fusionadd@sixv|.
8212 %
8213 % \begin{macro}{\set@fusion@decavb}
8214 % \changes{v2.00}{1998/12/25}{New command: \cs{set@fusion@decavb}}
8215 % \begin{macrocode}
8216 \def\set@fusion@decavb{%
8217 \let\@@tmpa=\@tmpa
8218 \let\@@tmpb=\@tmpb
8219 \if\@tmpa a%
8220 \edef\@@tmpa{b}%
8221 \Put@Direct(0,0){\set@fusionadd@sixv}%
8222 \else\if\@tmpa A%
8223 \edef\@@tmpa{B}%
8224 \Put@Direct(0,0){\set@fusionadd@sixv}%
8225 \else\if\@tmpa b%
8226 \edef\@@tmpa{c}%
8227 \Put@Direct(0,0){\set@fusionadd@sixv}%
8228 \else\if\@tmpa B%
8229 \edef\@@tmpa{C}%
8230 \Put@Direct(0,0){\set@fusionadd@sixv}%
8231 \else\if\@tmpa c%
8232 \edef\@@tmpa{d}%
8233 \Put@Direct(0,0){\set@fusionadd@sixv}%
8234 \else\if\@tmpa C%
8235 \edef\@@tmpa{D}%
8236 \Put@Direct(0,0){\set@fusionadd@sixv}%
8237 \else\if\@tmpa d%
8238 \edef\@@tmpa{e}%
8239 \Put@Direct(0,0){\set@fusionadd@sixv}%
8240 \UnfavorableFusion{d}%
8241 \else\if\@tmpa D%
8242 \edef\@@tmpa{E}%
8243 \Put@Direct(0,0){\set@fusionadd@sixv}%
8244 \UnfavorableFusion{D}%
8245 \else\if\@tmpa e%
8246 \edef\@@tmpa{d}%
8247 \Put@Direct(-171,303){\set@fusionadd@sixv}%
8248 \UnfavorableFusion{e}%
8249 \else\if\@tmpa E%
8250 \edef\@@tmpa{D}%
8251 \Put@Direct(-171,303){\set@fusionadd@sixv}%
8252 \UnfavorableFusion{E}%
8253 \else\if\@tmpa f%
8254 \edef\@@tmpa{e}%
8255 \Put@Direct(-171,303){\set@fusionadd@sixv}%
8256 \else\if\@tmpa F%
8257 \edef\@@tmpa{E}%
8258 \Put@Direct(-171,303){\set@fusionadd@sixv}%
8259 \else\if\@tmpa g%
8260 \edef\@@tmpa{f}%
8261 \Put@Direct(-171,303){\set@fusionadd@sixv}%
8262 \else\if\@tmpa G%
8263 \edef\@@tmpa{F}%
8264 \Put@Direct(-171,303){\set@fusionadd@sixv}%
8265 \else\if\@tmpa h%
8266 \edef\@@tmpa{a}%
8267 \Put@Direct(-171,303){\set@fusionadd@sixv}%
8268 \else\if\@tmpa H%
8269 \edef\@@tmpa{A}%
8270 \Put@Direct(-171,303){\set@fusionadd@sixv}%
8271 \else\if\@tmpa i%
8272 \edef\@@tmpa{b}%
8273 \Put@Direct(-171,303){\set@fusionadd@sixv}%
8274 \UnfavorableFusion{i}%
8275 \else\if\@tmpa I%
8276 \edef\@@tmpa{B}%
8277 \Put@Direct(-171,303){\set@fusionadd@sixv}%
8278 \UnfavorableFusion{I}%
8279 \else\if\@tmpa j%
8280 \edef\@@tmpa{a}%
8281 \Put@Direct(0,0){\set@fusionadd@sixv}%
8282 \UnfavorableFusion{j}%
8283 \else\if\@tmpa J%
8284 \edef\@@tmpa{A}%
8285 \Put@Direct(0,0){\set@fusionadd@sixv}%
8286 \UnfavorableFusion{J}%
8287 \else\if\@tmpa k%
8288 \edef\@@tmpa{c}%
8289 \Put@Direct(-171,303){\set@fusionadd@sixv}%
8290 \ForbiddenFusion{k}%
8291 \else\if\@tmpa K%
8292 \edef\@@tmpa{C}%
8293 \Put@Direct(-171,303){\set@fusionadd@sixv}%
8294 \ForbiddenFusion{K}%
8295 \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi%
8296 \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi%
8297 }% end of the macro \set@fusion@decavb
8298 % \end{macrocode}
8299 % \end{macro}
8300 %
8301 % \subsection{Vertical-Top Type}
8302 %
8303 % The macro |\set@fusion@decavt| is an inner command contained
8304 % in the definition of |\decalinevt| and |\decaheterovt| etc.,
8305 % where the macro is used for setting an additive
8306 % or a fused ring at each bond (designated by |\@@tmpa|). The
8307 % fused ring is typeset by the inner command |\set@fusionadd@sixv|.
8308 %
8309 % \begin{macro}{\set@fusion@decavt}
8310 % \changes{v2.00}{1998/12/25}{New command: \cs{set@fusion@decavt}}
8311 % \begin{macrocode}
8312 \def\set@fusion@decavt{%
8313 \let\@@tmpa=\@tmpa
8314 \let\@@tmpb=\@tmpb
8315 \if\@tmpa a%
8316 \edef\@@tmpa{f}%
8317 \Put@Direct(171,303){\set@fusionadd@sixv}%
8318 \else\if\@tmpa A%
8319 \edef\@@tmpa{F}%
8320 \Put@Direct(171,303){\set@fusionadd@sixv}%
8321 \else\if\@tmpa b%
8322 \edef\@@tmpa{a}%
8323 \Put@Direct(171,303){\set@fusionadd@sixv}%
8324 \else\if\@tmpa B%
8325 \edef\@@tmpa{A}%
8326 \Put@Direct(171,303){\set@fusionadd@sixv}%
8327 \else\if\@tmpa c%
8328 \edef\@@tmpa{b}%
8329 \Put@Direct(171,303){\set@fusionadd@sixv}%
8330 \else\if\@tmpa C%
8331 \edef\@@tmpa{B}%
8332 \Put@Direct(171,303){\set@fusionadd@sixv}%
8333 \else\if\@tmpa d%
8334 \edef\@@tmpa{c}%
8335 \Put@Direct(171,303){\set@fusionadd@sixv}%
8336 \UnfavorableFusion{d}%
8337 \else\if\@tmpa D%
8338 \edef\@@tmpa{C}%
8339 \Put@Direct(171,303){\set@fusionadd@sixv}%
8340 \UnfavorableFusion{D}%
8341 \else\if\@tmpa e%
8342 \edef\@@tmpa{b}%
8343 \Put@Direct(0,0){\set@fusionadd@sixv}%
8344 \UnfavorableFusion{e}%
8345 \else\if\@tmpa E%
8346 \edef\@@tmpa{B}%
8347 \Put@Direct(0,0){\set@fusionadd@sixv}%
8348 \UnfavorableFusion{E}%
8349 \else\if\@tmpa f%
8350 \edef\@@tmpa{c}%
8351 \Put@Direct(0,0){\set@fusionadd@sixv}%
8352 \else\if\@tmpa F%
8353 \edef\@@tmpa{C}%
8354 \Put@Direct(0,0){\set@fusionadd@sixv}%
8355 \else\if\@tmpa g%
8356 \edef\@@tmpa{d}%
8357 \Put@Direct(0,0){\set@fusionadd@sixv}%
8358 \else\if\@tmpa G%
8359 \edef\@@tmpa{D}%
8360 \Put@Direct(0,0){\set@fusionadd@sixv}%
8361 \else\if\@tmpa h%
8362 \edef\@@tmpa{e}%
8363 \Put@Direct(0,0){\set@fusionadd@sixv}%
8364 \else\if\@tmpa H%
8365 \edef\@@tmpa{E}%
8366 \Put@Direct(0,0){\set@fusionadd@sixv}%
8367 \else\if\@tmpa i%
8368 \edef\@@tmpa{f}%
8369 \Put@Direct(0,0){\set@fusionadd@sixv}%
8370 \UnfavorableFusion{i}%
8371 \else\if\@tmpa I%
8372 \edef\@@tmpa{F}%
8373 \Put@Direct(0,0){\set@fusionadd@sixv}%
8374 \UnfavorableFusion{I}%
8375 \else\if\@tmpa j%
8376 \edef\@@tmpa{e}%
8377 \Put@Direct(171,303){\set@fusionadd@sixv}%
8378 \UnfavorableFusion{j}%
8379 \else\if\@tmpa J%
8380 \edef\@@tmpa{E}%
8381 \Put@Direct(171,303){\set@fusionadd@sixv}%
8382 \UnfavorableFusion{J}%
8383 \else\if\@tmpa k%
8384 \edef\@@tmpa{d}%
8385 \Put@Direct(171,303){\set@fusionadd@sixv}%
8386 \ForbiddenFusion{k}%
8387 \else\if\@tmpa K%
8388 \edef\@@tmpa{D}%
8389 \Put@Direct(171,303){\set@fusionadd@sixv}%
8390 \ForbiddenFusion{K}%
8391 \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi%
8392 \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi%
8393 }% end of \set@fusion@decavt
8394 % \end{macrocode}
8395 % \end{macro}
8396 %
8397 % \subsection{Normal Horizontal Type}
8398 %
8399 % The macro |\set@fusion@decah| is an inner command contained
8400 % in the definition of |\decalineh| and |\decaheteroh|, where
8401 % the macro is used for setting an additive
8402 % or a fused ring at each bond (designated by |\@@tmpa|). The
8403 % fused ring is typeset by the inner command |\set@fusionadd@sixh|.
8404 %
8405 % \begin{macro}{\set@fusion@decah}
8406 % \changes{v2.00}{1998/11/15}{New command: \cs{set@fusion@decah}}
8407 % \begin{macrocode}
8408 \def\set@fusion@decah{%
8409 \let\@@tmpa=\@tmpa
8410 \let\@@tmpb=\@tmpb
8411 \if\@tmpa a%
8412 \let\@@tmpa=\@tmpa
8413 \Put@Direct(0,0){\set@fusionadd@sixh}%
8414 \else\if\@tmpa A%
8415 \let\@@tmpa=\@tmpa
8416 \Put@Direct(0,0){\set@fusionadd@sixh}%
8417 \else\if\@tmpa b%
8418 \let\@@tmpa=\@tmpa
8419 \Put@Direct(0,0){\set@fusionadd@sixh}%
8420 \else\if\@tmpa B%
8421 \let\@@tmpa=\@tmpa
8422 \Put@Direct(0,0){\set@fusionadd@sixh}%
8423 \else\if\@tmpa c%
8424 \let\@@tmpa=\@tmpa
8425 \Put@Direct(0,0){\set@fusionadd@sixh}%
8426 \else\if\@tmpa C%
8427 \let\@@tmpa=\@tmpa
8428 \Put@Direct(0,0){\set@fusionadd@sixh}%
8429 \else\if\@tmpa d%
8430 \let\@@tmpa=\@tmpa
8431 \Put@Direct(0,0){\set@fusionadd@sixh}%
8432 \UnfavorableFusion{d}%
8433 \else\if\@tmpa D%
8434 \let\@@tmpa=\@tmpa
8435 \Put@Direct(0,0){\set@fusionadd@sixh}%
8436 \UnfavorableFusion{D}%
8437 \else\if\@tmpa e%
8438 \edef\@@tmpa{c}%
8439 \Put@Direct(0,-342){\set@fusionadd@sixh}%
8440 \UnfavorableFusion{e}%
8441 \else\if\@tmpa E%
8442 \edef\@@tmpa{C}%
8443 \Put@Direct(0,-342){\set@fusionadd@sixh}%
8444 \UnfavorableFusion{E}%
8445 \else\if\@tmpa f%
8446 \edef\@@tmpa{d}%
8447 \Put@Direct(0,-342){\set@fusionadd@sixh}%
8448 \else\if\@tmpa F%
8449 \edef\@@tmpa{D}%
8450 \Put@Direct(0,-342){\set@fusionadd@sixh}%
8451 \else\if\@tmpa g%
8452 \edef\@@tmpa{e}%
8453 \Put@Direct(0,-342){\set@fusionadd@sixh}%
8454 \else\if\@tmpa G%
8455 \edef\@@tmpa{E}%
8456 \Put@Direct(0,-342){\set@fusionadd@sixh}%
8457 \else\if\@tmpa h%
8458 \edef\@@tmpa{f}%
8459 \Put@Direct(0,-342){\set@fusionadd@sixh}%
8460 \else\if\@tmpa H%
8461 \edef\@@tmpa{F}%
8462 \Put@Direct(0,-342){\set@fusionadd@sixh}%
8463 \else\if\@tmpa i%
8464 \edef\@@tmpa{a}%
8465 \Put@Direct(0,-342){\set@fusionadd@sixh}%
8466 \UnfavorableFusion{i}%
8467 \else\if\@tmpa I%
8468 \edef\@@tmpa{A}%
8469 \Put@Direct(0,-342){\set@fusionadd@sixh}%
8470 \UnfavorableFusion{I}%
8471 \else\if\@tmpa j%
8472 \edef\@@tmpa{f}%
8473 \Put@Direct(0,0){\set@fusionadd@sixh}%
8474 \UnfavorableFusion{j}%
8475 \else\if\@tmpa J%
8476 \edef\@@tmpa{F}%
8477 \Put@Direct(0,0){\set@fusionadd@sixh}%
8478 \UnfavorableFusion{J}%
8479 \else\if\@tmpa k%
8480 \edef\@@tmpa{e}%
8481 \Put@Direct(0,0){\set@fusionadd@sixh}%
8482 \ForbiddenFusion{k}%
8483 \else\if\@tmpa K%
8484 \edef\@@tmpa{E}%
8485 \Put@Direct(0,0){\set@fusionadd@sixh}%
8486 \ForbiddenFusion{K}%
8487 \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi%
8488 \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi%
8489 }% end of the macro \set@fusion@decah
8490 % \end{macrocode}
8491 % \end{macro}
8492 %
8493 % \section{Ring-fusion Commands for Six-Six-Six Fused Rings}
8494 % \subsection{Normal Vertical Type of Anthracenes}
8495 %
8496 % The macro |\set@fusion@hanthrav| is an inner command contained
8497 % in the definition of |\hanthracenev|, where
8498 % the macro is used for setting an additive
8499 % or a fused ring at each bond (designated by |\@@tmpa|). The
8500 % fused ring is typeset by the inner command |\set@fusionadd@sixv|.
8501 %
8502 % \begin{macro}{\set@fusion@hanthrav}
8503 % \changes{v2.00}{1998/11/23}{New command: \cs{set@fusion@hanthrav}}
8504 % \begin{macrocode}
8505 \def\set@fusion@hanthrav{%
8506 \let\@@tmpa=\@tmpa
8507 \let\@@tmpb=\@tmpb
8508 \if\@tmpa a%
8509 \let\@@tmpa=\@tmpa
8510 \Put@Direct(684,0){\set@fusionadd@sixv}%
8511 \else\if\@tmpa A%
8512 \let\@@tmpa=\@tmpa
8513 \Put@Direct(684,0){\set@fusionadd@sixv}%
8514 \else\if\@tmpa b%
8515 \let\@@tmpa=\@tmpa
8516 \Put@Direct(684,0){\set@fusionadd@sixv}%
8517 \else\if\@tmpa B%
8518 \let\@@tmpa=\@tmpa
8519 \Put@Direct(684,0){\set@fusionadd@sixv}%
8520 \else\if\@tmpa c%
8521 \let\@@tmpa=\@tmpa
8522 \Put@Direct(684,0){\set@fusionadd@sixv}%
8523 \else\if\@tmpa C%
8524 \let\@@tmpa=\@tmpa
8525 \Put@Direct(684,0){\set@fusionadd@sixv}%
8526 \else\if\@tmpa d%
8527 \let\@@tmpa=\@tmpa
8528 \Put@Direct(684,0){\set@fusionadd@sixv}%
8529 \UnfavorableFusion{d}%
8530 \else\if\@tmpa D%
8531 \let\@@tmpa=\@tmpa
8532 \Put@Direct(684,0){\set@fusionadd@sixv}%
8533 \UnfavorableFusion{D}%
8534 \else\if\@tmpa e%
8535 \edef\@@tmpa{c}%
8536 \Put@Direct(342,0){\set@fusionadd@sixv}%
8537 \UnfavorableFusion{e}%
8538 \else\if\@tmpa E%
8539 \edef\@@tmpa{C}%
8540 \Put@Direct(342,0){\set@fusionadd@sixv}%
8541 \UnfavorableFusion{E}%
8542 \else\if\@tmpa f%
8543 \edef\@@tmpa{d}%
8544 \Put@Direct(342,0){\set@fusionadd@sixv}%
8545 \UnfavorableFusion{f}%
8546 \else\if\@tmpa F%
8547 \edef\@@tmpa{D}%
8548 \Put@Direct(342,0){\set@fusionadd@sixv}%
8549 \UnfavorableFusion{F}%
8550 \else\if\@tmpa g%
8551 \edef\@@tmpa{c}%
8552 \Put@Direct(0,0){\set@fusionadd@sixv}%
8553 \UnfavorableFusion{g}%
8554 \else\if\@tmpa G%
8555 \edef\@@tmpa{C}%
8556 \Put@Direct(0,0){\set@fusionadd@sixv}%
8557 \UnfavorableFusion{G}%
8558 \else\if\@tmpa h%
8559 \edef\@@tmpa{d}%
8560 \Put@Direct(0,0){\set@fusionadd@sixv}%
8561 \else\if\@tmpa H%
8562 \edef\@@tmpa{D}%
8563 \Put@Direct(0,0){\set@fusionadd@sixv}%
8564 \else\if\@tmpa i%
8565 \edef\@@tmpa{e}%
8566 \Put@Direct(0,0){\set@fusionadd@sixv}%
8567 \else\if\@tmpa I%
8568 \edef\@@tmpa{E}%
8569 \Put@Direct(0,0){\set@fusionadd@sixv}%
8570 \else\if\@tmpa j%
8571 \edef\@@tmpa{f}%
8572 \Put@Direct(0,0){\set@fusionadd@sixv}%
8573 \else\if\@tmpa J%
8574 \edef\@@tmpa{F}%
8575 \Put@Direct(0,0){\set@fusionadd@sixv}%
8576 \else\if\@tmpa k%
8577 \edef\@@tmpa{a}%
8578 \Put@Direct(0,0){\set@fusionadd@sixv}%
8579 \UnfavorableFusion{k}%
8580 \else\if\@tmpa K%
8581 \edef\@@tmpa{A}%
8582 \Put@Direct(0,0){\set@fusionadd@sixv}%
8583 \UnfavorableFusion{K}%
8584 \else\if\@tmpa l%
8585 \edef\@@tmpa{f}%
8586 \Put@Direct(342,0){\set@fusionadd@sixv}%
8587 \UnfavorableFusion{l}%
8588 \else\if\@tmpa L%
8589 \edef\@@tmpa{F}%
8590 \Put@Direct(342,0){\set@fusionadd@sixv}%
8591 \UnfavorableFusion{L}%
8592 \else\if\@tmpa m%
8593 \edef\@@tmpa{a}%
8594 \Put@Direct(342,0){\set@fusionadd@sixv}%
8595 \UnfavorableFusion{m}%
8596 \else\if\@tmpa M%
8597 \edef\@@tmpa{A}%
8598 \Put@Direct(342,0){\set@fusionadd@sixv}%
8599 \UnfavorableFusion{M}%
8600 \else\if\@tmpa n%
8601 \edef\@@tmpa{f}%
8602 \Put@Direct(684,0){\set@fusionadd@sixv}%
8603 \UnfavorableFusion{n}%
8604 \else\if\@tmpa N%
8605 \edef\@@tmpa{F}%
8606 \Put@Direct(684,0){\set@fusionadd@sixv}%
8607 \UnfavorableFusion{N}%
8608 \else\if\@tmpa o%
8609 \edef\@@tmpa{e}%
8610 \Put@Direct(684,0){\set@fusionadd@sixv}%
8611 \ForbiddenFusion{o}%
8612 \else\if\@tmpa O%
8613 \edef\@@tmpa{E}%
8614 \Put@Direct(684,0){\set@fusionadd@sixv}%
8615 \ForbiddenFusion{O}%
8616 \else\if\@tmpa p%
8617 \edef\@@tmpa{e}%
8618 \Put@Direct(342,0){\set@fusionadd@sixv}%
8619 \ForbiddenFusion{p}%
8620 \else\if\@tmpa P%
8621 \edef\@@tmpa{E}%
8622 \Put@Direct(342,0){\set@fusionadd@sixv}%
8623 \ForbiddenFusion{P}%
8624 \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi%
8625 \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi%
8626 \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi%
8627 }% end of the macro \set@fusion@hanthrav
8628 % \end{macrocode}
8629 % \end{macro}
8630 %
8631 % \subsection{Normal Vertical Type of Phenanthrenes}
8632 %
8633 % The macro |\set@fusion@hphenanv| is an inner command contained
8634 % in the definition of |\hphenanthrenev|, where
8635 % the macro is used for setting an additive
8636 % or a fused ring at each bond (designated by |\@@tmpa|). The
8637 % fused ring is typeset by the inner command |\set@fusionadd@sixv|.
8638 %
8639 % \begin{macro}{\set@fusion@hphenanv}
8640 % \changes{v2.00}{1998/11/23}{New command: \cs{set@fusion@phenanv}}
8641 % \begin{macrocode}
8642 \def\set@fusion@hphenanv{%
8643 \let\@@tmpa=\@tmpa
8644 \let\@@tmpb=\@tmpb
8645 \if\@tmpa a%
8646 \edef\@@tmpa{b}%
8647 \Put@Direct(513,303){\set@fusionadd@sixv}%
8648 \else\if\@tmpa A%
8649 \edef\@@tmpa{B}%
8650 \Put@Direct(513,303){\set@fusionadd@sixv}%
8651 \else\if\@tmpa b%
8652 \edef\@@tmpa{a}%
8653 \Put@Direct(513,303){\set@fusionadd@sixv}%
8654 \else\if\@tmpa B%
8655 \edef\@@tmpa{A}%
8656 \Put@Direct(513,303){\set@fusionadd@sixv}%
8657 \else\if\@tmpa c%
8658 \edef\@@tmpa{f}%
8659 \Put@Direct(513,303){\set@fusionadd@sixv}%
8660 \else\if\@tmpa C%
8661 \edef\@@tmpa{F}%
8662 \Put@Direct(513,303){\set@fusionadd@sixv}%
8663 \else\if\@tmpa d%
8664 \edef\@@tmpa{e}%
8665 \Put@Direct(513,303){\set@fusionadd@sixv}%
8666 \UnfavorableFusion{d}%
8667 \else\if\@tmpa D%
8668 \edef\@@tmpa{E}%
8669 \Put@Direct(513,303){\set@fusionadd@sixv}%
8670 \UnfavorableFusion{D}%
8671 \else\if\@tmpa e%
8672 \edef\@@tmpa{f}%
8673 \Put@Direct(342,0){\set@fusionadd@sixv}%
8674 \UnfavorableFusion{e}%
8675 \else\if\@tmpa E%
8676 \edef\@@tmpa{F}%
8677 \Put@Direct(342,0){\set@fusionadd@sixv}%
8678 \UnfavorableFusion{E}%
8679 \else\if\@tmpa f%
8680 \edef\@@tmpa{a}%
8681 \Put@Direct(0,0){\set@fusionadd@sixv}%
8682 \UnfavorableFusion{f}%
8683 \else\if\@tmpa F%
8684 \edef\@@tmpa{A}%
8685 \Put@Direct(0,0){\set@fusionadd@sixv}%
8686 \UnfavorableFusion{F}%
8687 \else\if\@tmpa g%
8688 \edef\@@tmpa{f}%
8689 \Put@Direct(0,0){\set@fusionadd@sixv}%
8690 \else\if\@tmpa G%
8691 \edef\@@tmpa{F}%
8692 \Put@Direct(0,0){\set@fusionadd@sixv}%
8693 \else\if\@tmpa h%
8694 \edef\@@tmpa{e}%
8695 \Put@Direct(0,0){\set@fusionadd@sixv}%
8696 \else\if\@tmpa H%
8697 \edef\@@tmpa{E}%
8698 \Put@Direct(0,0){\set@fusionadd@sixv}%
8699 \else\if\@tmpa i%
8700 \edef\@@tmpa{d}%
8701 \Put@Direct(0,0){\set@fusionadd@sixv}%
8702 \else\if\@tmpa I%
8703 \edef\@@tmpa{D}%
8704 \Put@Direct(0,0){\set@fusionadd@sixv}%
8705 \else\if\@tmpa j%
8706 \edef\@@tmpa{c}%
8707 \Put@Direct(0,0){\set@fusionadd@sixv}%
8708 \UnfavorableFusion{j}%
8709 \else\if\@tmpa J%
8710 \edef\@@tmpa{C}%
8711 \Put@Direct(0,0){\set@fusionadd@sixv}%
8712 \UnfavorableFusion{J}%
8713 \else\if\@tmpa k%
8714 \edef\@@tmpa{d}%
8715 \Put@Direct(342,0){\set@fusionadd@sixv}%
8716 \UnfavorableFusion{k}%
8717 \else\if\@tmpa K%
8718 \edef\@@tmpa{D}%
8719 \Put@Direct(342,0){\set@fusionadd@sixv}%
8720 \UnfavorableFusion{K}%
8721 \else\if\@tmpa l%
8722 \edef\@@tmpa{c}%
8723 \Put@Direct(342,0){\set@fusionadd@sixv}%
8724 \else\if\@tmpa L%
8725 \edef\@@tmpa{C}%
8726 \Put@Direct(342,0){\set@fusionadd@sixv}%
8727 \else\if\@tmpa m%
8728 \edef\@@tmpa{b}%
8729 \Put@Direct(342,0){\set@fusionadd@sixv}%
8730 \UnfavorableFusion{m}%
8731 \else\if\@tmpa M%
8732 \edef\@@tmpa{B}%
8733 \Put@Direct(342,0){\set@fusionadd@sixv}%
8734 \UnfavorableFusion{M}%
8735 \else\if\@tmpa n%
8736 \edef\@@tmpa{c}%
8737 \Put@Direct(513,303){\set@fusionadd@sixv}%
8738 \UnfavorableFusion{n}%
8739 \else\if\@tmpa N%
8740 \edef\@@tmpa{C}%
8741 \Put@Direct(513,303){\set@fusionadd@sixv}%
8742 \UnfavorableFusion{N}%
8743 \else\if\@tmpa o%
8744 \edef\@@tmpa{d}%
8745 \Put@Direct(513,303){\set@fusionadd@sixv}%
8746 \ForbiddenFusion{o}%
8747 \else\if\@tmpa O%
8748 \edef\@@tmpa{D}%
8749 \Put@Direct(513,303){\set@fusionadd@sixv}%
8750 \ForbiddenFusion{O}%
8751 \else\if\@tmpa p%
8752 \edef\@@tmpa{e}%
8753 \Put@Direct(342,0){\set@fusionadd@sixv}%
8754 \ForbiddenFusion{p}%
8755 \else\if\@tmpa P%
8756 \edef\@@tmpa{E}%
8757 \Put@Direct(342,0){\set@fusionadd@sixv}%
8758 \ForbiddenFusion{P}%
8759 \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi%
8760 \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi%
8761 \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi%
8762 }% end of the macro \set@fusion@hphananv
8763 % \end{macrocode}
8764 % \end{macro}
8765 %
8766 % \section{Ring-fusion Commands for Five-Membered Rings}
8767 % \subsection{Normal vertical type}
8768 %
8769 % The macro |\set@fusionadd@fivev| is an inner command contained
8770 % in the definition of |\fiveheterov| etc., where
8771 % the macro is used for setting an additive
8772 % or a fused ring at each bond (designated by |\@@tmpa|). The
8773 % fused ring is typeset by the inner command |\set@fusion@fivev|.
8774 %
8775 % \begin{macro}{\set@fusionadd@fivev}
8776 % \changes{v2.00}{1998/12/4}{New command: \cs{set@fusionadd@fivev}}
8777 % \begin{macrocode}
8778 \def\set@fusionadd@fivev{%
8779 \if\@@tmpa 1\relax%
8780 \putratom{-38}{88}{\@@tmpb}% % right type
8781 \else\if\@@tmpa 2\relax%
8782 \putratom{60}{120}{\@@tmpb}% % right type
8783 \else\if\@@tmpa 3\relax%
8784 \putratom{60}{233}{\@@tmpb}% % right type
8785 \else\if\@@tmpa 4\relax%
8786 \putratom{-60}{233}{\@@tmpb}% % right type
8787 \else\if\@@tmpa 5\relax%
8788 \putratom{-60}{120}{\@@tmpb}% % right type
8789 \else\if\@@tmpa 0\relax%
8790 \putratom{-38}{150}{\@@tmpb}% % right type
8791 \else
8792 % %%%%%%%%%%%%%%%%%%%%%
8793 % % inner bond fusion %
8794 % %%%%%%%%%%%%%%%%%%%%%
8795 \set@fusion@fivev
8796 \fi\fi\fi\fi\fi\fi%
8797 }% end of the macro \set@fusionadd@fivev
8798 % \end{macrocode}
8799 % \end{macro}
8800 %
8801 % The inner command |\set@fusion@fivev| is used for typesetting
8802 % a fused ring at each bond represented by |\@@tmpa|. Warnings
8803 % concerning mismatched ring-fusions are based on the command
8804 % |\FuseWarning|.
8805 %
8806 % \begin{macro}{\set@fusion@fivev}
8807 % \changes{v2.00}{1998/12/4}{New command: \cs{set@fusion@fivev}}
8808 % \changes{v5.00}{2010/10/01}{For bond coloring}
8809 % \begin{macrocode}
8810 \newif\iffusesw \fuseswfalse
8811 \def\set@fusion@fivev{%
8812 % %%%%%%%%%%%%%%%%%%%%%
8813 % % inner bond fusion %
8814 % %%%%%%%%%%%%%%%%%%%%%
8815 \if\@@tmpa a\relax%
8816 \putlratom{0}{0}{\@@tmpb}% % right type
8817 \FuseWarning{-171}{-103}%
8818 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{a}%
8819 \else\if\@@tmpa A\relax%
8820 \putlratom{171}{103}{\@@tmpb}% % right type
8821 \FuseWarning{171}{103}%
8822 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{A}%
8823 \else\if\@@tmpa b\relax%
8824 \putlratom{171}{103}{\@@tmpb}% % right type
8825 \FuseWarning{0}{-200}%
8826 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{b}%
8827 \else\if\@@tmpa B\relax%
8828 \putlratom{171}{303}{\@@tmpb}% % right type
8829 \FuseWarning{0}{200}%
8830 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{B}%
8831 \else\if\@@tmpa c\relax
8832 \iffusesw
8833 \putlratom{171}{103}{\@@tmpb}% % right type
8834 \else
8835 \XyMTeXWarning{Not-used fusion at bond `c'}%
8836 \fi
8837 \else\if\@@tmpa C\relax%
8838 \iffusesw
8839 \putlratom{-171}{103}{\@@tmpb}% % right type
8840 \else
8841 \XyMTeXWarning{Not-used fusion at bond `C'}%
8842 \fi
8843 \else\if\@@tmpa d\relax%
8844 \putlratom{-171}{303}{\@@tmpb}% % right type
8845 \FuseWarning{0}{200}%
8846 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{d}%
8847 \else\if\@@tmpa D\relax%
8848 \putlratom{-171}{103}{\@@tmpb}% % right type
8849 \FuseWarning{0}{-200}%
8850 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{D}%
8851 \else\if\@@tmpa e\relax%
8852 \putlratom{-171}{103}{\@@tmpb}% % right type
8853 \FuseWarning{171}{-103}%
8854 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{e}%
8855 \else\if\@@tmpa E\relax%
8856 \putlratom{0}{0}{\@@tmpb}% % right type
8857 \FuseWarning{-171}{103}%
8858 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{E}%
8859 \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi%
8860 }% end of the marcro \set@fusion@fivev
8861 % \end{macrocode}
8862 % \end{macro}
8863 %
8864 % \subsection{Inverse vertical type}
8865 %
8866 % The macro |\set@fusionadd@fivevi| is an inner command contained
8867 % in the definition of |\fiveheterov| etc., where
8868 % the macro is used for setting an additive
8869 % or a fused ring at each bond (designated by |\@@tmpa|). The
8870 % fused ring is typeset by the inner command |\set@fusion@fivevi|.
8871 %
8872 % \begin{macro}{\set@fusionadd@fivevi}
8873 % \changes{v2.00}{1998/12/4}{New command: \cs{set@fusionadd@fivevi}}
8874 % \begin{macrocode}
8875 \def\set@fusionadd@fivevi{%
8876 \if\@@tmpa 1\relax%
8877 \putratom{-38}{282}{\@@tmpb}% % right type
8878 \else\if\@@tmpa 2\relax%
8879 \putratom{60}{233}{\@@tmpb}% % right type
8880 \else\if\@@tmpa 3\relax%
8881 \putratom{60}{120}{\@@tmpb}% % right type
8882 \else\if\@@tmpa 4\relax%
8883 \putratom{-60}{120}{\@@tmpb}% % right type
8884 \else\if\@@tmpa 5\relax%
8885 \putratom{-60}{233}{\@@tmpb}% % right type
8886 \else\if\@@tmpa 0\relax%
8887 \putratom{-38}{213}{\@@tmpb}% % right type
8888 \else
8889 % %%%%%%%%%%%%%%%%%%%%%
8890 % % inner bond fusion %
8891 % %%%%%%%%%%%%%%%%%%%%%
8892 \set@fusion@fivevi
8893 \fi\fi\fi\fi\fi\fi%
8894 }% end of the macro \set@fusionadd@fivevi
8895 % \end{macrocode}
8896 % \end{macro}
8897 %
8898 % The inner command |\set@fusion@fivevi| is used for typesetting
8899 % a fused ring at each bond represented by |\@@tmpa|. Warnings
8900 % concerning mismatched ring-fusions are based on the command
8901 % |\FuseWarning|.
8902 %
8903 % \begin{macro}{\set@fusion@fivevi}
8904 % \changes{v2.00}{1998/12/4}{New command: \cs{set@fusion@fivevi}}
8905 % \changes{v5.00}{2010/10/01}{For bond coloring}
8906 % \begin{macrocode}
8907 \def\set@fusion@fivevi{%
8908 % %%%%%%%%%%%%%%%%%%%%%
8909 % % inner bond fusion %
8910 % %%%%%%%%%%%%%%%%%%%%%
8911 \if\@@tmpa d\relax%
8912 \putlratom{-171}{103}{\@@tmpb}% % bond fused
8913 \FuseWarning{0}{-200}%
8914 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{d, k, or other}%
8915 \else\if\@@tmpa D\relax%
8916 \putlratom{-171}{303}{\@@tmpb}% % bond fused
8917 \FuseWarning{0}{200}%
8918 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{D, K, or other}%
8919 \else\if\@@tmpa e\relax%
8920 \putlratom{-171}{303}{\@@tmpb}% % bond fused
8921 \FuseWarning{-171}{-103}%
8922 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{e, j, or other}%
8923 \else\if\@@tmpa E\relax%
8924 \putlratom{0}{406}{\@@tmpb}% % bond fused
8925 \FuseWarning{171}{103}%
8926 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{E, J, or other}%
8927 \else\if\@@tmpa a\relax%
8928 \putlratom{0}{406}{\@@tmpb}% % bond fused
8929 \FuseWarning{-171}{103}%
8930 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{a, i, or other}%
8931 \else\if\@@tmpa A\relax%
8932 \putlratom{171}{303}{\@@tmpb}% % bond fused
8933 \FuseWarning{171}{-103}%
8934 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{A, I, or other}%
8935 \else\if\@@tmpa b\relax%
8936 \putlratom{171}{303}{\@@tmpb}% % bond fused
8937 \FuseWarning{0}{200}%
8938 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{b, k, or other}%
8939 \else\if\@@tmpa B\relax%
8940 \putlratom{171}{103}{\@@tmpb}% % bond fused
8941 \FuseWarning{0}{-200}%
8942 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{B, K, or other}%
8943 \else\if\@@tmpa c\relax
8944 \iffusesw
8945 \putlratom{171}{103}{\@@tmpb}% % right type
8946 \else
8947 \XyMTeXWarning{Not-used fusion at bond `c'}%
8948 \fi
8949 \else\if\@@tmpa C\relax%
8950 \iffusesw
8951 \putlratom{-171}{103}{\@@tmpb}% % right type
8952 \else
8953 \XyMTeXWarning{Not-used fusion at bond `C'}%
8954 \fi
8955 \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi%
8956 }% end of the macro \set@fusion@fivevi
8957 % \end{macrocode}
8958 % \end{macro}
8959 %
8960 % \subsection{Normal horizontal type}
8961 %
8962 % The macro |\set@fusionadd@fiveh| is an inner command contained
8963 % in the definition of |\fiveheteroh| etc., where
8964 % the macro is used for setting an additive
8965 % or a fused ring at each bond (designated by |\@@tmpa|). The
8966 % fused ring is typeset by the inner command |\set@fusion@fiveh|.
8967 %
8968 % \begin{macro}{\set@fusionadd@fiveh}
8969 % \changes{v2.00}{1998/11/29}{New command: \cs{set@fusionadd@fiveh}}
8970 % \begin{macrocode}
8971 \def\set@fusionadd@fiveh{%
8972 \if\@@tmpa 1\relax%
8973 \putratom{272}{-18}{\@@tmpb}% % right type
8974 \else\if\@@tmpa 2\relax%
8975 \putratom{233}{60}{\@@tmpb}% % right type
8976 \else\if\@@tmpa 3\relax%
8977 \putratom{120}{60}{\@@tmpb}% % right type
8978 \else\if\@@tmpa 5\relax%
8979 \putratom{233}{-110}{\@@tmpb}% % right type
8980 \else\if\@@tmpa 4\relax%
8981 \putratom{120}{-110}{\@@tmpb}% % right type
8982 \else\if\@@tmpa 0\relax%
8983 \putratom{196}{-30}{\@@tmpb}% % right type
8984 \else
8985 % %%%%%%%%%%%%%%%%%%%%%
8986 % % inner bond fusion %
8987 % %%%%%%%%%%%%%%%%%%%%%
8988 \set@fusion@fiveh
8989 \fi\fi\fi\fi\fi\fi%
8990 }%
8991 % \end{macrocode}
8992 % \end{macro}
8993 %
8994 % The inner command |\set@fusion@fiveh| is used for typesetting
8995 % a fused ring at each bond represented by |\@@tmpa|. Warnings
8996 % concerning mismatched ring-fusions are based on the command
8997 % |\FuseWarning|.
8998 %
8999 % \begin{macro}{\set@fusion@fiveh}
9000 % \changes{v2.00}{1998/11/23}{New command: \cs{set@fusion@fiveh}}
9001 % \changes{v5.00}{2010/10/01}{For bond coloring}
9002 % \begin{macrocode}
9003 \def\set@fusion@fiveh{%
9004 % %%%%%%%%%%%%%%%%%%%%%
9005 % % inner bond fusion %
9006 % %%%%%%%%%%%%%%%%%%%%%
9007 \if\@@tmpa E\relax%
9008 \putlratom{406}{0}{\@@tmpb}% % bond fused
9009 \FuseWarning{103}{171}%
9010 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{E, J, or other}%
9011 \else\if\@@tmpa e\relax%
9012 \putlratom{303}{-171}{\@@tmpb}% % bond fused
9013 \FuseWarning{-103}{-171}%
9014 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{e, j, or other}%
9015 \else\if\@@tmpa D\relax%
9016 \putlratom{303}{-171}{\@@tmpb}% % bond fused
9017 \FuseWarning{200}{0}%
9018 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{D, K, or other}%
9019 \else\if\@@tmpa d\relax%
9020 \putlratom{103}{-171}{\@@tmpb}% % bond fused
9021 \FuseWarning{-200}{0}%
9022 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{d, k, or other}%
9023 \else\if\@@tmpa c\relax
9024 \iffusesw
9025 \putlratom{303}{171}{\@@tmpb}% % right type
9026 \else
9027 \XyMTeXWarning{Not-used fusion at bond `c'}%
9028 \fi
9029 \else\if\@@tmpa C\relax%
9030 \iffusesw
9031 \putlratom{303}{-171}{\@@tmpb}% % right type
9032 \else
9033 \XyMTeXWarning{Not-used fusion at bond `C'}%
9034 \fi
9035 \else\if\@@tmpa B\relax%
9036 \putlratom{103}{171}{\@@tmpb}% % bond fused
9037 \FuseWarning{-200}{0}%
9038 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{B, K, or other}%
9039 \else\if\@@tmpa b\relax%
9040 \putlratom{303}{171}{\@@tmpb}% % bond fused
9041 \FuseWarning{200}{0}%
9042 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{b, k, or other}%
9043 \else\if\@@tmpa A\relax%
9044 \putlratom{303}{171}{\@@tmpb}% % bond fused
9045 \FuseWarning{-103}{171}%
9046 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{A, I, or other}%
9047 \else\if\@@tmpa a\relax%
9048 \putlratom{406}{0}{\@@tmpb}% % bond fused
9049 \FuseWarning{103}{-171}%
9050 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{a, i, or other}%
9051 \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi%
9052 }% end of the macro \set@fusion@fiveh
9053 % \end{macrocode}
9054 % \end{macro}
9055 %
9056 % \subsection{Inverse horizontal type}
9057 %
9058 % The macro |\set@fusionadd@fivehi| is an inner command contained
9059 % in the definition of |\fiveheterohi| etc., where
9060 % the macro is used for setting an additive
9061 % or a fused ring at each bond (designated by |\@@tmpa|). The
9062 % fused ring is typeset by the inner command |\set@fusion@fivehi|.
9063 %
9064 % \begin{macro}{\set@fusionadd@fivehi}
9065 % \changes{v2.00}{1998/11/23}{New command: \cs{set@fusionadd@fivehi}}
9066 % \begin{macrocode}
9067 \def\set@fusionadd@fivehi{%
9068 \if\@@tmpa 1\relax%
9069 \putratom{-38}{282}{\@@tmpb}% % right type
9070 \else\if\@@tmpa 2\relax%
9071 \putratom{60}{233}{\@@tmpb}% % right type
9072 \else\if\@@tmpa 3\relax%
9073 \putratom{60}{120}{\@@tmpb}% % right type
9074 \else\if\@@tmpa 4\relax%
9075 \putratom{-60}{120}{\@@tmpb}% % right type
9076 \else\if\@@tmpa 5\relax%
9077 \putratom{-60}{233}{\@@tmpb}% % right type
9078 \else\if\@@tmpa 0\relax%
9079 \putratom{140}{-30}{\@@tmpb}% % right type
9080 \else
9081 % %%%%%%%%%%%%%%%%%%%%%
9082 % % inner bond fusion %
9083 % %%%%%%%%%%%%%%%%%%%%%
9084 \set@fusion@fivehi
9085 \fi\fi\fi\fi\fi\fi%
9086 }%
9087 % \end{macrocode}
9088 % \end{macro}
9089 %
9090 % The inner command |\set@fusion@fivehi| is used for typesetting
9091 % a fused ring at each bond represented by |\@@tmpa|. Warnings
9092 % concerning mismatched ring-fusions are based on the command
9093 % |\FuseWarning|.
9094 %
9095 % \begin{macro}{\set@fusion@fivehi}
9096 % \changes{v2.00}{1998/11/23}{New command: \cs{set@fusion@fivehi}}
9097 % \changes{v5.00}{2010/10/01}{For bond coloring}
9098 % \begin{macrocode}
9099 \def\set@fusion@fivehi{%
9100 % %%%%%%%%%%%%%%%%%%%%%
9101 % % inner bond fusion %
9102 % %%%%%%%%%%%%%%%%%%%%%
9103 \if\@@tmpa d\relax%
9104 \putlratom{303}{-171}{\@@tmpb}% % bond fused
9105 \FuseWarning{200}{0}%
9106 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{d, k, or other}%
9107 \else\if\@@tmpa D\relax%
9108 \putlratom{103}{-171}{\@@tmpb}% % bond fused
9109 \FuseWarning{-200}{0}%
9110 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{D, K, or other}%
9111 \else\if\@@tmpa e\relax%
9112 \putlratom{103}{-171}{\@@tmpb}% % bond fused
9113 \FuseWarning{103}{-171}%
9114 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{e, j, or other}%
9115 \else\if\@@tmpa E\relax%
9116 \putlratom{0}{0}{\@@tmpb}% % bond fused
9117 \FuseWarning{-103}{171}%
9118 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{E, J, or other}%
9119 \else\if\@@tmpa a\relax%
9120 \putlratom{0}{0}{\@@tmpb}% % bond fused
9121 \FuseWarning{-103}{-171}%
9122 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{a, i, or other}%
9123 \else\if\@@tmpa A\relax%
9124 \putlratom{103}{171}{\@@tmpb}% % bond fused
9125 \FuseWarning{103}{171}%
9126 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{A, I, or other}%
9127 \else\if\@@tmpa b\relax%
9128 \putlratom{103}{171}{\@@tmpb}% % bond fused
9129 \FuseWarning{-200}{0}%
9130 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{b, k, or other}%
9131 \else\if\@@tmpa B\relax%
9132 \putlratom{303}{171}{\@@tmpb}% % bond fused
9133 \FuseWarning{200}{0}%
9134 {\fuseAx}{\fuseAy}{\fuseBx}{\fuseBy}{B, K, or other}%
9135 \else\if\@@tmpa c\relax
9136 \iffusesw
9137 \putlratom{303}{171}{\@@tmpb}% % right type
9138 \else
9139 \XyMTeXWarning{Not-used fusion at bond `c'}%
9140 \fi
9141 \else\if\@@tmpa C\relax%
9142 \iffusesw
9143 \putlratom{303}{-171}{\@@tmpb}% % right type
9144 \else
9145 \XyMTeXWarning{Not-used fusion at bond `C'}%
9146 \fi
9147 \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi%
9148 }% end of the macro \set@fusion@sixhi
9149 % \end{macrocode}
9150 % \end{macro}
9151 %
9152 % \section{Ring-fusion Commands for Six-Five-fused Rings}
9153 % \subsection{Normal vertical type}
9154 %
9155 % The macro |\set@fusion@nonav| is an inner command contained
9156 % in the definition of |\indanev| and |\nonaheterov|, where
9157 % the macro is used for setting an additive
9158 % or a fused ring at each bond (designated by |\@@tmpa|). The
9159 % fused ring is typeset by the inner command |\set@fusionadd@sixvi|.
9160 %
9161 % \begin{macro}{\set@fusion@nonav}
9162 % \begin{macrocode}
9163 \def\set@fusion@nonav{%
9164 \let\@@tmpa=\@tmpa
9165 \let\@@tmpb=\@tmpb
9166 \if\@tmpa a%
9167 \let\@@tmpa=\@tmpa
9168 \Put@Direct(342,0){\set@fusionadd@sixvi}%
9169 \else\if\@tmpa A%
9170 \let\@@tmpa=\@tmpa
9171 \Put@Direct(342,0){\set@fusionadd@sixvi}%
9172 \else\if\@tmpa b%
9173 \let\@@tmpa=\@tmpa
9174 \Put@Direct(342,0){\set@fusionadd@sixvi}%
9175 \else\if\@tmpa B%
9176 \let\@@tmpa=\@tmpa
9177 \Put@Direct(342,0){\set@fusionadd@sixvi}%
9178 \else\if\@tmpa c\relax
9179 \XyMTeXWarning{Not-used fusion at bond `c'}%
9180 \else\if\@tmpa C\relax%
9181 \XyMTeXWarning{Not-used fusion at bond `C'}%
9182 \else\if\@tmpa d%
9183 \edef\@@tmpa{c}%
9184 \Put@Direct(0,0){\set@fusionadd@sixvi}%
9185 \UnfavorableFusion{d}%
9186 \else\if\@tmpa D%
9187 \edef\@@tmpa{C}%
9188 \Put@Direct(0,0){\set@fusionadd@sixvi}%
9189 \UnfavorableFusion{D}%
9190 \else\if\@tmpa e%
9191 \edef\@@tmpa{d}%
9192 \Put@Direct(0,0){\set@fusionadd@sixvi}%
9193 \else\if\@tmpa E%
9194 \edef\@@tmpa{D}%
9195 \Put@Direct(0,0){\set@fusionadd@sixvi}%
9196 \else\if\@tmpa f%
9197 \edef\@@tmpa{e}%
9198 \Put@Direct(0,0){\set@fusionadd@sixvi}%
9199 \else\if\@tmpa F%
9200 \edef\@@tmpa{E}%
9201 \Put@Direct(0,0){\set@fusionadd@sixvi}%
9202 \else\if\@tmpa g%
9203 \edef\@@tmpa{f}%
9204 \Put@Direct(0,0){\set@fusionadd@sixvi}%
9205 \else\if\@tmpa G%
9206 \edef\@@tmpa{F}%
9207 \Put@Direct(0,0){\set@fusionadd@sixvi}%
9208 \else\if\@tmpa h%
9209 \edef\@@tmpa{a}%
9210 \Put@Direct(0,0){\set@fusionadd@sixvi}%
9211 \UnfavorableFusion{h}%
9212 \else\if\@tmpa H%
9213 \edef\@@tmpa{A}%
9214 \Put@Direct(0,0){\set@fusionadd@sixvi}%
9215 \UnfavorableFusion{H}%
9216 \else\if\@tmpa i%
9217 \edef\@@tmpa{f}%
9218 \Put@Direct(342,0){\set@fusionadd@sixvi}%
9219 \UnfavorableFusion{i}%
9220 \else\if\@tmpa I%
9221 \edef\@@tmpa{F}%
9222 \Put@Direct(342,0){\set@fusionadd@sixvi}%
9223 \UnfavorableFusion{I}%
9224 \else\if\@tmpa j%
9225 \edef\@@tmpa{e}%
9226 \Put@Direct(342,0){\set@fusionadd@sixvi}%
9227 \ForbiddenFusion{j}%
9228 \else\if\@tmpa J%
9229 \edef\@@tmpa{E}%
9230 \Put@Direct(342,0){\set@fusionadd@sixvi}%
9231 \ForbiddenFusion{J}%
9232 \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi%
9233 \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi%
9234 }% end of the macro \set@fusion@nonav
9235 % \end{macrocode}
9236 % \end{macro}
9237 %
9238 % \subsection{Inverse vertical type}
9239 %
9240 % The macro |\set@fusion@nonavi| is an inner command contained
9241 % in the definition of |\indanevi| and |\nonaheterovi|, where
9242 % the macro is used for setting an additive
9243 % or a fused ring at each bond (designated by |\@@tmpa|). The
9244 % fused ring is typeset by the inner command |\set@fusionadd@sixv|.
9245 %
9246 % \begin{macro}{\set@fusion@nonavi}
9247 % \changes{v2.00}{1998/12/5}{New command: \cs{set@fusion@nonavi}}
9248 % \begin{macrocode}
9249 \def\set@fusion@nonavi{%
9250 \let\@@tmpa=\@tmpa
9251 \let\@@tmpb=\@tmpb
9252 \if\@tmpa a%
9253 \let\@@tmpa=\@tmpa
9254 \Put@Direct(342,0){\set@fusionadd@sixv}%
9255 \else\if\@tmpa A%
9256 \let\@@tmpa=\@tmpa
9257 \Put@Direct(342,0){\set@fusionadd@sixv}%
9258 \else\if\@tmpa b%
9259 \let\@@tmpa=\@tmpa
9260 \Put@Direct(342,0){\set@fusionadd@sixv}%
9261 \else\if\@tmpa B%
9262 \let\@@tmpa=\@tmpa
9263 \Put@Direct(342,0){\set@fusionadd@sixv}%
9264 \else\if\@tmpa c\relax
9265 \XyMTeXWarning{Not-used fusion at bond `c'}%
9266 \else\if\@tmpa C\relax%
9267 \XyMTeXWarning{Not-used fusion at bond `C'}%
9268 \else\if\@tmpa d%
9269 \edef\@@tmpa{c}%
9270 \Put@Direct(0,0){\set@fusionadd@sixv}%
9271 \UnfavorableFusion{d}%
9272 \else\if\@tmpa D%
9273 \edef\@@tmpa{C}%
9274 \Put@Direct(0,0){\set@fusionadd@sixv}%
9275 \UnfavorableFusion{D}%
9276 \else\if\@tmpa e%
9277 \edef\@@tmpa{d}%
9278 \Put@Direct(0,0){\set@fusionadd@sixv}%
9279 \else\if\@tmpa E%
9280 \edef\@@tmpa{D}%
9281 \Put@Direct(0,0){\set@fusionadd@sixv}%
9282 \else\if\@tmpa f%
9283 \edef\@@tmpa{e}%
9284 \Put@Direct(0,0){\set@fusionadd@sixv}%
9285 \else\if\@tmpa F%
9286 \edef\@@tmpa{E}%
9287 \Put@Direct(0,0){\set@fusionadd@sixv}%
9288 \else\if\@tmpa g%
9289 \edef\@@tmpa{f}%
9290 \Put@Direct(0,0){\set@fusionadd@sixv}%
9291 \else\if\@tmpa G%
9292 \edef\@@tmpa{F}%
9293 \Put@Direct(0,0){\set@fusionadd@sixv}%
9294 \else\if\@tmpa h%
9295 \edef\@@tmpa{a}%
9296 \Put@Direct(0,0){\set@fusionadd@sixv}%
9297 \UnfavorableFusion{h}%
9298 \else\if\@tmpa H%
9299 \edef\@@tmpa{A}%
9300 \Put@Direct(0,0){\set@fusionadd@sixv}%
9301 \UnfavorableFusion{H}%
9302 \else\if\@tmpa i%
9303 \edef\@@tmpa{f}%
9304 \Put@Direct(342,0){\set@fusionadd@sixv}%
9305 \UnfavorableFusion{i}%
9306 \else\if\@tmpa I%
9307 \edef\@@tmpa{F}%
9308 \Put@Direct(342,0){\set@fusionadd@sixv}%
9309 \UnfavorableFusion{I}%
9310 \else\if\@tmpa j%
9311 \edef\@@tmpa{e}%
9312 \Put@Direct(342,0){\set@fusionadd@sixv}%
9313 \ForbiddenFusion{j}%
9314 \else\if\@tmpa J%
9315 \edef\@@tmpa{E}%
9316 \Put@Direct(342,0){\set@fusionadd@sixv}%
9317 \ForbiddenFusion{J}%
9318 \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi%
9319 \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi%
9320 }% end of the macro \set@fusion@nonavi
9321 % \end{macrocode}
9322 % \end{macro}
9323 %
9324 % \subsection{Normal horizontal type}
9325 %
9326 % The macro |\set@fusion@nonah| is an inner command contained
9327 % in the definition of |\nonaheteroh|, where
9328 % the macro is used for setting an additive
9329 % or a fused ring at each bond (designated by |\@@tmpa|). The
9330 % fused ring is typeset by the inner command |\set@fusionadd@sixhi|.
9331 %
9332 % \begin{macro}{\set@fusion@nonah}
9333 % \changes{v2.00}{1998/12/6}{New command: \cs{set@fusion@nonah}}
9334 % \begin{macrocode}
9335 \def\set@fusion@nonah{%
9336 \let\@@tmpa=\@tmpa
9337 \let\@@tmpb=\@tmpb
9338 \if\@tmpa a%
9339 \let\@@tmpa=\@tmpa
9340 \Put@Direct(0,0){\set@fusionadd@sixhi}%
9341 \else\if\@tmpa A%
9342 \let\@@tmpa=\@tmpa
9343 \Put@Direct(0,0){\set@fusionadd@sixhi}%
9344 \else\if\@tmpa b%
9345 \let\@@tmpa=\@tmpa
9346 \Put@Direct(0,0){\set@fusionadd@sixhi}%
9347 \else\if\@tmpa B%
9348 \let\@@tmpa=\@tmpa
9349 \Put@Direct(0,0){\set@fusionadd@sixhi}%
9350 \else\if\@tmpa c\relax
9351 \XyMTeXWarning{Not-used fusion at bond `c'}%
9352 \else\if\@tmpa C\relax%
9353 \XyMTeXWarning{Not-used fusion at bond `C'}%
9354 \else\if\@tmpa d%
9355 \edef\@@tmpa{c}%
9356 \Put@Direct(0,-342){\set@fusionadd@sixhi}%
9357 \UnfavorableFusion{d}%
9358 \else\if\@tmpa D%
9359 \edef\@@tmpa{C}%
9360 \Put@Direct(0,-342){\set@fusionadd@sixhi}%
9361 \UnfavorableFusion{D}%
9362 \else\if\@tmpa e%
9363 \edef\@@tmpa{d}%
9364 \Put@Direct(0,-342){\set@fusionadd@sixhi}%
9365 \else\if\@tmpa E%
9366 \edef\@@tmpa{D}%
9367 \Put@Direct(0,-342){\set@fusionadd@sixhi}%
9368 \else\if\@tmpa f%
9369 \edef\@@tmpa{e}%
9370 \Put@Direct(0,-342){\set@fusionadd@sixhi}%
9371 \else\if\@tmpa F%
9372 \edef\@@tmpa{E}%
9373 \Put@Direct(0,-342){\set@fusionadd@sixhi}%
9374 \else\if\@tmpa g%
9375 \edef\@@tmpa{f}%
9376 \Put@Direct(0,-342){\set@fusionadd@sixhi}%
9377 \else\if\@tmpa G%
9378 \edef\@@tmpa{F}%
9379 \Put@Direct(0,-342){\set@fusionadd@sixhi}%
9380 \else\if\@tmpa h%
9381 \edef\@@tmpa{a}%
9382 \Put@Direct(0,-342){\set@fusionadd@sixhi}%
9383 \UnfavorableFusion{h}%
9384 \else\if\@tmpa H%
9385 \edef\@@tmpa{A}%
9386 \Put@Direct(0,-342){\set@fusionadd@sixhi}%
9387 \UnfavorableFusion{H}%
9388 \else\if\@tmpa i%
9389 \edef\@@tmpa{f}%
9390 \Put@Direct(0,0){\set@fusionadd@sixhi}%
9391 \UnfavorableFusion{i}%
9392 \else\if\@tmpa I%
9393 \edef\@@tmpa{F}%
9394 \Put@Direct(0,0){\set@fusionadd@sixhi}%
9395 \UnfavorableFusion{I}%
9396 \else\if\@tmpa j%
9397 \edef\@@tmpa{e}%
9398 \Put@Direct(0,0){\set@fusionadd@sixhi}%
9399 \ForbiddenFusion{j}%
9400 \else\if\@tmpa J%
9401 \edef\@@tmpa{E}%
9402 \Put@Direct(0,0){\set@fusionadd@sixhi}%
9403 \ForbiddenFusion{J}%
9404 \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi%
9405 \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi%
9406 }% end of the macro \set@fusion@nonah
9407 % \end{macrocode}
9408 % \end{macro}
9409 %
9410 % \subsection{Inverse horizontal type}
9411 %
9412 % The macro |\set@fusion@nonahi| is an inner command contained
9413 % in the definition of |\indanehi| and |\nonaheterohi|, where
9414 % the macro is used for setting an additive
9415 % or a fused ring at each bond (designated by |\@@tmpa|). The
9416 % fused ring is typeset by the inner command |\set@fusionadd@sixh|.
9417 %
9418 % \begin{macro}{\set@fusion@nonahi}
9419 % \changes{v2.00}{1998/12/5}{New command: \cs{set@fusion@nonahi}}
9420 % \begin{macrocode}
9421 \def\set@fusion@nonahi{%
9422 \let\@@tmpa=\@tmpa
9423 \let\@@tmpb=\@tmpb
9424 \if\@tmpa a%
9425 \let\@@tmpa=\@tmpa
9426 \Put@Direct(0,0){\set@fusionadd@sixh}%
9427 \else\if\@tmpa A%
9428 \let\@@tmpa=\@tmpa
9429 \Put@Direct(0,0){\set@fusionadd@sixh}%
9430 \else\if\@tmpa b%
9431 \let\@@tmpa=\@tmpa
9432 \Put@Direct(0,0){\set@fusionadd@sixh}%
9433 \else\if\@tmpa B%
9434 \let\@@tmpa=\@tmpa
9435 \Put@Direct(0,0){\set@fusionadd@sixh}%
9436 \else\if\@tmpa c\relax
9437 \XyMTeXWarning{Not-used fusion at bond `c'}%
9438 \else\if\@tmpa C\relax%
9439 \XyMTeXWarning{Not-used fusion at bond `C'}%
9440 \else\if\@tmpa d%
9441 \edef\@@tmpa{c}%
9442 \Put@Direct(0,-342){\set@fusionadd@sixh}%
9443 \UnfavorableFusion{d}%
9444 \else\if\@tmpa D%
9445 \edef\@@tmpa{C}%
9446 \Put@Direct(0,-342){\set@fusionadd@sixh}%
9447 \UnfavorableFusion{D}%
9448 \else\if\@tmpa e%
9449 \edef\@@tmpa{d}%
9450 \Put@Direct(0,-342){\set@fusionadd@sixh}%
9451 \else\if\@tmpa E%
9452 \edef\@@tmpa{D}%
9453 \Put@Direct(0,-342){\set@fusionadd@sixh}%
9454 \else\if\@tmpa f%
9455 \edef\@@tmpa{e}%
9456 \Put@Direct(0,-342){\set@fusionadd@sixh}%
9457 \else\if\@tmpa F%
9458 \edef\@@tmpa{E}%
9459 \Put@Direct(0,-342){\set@fusionadd@sixh}%
9460 \else\if\@tmpa g%
9461 \edef\@@tmpa{f}%
9462 \Put@Direct(0,-342){\set@fusionadd@sixh}%
9463 \else\if\@tmpa G%
9464 \edef\@@tmpa{F}%
9465 \Put@Direct(0,-342){\set@fusionadd@sixh}%
9466 \else\if\@tmpa h%
9467 \edef\@@tmpa{a}%
9468 \Put@Direct(0,-342){\set@fusionadd@sixh}%
9469 \UnfavorableFusion{h}%
9470 \else\if\@tmpa H%
9471 \edef\@@tmpa{A}%
9472 \Put@Direct(0,-342){\set@fusionadd@sixh}%
9473 \UnfavorableFusion{H}%
9474 \else\if\@tmpa i%
9475 \edef\@@tmpa{f}%
9476 \Put@Direct(0,0){\set@fusionadd@sixh}%
9477 \UnfavorableFusion{i}%
9478 \else\if\@tmpa I%
9479 \edef\@@tmpa{F}%
9480 \Put@Direct(0,0){\set@fusionadd@sixh}%
9481 \UnfavorableFusion{I}%
9482 \else\if\@tmpa j%
9483 \edef\@@tmpa{e}%
9484 \Put@Direct(0,0){\set@fusionadd@sixh}%
9485 \ForbiddenFusion{j}%
9486 \else\if\@tmpa J%
9487 \edef\@@tmpa{E}%
9488 \Put@Direct(0,0){\set@fusionadd@sixh}%
9489 \ForbiddenFusion{J}%
9490 \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi%
9491 \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi%
9492 }% end of the macro \set@fusion@nonahi
9493 % \end{macrocode}
9494 % \end{macro}
9495 %
9496 % \subsection{Truncation for two or more atoms}
9497 %
9498 % The macros |SetTwoAtoms| and |SetTwoAtomx| are user commands for
9499 % truncating a vertex to accommodate two or more atoms.
9500 %
9501 % \begin{macro}{SetTwoAtoms}
9502 % \changes{v5.01}{2013/03/22}{New command: \cs{SetTwoAtoms}}
9503 % \begin{macrocode}
9504 \def\SetTwoAtoms#1{\setbox0=\hbox{#1}%
9505 {\white \rule{\wd0}{\ht0}}\kern-\wd0{#1}}
9506 % \end{macrocode}
9507 % \end{macro}
9508 %
9509 % \begin{macro}{SetTwoAtomx}
9510 % \changes{v5.01}{2013/04/06}{New command: \cs{SetTwoAtomx}}
9511 % \begin{macrocode}
9512 \def\SetTwoAtomx#1{{\setbox0=\hbox{#1}%
9513 \@tempdimd=\wd0 \advance\@tempdimd by8\unitlength%
9514 \@tempdime=\ht0 \advance\@tempdime by8\unitlength%
9515 \kern-4\unitlength{\white \rule[-4\unitlength]{\@tempdimd}{\@tempdime}}%
9516 \kern-\@tempdimd{#1}}}
9517 % \end{macrocode}
9518 % \end{macro}
9519 %
9520 % \subsection{Original Setting}
9521 %
9522 % \begin{macro}{originalsetting}
9523 % \begin{macrocode}
9524 \originalpicture%initial setting
9525 %</chemstr>
9526 % \end{macrocode}
9527 % \end{macro}
9528 %
9529 % \Finale
9530 %
9531 \endinput