Debian Codegraph @

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

raw
1 % \iffalse meta-comment
2 %% File: ccycle.dtx
3 %
4 % Copyright 1993,1996,1998,2001,2002,2004,2009,2010,2013 by Shinsaku Fujita
5 %
6 % This file is part of XyMTeX system.
7 % -------------------------------------
8 %
9 % This file is a successor to:
10 %
11 % ccycle.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 ccycle.dtx and ccycle.ins
45 % and the derived file ccycle.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 %
55 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
56 % \def\j@urnalname{ccycle}
57 % \def\versi@ndate{December 01, 1993}
58 % \def\versi@nno{ver1.00}
59 % \def\copyrighth@lder{SF} % Shinsaku Fujita
60 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
61 % \def\j@urnalname{ccycle}
62 % \def\versi@ndate{March 05, 1994}
63 % \def\versi@nno{ver1.01}
64 % \def\copyrighth@lder{SF} % Shinsaku Fujita
65 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
66 % \def\j@urnalname{ccycle}
67 % \def\versi@ndate{August 16, 1996}
68 % \def\versi@nno{ver1.01a}
69 % \def\copyrighth@lder{SF} % Shinsaku Fujita
70 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
71 % \def\j@urnalname{ccycle}
72 % \def\versi@ndate{October 31, 1998}
73 % \def\versi@nno{ver1.02}
74 % \def\copyrighth@lder{SF} % Shinsaku Fujita
75 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
76 % \def\j@urnalname{ccycle}
77 % \def\versi@ndate{December 25, 1998}
78 % \def\versi@nno{ver2.00}
79 % \def\copyrighth@lder{SF} % Shinsaku Fujita
80 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
81 % \def\j@urnalname{ccycle}
82 % \def\versi@ndate{June 20, 2001}
83 % \def\versi@nno{ver2.01}
84 % \def\copyrighth@lder{SF} % Shinsaku Fujita
85 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
86 % \def\j@urnalname{ccycle}
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{ccycle}
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{ccycle}
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{ccycle}
102 % \def\versi@ndate{December 20, 2004}
103 % \def\versi@nno{ver4.02}
104 % \def\copyrighth@lder{SF} % Shinsaku Fujita
105 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
106 % \def\j@urnalname{ccycle}
107 % \def\versi@ndate{June 15, 2009}
108 % \def\versi@nno{ver4.04}
109 % \def\copyrighth@lder{SF} % Shinsaku Fujita
110 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
111 % \def\j@urnalname{ccycle}
112 % \def\versi@ndate{October 01, 2010}
113 % \def\versi@nno{ver5.00}
114 % \def\copyrighth@lder{SF} % Shinsaku Fujita
115 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
116 % \def\j@urnalname{ccycle}
117 % \def\versi@ndate{April 01, 2013}
118 % \def\versi@nno{ver5.01b}
119 % \def\copyrighth@lder{SF} % Shinsaku Fujita
120 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
121 % \def\j@urnalname{ccycle}
122 % \def\versi@ndate{June 26, 2013}
123 % \def\versi@nno{ver5.01bb}
124 % \def\copyrighth@lder{SF} % Shinsaku Fujita
125 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
126 %
127 % \fi
128 %
129 % \CheckSum{3681}
130 %% \CharacterTable
131 %% {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
132 %% 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
133 %% Digits \0\1\2\3\4\5\6\7\8\9
134 %% Exclamation \! Double quote \" Hash (number) \#
135 %% Dollar \$ Percent \% Ampersand \&
136 %% Acute accent \' Left paren \( Right paren \)
137 %% Asterisk \* Plus \+ Comma \,
138 %% Minus \- Point \. Solidus \/
139 %% Colon \: Semicolon \; Less than \<
140 %% Equals \= Greater than \> Question mark \?
141 %% Commercial at \@ Left bracket \[ Backslash \\
142 %% Right bracket \] Circumflex \^ Underscore \_
143 %% Grave accent \` Left brace \{ Vertical bar \|
144 %% Right brace \} Tilde \~}
145 %
146 % \setcounter{StandardModuleDepth}{1}
147 %
148 % \StopEventually{}
149 % \MakeShortVerb{\|}
150 %
151 % \iffalse
152 % \changes{v1.01a}{1996/06/17}{first edition for LaTeX2e}
153 % \changes{v1.02}{1998/10/31}{revised edition for LaTeX2e}
154 % \changes{v2.00}{1998/12/25}{enhanced edition for LaTeX2e}
155 % \changes{v2.01}{2001/06/20}{Size reduction and Clipping information}
156 % \changes{v2.01}{2001/06/21}{The command \cs{dotorline} is added.}
157 % \changes{v3.00}{2002/04/30}{sfpicture environment, etc.}
158 % \changes{v4.00}{2002/05/30}{PostScript output and ShiftPicEnv}
159 % \changes{v4.01}{2004/08/30}{Minor additions}
160 % \changes{v4.02}{2004/12/20}{Wedge bonds}
161 % \changes{v4.04}{2009/6/15}{Wavy bonds}
162 % \changes{v5.00}{2010/10/01}{bond coloring and the LaTeX Project Public License}
163 % \changes{v5.01b}{2013/04/01}{Wavy bonds for \cs{bornane}}
164 % \changes{v5.01}{2013/06/24}{bornane, adamantane, hadamantane: front-to-back crossing}
165 % \changes{v5.01}{2013/06/25}{bornane 7SU and 7SV added, bug fix}
166 % \changes{v5.01}{2013/06/26}{bug fix, added 7SA, 7SB, 7Su, 7Sd}
167 % \changes{v5.01}{2013/07/23}{background color}
168 % \fi
169 %
170 % \iffalse
171 %<*driver>
172 \NeedsTeXFormat{pLaTeX2e}
173 % \fi
174 \ProvidesFile{ccycle.dtx}[2013/07/23 v5.01 XyMTeX{} package file]
175 % \iffalse
176 \documentclass{ltxdoc}
177 \GetFileInfo{ccycle.dtx}
178 %
179 % %%XyMTeX Logo: Definition 2%%%
180 \def\UPSILON{\char'7}
181 \def\XyM{X\kern-.30em\smash{%
182 \raise.50ex\hbox{\UPSILON}}\kern-.30em{M}}
183 \def\XyMTeX{\XyM\kern-.1em\TeX}
184 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
185 \title{Further Cyclic Compounds by {\sffamily ccycle.sty}
186 (\fileversion) of \XyMTeX{}}
187 \author{Shinsaku Fujita \\
188 Shonan Institute of Chemoinformatics and Mathematical Chemistry, \\
189 Kaneko 479-7 Ooimachi, Ashigara-Kami-Gun, Kanagawa 250-0019 Japan
190 % % (old address)
191 % %Department of Chemistry and Materials Technology, \\
192 % %Kyoto Institute of Technology, \\
193 % %Matsugasaki, Sakyoku, Kyoto, 606-8585 Japan
194 % %% (old address)
195 % %% Ashigara Research Laboratories,
196 % %% Fuji Photo Film Co., Ltd., \\
197 % %% Minami-Ashigara, Kanagawa, 250-01 Japan
198 }
199 \date{\filedate}
200 %
201 \begin{document}
202 \maketitle
203 \DocInput{ccycle.dtx}
204 \end{document}
205 %</driver>
206 % \fi
207 %
208 % \section{Introduction}\label{ccycle:intro}
209 %
210 % \subsection{Options for {\sffamily docstrip}}
211 %
212 % \DeleteShortVerb{\|}
213 % \begin{center}
214 % \begin{tabular}{|l|l|}
215 % \hline
216 % \emph{option} & \emph{function}\\ \hline
217 % ccycle & ccycle.sty \\
218 % driver & driver for this dtx file \\
219 % \hline
220 % \end{tabular}
221 % \end{center}
222 % \MakeShortVerb{\|}
223 %
224 % \subsection{Version Information}
225 %
226 % \begin{macrocode}
227 %<*ccycle>
228 \typeout{XyMTeX for Drawing Chemical Structural Formulas. Version 5.01}
229 \typeout{ -- Released July 23, 2013 by Shinsaku Fujita}
230 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
231 \def\j@urnalname{ccycle}
232 \def\versi@ndate{July 23, 2013}
233 \def\versi@nno{ver5.01}
234 \def\copyrighth@lder{SF} % Shinsaku Fujita
235 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
236 \typeout{XyMTeX Macro File `\j@urnalname' (\versi@nno) <\versi@ndate>%
237 \space[\copyrighth@lder]}
238 % \end{macrocode}
239 %
240 % \section{List of commands for ccycle.sty}
241 %
242 % \begin{verbatim}
243 % ********************************
244 % * ccycle.sty: list of commands *
245 % ********************************
246 %
247 % Setting of Bonds
248 %
249 % \@chaira (for cyclohexane chair)
250 % \@chairb
251 % \@chairc
252 % \@chaird
253 % \@chaire
254 % \@chairf
255 %
256 % \@borna (for bornanes)
257 % \@bornb
258 % \@bornc
259 % \@bornd
260 % \@borne
261 % \@bornf
262 % \@borng
263 %
264 % Basic Macros
265 %
266 % \chair \@chair
267 % \bicychepv \@bicychepv
268 % \bicycheph \@bicycheph
269 % \bornane \@bornane
270 % \adamantane \@damantane
271 %
272 % (Added March 05, 1994 by Shinsaku Fujita)
273 % Setting of Bonds
274 %
275 % \@chairia (for cyclohexane chair inversed)
276 % \@chairib \@chairic \@chairid
277 % \@chairie \@chairif
278 %
279 % Basic Macros
280 %
281 % \chairi \@chairi
282 %
283 % (Added June 16, 1996 by Shinsaku Fujita)
284 % Setting of Bonds
285 %
286 % \@chairiI (for horizontal-type adamantane)
287 % \@chairiII \@chairiIII \@chairiIV
288 % \@chairiV \@chairiVI \@chairiVII
289 % \@chairiVIII \@chairiIX \@chairiX
290 %
291 % Basic Macros
292 %
293 % \hadamantane \@hadamantane
294 %
295 % Macros for adjusting substitution sites (for Version 1.02)
296 %
297 % \ylchairposition
298 % \ylchairiposition
299 % \ylbornaneposition
300 % \yladamanposition
301 % \ylhadamanposition
302 %
303 % \end{verbatim}
304 %
305 % \section{Input of basic macros}
306 %
307 % To assure the compatibility to \LaTeX{}2.09 (the native mode),
308 % the commands added by \LaTeXe{} have not been used in the resulting sty
309 % files ({\sf ccycle.sty} for the present case). Hence, the combination
310 % of |\input| and |\@ifundefined| is used to crossload sty
311 % files ({\sf chemstr.sty} for the present case) in place of the
312 % |\RequirePackage| command of \LaTeXe{}.
313 %
314 % \begin{macrocode}
315 % *************************
316 % * input of basic macros *
317 % *************************
318 \@ifundefined{setsixringv}{\input chemstr.sty\relax}{}
319 \unitlength=0.1pt
320 % \end{macrocode}
321 %
322 % \begin{macro}{\ifmolfront}
323 % \changes{v4.02}{2004/12/20}{Avoid wedged front bonds}
324 % \begin{macrocode}
325 \@ifundefined{ifmolfront}{\newif\ifmolfront \molfrontfalse}{}
326 % \end{macrocode}
327 % \end{macro}
328 %
329 %
330 % \section{Chair-form cyclohexanes}
331 % \subsection{Macros for setting substituents}
332 %
333 % Macros |\@chaira| to |\@chairf| are used to set substituents
334 % on each position of cyclohexane. Note that comments (conerning locant
335 % numbers) on the end of each row have lost the exact meaning,
336 % since such a command moiety is used in many macros after copying.
337 %
338 % \begin{macro}{\@chaira}
339 % \changes{v1.02}{1998/10/31}{Adding \cs{yl@xdiff} and \cs{yl@ydiff}}
340 % \changes{v4.04}{2009/06/15}{Adding wavy bonds}
341 % \begin{macrocode}
342 % **********************************************
343 % * treatment of the chair form of cyclohexane *
344 % **********************************************
345 % %%%%%%%%%%%%%%%
346 % % subst. on 1 %
347 % %%%%%%%%%%%%%%%
348 \def\@chaira{%
349 \if\@tmpb S%single bond
350 \ifx\@tmpc\empty%
351 \yl@xdiff=10
352 \yl@ydiff=10
353 \Put@Line(0,0)(-1,1){120}% single bond at 1
354 \putlatom{-130}{110}{\@memberb}% left type
355 \else\if\@tmpc a%(a) axial
356 \yl@xdiff=42
357 \yl@ydiff=-12
358 \Put@Line(0,0)(0,1){168}% single bond at 1 axial
359 \putlratom{-42}{180}{\@memberb}% left & right type
360 \else\if\@tmpc e%(e) beta
361 \yl@xdiff=16
362 \yl@ydiff=44
363 \Put@Line(0,0)(-5,-3){144}% single bond at 1 equatorial
364 \putlatom{-160}{-130}{\@memberb}% left type
365 \fi\fi\fi%
366 %2009/06/15
367 \else\if\@tmpb U%(U) alpha undefined
368 \yl@xdiff=10
369 \yl@ydiff=10
370 \putlatom{-130}{110}{\@memberb}% left type
371 {%
372 \WaveBonds%
373 \Put@Line(0,0)(-1,1){120}% single bond at 1
374 }%
375 %
376 \else \if\@tmpb D%double bond
377 \yl@xdiff=10
378 \yl@ydiff=10
379 \Put@Line(-10,-10)(-1,1){120}% double bond at 1
380 \Put@Line(10,10)(-1,1){120}% double bond at 1
381 \putlatom{-130}{110}{\@memberb}% left type
382 \else%
383 \yl@xdiff=10
384 \yl@ydiff=10
385 \Put@Line(0,0)(-1,1){120}% single bond at 1
386 \putlatom{-130}{110}{\@memberb}% left type
387 \fi\fi\fi}%
388 % \end{macrocode}
389 % \end{macro}
390 %
391 % \begin{macro}{\@chairb}
392 % \changes{v1.02}{1998/10/31}{Adding \cs{yl@xdiff} and \cs{yl@ydiff}}
393 % \changes{v4.04}{2009/06/15}{Adding wavy bonds}
394 % \begin{macrocode}
395 % %%%%%%%%%%%%%%%
396 % % subst. on 2 %
397 % %%%%%%%%%%%%%%%
398 \def\@chairb{%
399 \if\@tmpb S%single bond
400 \ifx\@tmpc\empty%
401 \yl@xdiff=10
402 \yl@ydiff=70
403 \Put@Line(170,-226)(-1,-1){120}% single bond at 2
404 \putlatom{40}{-416}{\@memberb}% left type
405 \else\if\@tmpc a%(a) axial
406 \yl@xdiff=32
407 \yl@ydiff=92
408 \Put@Line(170,-226)(0,-1){168}% single bond at 2 axial
409 \putlratom{138}{-486}{\@memberb}% left & right type
410 \else\if\@tmpc e%(e) beta
411 \yl@xdiff=16
412 \yl@ydiff=34
413 \Put@Line(170,-226)(-5,3){144}% single bond at 2 equatorial
414 \putlatom{10}{-174}{\@memberb}% left type
415 \fi\fi\fi%
416 %2009/06/15
417 \else\if\@tmpb U%(U) alpha undefined
418 \yl@xdiff=10
419 \yl@ydiff=70
420 \putlatom{40}{-416}{\@memberb}% left type
421 {%
422 \WaveBonds%
423 \Put@Line(170,-226)(-1,-1){120}% single bond at 2
424 }%
425 %
426 \else \if\@tmpb D%double bond
427 \yl@xdiff=10
428 \yl@ydiff=70
429 \Put@Line(160,-216)(-1,-1){120}% double bond at 2
430 \Put@Line(180,-236)(-1,-1){120}% double bond at 2
431 \putlatom{40}{-416}{\@memberb}% left type
432 \else%
433 \yl@xdiff=10
434 \yl@ydiff=70
435 \Put@Line(170,-226)(-1,-1){120}% single bond at 2
436 \putlatom{40}{-416}{\@memberb}% left type
437 \fi\fi\fi}%
438 % \end{macrocode}
439 % \end{macro}
440 %
441 % \begin{macro}{\@chairc}
442 % \changes{v1.02}{1998/10/31}{Adding \cs{yl@xdiff} and \cs{yl@ydiff}}
443 % \changes{v4.04}{2009/06/15}{Adding wavy bonds}
444 % \begin{macrocode}
445 % %%%%%%%%%%%%%%%
446 % % subst. on 3 %
447 % %%%%%%%%%%%%%%%
448 \def\@chairc{%
449 \if\@tmpb S%single bond
450 \ifx\@tmpc\empty%
451 \yl@xdiff=-10
452 \yl@ydiff=24
453 \Put@Line(573,-91)(5,4){170}% single bond at 3
454 \putratom{753}{21}{\@memberb}% right type
455 \else\if\@tmpc a%(a) axial
456 \yl@xdiff=40
457 \yl@ydiff=-24
458 \Put@Line(573,-91)(0,1){168}% single bond at 3 axial
459 \putlratom{533}{101}{\@memberb}% left type
460 \else\if\@tmpc e%(e) beta
461 \yl@xdiff=-36
462 \yl@ydiff=83
463 \Put@Line(573,-91)(5,-3){144}% single bond at 3 equatorial
464 \putlatom{753}{-260}{\@memberb}% left type
465 \fi\fi\fi%
466 %2009/06/15
467 \else\if\@tmpb U%(U) alpha undefined
468 \yl@xdiff=-10
469 \yl@ydiff=24
470 \putratom{753}{21}{\@memberb}% right type
471 {%
472 \WaveBonds%
473 \Put@Line(573,-91)(5,4){170}% single bond at 3
474 }%
475 %
476 \else \if\@tmpb D%double bond
477 \yl@xdiff=0
478 \yl@ydiff=0
479 \Put@Line(563,-83)(5,4){170}% double bond at 3
480 \Put@Line(583,-99)(5,4){170}% double bond at 3
481 \putratom{733}{41}{\@memberb}% right type
482 \else%
483 \yl@xdiff=-10
484 \yl@ydiff=24
485 \Put@Line(573,-91)(5,4){170}% single bond at 3
486 \putratom{753}{21}{\@memberb}% right type
487 \fi\fi\fi}%
488 % \end{macrocode}
489 % \end{macro}
490 %
491 % \begin{macro}{\@chaird}
492 % \changes{v1.02}{1998/10/31}{Adding \cs{yl@xdiff} and \cs{yl@ydiff}}
493 % \changes{v4.04}{2009/06/15}{Adding wavy bonds}
494 % \begin{macrocode}
495 % %%%%%%%%%%%%%%%
496 % % subst. on 4 %
497 % %%%%%%%%%%%%%%%
498 \def\@chaird{%
499 \if\@tmpb S%single bond
500 \ifx\@tmpc\empty%
501 \yl@xdiff=10
502 \yl@ydiff=70
503 \Put@Line(843,-181)(1,-1){120}% single bond at 4
504 \putratom{953}{-371}{\@memberb}% right type
505 \else\if\@tmpc a%(a) axial
506 \yl@xdiff=42
507 \yl@ydiff=91
508 \Put@Line(843,-181)(0,-1){168}% single bond at 4 axial
509 \putlratom{801}{-440}{\@memberb}% left & right type
510 \else\if\@tmpc e%(e) beta
511 \yl@xdiff=-16
512 \yl@ydiff=16
513 \Put@Line(843,-181)(5,3){144}% single bond at 4 equatorial
514 \putratom{1003}{-111}{\@memberb}% right type
515 \fi\fi\fi%
516 %2009/06/15
517 \else\if\@tmpb U%(U) alpha undefined
518 \yl@xdiff=10
519 \yl@ydiff=70
520 \putratom{953}{-371}{\@memberb}% right type
521 {%
522 \WaveBonds%
523 \Put@Line(843,-181)(1,-1){120}% single bond at 4
524 }%
525 %
526 \else \if\@tmpb D%double bond
527 \yl@xdiff=10
528 \yl@ydiff=70
529 \Put@Line(833,-191)(1,-1){120}% double bond at 4
530 \Put@Line(853,-171)(1,-1){120}% double bond at 4
531 \putratom{953}{-371}{\@memberb}% right type
532 \else%
533 \yl@xdiff=10
534 \yl@ydiff=70
535 \Put@Line(843,-181)(1,-1){120}% single bond at 4
536 \putratom{953}{-371}{\@memberb}% right type
537 \fi\fi\fi}%
538 % \end{macrocode}
539 % \end{macro}
540 %
541 % \begin{macro}{\@chaire}
542 % \changes{v1.02}{1998/10/31}{Adding \cs{yl@xdiff} and \cs{yl@ydiff}}
543 % \changes{v4.04}{2009/06/15}{Adding wavy bonds}
544 % \begin{macrocode}
545 % %%%%%%%%%%%%%%%
546 % % subst. on 5 %
547 % %%%%%%%%%%%%%%%
548 \def\@chaire{%
549 \if\@tmpb S%single bond
550 \ifx\@tmpc\empty%
551 \yl@xdiff=-10
552 \yl@ydiff=10
553 \Put@Line(673,46)(1,1){120}% single bond at 5
554 \putratom{803}{158}{\@memberb}% right type
555 \else\if\@tmpc a%(a) axial
556 \yl@xdiff=40
557 \yl@ydiff=-24
558 \Put@Line(673,46)(0,1){168}% single bond at 5 axial
559 \putlratom{633}{238}{\@memberb}% left & right type
560 \else\if\@tmpc e%(e) beta
561 \yl@xdiff=-6
562 \yl@ydiff=63
563 \Put@Line(673,46)(5,-3){144}% single bond at 5 equatorial
564 \putratom{823}{-103}{\@memberb}% right type
565 \fi\fi\fi%
566 %2009/06/15
567 \else\if\@tmpb U%(U) alpha undefined
568 \yl@xdiff=-10
569 \yl@ydiff=10
570 \putratom{803}{158}{\@memberb}% right type
571 {%
572 \WaveBonds%
573 \Put@Line(673,46)(1,1){120}% single bond at 5
574 }%
575 %
576 \else \if\@tmpb D%double bond
577 \yl@xdiff=-10
578 \yl@ydiff=10
579 \Put@Line(663,53)(1,1){120}% double bond at 5
580 \Put@Line(683,38)(1,1){120}% double bond at 5
581 \putratom{803}{158}{\@memberb}% right type
582 \else%
583 \yl@xdiff=-10
584 \yl@ydiff=24
585 \Put@Line(673,46)(5,4){170}% single bond at 5
586 \putratom{853}{158}{\@memberb}% right type
587 \fi\fi\fi}%
588 % \end{macrocode}
589 % \end{macro}
590 %
591 % \begin{macro}{\@chairf}
592 % \changes{v1.02}{1998/10/31}{Adding \cs{yl@xdiff} and \cs{yl@ydiff}}
593 % \changes{v4.04}{2009/06/15}{Adding wavy bonds}
594 % \begin{macrocode}
595 % %%%%%%%%%%%%%%%
596 % % subst. on 6 %
597 % %%%%%%%%%%%%%%%
598 \def\@chairf{%
599 \if\@tmpb S%single bond
600 \ifx\@tmpc\empty%
601 \yl@xdiff=0
602 \yl@ydiff=54
603 \Put@Line(270,-90)(-5,-4){170}% single bond at 6
604 \putlatom{100}{-280}{\@memberb}% left type
605 \else\if\@tmpc a%(a) axial
606 \yl@xdiff=32
607 \yl@ydiff=92
608 \Put@Line(270,-90)(0,-1){168}% single bond at 6 axial
609 \putlratom{238}{-350}{\@memberb}% left type
610 \else\if\@tmpc e%(e) beta
611 \yl@xdiff=26
612 \yl@ydiff=-14
613 \Put@Line(270,-90)(-5,3){144}% single bond at 6 equatorial
614 \putratom{100}{18}{\@memberb}% left type
615 \fi\fi\fi%
616 %2009/06/15
617 \else\if\@tmpb U%(U) alpha undefined
618 \yl@xdiff=0
619 \yl@ydiff=54
620 \putlatom{100}{-280}{\@memberb}% left type
621 {%
622 \WaveBonds%
623 \Put@Line(270,-90)(-5,-4){170}% single bond at 6
624 }%
625 %
626 \else \if\@tmpb D%double bond
627 \yl@xdiff=0
628 \yl@ydiff=54
629 \Put@Line(260,-80)(-5,-4){170}% double bond at 2
630 \Put@Line(280,-100)(-5,-4){170}% double bond at 2
631 \putlatom{100}{-280}{\@memberb}% left or right type
632 \else%
633 \yl@xdiff=0
634 \yl@ydiff=54
635 \Put@Line(270,-90)(-5,-4){170}% single bond at 2
636 \putlatom{100}{-280}{\@memberb}% left type
637 \fi\fi\fi}%
638 % \end{macrocode}
639 % \end{macro}
640 %
641 % \subsection{Drawing of Chair-form cyclohexanes}
642 %
643 % The standard skeleton of a chair form of cyclohexane is selected
644 % to have the following locant numbers.
645 %
646 % \begin{verbatim}
647 % ***************************
648 % * cyclohexane derivatives *
649 % * (chair type) *
650 % ***************************
651 % The following numbering is adopted in this macro.
652 %
653 % 5
654 % / 3 *
655 % 1 * 6 / * 4
656 % * 2
657 %
658 % \end{verbatim}
659 %
660 % The macro |\chair| has an argument |SUBSLIST| as well as an optional
661 % argument |BONDLIST|.
662 %
663 % \begin{verbatim}
664 % \chair[BONDLIST]{SUBSLIST}
665 % \end{verbatim}
666 %
667 % The |BONDLIST| argument contains one or more
668 % characters selected from a to f, each of which indicates the presence of
669 % an inner (endcyclic) double bond on the corresponding position.
670 % \begin{verbatim}
671 %
672 % BONDLIST =
673 %
674 % none : cyclohexane
675 % a : 1,2-double bond
676 % b : 2,3-double bond
677 % c : 4,3-double bond
678 % d : 4,5-double bond
679 % e : 5,6-double bond
680 % f : 6,1-double bond
681 % \end{verbatim}
682 %
683 % The |SUBSLIST| argument contains one or more substitution descriptors
684 % which are separated from each other by a semicolon. Each substitution
685 % descriptor has a locant number with a bond modifier and a substituent,
686 % where these are separated with a double equality symbol.
687 % \begin{verbatim}
688 %
689 % SUBSLIST: list of substituents (max 12 substitution positions)
690 %
691 % for n = 1 to 6
692 %
693 % nD : exocyclic double bond at n-atom
694 % nSa : axial single bond at n-atom
695 % nSe : equatorial single bond at n-atom
696 %
697 % \end{verbatim}
698 %
699 % Several examples are shown as follows.
700 %
701 % \begin{verbatim}
702 % \chair{1==Cl;2==F}
703 % \chair[a]{1==Cl;4==F;2==CH$_{3}$}
704 % \chair[eb]{1D==O;4Se==MeO;4Sa==OMe;5==Cl;6==Cl}
705 % \end{verbatim}
706 %
707 % The definition of |\@chair| uses a picture environment, in which
708 % bonds are put directly, while subsituents are typset by using
709 % the macros |\@chaira| to |\@chairf| described above.
710 % \changes{v1.02}{1998/10/31}{Adding \cs{ylchairposition}, \cs{if@ylsw},
711 % \cs{yl@shifti}, \cs{@ylii}, \cs{yl@shiftii}, \cs{@ylii},
712 % \cs{yl@xdiff} and \cs{yl@ydiff}}
713 % \changes{v5.00}{2010/10/01}{For bond coloring}
714 %
715 % \begin{macro}{\@chair}
716 % \begin{macro}{\chair}
717 % \begin{macrocode}
718 \def\chair{\@ifnextchar[{\@chair}{\@chair[r]}}
719 \def\@chair[#1]#2{%
720 \@reset@ylsw%
721 \ylchairposition{#2}%
722 \def\@@ylii{0}\def\@@yli{0}%
723 \begin{ShiftPicEnvB}(0,0)(-\yl@shiftii,-\yl@shifti)/%
724 (1600,800)(-400,-500){chair}%
725 (400,500)%2002/4/30 by S. Fujita
726 %skeletal bonds
727 {\thicklines%
728 \molfronttrue%
729 \Put@Line(0,0)(3,-4){170}% % bond 1 to 2
730 \Put@Line(170,-226)(3,1){403}% % 2 to 3
731 \Put@Line(573,-91)(3,-1){270}% % 3 to 4
732 }%
733 \thinlines%
734 \Put@Line(843,-181)(-3,4){170}% % 4 to 5
735 \Put@Line(673,46)(-3,-1){403}% % 5 to 6
736 \Put@Line(0,0)(3,-1){270}% % 1 to 6
737 % inner double bonds
738 \@tfor\member:=#1\do{%
739 \if\member r%no endcyclic bonds
740 \else \if\member a%
741 \Put@Line(76,-42)(3,-4){110}% % double bond 1 to 2
742 \else \if\member b%
743 \Put@Line(200,-186)(3,1){343}% % 2 to 3
744 \else \if\member c%
745 \Put@Line(603,-70)(3,-1){190}% % 3 to 4
746 \else \if\member d%
747 \Put@Line(780,-141)(-3,4){110}% % 4 to 5
748 \else \if\member e%
749 \Put@Line(661,6)(-3,-1){343}% % 5 to 6
750 \else \if\member f%
751 \Put@Line(75,-50)(3,-1){170}% % 1 to 6
752 \fi\fi\fi\fi\fi\fi\fi}%
753 % setting substituents
754 \@forsemicol\member:=#2\do{%
755 \ifx\member\empty\else
756 \expandafter\@m@mb@r\member;\relax%
757 \expandafter\threech@r\@membera{}{}%
758 \ifx\@memberb\@yl\else
759 \ifcase\@tmpa%0 omit
760 \or\setBScolor{\@chaira}% subst. on 1
761 % \@chaira% subst. on 1
762 \or\setBScolor{\@chairb}% subst. on 2
763 % \@chairb% subst. on 2
764 \or\setBScolor{\@chairc}% subst. on 3
765 % \@chairc% subst. on 3
766 \or\setBScolor{\@chaird}% subst. on 4
767 % \@chaird% subst. on 4
768 \or\setBScolor{\@chaire}% subst. on 5
769 % \@chaire% subst. on 5
770 \or\setBScolor{\@chairf}% subst. on 6
771 % \@chairf% subst. on 6
772 \fi%end of ifcase
773 \fi\fi%
774 }%
775 \end{ShiftPicEnvB}%
776 }% %end of \chair macro
777 % \end{macrocode}
778 % \end{macro}
779 % \end{macro}
780 %
781 % The command |\ylchairposition| is to obtain the shift values
782 % |\@ylii| and |\@yli| which are used for shifting the standard
783 % point of a substituent.
784 % \changes{v1.02}{1998/10/23}{New ommands for setting substituents}
785 %
786 % \begin{macro}{\ylchairposition}
787 % \begin{macrocode}
788 \def\ylchairposition#1{%
789 \@@ylswfalse%%%\@reset@ylsw
790 \@forsemicol\member:=#1\do{%
791 \if@@ylsw\else
792 \ifx\member\empty\else
793 \expandafter\@m@mb@r\member;\relax
794 \expandafter\threech@r\@membera{}{}\relax
795 \ifx\@memberb\@yl\relax\@@ylswtrue\else\@@ylswfalse\fi
796 \if@@ylsw
797 \ifcase\@tmpa%0 omit
798 \or\gdef\@ylii{0}\gdef\@yli{0}\global\@ylswtrue% subst. on 1
799 \or\gdef\@ylii{-170}\gdef\@yli{226}\global\@ylswtrue% subst. on 2
800 \or\gdef\@ylii{-573}\gdef\@yli{91}\global\@ylswtrue% subst. on 3
801 \or\gdef\@ylii{-843}\gdef\@yli{181}\global\@ylswtrue% subst. on 4
802 \or\gdef\@ylii{-673}\gdef\@yli{-46}\global\@ylswtrue% subst. on 5
803 \or\gdef\@ylii{-270}\gdef\@yli{90}\global\@ylswtrue% subst. on 6
804 \fi%end of ifcase
805 \fi\fi\fi}}%
806 % \end{macrocode}
807 % \end{macro}
808 %
809 % \section{Inverse chair-form cyclohexanes}
810 % \subsection{Macros for setting substituents}
811 %
812 % Macros |\@chairia| to |\@chairif| are used to set substituents
813 % on each position of cyclohexane. Note that they corresopond to
814 % the counterparts of chair-form cyclohexanes described above.
815 %
816 % \begin{macro}{\@chairia}
817 % \changes{v1.02}{1998/10/31}{Adding \cs{yl@xdiff} and \cs{yl@ydiff}}
818 % \changes{v4.04}{2009/6/15}{Adding wavy bonds}
819 % \begin{macrocode}
820 % ********************************************************
821 % * treatment of the chair form (inverse) of cyclohexane *
822 % * added March 05, 1994 by Shinsaku Fujita *
823 % ********************************************************
824 % %%%%%%%%%%%%%%%
825 % % subst. on 1 %
826 % %%%%%%%%%%%%%%%
827 \def\@chairia{%
828 \if\@tmpb S%single bond
829 \ifx\@tmpc\empty%
830 \yl@xdiff=10
831 \yl@ydiff=90
832 \Put@Line(0,0)(-1,-1){120}% single bond at 1
833 \putlatom{-130}{-210}{\@memberb}% left type
834 \else\if\@tmpc a%(a) axial
835 \yl@xdiff=42
836 \yl@ydiff=92
837 \Put@Line(0,0)(0,-1){168}% single bond at 1 axial
838 \putlratom{-42}{-260}{\@memberb}% left & right type
839 \else\if\@tmpc e%(e) beta
840 \yl@xdiff=16
841 \yl@ydiff=36
842 \Put@Line(0,0)(-5,3){144}% single bond at 1 equatorial
843 \putlatom{-160}{50}{\@memberb}% left type
844 \fi\fi\fi%
845 %2009/06/15
846 \else\if\@tmpb U%(U) alpha undefined
847 \yl@xdiff=10\relax
848 \yl@ydiff=90\relax
849 \putlatom{-130}{-210}{\@memberb}% % left type
850 {%
851 \WaveBonds%
852 \Put@Line(0,0)(-1,-1){120}% % single bond at 1
853 }%
854 %
855 \else \if\@tmpb D%double bond
856 \yl@xdiff=10
857 \yl@ydiff=90
858 \Put@Line(-10,10)(-1,-1){120}% double bond at 1
859 \Put@Line(10,-10)(-1,-1){120}% double bond at 1
860 \putlatom{-130}{-210}{\@memberb}% left type
861 \else%
862 \yl@xdiff=10
863 \yl@ydiff=90
864 \Put@Line(0,0)(-1,-1){120}% single bond at 1
865 \putlatom{-130}{-210}{\@memberb}% left type
866 \fi\fi\fi}%
867 % \end{macrocode}
868 % \end{macro}
869 %
870 % \begin{macro}{\@chairif}
871 % \changes{v1.02}{1998/10/31}{Adding \cs{yl@xdiff} and \cs{yl@ydiff}}
872 % \changes{v4.04}{2009/06/15}{Adding wavy bonds}
873 % \begin{macrocode}
874 % %%%%%%%%%%%%%%%
875 % % subst. on 6 %
876 % %%%%%%%%%%%%%%%
877 \def\@chairif{%
878 \if\@tmpb S%single bond
879 \ifx\@tmpc\empty%
880 \yl@xdiff=10
881 \yl@ydiff=30
882 \Put@Line(170,226)(-1,1){120}% single bond at 6
883 \putratom{40}{316}{\@memberb}% right type
884 \else\if\@tmpc a%(a) axial
885 \yl@xdiff=32
886 \yl@ydiff=-12
887 \Put@Line(170,226)(0,1){168}% single bond at 6 axial
888 \putlratom{138}{406}{\@memberb}% left & right type
889 \else\if\@tmpc e%(e) beta
890 \yl@xdiff=16
891 \yl@ydiff=46
892 \Put@Line(170,226)(-5,-3){144}% single bond at 6 equatorial
893 \putlatom{10}{94}{\@memberb}% left type
894 \fi\fi\fi%
895 %2009/06/15
896 \else\if\@tmpb U%(U) alpha undefined
897 \yl@xdiff=10\relax
898 \yl@ydiff=30\relax
899 \putratom{40}{316}{\@memberb}% right type
900 {%
901 \WaveBonds%
902 \Put@Line(170,226)(-1,1){120}% single bond at 6
903 }%
904 %
905 \else \if\@tmpb D%double bond
906 \yl@xdiff=10
907 \yl@ydiff=30
908 \Put@Line(160,216)(-1,1){120}% double bond at 6
909 \Put@Line(180,236)(-1,1){120}% double bond at 6
910 \putlatom{40}{316}{\@memberb}% left type
911 \else%
912 \yl@xdiff=10
913 \yl@ydiff=30
914 \Put@Line(170,226)(-1,1){120}% single bond at 6
915 \putlatom{40}{316}{\@memberb}% left type
916 \fi\fi\fi}%
917 % \end{macrocode}
918 % \end{macro}
919 %
920 % \begin{macro}{\@chairie}
921 % \changes{v1.02}{1998/10/31}{Adding \cs{yl@xdiff} and \cs{yl@ydiff}}
922 % \changes{v4.04}{2009/06/15}{Adding wavy bonds}
923 % \begin{macrocode}
924 % %%%%%%%%%%%%%%%
925 % % subst. on 5 %
926 % %%%%%%%%%%%%%%%
927 \def\@chairie{%
928 \if\@tmpb S%single bond
929 \ifx\@tmpc\empty%
930 \yl@xdiff=-10
931 \yl@ydiff=76
932 \Put@Line(573,91)(5,-4){170}% single bond at 5
933 \putratom{753}{-101}{\@memberb}% right type
934 \else\if\@tmpc a%(a) axial
935 \yl@xdiff=40
936 \yl@ydiff=104
937 \Put@Line(573,91)(0,-1){168}% single bond at 5 axial
938 \putlratom{533}{-181}{\@memberb}% left type
939 \else\if\@tmpc e%(e) beta
940 \yl@xdiff=-36
941 \yl@ydiff=3
942 \Put@Line(573,91)(5,3){144}% single bond at 5 equatorial
943 \putlatom{753}{180}{\@memberb}% left type
944 \fi\fi\fi%
945 %2009/06/15
946 \else\if\@tmpb U%(U) alpha undefined
947 \yl@xdiff=-10
948 \yl@ydiff=76
949 \putratom{753}{-101}{\@memberb}% right type
950 {%
951 \WaveBonds%
952 \Put@Line(573,91)(5,-4){170}% single bond at 5
953 }%
954 %
955 \else \if\@tmpb D%double bond
956 \yl@xdiff=-10
957 \yl@ydiff=96
958 \Put@Line(563,83)(5,-4){170}% double bond at 5
959 \Put@Line(583,99)(5,-4){170}% double bond at 5
960 \putratom{733}{-141}{\@memberb}% right type
961 \else%
962 \yl@xdiff=-10
963 \yl@ydiff=76
964 \Put@Line(573,91)(5,-4){170}% single bond at 5
965 \putratom{753}{-121}{\@memberb}% right type
966 \fi\fi\fi}%
967 % \end{macrocode}
968 % \end{macro}
969 %
970 % \begin{macro}{\@chairid}
971 % \changes{v1.02}{1998/10/31}{Adding \cs{yl@xdiff} and \cs{yl@ydiff}}
972 % \changes{v4.04}{2009/06/15}{Adding wavy bonds}
973 % \begin{macrocode}
974 % %%%%%%%%%%%%%%%
975 % % subst. on 4 %
976 % %%%%%%%%%%%%%%%
977 \def\@chairid{%
978 \if\@tmpb S%single bond
979 \ifx\@tmpc\empty%
980 \yl@xdiff=10
981 \yl@ydiff=30
982 \Put@Line(843,181)(1,1){120}% single bond at 4
983 \putratom{953}{271}{\@memberb}% right type
984 \else\if\@tmpc a%(a) axial
985 \yl@xdiff=42
986 \yl@ydiff=-11
987 \Put@Line(843,181)(0,1){168}% single bond at 4 axial
988 \putlratom{801}{360}{\@memberb}% left & right type
989 \else\if\@tmpc e%(e) beta
990 \yl@xdiff=-16
991 \yl@ydiff=64
992 \Put@Line(843,181)(5,-3){144}% single bond at 4 equatorial
993 \putratom{1003}{31}{\@memberb}% right type
994 \fi\fi\fi%
995 %2009/06/15
996 \else\if\@tmpb U%(U) alpha undefined
997 \yl@xdiff=10
998 \yl@ydiff=30
999 \putratom{953}{271}{\@memberb}% right type
1000 {%
1001 \WaveBonds%
1002 \Put@Line(843,181)(1,1){120}% single bond at 4
1003 }%
1004 %
1005 \else \if\@tmpb D%double bond
1006 \yl@xdiff=10
1007 \yl@ydiff=30
1008 \Put@Line(833,191)(1,1){120}% double bond at 4
1009 \Put@Line(853,171)(1,1){120}% double bond at 4
1010 \putratom{953}{271}{\@memberb}% right type
1011 \else%
1012 \yl@xdiff=10
1013 \yl@ydiff=30
1014 \Put@Line(843,181)(1,1){120}% single bond at 4
1015 \putratom{953}{271}{\@memberb}% right type
1016 \fi\fi\fi}%
1017 % \end{macrocode}
1018 % \end{macro}
1019 %
1020 % \begin{macro}{\@chairic}
1021 % \changes{v1.02}{1998/10/31}{Adding \cs{yl@xdiff} and \cs{yl@ydiff}}
1022 % \changes{v4.04}{2009/06/15}{Adding wavy bonds}
1023 % \begin{macrocode}
1024 % %%%%%%%%%%%%%%%
1025 % % subst. on 3 %
1026 % %%%%%%%%%%%%%%%
1027 \def\@chairic{%
1028 \if\@tmpb S%single bond
1029 \ifx\@tmpc\empty%
1030 \yl@xdiff=-10
1031 \yl@ydiff=92
1032 \Put@Line(673,-46)(1,-1){120}% single bond at 3
1033 \putratom{803}{-258}{\@memberb}% right type
1034 \else\if\@tmpc a%(a) axial
1035 \yl@xdiff=40
1036 \yl@ydiff=110
1037 \Put@Line(673,-46)(0,-1){168}% single bond at 3 axial
1038 \putlratom{633}{-318}{\@memberb}% left & right type
1039 \else\if\@tmpc e%(e) beta
1040 \yl@xdiff=-6
1041 \yl@ydiff=17
1042 \Put@Line(673,-46)(5,3){144}% single bond at 3 equatorial
1043 \putratom{823}{23}{\@memberb}% right type
1044 \fi\fi\fi%
1045 %2009/06/15
1046 \else\if\@tmpb U%(U) alpha undefined
1047 \yl@xdiff=-10
1048 \yl@ydiff=92
1049 \putratom{803}{-258}{\@memberb}% right type
1050 {%
1051 \WaveBonds%
1052 \Put@Line(673,-46)(1,-1){120}% single bond at 3
1053 }%
1054 %
1055 \else \if\@tmpb D%double bond
1056 \yl@xdiff=-5
1057 \yl@ydiff=96
1058 \Put@Line(663,-53)(1,-1){120}% double bond at 3
1059 \Put@Line(683,-38)(1,-1){120}% double bond at 3
1060 \putratom{803}{-258}{\@memberb}% right type
1061 \else%
1062 \yl@xdiff=-10
1063 \yl@ydiff=76
1064 \Put@Line(673,-46)(5,-4){170}% single bond at 3
1065 \putratom{853}{-258}{\@memberb}% right type
1066 \fi\fi\fi}%
1067 % \end{macrocode}
1068 % \end{macro}
1069 %
1070 % \begin{macro}{\@chairib}
1071 % \changes{v1.02}{1998/10/31}{Adding \cs{yl@xdiff} and \cs{yl@ydiff}}
1072 % \changes{v4.04}{2009/06/15}{Adding wavy bonds}
1073 % \begin{macrocode}
1074 % %%%%%%%%%%%%%%%
1075 % % subst. on 2 %
1076 % %%%%%%%%%%%%%%%
1077 \def\@chairib{%
1078 \if\@tmpb S%single bond
1079 \ifx\@tmpc\empty%
1080 \yl@xdiff=0
1081 \yl@ydiff=46
1082 \Put@Line(270,90)(-5,4){170}% single bond at 2
1083 \putlatom{100}{180}{\@memberb}% left type
1084 \else\if\@tmpc a%(a) axial
1085 \yl@xdiff=32
1086 \yl@ydiff=-12
1087 \Put@Line(270,90)(0,1){168}% single bond at 2 axial
1088 \putlratom{238}{270}{\@memberb}% left type
1089 \else\if\@tmpc e%(e) beta
1090 \yl@xdiff=26
1091 \yl@ydiff=94
1092 \Put@Line(270,90)(-5,-3){144}% single bond at 2 equatorial
1093 \putratom{100}{-98}{\@memberb}% left type
1094 \fi\fi\fi%
1095 %2009/06/15
1096 \else\if\@tmpb U%(U) alpha undefined
1097 \yl@xdiff=0
1098 \yl@ydiff=46
1099 \putlatom{100}{180}{\@memberb}% left type
1100 {%
1101 \WaveBonds%
1102 \Put@Line(270,90)(-5,4){170}% single bond at 2
1103 }%
1104 %
1105 \else \if\@tmpb D%double bond
1106 \yl@xdiff=0
1107 \yl@ydiff=26
1108 \Put@Line(260,80)(-5,4){170}% double bond at 2
1109 \Put@Line(280,100)(-5,4){170}% double bond at 2
1110 \putlatom{100}{200}{\@memberb}% left or right type
1111 \else%
1112 \yl@xdiff=0
1113 \yl@ydiff=26
1114 \Put@Line(270,90)(-5,4){170}% single bond at 2
1115 \putlatom{100}{200}{\@memberb}% left type
1116 \fi\fi\fi}%
1117 % \end{macrocode}
1118 % \end{macro}
1119 %
1120 % \subsection{Drawing of inverse chair-form cyclohexanes}
1121 %
1122 % The standard skeleton of an inverse chair form of cyclohexane is selected
1123 % to have the following locant numbers.
1124 %
1125 % \begin{verbatim}
1126 % ***************************
1127 % * cyclohexane derivatives *
1128 % * (inverse chair type) *
1129 % ***************************
1130 % The following numbering is adopted in this macro.
1131 %
1132 % 6 4
1133 % * ` 5 *
1134 % 1 * 2 *
1135 % ` 3
1136 %
1137 % \end{verbatim}
1138 %
1139 % The macro |\chairi| has an argument |SUBSLIST| as well as an optional
1140 % argument |BONDLIST|.
1141 %
1142 % \begin{verbatim}
1143 % \chairi[BONDLIST]{SUBSLIST}
1144 % \end{verbatim}
1145 %
1146 % The |BONDLIST| argument contains one or more
1147 % characters selected from a to f, each of which indicates the presence of
1148 % an inner (endcyclic) double bond on the corresponding position.
1149 % \begin{verbatim}
1150 % BONDLIST =
1151 %
1152 % none : cyclohexane
1153 % a : 1,2-double bond
1154 % b : 2,3-double bond
1155 % c : 4,3-double bond
1156 % d : 4,5-double bond
1157 % e : 5,6-double bond
1158 % f : 6,1-double bond
1159 % \end{verbatim}
1160 %
1161 % The |SUBSLIST| argument contains one or more substitution descriptors
1162 % which are separated from each other by a semicolon. Each substitution
1163 % descriptor has a locant number with a bond modifier and a substituent,
1164 % where these are separated with a double equality symbol.
1165 % \begin{verbatim}
1166 %
1167 % SUBSLIST: list of substituents (max 8 substitution positions)
1168 %
1169 % for n = 1 to 6
1170 %
1171 % nD : exocyclic double bond at n-atom
1172 % nSa : axial single bond at n-atom
1173 % nSe : equatorial single bond at n-atom
1174 %
1175 % \end{verbatim}
1176 %
1177 % Several examples are shown as follows.
1178 %
1179 % \begin{verbatim}
1180 % e.g.
1181 %
1182 % \chairi[eb]{1D==O;4Se==MeO;4Sa==OMe;5==Cl;6==Cl}
1183 % \end{verbatim}
1184 %
1185 % The definition of |\@chairi| uses a picture environment, in which
1186 % bonds are put directly, while subsituents are typset by using
1187 % the macros |\@chairia| to |\@chairif| described above.
1188 % \changes{v1.02}{1998/10/31}{Adding \cs{ylchairiposition}, \cs{if@ylsw},
1189 % \cs{yl@shifti}, \cs{@ylii}, \cs{yl@shiftii}, \cs{@ylii},
1190 % \cs{yl@xdiff} and \cs{yl@ydiff}}
1191 % \changes{v5.00}{2010/10/01}{For bond coloring}
1192 %
1193 % \begin{macro}{\@chairi}
1194 % \begin{macro}{\chairi}
1195 % \begin{macrocode}
1196 \def\chairi{\@ifnextchar[{\@chairi}{\@chairi[r]}}
1197 \def\@chairi[#1]#2{%
1198 \@reset@ylsw%
1199 \ylchairiposition{#2}%
1200 \def\@@ylii{0}\def\@@yli{0}%
1201 \begin{ShiftPicEnvB}(0,0)(-\yl@shiftii,-\yl@shifti)/%
1202 (1600,800)(-400,-319){chairi}%
1203 (400,319)%2002/4/30 by S. Fujita
1204 % skeletal bonds
1205 \thinlines%
1206 \Put@Line(0,0)(3,4){170}% % bond 1 to 6
1207 \Put@Line(170,226)(3,-1){403}% % 6 to 5
1208 \Put@Line(573,91)(3,1){270}% % 5 to 4
1209 {\thicklines%
1210 \molfronttrue%
1211 \Put@Line(843,181)(-3,-4){170}% % 4 to 3
1212 \Put@Line(673,-46)(-3,1){403}% % 3 to 2
1213 \Put@Line(0,0)(3,1){270}% % 1 to 2
1214 }%
1215 \thinlines%
1216 % inner double bonds
1217 \@tfor\member:=#1\do{%
1218 \if\member r%no endcyclic bonds
1219 \else \if\member c%%%a%
1220 \Put@Line(767,139)(-3,-4){110}% % double bond 3 to 4
1221 \else \if\member b%%%d%%%b%
1222 \Put@Line(640,-5)(-3,1){343}% % 4 to 5
1223 \else \if\member a%%%e%%%%c%
1224 \Put@Line(240,111)(-3,-1){190}% % 5 to 6
1225 \else \if\member f%%%d%
1226 \Put@Line(63,40)(3,4){110}% % 6 to 7
1227 \else \if\member e%%%l%
1228 \Put@Line(182,187)(3,-1){343}% % 7 to 10
1229 \else \if\member d%%%k%%%f%
1230 \Put@Line(768,131)(-3,-1){170}% % 10 to 3
1231 \fi\fi\fi\fi\fi\fi\fi}%
1232 % %
1233 \@forsemicol\member:=#2\do{%
1234 \ifx\member\empty\else
1235 \expandafter\@m@mb@r\member;\relax%
1236 \expandafter\threech@r\@membera{}{}%
1237 \ifx\@memberb\@yl\else
1238 \ifcase\@tmpa%0 omit
1239 \or\setBScolor{\@chairia}% subst. on 1
1240 % \@chairia% subst. on 1
1241 \or\setBScolor{\@chairib}% subst. on 2
1242 % \@chairib% subst. on 2
1243 \or\setBScolor{\@chairic}% subst. on 3
1244 % \@chairic% subst. on 3
1245 \or\setBScolor{\@chairid}% subst. on 4
1246 % \@chairid% subst. on 4
1247 \or\setBScolor{\@chairie}% subst. on 5
1248 % \@chairie% subst. on 5
1249 \or\setBScolor{\@chairif}% subst. on 6
1250 % \@chairif% subst. on 6
1251 \fi %end of ifcase
1252 \fi\fi%
1253 }\end{ShiftPicEnvB}}% %end of \chairi macro
1254 % End of addition 1994/03/05 SF
1255 % \end{macrocode}
1256 % \end{macro}
1257 % \end{macro}
1258 %
1259 % The command |\ylchairiposition| is to obtain the shift values
1260 % |\@ylii| and |\@yli| which are used for shifting the standard
1261 % point of a substituent.
1262 % \changes{v1.02}{1998/10/23}{New ommands for setting substituents}
1263 %
1264 % \begin{macro}{\ylchairiposition}
1265 % \begin{macrocode}
1266 \def\ylchairiposition#1{%
1267 \@@ylswfalse%%%\@reset@ylsw
1268 \@forsemicol\member:=#1\do{%
1269 \if@@ylsw\else
1270 \ifx\member\empty\else
1271 \expandafter\@m@mb@r\member;\relax
1272 \expandafter\threech@r\@membera{}{}\relax
1273 \ifx\@memberb\@yl\relax\@@ylswtrue\else\@@ylswfalse\fi
1274 \if@@ylsw
1275 \ifcase\@tmpa%0 omit
1276 \or\gdef\@ylii{0}\gdef\@yli{0}\global\@ylswtrue% subst. on 1
1277 \or\gdef\@ylii{-270}\gdef\@yli{-90}\global\@ylswtrue% subst. on 2
1278 \or\gdef\@ylii{-673}\gdef\@yli{46}\global\@ylswtrue% subst. on 3
1279 \or\gdef\@ylii{-843}\gdef\@yli{-181}\global\@ylswtrue% subst. on 4
1280 \or\gdef\@ylii{-573}\gdef\@yli{-91}\global\@ylswtrue% subst. on 5
1281 \or\gdef\@ylii{-170}\gdef\@yli{-226}\global\@ylswtrue% subst. on 6
1282 \fi%end of ifcase
1283 \fi\fi\fi}}%
1284 % \end{macrocode}
1285 % \end{macro}
1286 %
1287 % \section{Bicycloheptanes}
1288 % \subsection{Drawing of a flat and vertical type}
1289 %
1290 % The flat-and-vertical-type skeleton of bicycloheptanes is selected
1291 % to have the following locant numbers.
1292 %
1293 % \begin{verbatim}
1294 % *************************************
1295 % * bicyclo[2.2.1]heptane derivatives *
1296 % * (flat, vertical type) *
1297 % *************************************
1298 % The following numbering is adopted in this macro.
1299 %
1300 % 1
1301 % *
1302 % 6 * * 2
1303 % | 7 |
1304 % | |
1305 % 5 * * 3
1306 % *
1307 % 4 <===== the original point
1308 % \end{verbatim}
1309 %
1310 % The macro |\bicyclohepv| has an argument |SUBSLIST| as well as an optional
1311 % argument |BONDLIST|.
1312 %
1313 % \begin{verbatim}
1314 % \bicychepv[BONDLIST]{SUBSLIST}
1315 % \end{verbatim}
1316 %
1317 % The |BONDLIST| argument contains one or more
1318 % characters selected from a to f, each of which indicates the presence of
1319 % an inner (endcyclic) double bond on the corresponding position.
1320 % In order to put dimethyl subsitutents on the top position (7),
1321 % the character `7' is used in the |BONDLIST|. The delocalization
1322 % of $\pi$-electron can be described with the character `A' written in
1323 % the |BONDLIST|.
1324 % \begin{verbatim}
1325 %
1326 % BONDLIST =
1327 %
1328 % none : bicyclo[2.2.1]heptane
1329 % a : 1,2-double bond
1330 % b : 2,3-double bond
1331 % c : 4,3-double bond
1332 % d : 4,5-double bond
1333 % e : 5,6-double bond
1334 % f : 6,1-double bond
1335 % A : aromatic circle
1336 % 7 : 7,7-dimethyl
1337 % \end{verbatim}
1338 %
1339 % The |SUBSLIST| argument takes the standard format of \XyMTeX{}, in which
1340 % more substitution descriptors are separated from each other
1341 % by a semicolon.
1342 % \begin{verbatim}
1343 %
1344 % SUBSLIST: list of substituents (max 12 substitution positions)
1345 %
1346 % for n = 1 to 7
1347 %
1348 % nD : exocyclic double bond at n-atom
1349 % n or nS : exocyclic single bond at n-atom
1350 % nA : alpha single bond at n-atom
1351 % nB : beta single bond at n-atom
1352 % nSA : alpha single bond at n-atom (boldface)
1353 % nSB : beta single bond at n-atom (dotted line)
1354 % nSa : alpha (not specified) single bond at n-atom
1355 % nSb : beta (not specifed) single bond at n-atom
1356 % \end{verbatim}
1357 %
1358 % Several examples are shown as follows.
1359 %
1360 % \begin{verbatim}
1361 % e.g.
1362 %
1363 % \bicychepv{1==Cl;2==F}
1364 % \bicychepv[c]{1==Cl;4==F;2==CH$_{3}$}
1365 % \bicychepv[eb]{1D==O;4==Me;5==Cl;6==Cl}
1366 % \end{verbatim}
1367 %
1368 % The definition of |\@bicyclohepv| uses a picture environment, in which
1369 % bonds are put directly, while subsituents are typset by using
1370 % the macro |\setsixringv| defined in chemstr.sty of \XyMTeX{} system.
1371 % \changes{v1.02}{1998/10/31}{Adding \cs{ylposition}, \cs{if@ylsw},
1372 % \cs{yl@shifti}, \cs{@ylii}, \cs{yl@shiftii}, \cs{@ylii},
1373 % \cs{yl@xdiff} and \cs{yl@ydiff}}
1374 %
1375 % \begin{macro}{\@bicyclohepv}
1376 % \begin{macro}{\bicyclohepv}
1377 % \begin{macrocode}
1378 \def\bicychepv{\@ifnextchar[{\@bicychepv}{\@bicychepv[r]}}
1379 \def\@bicychepv[#1]#2{%
1380 \@reset@ylsw%
1381 \ylposition{#2}{0}{0}{7}{0}%
1382 \begin{ShiftPicEnv}(0,0)(-\yl@shiftii,-\yl@shifti)/%
1383 (800,880)(-400,-240){bicychepv}%
1384 (400,240)%2002/4/30 by S. Fujita
1385 \Put@Line(0,406)(-5,-3){171}% %bond 1-6
1386 \Put@Line(0,406)(5,-3){171}% %bond 1-2
1387 \Put@Line(0,0)(-5,3){171}% %bond 4-5
1388 \Put@Line(0,0)(5,3){171}% %bond 4-3
1389 \Put@Line(171,103)(0,1){200}% %bond 3-2
1390 \Put@Line(-171,103)(0,1){200}% %bond 5-6
1391 {\thicklines%
1392 \molfronttrue%
1393 \Put@Line(0,0)(1,4){51}% %bond 4-7
1394 \Put@Line(0,406)(1,-4){51}}% %bond 1-7
1395 \@tfor\member:=#1\do{%
1396 \if\member r%no endcyclic double bonds
1397 \else \if\member a%
1398 \Put@Line(6,364)(5,-3){126}% %double bond 1-2
1399 \else \if\member b%
1400 \Put@Line(138,129)(0,1){148}% %double bond 3-2
1401 \else \if\member c%
1402 \Put@Line(6,42)(5,3){126}% %double bond 4-3
1403 \else \if\member d%
1404 \Put@Line(-6,42)(-5,3){126}% %double bond 4-5
1405 \else \if\member e%
1406 \Put@Line(-138,129)(0,1){148}% %double bond 5-6
1407 \else \if\member f%
1408 \Put@Line(-6,364)(-5,-3){126}% %double bond 1-6
1409 \else \if\member 7%
1410 {\thicklines%
1411 \Put@Line(51,204)(-1,0){70}% %7,7-dimethyl
1412 \Put@Line(51,204)(1,0){70}}%
1413 \else \if\member A%aromatic circle
1414 \Put@oCircle(0,203){240}% %circle
1415 \fi\fi\fi\fi\fi\fi\fi\fi\fi}%
1416 % %
1417 \setsixringv{#2}{0}{0}{7}{0}%
1418 \end{ShiftPicEnv}%
1419 }% %end of \bicychepv macro
1420 % \end{macrocode}
1421 % \end{macro}
1422 % \end{macro}
1423 %
1424 % \subsection{Drawing of a flat and horizontal type}
1425 %
1426 % The flat-and-horizontal-type skeleton of bicycloheptanes is selected
1427 % to have the following locant numbers.
1428 %
1429 % \begin{verbatim}
1430 % *************************************
1431 % * bicyclo[2.2.1]heptane derivatives *
1432 % * (flat, horizontal type) *
1433 % *************************************
1434 % The following numbering is adopted in this macro.
1435 %
1436 % 2 3
1437 % -----
1438 % * *
1439 % the original point ===> 1 * 7 * 4
1440 % (0,0) * *
1441 % -----
1442 % 6 5
1443 % \end{verbatim}
1444 %
1445 % The macro |\bicycloheph| has an argument |SUBSLIST| as well as an optional
1446 % argument |BONDLIST|.
1447 %
1448 % \begin{verbatim}
1449 % \bicycheph[BONDLIST]{SUBSLIST}
1450 % \end{verbatim}
1451 %
1452 % The |BONDLIST| argument contains one or more
1453 % characters selected from a to f, each of which indicates the presence of
1454 % an inner (endcyclic) double bond on the corresponding position.
1455 % In order to put dimethyl subsitutents on the top position (7),
1456 % the character `7' is used in the |BONDLIST|. The delocalization
1457 % of $\pi$-electron can be described with the character `A' written in
1458 % the |BONDLIST|.
1459 % \begin{verbatim}
1460 % BONDLIST =
1461 %
1462 % none : bicyclo[2.2.1]heptane
1463 % a : 1,2-double bond
1464 % b : 2,3-double bond
1465 % c : 4,3-double bond
1466 % d : 4,5-double bond
1467 % e : 5,6-double bond
1468 % f : 6,1-double bond
1469 % A : aromatic circle
1470 % 7 : 7,7-dimethyl
1471 % \end{verbatim}
1472 %
1473 % The |SUBSLIST| argument takes the standard format of \XyMTeX{}, in which
1474 % more substitution descriptors are separated from each other
1475 % by a semicolon.
1476 % \begin{verbatim}
1477 %
1478 % SUBSLIST: list of substituents (max 8 substitution positions)
1479 %
1480 % for n = 1 to 6
1481 %
1482 % nD : exocyclic double bond at n-atom
1483 % n or nS : exocyclic single bond at n-atom
1484 % nA : alpha single bond at n-atom
1485 % nB : beta single bond at n-atom
1486 % nSA : alpha single bond at n-atom (boldface)
1487 % nSB : beta single bond at n-atom (dotted line)
1488 % nSa : alpha (not specified) single bond at n-atom
1489 % nSb : beta (not specifed) single bond at n-atom
1490 % \end{verbatim}
1491 %
1492 % Several examples are shown as follows.
1493 %
1494 % \begin{verbatim}
1495 % e.g.
1496 %
1497 % \bicycheph{1==Cl;2==F}
1498 % \bicycheph[c]{1==Cl;4==F;2==CH$_{3}$}
1499 % \bicycheph[eb]{1D==O;4==Me;5==Cl;6==Cl}
1500 % \end{verbatim}
1501 %
1502 % The definition of |\@bicycloheph| uses a picture environment, in which
1503 % bonds are put directly, while subsituents are typset by using
1504 % the macro |\setsixringh| defined in chemstr.sty of \XyMTeX{} system.
1505 % \changes{v1.02}{1998/10/31}{Adding \cs{ylpositionh}, \cs{if@ylsw},
1506 % \cs{yl@shifti}, \cs{@ylii}, \cs{yl@shiftii}, \cs{@ylii},
1507 % \cs{yl@xdiff} and \cs{yl@ydiff}}
1508 %
1509 % \begin{macro}{\@bicycloheph}
1510 % \begin{macro}{\bicycloheph}
1511 % \begin{macrocode}
1512 \def\bicycheph{\@ifnextchar[{\@bicycheph}{\@bicycheph[r]}}
1513 \def\@bicycheph[#1]#2{%
1514 \@reset@ylsw%
1515 \ylpositionh{#2}{0}{0}{7}{0}%
1516 \begin{ShiftPicEnv}(0,0)(-\yl@shiftii,-\yl@shifti)/%
1517 (880,800)(-240,-400){bicycheph}%
1518 (240,400)%2002/4/30 by S. Fujita
1519 \Put@Line(0,0)(3,5){103}% %bond 1-2
1520 \Put@Line(0,0)(3,-5){103}% %bond 1-6
1521 \Put@Line(406,0)(-3,5){103}% %bond 4-3
1522 \Put@Line(406,0)(-3,-5){103}% %bond 4-3
1523 \Put@Line(103,171)(1,0){200}% %bond 2-3
1524 \Put@Line(103,-171)(1,0){200}% %bond 6-5
1525 {\thicklines%
1526 \molfronttrue%
1527 \Put@Line(0,0)(4,1){203}% %bond 4-7
1528 \Put@Line(406,0)(-4,1){203}}% %bond 1-7
1529 \@tfor\member:=#1\do{%
1530 \if\member r%no endcyclic double bonds
1531 \else \if\member a%
1532 \Put@Line(42,6)(3,5){78}% %double bond 1-2
1533 \else \if\member b%
1534 \Put@Line(129,138)(1,0){148}% %double bond 2-3
1535 \else \if\member c%
1536 \Put@Line(364,6)(-3,5){78}% %double bond 4-3
1537 \else \if\member d%
1538 \Put@Line(364,-6)(-3,-5){78}% %double bond 4-5
1539 \else \if\member e%
1540 \Put@Line(129,-138)(1,0){148}% %double bond 6-5
1541 \else \if\member f%
1542 \Put@Line(42,-6)(3,-5){78}% %double bond 1-6
1543 \else \if\member 7%
1544 {\thicklines%
1545 \Put@Line(204,51)(0,-1){70}% %7,7-dimethyl
1546 \Put@Line(204,51)(0,1){70}}%
1547 \else \if\member A%aromatic circle
1548 \Put@oCircle(203,0){240}% %circle
1549 \fi\fi\fi\fi\fi\fi\fi\fi\fi}%
1550 % %
1551 \setsixringh{#2}{0}{0}{7}{0}%
1552 \end{ShiftPicEnv}%
1553 }% %end of \bicycheph macro
1554 % \end{macrocode}
1555 % \end{macro}
1556 % \end{macro}
1557 %
1558 % \subsection{Drawing of a stereo type}
1559 %
1560 % \subsubsection{Macros for setting substituents}
1561 %
1562 % Macros |\@borna| to |\@borng| are used to set substituents
1563 % on each position of bornane.
1564 %
1565 % \begin{macro}{\@borna}
1566 % \changes{v1.02}{1998/10/31}{Adding \cs{yl@xdiff} and \cs{yl@ydiff}}
1567 % \changes{v5.01}{2013/06/26}{Adding A, B}
1568 % \begin{macrocode}
1569 % ***********************************************
1570 % * setting bonds and substituents for bornanes *
1571 % * (bicycloe[2.2.1]heptane derivatives) *
1572 % ***********************************************
1573 % %%%%%%%%%%%%%%%
1574 % % subst. on 1 %
1575 % %%%%%%%%%%%%%%%
1576 \def\@borna{%
1577 \if\@tmpb S%single bond
1578 \ifx\@tmpc\empty%
1579 \yl@xdiff=8
1580 \yl@ydiff=3
1581 \Put@Line(318,247)(2,5){40}% % single bond 1
1582 \putratom{350}{360}{\@memberb}% % right type
1583 \else\if\@tmpc a%(a) alpha
1584 \yl@xdiff=8
1585 \yl@ydiff=3
1586 \Put@Line(318,247)(2,5){40}% % single bond 1
1587 \putratom{350}{360}{\@memberb}% % right type
1588 \else\if\@tmpc b%(b) beta
1589 \yl@xdiff=8
1590 \yl@ydiff=3
1591 \Put@Line(318,247)(2,5){40}% % single bond 1
1592 \putratom{350}{360}{\@memberb}% % right type
1593 \fi\fi\fi%
1594 %2013/04/01
1595 \else\if\@tmpb U%(U) alpha undefined
1596 \yl@xdiff=8\relax
1597 \yl@ydiff=3\relax
1598 {%
1599 \WaveBonds%
1600 \Put@Line(318,247)(2,5){40}% % wavy bond at 1
1601 }%
1602 \putratom{350}{360}{\@memberb}% % right type
1603 %2013/06/26
1604 \else\if\@tmpb A%(A) alpha
1605 \yl@xdiff=8\relax
1606 \yl@ydiff=3\relax
1607 \dotorline(318,247)(2,5){40}/(318,247)(358,347)%
1608 \putratom{350}{360}{\@memberb}% % right type
1609 %2013/06/26
1610 \else\if\@tmpb B%(B) beta
1611 \yl@xdiff=8\relax
1612 \yl@ydiff=3\relax
1613 {%
1614 \thicklines%
1615 \Put@Line(318,247)(2,5){40}% % wavy bond at 1
1616 }%
1617 \putratom{350}{360}{\@memberb}% % right type
1618 %
1619 \else%
1620 \yl@xdiff=8
1621 \yl@ydiff=3
1622 \Put@Line(318,247)(2,5){40}% % single bond 1
1623 \putratom{350}{360}{\@memberb}% % right type
1624 \fi\fi\fi\fi
1625 }%
1626 % \end{macrocode}
1627 % \end{macro}
1628 %
1629 % \begin{macro}{\@bornb}
1630 % \changes{v1.02}{1998/10/31}{Adding \cs{yl@xdiff} and \cs{yl@ydiff}}
1631 % \changes{v5.01}{2013/06/26}{Bug fix exchange A and B}
1632 % \begin{macrocode}
1633 % %%%%%%%%%%%%%%%
1634 % % subst. on 2 %
1635 % %%%%%%%%%%%%%%%
1636 \def\@bornb{%
1637 \begin{sfpicture}(200,200)(0,0)
1638 \if\@tmpb S%single bond
1639 \ifx\@tmpc\empty%
1640 \yl@xdiff=-10
1641 \yl@ydiff=20
1642 \Put@Line(0,0)(5,2){160}%
1643 \putratom{170}{44}{\@memberb}% % left type
1644 \else\if\@tmpc B%(B) beta%bug fix 2013/06/26
1645 \yl@xdiff=0
1646 \yl@ydiff=-5
1647 {%
1648 \thicklines%
1649 \Put@Line(0,0)(4,3){140}% % endo (a)
1650 }%
1651 \putratom{140}{115}{\@memberb}% % right type
1652 \else\if\@tmpc A%(A) alpha%bug fix 2013/06/26
1653 \yl@xdiff=10
1654 \yl@ydiff=30
1655 \dotorline(0,0)(5,-2){140}/(0,0)(140,-56)%
1656 \putratom{150}{-86}{\@memberb}% % right type
1657 \else\if\@tmpc a%(a) alpha
1658 \yl@xdiff=10
1659 \yl@ydiff=30
1660 \Put@Line(0,0)(5,-2){140}% % endo (a)
1661 \putratom{150}{-86}{\@memberb}% % right type
1662 \else\if\@tmpc b%(b) beta
1663 \yl@xdiff=0
1664 \yl@ydiff=-10
1665 \Put@Line(0,0)(4,3){140}% % exo (b)
1666 \putratom{140}{115}{\@memberb}% % right type
1667 \fi\fi\fi\fi\fi%
1668 \else \if\@tmpb D%double bond
1669 \yl@xdiff=-10
1670 \yl@ydiff=20
1671 \Put@Line(-10,-15)(5,2){160}%
1672 \Put@Line(-5,15)(5,2){160}%
1673 \putratom{170}{44}{\@memberb}% % right type
1674 \else \if\@tmpb B%beta single bond%bug fix 2013/06/26
1675 \yl@xdiff=-10
1676 \yl@ydiff=20
1677 {%
1678 \thicklines%
1679 \Put@Line(0,0)(5,2){160}%
1680 }%
1681 \putratom{170}{44}{\@memberb}% % right type
1682 \else \if\@tmpb A%alpha single bond%bug fix 2013/06/26
1683 \yl@xdiff=-10
1684 \yl@ydiff=20
1685 \dotorline(0,0)(5,2){160}/(0,0)(160,64)%
1686 \putratom{170}{44}{\@memberb}% % right type
1687 %2013/04/01
1688 \else\if\@tmpb U%(U) alpha undefined
1689 \yl@xdiff=-10\relax
1690 \yl@ydiff=20\relax
1691 {%
1692 \WaveBonds%
1693 \Put@Line(0,0)(5,2){160}% % wavy bond at 2
1694 }%
1695 \putratom{170}{44}{\@memberb}% % left type
1696 %
1697 \else%
1698 \yl@xdiff=-10
1699 \yl@ydiff=20
1700 \Put@Line(0,0)(5,2){160}%
1701 \putratom{170}{44}{\@memberb}% % right type
1702 \fi\fi\fi\fi\fi\end{sfpicture}}%
1703 % \end{macrocode}
1704 % \end{macro}
1705 %
1706 % \begin{macro}{\@bornc}
1707 % \changes{v1.02}{1998/10/31}{Adding \cs{yl@xdiff} and \cs{yl@ydiff}}
1708 % \changes{v5.01}{2013/06/26}{Bug fix exchange A and B}
1709 % \begin{macrocode}
1710 % %%%%%%%%%%%%%%%
1711 % % subst. on 3 %
1712 % %%%%%%%%%%%%%%%
1713 \def\@bornc{%
1714 \begin{sfpicture}(200,200)(0,0)
1715 \if\@tmpb S%single bond
1716 \ifx\@tmpc\empty%
1717 \yl@xdiff=-10
1718 \yl@ydiff=30
1719 \Put@Line(0,0)(5,-2){140}%
1720 \putratom{150}{-86}{\@memberb}% % right type
1721 \else\if\@tmpc B%(B) beta%bug fix 2013/06/26
1722 \yl@xdiff=-10
1723 \yl@ydiff=30
1724 {%
1725 \thicklines%
1726 \Put@Line(0,0)(5,2){140}% % endo (a)
1727 }%
1728 \putratom{150}{26}{\@memberb}% % right type
1729 \else\if\@tmpc A%(A) alpha%bug fix 2013/06/26
1730 \yl@xdiff=0
1731 \yl@ydiff=40
1732 \dotorline(0,0)(4,-3){140}/(0,0)(140,-105)%% exo (b)
1733 \putratom{140}{-145}{\@memberb}% % right type
1734 \else\if\@tmpc a%(a) alpha
1735 \yl@xdiff=0
1736 \yl@ydiff=40
1737 \Put@Line(0,0)(4,-3){140}% % endo (a)
1738 \putratom{140}{-145}{\@memberb}% % right type
1739 \else\if\@tmpc b%(b) beta
1740 \yl@xdiff=-10
1741 \yl@ydiff=30
1742 \Put@Line(0,0)(5,2){140}% % exo (b)
1743 \putratom{150}{26}{\@memberb}% % right type
1744 \fi\fi\fi\fi\fi
1745 \else \if\@tmpb D%double bond
1746 \yl@xdiff=10
1747 \yl@ydiff=50
1748 \Put@Line(10,15)(5,-2){160}%
1749 \Put@Line(5,-15)(5,-2){160}%
1750 \putratom{170}{-124}{\@memberb}% % right type
1751 \else \if\@tmpb B%beta single bond%bug fix 2013/06/26
1752 \yl@xdiff=-10
1753 \yl@ydiff=30
1754 {%
1755 \thicklines%
1756 \Put@Line(0,0)(5,-2){140}% % endo (a)
1757 }%
1758 \putratom{150}{-86}{\@memberb}% % right type
1759 \else \if\@tmpb A%alpha single bond%bug fix 2013/06/26
1760 \yl@xdiff=-10
1761 \yl@ydiff=30
1762 \dotorline(0,0)(5,-2){140}/(0,0)(140,-56)% exo (b)
1763 \putratom{150}{-86}{\@memberb}% % right type
1764 %2013/04/01
1765 \else\if\@tmpb U%(U) alpha undefined
1766 \yl@xdiff=-10\relax
1767 \yl@ydiff=20\relax
1768 {%
1769 \WaveBonds%
1770 \Put@Line(0,0)(5,2){160}% % wavy bond at 3
1771 }%
1772 \putratom{170}{44}{\@memberb}% % left type
1773 %
1774 \else%
1775 \yl@xdiff=-10
1776 \yl@ydiff=20
1777 \Put@Line(0,0)(5,2){160}%
1778 \putratom{170}{44}{\@memberb}% % right type
1779 \fi\fi\fi\fi\fi%
1780 \end{sfpicture}}%
1781 % \end{macrocode}
1782 % \end{macro}
1783 %
1784 % \begin{macro}{\@bornd}
1785 % \changes{v1.02}{1998/10/31}{Adding \cs{yl@xdiff} and \cs{yl@ydiff}}
1786 % \changes{v5.01}{2013/06/26}{Adding A, B}
1787 % \begin{macrocode}
1788 % %%%%%%%%%%%%%%%
1789 % % subst. on 4 %
1790 % %%%%%%%%%%%%%%%
1791 \def\@bornd{%
1792 \if\@tmpb S%single bond
1793 \ifx\@tmpc\empty%
1794 \yl@xdiff=30
1795 \yl@ydiff=87
1796 \Put@Line(237,47)(-2,-5){40}% % single bond 4
1797 \putlratom{167}{-150}{\@memberb}% % left & right type
1798 \else\if\@tmpc a%(a) alpha
1799 \yl@xdiff=30
1800 \yl@ydiff=87
1801 \Put@Line(237,47)(-2,-5){40}% % single bond 4
1802 \putlratom{167}{-150}{\@memberb}% % left & right type
1803 \else\if\@tmpc b%(b) beta
1804 \yl@xdiff=30
1805 \yl@ydiff=87
1806 \Put@Line(237,47)(-2,-5){40}% % single bond 4
1807 \putlratom{167}{-150}{\@memberb}% % left & right type
1808 \fi\fi\fi%
1809 %2013/04/01
1810 \else\if\@tmpb U%(U) alpha, beta undefined
1811 \yl@xdiff=30\relax
1812 \yl@ydiff=87\relax
1813 {%
1814 \WaveBonds%
1815 \Put@Line(237,47)(-2,-5){40}% % single bond 4
1816 }%
1817 \putlratom{167}{-150}{\@memberb}% % left & right type
1818 %2013/06/26
1819 \else\if\@tmpb A%(A) alpha
1820 \yl@xdiff=30\relax
1821 \yl@ydiff=87\relax
1822 \dotorline(237,47)(-2,-5){40}/(237,47)(197,-53)%
1823 \putlratom{167}{-150}{\@memberb}% % left & right type
1824 %2013/06/26
1825 \else\if\@tmpb B%(B) beta
1826 \yl@xdiff=30\relax
1827 \yl@ydiff=87\relax
1828 {%
1829 \thicklines%
1830 \Put@Line(237,47)(-2,-5){40}% % single bond 4
1831 }%
1832 \putlratom{167}{-150}{\@memberb}% % left & right type
1833 %
1834 \else%
1835 \yl@xdiff=30
1836 \yl@ydiff=87
1837 \Put@Line(237,47)(-2,-5){40}% % single bond 4
1838 \putlratom{167}{-150}{\@memberb}% % left & right type
1839 \fi\fi\fi\fi%
1840 }%
1841 % \end{macrocode}
1842 % \end{macro}
1843 %
1844 % \begin{macro}{\@borne}
1845 % \changes{v1.02}{1998/10/31}{Adding \cs{yl@xdiff} and \cs{yl@ydiff}}
1846 % \changes{v5.01}{2013/06/26}{Bug fix exchange A and B}
1847 % \begin{macrocode}
1848 % %%%%%%%%%%%%%%%
1849 % % subst. on 5 %
1850 % %%%%%%%%%%%%%%%
1851 \def\@borne{%
1852 \begin{sfpicture}(200,200)(0,0)
1853 \if\@tmpb S%single bond
1854 \ifx\@tmpc\empty%
1855 \yl@xdiff=10
1856 \yl@ydiff=30
1857 \Put@Line(0,0)(-5,-2){140}%
1858 \putlatom{-150}{-86}{\@memberb}% % left type
1859 \else\if\@tmpc B%(B) beta%bug fix 2013/06/26
1860 \yl@xdiff=10
1861 \yl@ydiff=30
1862 {%
1863 \thicklines%
1864 \Put@Line(0,0)(-5,2){140}% % endo (a)
1865 }%
1866 \putlatom{-150}{26}{\@memberb}% % left type
1867 \else\if\@tmpc A%(A) alpha%bug fix 2013/06/26
1868 \yl@xdiff=0
1869 \yl@ydiff=40
1870 \dotorline(0,0)(-4,-3){140}/(0,0)(-140,-105)%% exo (b)
1871 \putlatom{-140}{-145}{\@memberb}% % left type
1872 \else\if\@tmpc a%(a) alpha
1873 \yl@xdiff=0
1874 \yl@ydiff=30
1875 \Put@Line(0,0)(-4,-3){140}% % endo (a)
1876 \putlatom{-140}{-145}{\@memberb}% % left type
1877 \else\if\@tmpc b%(b) beta
1878 \yl@xdiff=10
1879 \yl@ydiff=30
1880 \Put@Line(0,0)(-5,2){140}% % exo (b)
1881 \putlatom{-150}{26}{\@memberb}% % left type
1882 \fi\fi\fi\fi\fi
1883 \else \if\@tmpb D%double bond
1884 \yl@xdiff=0
1885 \yl@ydiff=64
1886 \Put@Line(-10,15)(-5,-2){160}%
1887 \Put@Line(-5,-15)(-5,-2){160}%
1888 \putlatom{-170}{-124}{\@memberb}% % left type
1889 \else \if\@tmpb B%beta single bond%bug fix 2013/06/26
1890 \yl@xdiff=10
1891 \yl@ydiff=30
1892 {%
1893 \thicklines%
1894 \Put@Line(0,0)(-5,-2){140}% % endo (a)
1895 }%
1896 \putlatom{-150}{-86}{\@memberb}% % left type
1897 \else \if\@tmpb A%alpha single bond%bug fix 2013/06/26
1898 \yl@xdiff=10
1899 \yl@ydiff=30
1900 \dotorline(0,0)(-5,-2){140}/(0,0)(-140,-56)%% exo (b)
1901 \putlatom{-150}{-86}{\@memberb}% % left type
1902 %2013/04/01
1903 \else\if\@tmpb U%(U) alpha undefined
1904 \yl@xdiff=10\relax
1905 \yl@ydiff=20\relax
1906 {%
1907 \WaveBonds%
1908 \Put@Line(0,0)(-5,2){160}% wavy bond at 5
1909 }%
1910 \putlatom{-170}{44}{\@memberb}% % left type
1911 %
1912 \else%
1913 \yl@xdiff=10
1914 \yl@ydiff=20
1915 \Put@Line(0,0)(-5,2){160}%
1916 \putlatom{-170}{44}{\@memberb}% % left type
1917 \fi\fi\fi\fi\fi%
1918 \end{sfpicture}}%
1919 % \end{macrocode}
1920 % \end{macro}
1921 %
1922 % \begin{macro}{\@bornf}
1923 % \changes{v1.02}{1998/10/31}{Adding \cs{yl@xdiff} and \cs{yl@ydiff}}
1924 % \changes{v5.01}{2013/06/26}{Bug fix exchange A and B}
1925 % \begin{macrocode}
1926 % %%%%%%%%%%%%%%%
1927 % % subst. on 6 %
1928 % %%%%%%%%%%%%%%%
1929 \def\@bornf{%
1930 \begin{sfpicture}(200,200)(0,0)
1931 \if\@tmpb S%single bond
1932 \ifx\@tmpc\empty%
1933 \yl@xdiff=10
1934 \yl@ydiff=30
1935 \Put@Line(0,0)(-5,2){160}%
1936 \putlatom{-170}{44}{\@memberb}% % left type
1937 \else\if\@tmpc B%(B) beta%bug fix 2013/06/26
1938 \yl@xdiff=10
1939 \yl@ydiff=-10
1940 {%
1941 \thicklines%
1942 \Put@Line(0,0)(-4,3){140}% % endo (a)
1943 }%
1944 \putlatom{-140}{115}{\@memberb}% % left type
1945 \else\if\@tmpc A%(A) alpha%bug fix 2013/06/26
1946 \yl@xdiff=0
1947 \yl@ydiff=30
1948 \dotorline(0,0)(-5,-2){140}/(0,0)(-140,-56)%% exo (b)
1949 \putlatom{-150}{-86}{\@memberb}% % left type
1950 \else\if\@tmpc a%(a) alpha
1951 \yl@xdiff=10
1952 \yl@ydiff=30
1953 \Put@Line(0,0)(-5,-2){140}% % endo (a)
1954 \putlatom{-150}{-86}{\@memberb}% % left type
1955 \else\if\@tmpc b%(b) beta
1956 \yl@xdiff=0
1957 \yl@ydiff=-10
1958 \Put@Line(0,0)(-4,3){140}% % exo (b)
1959 \putlatom{-140}{115}{\@memberb}% % left type
1960 \fi\fi\fi\fi\fi%
1961 \else \if\@tmpb D%double bond
1962 \yl@xdiff=0
1963 \yl@ydiff=20
1964 \Put@Line(10,-15)(-5,2){160}%
1965 \Put@Line(5,15)(-5,2){160}%
1966 \putlatom{-170}{44}{\@memberb}% % left type
1967 \else \if\@tmpb B%beta single bond%bug fix 2013/06/26
1968 \yl@xdiff=10
1969 \yl@ydiff=30
1970 {%
1971 \thicklines%
1972 \Put@Line(0,0)(-5,2){160}%
1973 }%
1974 \putlatom{-170}{44}{\@memberb}% % left type
1975 \else \if\@tmpb A%alpha single bond%bug fix 2013/06/26
1976 \yl@xdiff=10
1977 \yl@ydiff=30
1978 \dotorline(0,0)(-5,2){160}/(0,0)(-160,64)%
1979 \putlatom{-170}{44}{\@memberb}% % left type
1980 %2013/04/01
1981 \else\if\@tmpb U%(U) alpha undefined
1982 \yl@xdiff=10\relax
1983 \yl@ydiff=20\relax
1984 {%
1985 \WaveBonds%
1986 \Put@Line(0,0)(-5,2){160}% wavy bond at 6
1987 }%
1988 \putlatom{-170}{44}{\@memberb}% % left type
1989 %
1990 \else%
1991 \yl@xdiff=10
1992 \yl@ydiff=20
1993 \Put@Line(0,0)(-5,2){160}%
1994 \putlatom{-170}{44}{\@memberb}% % left type
1995 \fi\fi\fi\fi\fi\end{sfpicture}}%
1996 % \end{macrocode}
1997 % \end{macro}
1998 %
1999 % \begin{macro}{\@borng}
2000 % \changes{v1.02}{1998/10/31}{Adding \cs{yl@xdiff} and \cs{yl@ydiff}}
2001 % \changes{v5.01}{2013/06/26}{Adding SU, SV, SA, SB, Su, Sd}
2002 % \begin{macrocode}
2003 % %%%%%%%%%%%%%%%
2004 % % subst. on 7 %
2005 % %%%%%%%%%%%%%%%
2006 \def\@borng{%
2007 \begin{sfpicture}(200,200)(0,0)
2008 \if\@tmpb S%single bond
2009 \ifx\@tmpc\empty%
2010 \yl@xdiff=40
2011 \yl@ydiff=-20
2012 \Put@Line(0,0)(0,1){160}%
2013 \putlratom{-40}{180}{\@memberb}% % left & right type
2014 \else\if\@tmpc a%(a) left
2015 \yl@xdiff=0
2016 \yl@ydiff=-10
2017 \Put@Line(0,0)(-4,3){140}% % left (a)
2018 \putlatom{-140}{115}{\@memberb}% % left type
2019 \else\if\@tmpc b%(b) right
2020 \yl@xdiff=0
2021 \yl@ydiff=-10
2022 \Put@Line(0,0)(4,3){140}% % right (b)
2023 \putratom{140}{115}{\@memberb}% % right type
2024 %2013/06/25
2025 \else\if\@tmpc U%(U) alpha undefined
2026 \yl@xdiff=0\relax
2027 \yl@ydiff=-10\relax
2028 {%
2029 \WaveBonds%
2030 \Put@Line(0,0)(-4,3){140}% % left (U)
2031 }%
2032 \putlatom{-140}{115}{\@memberb}% % left type
2033 %2013/06/25
2034 \else\if\@tmpc V%(V) beta undefined
2035 \yl@xdiff=0\relax
2036 \yl@ydiff=-10\relax
2037 {%
2038 \WaveBonds%
2039 \Put@Line(0,0)(4,3){140}% % right (V)
2040 }%
2041 \putratom{140}{115}{\@memberb}% % right type
2042 %2013/06/26
2043 \else\if\@tmpc A%(A) alpha
2044 \yl@xdiff=0\relax
2045 \yl@ydiff=-10\relax
2046 \dotorline(0,0)(-4,3){140}/(0,0)(-140,105)%
2047 \putlatom{-140}{115}{\@memberb}% % left type
2048 %2013/06/26
2049 \else\if\@tmpc B%(B) beta
2050 \yl@xdiff=0\relax
2051 \yl@ydiff=-10\relax
2052 {%
2053 \thicklines%
2054 \Put@Line(0,0)(4,3){140}% %
2055 }%
2056 \putratom{140}{115}{\@memberb}% % right type
2057 %2013/06/26
2058 \else\if\@tmpc u%(u) beta alternative
2059 \yl@xdiff=0\relax
2060 \yl@ydiff=-10\relax
2061 {%
2062 \thicklines%
2063 \Put@Line(0,0)(-4,3){140}% %
2064 }%
2065 \putlatom{-140}{115}{\@memberb}% % left type
2066 %2013/06/26
2067 \else\if\@tmpc d%(d) alpha alternative
2068 \yl@xdiff=0\relax
2069 \yl@ydiff=-10\relax
2070 \dotorline(0,0)(4,3){140}/(0,0)(140,105)%
2071 \putratom{140}{115}{\@memberb}% % right type
2072 %
2073 \fi\fi\fi\fi\fi\fi\fi\fi\fi
2074 %\fi\fi%
2075 \else \if\@tmpb D%double bond
2076 \yl@xdiff=40
2077 \yl@ydiff=-20
2078 \Put@Line(-10,0)(0,1){160}%
2079 \Put@Line(10,0)(0,1){160}%
2080 \putlratom{-40}{180}{\@memberb}% % left & right type
2081 \else%
2082 \yl@xdiff=40
2083 \yl@ydiff=-20
2084 \Put@Line(0,0)(0,1){160}%
2085 \putlratom{-40}{180}{\@memberb}% % left & right type
2086 \fi\fi\end{sfpicture}}%
2087 % \end{macrocode}
2088 % \end{macro}
2089 %
2090 % \subsubsection{Drawing of borane derivatives}
2091 %
2092 % The stereo-type skeleton of bicycloheptanes is selected
2093 % to have the following locant numbers.
2094 %
2095 % \begin{verbatim}
2096 % ***********************************************
2097 % * bornane derivatives *
2098 % * (bicycloe[2.2.1]heptane derivatives) *
2099 % ***********************************************
2100 % The following numbering is adopted in this macro.
2101 %
2102 % 7 g
2103 % f / `
2104 % _ / - 1_ a
2105 % e 6 / h - 2
2106 % * / *
2107 % 5 - 4 * b
2108 % d c` 3
2109 %
2110 % \end{verbatim}
2111 %
2112 % The macro |\bornane| has an argument |SUBSLIST| as well as an optional
2113 % argument |BONDLIST|.
2114 %
2115 % \begin{verbatim}
2116 % \bornane[BONDLIST]{SUBSLIST}
2117 % \end{verbatim}
2118 %
2119 % The |BONDLIST| argument contains one or more
2120 % characters selected from a to h, each of which indicates the presence of
2121 % an inner (endcyclic) double bond on the corresponding position.
2122 % \begin{verbatim}
2123 %
2124 % BONDLIST =
2125 %
2126 % none : bicyclo[2.2.1]heptane
2127 % a : 1,2-double bond
2128 % b : 2,3-double bond
2129 % c : 4,3-double bond
2130 % d : 4,5-double bond
2131 % e : 5,6-double bond
2132 % f : 6,1-double bond
2133 % g : 1,7-double bond
2134 % h : 4,7-double bond
2135 % \end{verbatim}
2136 %
2137 % The |SUBSLIST| argument takes the standard format of \XyMTeX{}, in which
2138 % more substitution descriptors are separated from each other
2139 % by a semicolon.
2140 % \begin{verbatim}
2141 %
2142 % SUBSLIST: list of substituents (max 7 substitution positions)
2143 %
2144 % for n = 1 to 6
2145 %
2146 % nD : exocyclic double bond at n-atom
2147 % n or nS : exocyclic single bond at n-atom
2148 % nA : alpha single bond at n-atom
2149 % nB : beta single bond at n-atom
2150 % nSA : alpha single bond at n-atom (boldface)
2151 % nSB : beta single bond at n-atom (dotted line)
2152 % nSa : alpha single bond at n-atom
2153 % nSb : beta single bond at n-atom
2154 % \end{verbatim}
2155 %
2156 % The 7-position of a bornane skeleton cannot be specified by
2157 % capital characters `A' and `B'.
2158 % \begin{verbatim}
2159 % for n = 7 (bridge position)
2160 %
2161 % nD : exocyclic double bond at 7-atom
2162 % n or nS : exocyclic single bond at 7-atom
2163 % nSa : left single bond at 7-atom
2164 % nSb : right single bond at 7-atom
2165 %
2166 % \end{verbatim}
2167 %
2168 % Several examples are shown as follows.
2169 %
2170 % \begin{verbatim}
2171 % e.g.
2172 %
2173 % \bornane{1==N}{1==Cl;2==F}
2174 % \bornane[c]{1==N}{1==Cl;4==F;2==CH$_{3}$}
2175 % \bornane[eb]{1==N}{1D==O;4==MeO;5==Cl;6==Cl}
2176 % \end{verbatim}
2177 %
2178 % The definition of |\@bicycloheph| uses a picture environment, in which
2179 % bonds are put directly, while subsituents are typset by using
2180 % the macro |\@borna| to |\@borng| defined in chemstr.sty of \XyMTeX{}
2181 % system.
2182 %
2183 % \changes{v1.01b}{1998/10/08}{The drawing are of \cs{bornane}
2184 % has been changed by SF.}
2185 % \changes{v1.02}{1998/10/31}{Adding \cs{ylbornaneposition}, \cs{if@ylsw},
2186 % \cs{yl@shifti}, \cs{@ylii}, \cs{yl@shiftii}, \cs{@ylii},
2187 % \cs{yl@xdiff} and \cs{yl@ydiff}}
2188 % \changes{v5.00}{2010/10/01}{For bond coloring}
2189 % \changes{v5.01}{2013/06/24}{bornane front-to-back crossing}
2190 %
2191 % \begin{macro}{\@bornane}
2192 % \begin{macro}{\iffrontthicktothin}
2193 % \begin{macro}{\bornane}
2194 % \begin{macrocode}
2195 \def\BackGroundColor{\color{white}}%default color for background 2013/07/23
2196 \newif\iffrontthicktothin \frontthicktothinfalse%default front thickline2013/06/24
2197 \def\bornane{\@ifnextchar[{\@bornane}{\@bornane[r]}}
2198 \def\@bornane[#1]#2{%
2199 \@reset@ylsw%
2200 \ylbornaneposition{#2}%
2201 \def\@@ylii{0}\def\@@yli{0}%
2202 \begin{ShiftPicEnvB}(0,0)(-\yl@shiftii,-\yl@shifti)/%
2203 (1000,1000)(-200,-240){bornane}%
2204 (200,240)%2002/4/30 by S. Fujita
2205 % skeletal bonds
2206 \thinlines%
2207 \Put@Line(462,-43)(2,5){80}% % bond 3 to 2 (b)
2208 \Put@Line(543,157)(-5,2){225}% % bond 2 to 1 (a)
2209 \Put@Line(318,247)(-5,-1){237}% % bond 1 to 6 (f)
2210 \Put@Line(80,200)(-2,-5){80}% % bond 6 to 5 (e)
2211 \Put@Line(318,247)(-2,5){80}% % back part of bridge (g)
2212 {\iffrontthicktothin\thinlines\else\thicklines\fi%2013/06/24
2213 \molfronttrue
2214 \Put@Line(0,0)(5,1){237}% % bond 5 to 4 (d)
2215 \Put@Line(237,47)(5,-2){225}% % bond 4 to 3 (c)
2216 {\def\thinLineWidth{5pt}\BackGroundColor% front-to-back crossing2013/06/24-07/23
2217 \thinlines% %
2218 \Put@Line(237,200)(0,1){80}}% % front-to-back crossing2013/06/24-07/23
2219 \Put@Line(237,47)(0,1){400}% % front part of bridge (h)
2220 }%
2221 % inner double bond
2222 \@tfor\member:=#1\do{%
2223 \if\member r%no endcyclic bonds
2224 \else \if\member a%%%%
2225 \Put@Line(513,127)(-5,2){180}% % bond 2 to 1
2226 \else \if\member b%%%%
2227 \Put@Line(446,-3)(2,5){60}% % bond 3 to 2
2228 \else \if\member c%%%%
2229 \Put@Line(267,77)(5,-2){180}% % bond 4 to 3
2230 \else \if\member d%%%%
2231 \Put@Line(40,42)(5,1){180}% % double bond 5 to 4
2232 \else \if\member e%%%
2233 \Put@Line(100,180)(-2,-5){60}% % bond 6 to 5
2234 \else \if\member f%
2235 \Put@Line(288,207)(-5,-1){180}% % bond 1 to 6
2236 \else \if\member g%
2237 \Put@Line(288,260)(-2,5){40}% % back part of bridge (g)
2238 \else \if\member h%
2239 \Put@Line(257,77)(0,1){290}% % front part of bridge (h)
2240 \fi\fi\fi\fi\fi\fi\fi\fi\fi}%
2241 %
2242 \@forsemicol\member:=#2\do{%
2243 \ifx\member\empty\else
2244 \expandafter\@m@mb@r\member;\relax%
2245 \expandafter\threech@r\@membera{}{}%
2246 \ifx\@memberb\@yl\else
2247 \ifcase\@tmpa%0 omit
2248 \or\setBScolor{\@borna}% subst. on 1
2249 % \@borna% subst. on 1
2250 \or\setBScolor{\Put@Direct(543,157){\@bornb}}% subst. on 2
2251 % \Put@Direct(543,157){\@bornb}% subst. on 2
2252 \or\setBScolor{\Put@Direct(462,-43){\@bornc}}% subst. on 3
2253 % \Put@Direct(462,-43){\@bornc}% subst. on 3
2254 \or\setBScolor{\@bornd}% subst. on 4
2255 % \@bornd% subst. on 4
2256 \or\setBScolor{\Put@Direct(0,0){\@borne}}% subst. on 5
2257 % \Put@Direct(0,0){\@borne}% subst. on 5
2258 \or\setBScolor{\Put@Direct(80,200){\@bornf}}% subst. on 6
2259 % \Put@Direct(80,200){\@bornf}% subst. on 6
2260 \or\setBScolor{\Put@Direct(237,440){\@borng}}% subst. on 7
2261 % \Put@Direct(237,440){\@borng}% subst. on 7
2262 \fi%end of ifcase
2263 \fi\fi%
2264 }%
2265 \end{ShiftPicEnvB}%
2266 \iniatom\iniflag}% %end of \bornane macro
2267 % \end{macrocode}
2268 % \end{macro}
2269 % \end{macro}
2270 % \end{macro}
2271 %
2272 % The command |\ylbornaneposition| is to obtain the shift values
2273 % |\@ylii| and |\@yli| which are used for shifting the standard
2274 % point of a substituent.
2275 % \changes{v1.02}{1998/10/23}{New ommands for setting substituents}
2276 %
2277 % \begin{macro}{\ylbornaneposition}
2278 % \begin{macrocode}
2279 \def\ylbornaneposition#1{%
2280 \@@ylswfalse%%%\@reset@ylsw
2281 \@forsemicol\member:=#1\do{%
2282 \if@@ylsw\else
2283 \ifx\member\empty\else
2284 \expandafter\@m@mb@r\member;\relax
2285 \expandafter\threech@r\@membera{}{}\relax
2286 \ifx\@memberb\@yl\relax\@@ylswtrue\else\@@ylswfalse\fi
2287 \if@@ylsw
2288 \ifcase\@tmpa%0 omit
2289 \or\gdef\@ylii{-318}\gdef\@yli{-247}\global\@ylswtrue% subst. on 1
2290 \or\gdef\@ylii{-543}\gdef\@yli{-157}\global\@ylswtrue% subst. on 2
2291 \or\gdef\@ylii{-462}\gdef\@yli{43}\global\@ylswtrue% subst. on 3
2292 \or\gdef\@ylii{-237}\gdef\@yli{-47}\global\@ylswtrue% subst. on 4
2293 \or\gdef\@ylii{0}\gdef\@yli{0}\global\@ylswtrue% subst. on 5
2294 \or\gdef\@ylii{-80}\gdef\@yli{-200}\global\@ylswtrue% subst. on 6
2295 \or\gdef\@ylii{-237}\gdef\@yli{-440}\global\@ylswtrue% subst. on 7
2296 \fi%end of ifcase
2297 \fi\fi\fi}}%
2298 % \end{macrocode}
2299 % \end{macro}
2300 %
2301 % \section{Adamantanes}
2302 %
2303 % \subsection{Vertical drawing}
2304 %
2305 % The macros |\@adamanea| to |\@adamanej| are used to
2306 % set substituents on each edge of an adamantane skeleton
2307 % drawn by the |\adamantane| commands.
2308 % \changes{v1.02}{1998/10/24}{The macros \cs{@adamanea} to \cs{@adamanej}
2309 % are separated from the original definition of \cs{adamantane}.}
2310 %
2311 % \begin{macro}{\@adamanea}
2312 % \begin{macro}{\@adamaneb}
2313 % \begin{macro}{\@adamanec}
2314 % \begin{macro}{\@adamaned}
2315 % \begin{macro}{\@adamanee}
2316 % \begin{macro}{\@adamanef}
2317 % \begin{macro}{\@adamaneg}
2318 % \begin{macro}{\@adamaneh}
2319 % \begin{macro}{\@adamanei}
2320 % \begin{macro}{\@adamanej}
2321 % \changes{v1.02}{1998/10/24}{A new command for setting substituents}
2322 % \begin{macrocode}
2323 % %%%%%%%%%%%%%%%
2324 % % subst. on 1 %
2325 % %%%%%%%%%%%%%%%
2326 \def\@adamanea{%
2327 \yl@xdiff=12
2328 \yl@ydiff=21
2329 \Put@Direct(-360,720){\hbox to0pt{\hss \@memberb}}% %atom 1
2330 \if\@tmpb a%
2331 \Put@Line(-240,660)(-4,3){108}% %bond 1
2332 \else \ifx\@tmpb\empty%
2333 \Put@Line(-240,660)(-4,3){108}% %bond 1
2334 \fi\fi}%
2335 % \end{macrocode}
2336 %
2337 % \changes{v1.02}{1998/10/24}{A new command for setting substituents}
2338 % \begin{macrocode}
2339 % %%%%%%%%%%%%%%%
2340 % % subst. on 2 %
2341 % %%%%%%%%%%%%%%%
2342 \def\@adamaneb{%
2343 \if\@tmpb a%
2344 \yl@xdiff=6
2345 \yl@ydiff=-16
2346 \Put@Line(0,780)(1,4){26}% %bond 2-ax
2347 \Put@Direct(20,900){\hbox to0pt{\@memberb \hss}}% %atom 2-ax
2348 \else \if\@tmpb b%
2349 \yl@xdiff=-6
2350 \yl@ydiff=-16
2351 \Put@Line(0,780)(-1,4){26}% %bond 2-eq
2352 \Put@Direct(-20,900){\hbox to0pt{\hss \@memberb}}% %atom 2-eq
2353 \else \ifx\@tmpb\empty%
2354 \yl@xdiff=42
2355 \yl@ydiff=-22
2356 \Put@Direct(-42,910){\hbox to0pt{\hss \@memberb}}% %atom 2
2357 \Put@Line(0,780)(0,1){108}% %bond 2
2358 \else \if\@tmpb D%
2359 \yl@xdiff=42
2360 \yl@ydiff=-22
2361 \putlratom{-42}{910}{\@memberb}% %atom 2
2362 \Put@Line(-12,780)(0,1){108}% %double bond 2
2363 \Put@Line(12,780)(0,1){108}% %double bond 2
2364 \fi\fi\fi\fi}
2365 % \end{macrocode}
2366 %
2367 % \changes{v1.02}{1998/10/24}{A new command for setting substituents}
2368 % \begin{macrocode}
2369 % %%%%%%%%%%%%%%%
2370 % % subst. on 3 %
2371 % %%%%%%%%%%%%%%%
2372 \def\@adamanec{%
2373 \yl@xdiff=-12
2374 \yl@ydiff=21
2375 \Put@Direct(360,720){\hbox to0pt{\@memberb \hss}}% %atom 3
2376 % \if\@tmpb S%
2377 \if\@tmpb a%1998/10/24 by SF
2378 \Put@Line(240,660)(4,3){108}% %bond 3
2379 \else \ifx\@tmpb\empty%
2380 \Put@Line(240,660)(4,3){108}% %bond 3
2381 \fi\fi}
2382 % \end{macrocode}
2383 %
2384 % \changes{v1.02}{1998/10/24}{A new command for setting substituents}
2385 % \begin{macrocode}
2386 % %%%%%%%%%%%%%%%
2387 % % subst. on 4 %
2388 % %%%%%%%%%%%%%%%
2389 \def\@adamaned{%
2390 \if\@tmpb a%
2391 \yl@xdiff=-17
2392 \yl@ydiff=33
2393 \Put@Line(300,420)(4,-3){103}% %bond 4-ax
2394 \Put@Direct(420,310){\hbox to0pt{\@memberb \hss}}% %atom 4-ax
2395 \else \if\@tmpb b%
2396 \yl@xdiff=26
2397 \yl@ydiff=-26
2398 \Put@Line(300,420)(1,4){26}% %bond 4-eq
2399 \Put@Direct(300,540){\hbox to0pt{\@memberb \hss}}% %atom 4-eq
2400 \else \ifx\@tmpb\empty%
2401 \yl@xdiff=-17
2402 \yl@ydiff=33
2403 \Put@Line(300,420)(4,-3){103}% %bond 4
2404 \Put@Direct(420,310){\hbox to0pt{\@memberb \hss}}% %atom 4
2405 \else \if\@tmpb D%
2406 \yl@xdiff=-17
2407 \yl@ydiff=33
2408 \Put@Line(296,432)(5,-3){103}% %double bond 4
2409 \Put@Line(292,408)(5,-3){103}% %double bond 4
2410 \Put@Direct(420,310){\hbox to0pt{\@memberb \hss}}% %atom 4
2411 \fi\fi\fi\fi}
2412 % \end{macrocode}
2413 %
2414 % \changes{v1.02}{1998/10/24}{A new command for setting substituents}
2415 % \begin{macrocode}
2416 % %%%%%%%%%%%%%%%
2417 % % subst. on 5 %
2418 % %%%%%%%%%%%%%%%
2419 \def\@adamanee{%
2420 \yl@xdiff=20
2421 \yl@ydiff=110
2422 % \if\@tmpb S%
2423 \if\@tmpb a%1998/10/24 by SF
2424 \Put@Line(60,240)(1,-5){30}% %bond 5
2425 \Put@Direct(70,-20){\hbox to0pt{\@memberb \hss}}% %atom 5
2426 \else \ifx\@tmpb\empty%
2427 \Put@Line(60,240)(1,-5){30}% %bond 5
2428 \Put@Direct(70,-20){\hbox to0pt{\@memberb \hss}}% %atom 5
2429 \fi\fi}
2430 % \end{macrocode}
2431 %
2432 % \changes{v1.02}{1998/10/24}{A new command for setting substituents}
2433 % \begin{macrocode}
2434 % %%%%%%%%%%%%%%%
2435 % % subst. on 6 %
2436 % %%%%%%%%%%%%%%%
2437 \def\@adamanef{%
2438 \if\@tmpb a%
2439 \yl@xdiff=33
2440 \yl@ydiff=103
2441 \Put@Line(0,0)(4,-3){103}% %bond 6-ax
2442 \Put@Direct(70,-180){\hbox to0pt{\@memberb \hss}}% %atom 6-ax
2443 \else \if\@tmpb b%
2444 \yl@xdiff=-33
2445 \yl@ydiff=103
2446 \Put@Line(0,0)(-4,-3){103}% %bond 6-eq
2447 \Put@Direct(-70,-180){\hbox to0pt{\hss \@memberb}}% %atom 6-eq
2448 \else \ifx\@tmpb\empty%
2449 \yl@xdiff=22
2450 \yl@ydiff=94
2451 \Put@Line(0,0)(0,-1){108}% %bond 6
2452 \Put@Direct(-22,-202){\hbox to0pt{\hss \@memberb}}% %atom 6
2453 \else \if\@tmpb D%
2454 \yl@xdiff=42
2455 \yl@ydiff=94
2456 \Put@Line(-12,0)(0,-1){108}% %double bond 6
2457 \Put@Line(12,0)(0,-1){108}% %double bond 6
2458 \putlratom{-42}{-202}{\@memberb}% %atom 6
2459 \fi\fi\fi\fi}
2460 % \end{macrocode}
2461 %
2462 % \changes{v1.02}{1998/10/24}{A new command for setting substituents}
2463 % \begin{macrocode}
2464 % %%%%%%%%%%%%%%%
2465 % % subst. on 7 %
2466 % %%%%%%%%%%%%%%%
2467 \def\@adamaneg{%
2468 \yl@xdiff=-20
2469 \yl@ydiff=110
2470 % \if\@tmpb S%
2471 \if\@tmpb a%1998/10/24 by SF
2472 \Put@Line(-60,240)(-1,-5){30}% %bond 7
2473 \Put@Direct(-70,-20){\hbox to0pt{\hss \@memberb}}% %atom 7
2474 \else \ifx\@tmpb\empty%
2475 \Put@Line(-60,240)(-1,-5){30}% %bond 7
2476 \Put@Direct(-70,-20){\hbox to0pt{\hss \@memberb}}% %atom 7-eq
2477 \fi\fi}
2478 % \end{macrocode}
2479 %
2480 % \changes{v1.02}{1998/10/24}{A new command for setting substituents}
2481 % \begin{macrocode}
2482 % %%%%%%%%%%%%%%%
2483 % % subst. on 8 %
2484 % %%%%%%%%%%%%%%%
2485 \def\@adamaneh{%
2486 \if\@tmpb a%
2487 \yl@xdiff=17
2488 \yl@ydiff=33
2489 \Put@Line(-300,420)(-4,-3){103}% %bond 8-ax
2490 \Put@Direct(-420,310){\hbox to0pt{\hss \@memberb}}% %atom 8-ax
2491 \else \if\@tmpb b%
2492 \yl@xdiff=-26
2493 \yl@ydiff=-16
2494 \Put@Line(-300,420)(-1,4){26}% %bond 8-eq
2495 \Put@Direct(-300,540){\hbox to0pt{\hss \@memberb}}% %atom 8-eq
2496 \else \ifx\@tmpb\empty%
2497 \yl@xdiff=17
2498 \yl@ydiff=33
2499 \Put@Line(-300,420)(-4,-3){103}% %bond 8
2500 \Put@Direct(-420,310){\hbox to0pt{\hss \@memberb}}% %atom 8
2501 \else \if\@tmpb D%
2502 \yl@xdiff=17
2503 \yl@ydiff=50
2504 \Put@Line(-300,432)(-5,-3){103}% %double bond 8
2505 \Put@Line(-303,408)(-5,-3){103}% %double bond 8
2506 \Put@Direct(-420,310){\hbox to0pt{\hss \@memberb}}% %atom 8
2507 \fi\fi\fi\fi}
2508 % \end{macrocode}
2509 %
2510 % \changes{v1.02}{1998/10/24}{A new command for setting substituents}
2511 % \begin{macrocode}
2512 % %%%%%%%%%%%%%%%
2513 % % subst. on 9 %
2514 % %%%%%%%%%%%%%%%
2515 \def\@adamanei{%
2516 \if\@tmpb a%
2517 \yl@xdiff=-43
2518 \yl@ydiff=93
2519 \Put@Line(-180,420)(-4,-3){103}% %bond 9-ax
2520 \Put@Direct(-240,250){\hbox to0pt{\hss \@memberb}}% %atom 9-ax
2521 \else \if\@tmpb b%
2522 \yl@xdiff=26
2523 \yl@ydiff=-16
2524 \Put@Line(-180,420)(1,4){26}% %bond 9-eq
2525 \Put@Direct(-180,540){\hbox to0pt{\@memberb \hss}}% %atom 9-eq
2526 \else \ifx\@tmpb\empty%
2527 \yl@xdiff=17
2528 \yl@ydiff=93
2529 \Put@Line(-180,420)(-4,-3){103}% %bond 9
2530 \Put@Direct(-300,250){\hbox to0pt{\hss \@memberb}}% %atom 9
2531 \else \if\@tmpb D%
2532 \yl@xdiff=17
2533 \yl@ydiff=113
2534 \Put@Line(-183,432)(-5,-3){103}% %double bond 9
2535 \Put@Line(-180,408)(-5,-3){103}% %double bond 9
2536 \Put@Direct(-300,250){\hbox to0pt{\hss \@memberb}}% %atom 9
2537 \fi\fi\fi\fi}
2538 % \end{macrocode}
2539 %
2540 % \changes{v1.02}{1998/10/24}{A new command for setting substituents}
2541 % \begin{macrocode}
2542 % %%%%%%%%%%%%%%%%
2543 % % subst. on 10 %
2544 % %%%%%%%%%%%%%%%%
2545 \def\@adamanej{%
2546 \if\@tmpb a%
2547 \yl@xdiff=43
2548 \yl@ydiff=92
2549 \Put@Line(180,420)(4,-3){103}% %bond 10-ax
2550 \Put@Direct(240,250){\hbox to0pt{\@memberb \hss}}% %atom 10-ax
2551 \else \if\@tmpb b%
2552 \yl@xdiff=-26
2553 \yl@ydiff=-16
2554 \Put@Line(180,420)(-1,4){26}% %bond 10-eq
2555 \Put@Direct(180,540){\hbox to0pt{\hss \@memberb}}% %atom 10-eq
2556 \else \ifx\@tmpb\empty%
2557 \yl@xdiff=43
2558 \yl@ydiff=92
2559 \Put@Line(180,420)(4,-3){103}% %bond 10
2560 \Put@Direct(240,250){\hbox to0pt{\@memberb \hss}}% %atom 10
2561 \else \if\@tmpb D%
2562 \yl@xdiff=3
2563 \yl@ydiff=112
2564 \Put@Line(176,432)(5,-3){103}% %double bond 10
2565 \Put@Line(172,408)(5,-3){103}% %double bond 10
2566 \Put@Direct(280,250){\hbox to0pt{\@memberb \hss}}% %atom 10
2567 \fi\fi\fi\fi}
2568 % \end{macrocode}
2569 % \end{macro}
2570 % \end{macro}
2571 % \end{macro}
2572 % \end{macro}
2573 % \end{macro}
2574 % \end{macro}
2575 % \end{macro}
2576 % \end{macro}
2577 % \end{macro}
2578 % \end{macro}
2579 %
2580 % The stereo-type skeleton of adamantane is selected
2581 % to have the following specification. The |\adamantane|
2582 % command prints a vertical-type formula in which two bridge carbons
2583 % are placed at the top and the bottom.
2584 %
2585 % \begin{verbatim}
2586 % *************************************************
2587 % * For preparing adamantane derivatives *
2588 % * with 4 substituents on bridgehead positions *
2589 % * (1, 3, 5 and 7) *
2590 % * with 12 substituents on bridge positions *
2591 % * (2, 4, 6, 8, 9, 10) *
2592 % *************************************************
2593 % \end{verbatim}
2594 %
2595 % The macro |\adamantane| has an argument |SUBSLIST| as well as an optional
2596 % argument |BONDLIST|.
2597 %
2598 % \begin{verbatim}
2599 % \adamantane[BONDLIST]{SUBSLIST}
2600 % \end{verbatim}
2601 %
2602 % The adamantane skeleton scarcely takes an inner (endcyclic) double bond.
2603 % Hence we have
2604 % \begin{verbatim}
2605 % BONDLIST: not effective
2606 % \end{verbatim}
2607 %
2608 % The |SUBSLIST| argument takes the standard format of \XyMTeX{}, in which
2609 % more substitution descriptors are separated from each other
2610 % by a semicolon.
2611 % \begin{verbatim}
2612 %
2613 % SUBSLIST: list of substituents (max 10 substitution positions)
2614 %
2615 % for n = 1, 3, 5, and 7 (bridgeheads)
2616 %
2617 % n or na : exocyclic single bond at n-atom
2618 %
2619 % for n = 2, 4, 6, 8, 9, and 10 (bridges)
2620 %
2621 % na : exocyclic single bond at n-atom (axial)
2622 % nb : exocyclic single bond at n-atom (equatorial)
2623 % nD : exocyclic double bond at n-atom (2 and 6)
2624 %
2625 % \end{verbatim}
2626 %
2627 % For numbers larger than 9 (two digits), you should designate
2628 % the |SUBSLIST| as, e.g.,
2629 % \begin{verbatim}
2630 % {{10}a}==Cl; ...
2631 % \end{verbatim}
2632 %
2633 % The definition of |\@adamantane| uses a picture environment, in which
2634 % both bonds are substituents are put directly.
2635 % \changes{v1.02}{1998/10/31}{Adding \cs{yladamanposition}, \cs{if@ylsw},
2636 % \cs{yl@shifti}, \cs{@ylii}, \cs{yl@shiftii}, \cs{@ylii},
2637 % \cs{yl@xdiff} and \cs{yl@ydiff}}
2638 % \changes{v5.00}{2010/10/01}{For bond coloring}
2639 % \changes{v5.01}{2013/06/24}{adamantane front-to-back crossing}
2640 %
2641 % \begin{macro}{\@adamantane}
2642 % \begin{macro}{\adamantane}
2643 % \begin{macrocode}
2644 % \changes{v1.02}{1998/10/24}{The macros \cs{@adamanea} to \cs{@adamanej}
2645 % are separated from the original definition of \cs{adamantane}.}
2646 \def\adamantane{\@ifnextchar[{\@mantane}{\@damantane[Z]}}
2647 \def\@damantane[#1]#2{%
2648 \@reset@ylsw%
2649 \yladamanposition{#2}%
2650 \def\@@ylii{0}\def\@@yli{0}%
2651 \begin{ShiftPicEnvB}(0,0)(-\yl@shiftii,-\yl@shifti)/%
2652 (1100,1300)(-550,-300){adamantane}%
2653 (550,300)%2002/4/30 by S. Fujita
2654 %bonds for an adamantane skeleton
2655 \Put@Line(0,0)(-1,4){60}% %bond 6-7
2656 \Put@Line(0,780)(2,-1){240}% %bond 2-3
2657 \Put@Line(0,780)(-2,-1){240}% %bond 2-1
2658 \Put@Line(-60,240)(-4,3){240}% %bond 7-8
2659 \Put@Line(-300,420)(1,4){60}% %bond 8-1
2660 \Put@Line(240,660)(-1,-4){60}% %bond 3-10
2661 \Put@Line(-60,240)(4,3){240}% %bond 10-7
2662 {\iffrontthicktothin\thinlines\else\thicklines\fi%2013/06/24
2663 \molfronttrue%added for v4.02 (2004/12/20)
2664 \Put@Line(300,420)(-1,4){60}% %bond 4-3
2665 \Put@Line(-240,660)(1,-4){60}% %bond 1-9
2666 \Put@Line(0,0)(1,4){60}% %bond 6-5
2667 \Put@Line(60,240)(4,3){240}% %bond 5-4
2668 {\def\thinLineWidth{5pt}\BackGroundColor% % front-to-back crossing2013/06/24-07/23
2669 \thinlines% %
2670 \Put@Line(40,255)(-4,3){80}}% % front-to-back crossing2013/06/24-07/23
2671 \Put@Line(60,240)(-4,3){240}% %bond 5-9
2672 }%
2673 %substituents
2674 \@forsemicol\member:=#2\do{%
2675 \ifx\member\empty\else
2676 \expandafter\@m@mb@r\member;\relax%
2677 \expandafter\threech@r\@membera{}{}\relax%
2678 \ifx\@memberb\@yl\else
2679 \ifcase\@tmpa%0 omit
2680 \or\setBScolor{\@adamanea}% subst. on 1
2681 %\@adamanea% subst. on 1
2682 \or\setBScolor{\@adamaneb}% subst. on 2
2683 %\@adamaneb% subst. on 2
2684 \or\setBScolor{\@adamanec}% subst. on 3
2685 %\@adamanec% subst. on 3
2686 \or\setBScolor{\@adamaned}% subst. on 4
2687 %\@adamaned% subst. on 4
2688 \or\setBScolor{\@adamanee}% subst. on 5
2689 %\@adamanee% subst. on 5
2690 \or\setBScolor{\@adamanef}% subst. on 6
2691 %\@adamanef% subst. on 6
2692 \or\setBScolor{\@adamaneg}% subst. on 7
2693 %\@adamaneg% subst. on 7
2694 \or\setBScolor{\@adamaneh}% subst. on 8
2695 %\@adamaneh% subst. on 8
2696 \or\setBScolor{\@adamanei}% subst. on 9
2697 %\@adamanei% subst. on 9
2698 \or\setBScolor{\@adamanej}% subst. on 10
2699 %\@adamanej% subst. on 10
2700 \fi%the end of ifcase
2701 \fi\fi}%
2702 \end{ShiftPicEnvB}%
2703 }% %end of \adamantane macro%
2704 % \end{macrocode}
2705 % \end{macro}
2706 % \end{macro}
2707 %
2708 % The command |\yladamanposition| is to obtain the shift values
2709 % |\@ylii| and |\@yli| which are used for shifting the standard
2710 % point of a substituent.
2711 % \changes{v1.02}{1998/10/23}{New commands for setting substituents}
2712 %
2713 % \begin{macro}{\yladamanposition}
2714 % \begin{macrocode}
2715 \def\yladamanposition#1{%
2716 \@@ylswfalse%%%\@reset@ylsw
2717 \@forsemicol\member:=#1\do{%
2718 \if@@ylsw\else
2719 \ifx\member\empty\else
2720 \expandafter\@m@mb@r\member;\relax
2721 \expandafter\threech@r\@membera{}{}\relax
2722 \ifx\@memberb\@yl\relax\@@ylswtrue\else\@@ylswfalse\fi
2723 \if@@ylsw
2724 \ifcase\@tmpa%0 omit
2725 \or\gdef\@ylii{240}\gdef\@yli{-660}\global\@ylswtrue% subst. on 1
2726 \or\gdef\@ylii{0}\gdef\@yli{-780}\global\@ylswtrue% subst. on 2
2727 \or\gdef\@ylii{-240}\gdef\@yli{-660}\global\@ylswtrue% subst. on 3
2728 \or\gdef\@ylii{-300}\gdef\@yli{-420}\global\@ylswtrue% subst. on 4
2729 \or\gdef\@ylii{-60}\gdef\@yli{-240}\global\@ylswtrue% subst. on 5
2730 \or\gdef\@ylii{0}\gdef\@yli{0}\global\@ylswtrue% subst. on 6
2731 \or\gdef\@ylii{60}\gdef\@yli{-240}\global\@ylswtrue% subst. on 7
2732 \or\gdef\@ylii{300}\gdef\@yli{-420}\global\@ylswtrue% subst. on 8
2733 \or\gdef\@ylii{180}\gdef\@yli{-420}\global\@ylswtrue% subst. on 9
2734 \or\gdef\@ylii{-180}\gdef\@yli{-420}\global\@ylswtrue% subst. on 10
2735 \fi%end of ifcase
2736 \fi\fi\fi}}%
2737 % \end{macrocode}
2738 % \end{macro}
2739 %
2740 % \subsection{Horizontal drawing}
2741 %
2742 % The stereo-type skeleton of adamantane is selected
2743 % to have the following specification. The |\hadamantane|
2744 % command prints a horizontal-type formula in which one bridge-head carbon
2745 % is put at the top position and a chair-form cyclohexane moiety is
2746 % placed at the bottom position.
2747 %
2748 % \begin{verbatim}
2749 % ********************************************
2750 % * adamantane derivatives (horizontal type) *
2751 % ********************************************
2752 % The following numbering is adopted in this macro.
2753 %
2754 % 1
2755 % h // `
2756 % //i ` a
2757 % 89 `
2758 % g|| 2
2759 % ||j | b
2760 % f 7| l k 3
2761 % * | ` 10 *
2762 % 6 * 5 * c
2763 % e d` 4
2764 % \end{verbatim}
2765 %
2766 % \begin{verbatim}
2767 % *************************************************
2768 % * For preparing adamantane derivatives *
2769 % * with 4 substituents on bridgehead positions *
2770 % * (1, 3, 5 and 7) *
2771 % * with 12 substituents on bridge positions *
2772 % * (2, 4, 6, 8, 9, 10) *
2773 % *************************************************
2774 % \end{verbatim}
2775 %
2776 % The macro |\hadamantane| has an argument |SUBSLIST| as well as an optional
2777 % argument |BONDLIST|.
2778 %
2779 % \begin{verbatim}
2780 % \hadamantane[BONDLIST]{SUBSLIST}
2781 % \end{verbatim}
2782 %
2783 % The adamantane skeleton scarcely takes an inner (endcyclic) double bond.
2784 % However, we can designate |BONDLIST|. (This point is different from the
2785 % specification of the |\adamantane| command.
2786 %
2787 % \begin{verbatim}
2788 %
2789 % BONDLIST =
2790 %
2791 % none : adamantane skeleton
2792 % a : 1,2-double bond
2793 % b : 2,3-double bond
2794 % c : 3,4-double bond
2795 % d : 4,5-double bond
2796 % e : 5,6-double bond
2797 % f : 6,7-double bond
2798 % g : 7,8-double bond
2799 % h : 8,1-double bond
2800 % i : 9,1-double bond
2801 % j : 5,9-double bond
2802 % k : 3,10-double bond
2803 % l : 7,10-double bond
2804 %
2805 % \end{verbatim}
2806 %
2807 % The |SUBSLIST| argument takes the standard format of \XyMTeX{}, in which
2808 % more substitution descriptors are separated from each other
2809 % by a semicolon.
2810 % \begin{verbatim}
2811 %
2812 % SUBSLIST: list of substituents (max 10 substitution positions)
2813 %
2814 % for n = 1, 3, 5, and 7 (bridgeheads)
2815 %
2816 % n or na : exocyclic single bond at n-atom
2817 %
2818 % for n = 2, 4, 6, 8, 9, and 10 (bridges)
2819 %
2820 % na : exocyclic single bond at n-atom (axial)
2821 % nb : exocyclic single bond at n-atom (equatorial)
2822 % nD : exocyclic double bond at n-atom (2 and 6)
2823 %
2824 % \end{verbatim}
2825 %
2826 % Moreover, bond modifieer used for chair-form cyclohexanes
2827 % such as $n$Sa and $n$Se (see above) can be also used in the |SUBSLIST|
2828 % of the |\hdadamantane| command.
2829 %
2830 % For numbers larger than 9 (two digits), you should designate
2831 % the |SUBSLIST| as, e.g.,
2832 % \begin{verbatim}
2833 % {{10}a}==Cl; ...
2834 % \end{verbatim}
2835 %
2836 % The definition of |\@hadamantane| uses a picture environment, in which
2837 % bonds are put directly, while subsituents are typset by using
2838 % the macro |\@chairiI| to |\@chairX| defined below.
2839 % \changes{v1.02}{1998/10/31}{Adding \cs{ylhadamanposition}, \cs{if@ylsw},
2840 % \cs{yl@shifti}, \cs{@ylii}, \cs{yl@shiftii}, \cs{@ylii},
2841 % \cs{yl@xdiff} and \cs{yl@ydiff}}
2842 % \changes{v5.00}{2010/10/01}{For bond coloring}
2843 % \changes{v5.01}{2013/06/24}{hadamantane front-to-back crossing}
2844 %
2845 % \begin{macro}{\@hadamantane}
2846 % \begin{macro}{\hadamantane}
2847 % \begin{macrocode}
2848 % *************************
2849 % * input of basic macros *
2850 % *************************
2851 \def\hadamantane{\@ifnextchar[{\@hadamantane}{\@hadamantane[H]}}
2852 \def\@hadamantane[#1]#2{%
2853 \@reset@ylsw%
2854 \ylhadamanposition{#2}%
2855 \def\@@ylii{0}\def\@@yli{0}%
2856 \begin{ShiftPicEnvB}(0,0)(-\yl@shiftii,-\yl@shifti)/%
2857 (1600,1400)(-400,-319){hadamantane}%
2858 (400,319)%2002/4/30 by S. Fujita
2859 \thinlines%
2860 \Put@Line(0,0)(3,4){170}% % bond 6 to 7
2861 \Put@Line(170,226)(3,-1){403}% % 7 to 10
2862 \Put@Line(573,91)(3,1){270}% % 10 to 3
2863 % %%%
2864 \Put@Line(170,226)(0,1){360}% % 7 to 8
2865 \Put@Line(170,586)(3,1){270}% % 8 to 1
2866 \Put@Line(843,181)(0,1){360}% % 3 to 2
2867 \Put@Line(843,541)(-3,1){403}% % 2 to 1
2868 {\iffrontthicktothin\thinlines\else\thicklines\fi%2013/06/24
2869 \molfronttrue
2870 \Put@Line(843,181)(-3,-4){170}% % 3 to 4
2871 \Put@Line(673,-46)(-3,1){403}% % 4 to 5
2872 \Put@Line(0,0)(3,1){270}% % 6 to 5
2873 % %%%
2874 {\def\thinLineWidth{5pt}\BackGroundColor% front-to-back crossing2013/06/24-07/23
2875 \thinlines% %
2876 \Put@Line(270,150)(0,1){80}}% % front-to-back crossing2013/06/24-07/23
2877 \Put@Line(270,90)(0,1){360}% % 5 to 9
2878 \Put@Line(270,450)(3,4){170}% % 9 to 1
2879 }%
2880 \thinlines%
2881 % inner double bonds
2882 \@tfor\member:=#1\do{%
2883 \if\member r%no endocyclic bonds
2884 \else \if\member a%
2885 \Put@Line(450,636)(3,-1){373}% % double bond 1 to 2
2886 \else \if\member b%
2887 \Put@Line(803,206)(0,1){320}% % 3 to 2
2888 \else \if\member c%%%a%
2889 \Put@Line(767,139)(-3,-4){110}% % 3 to 4
2890 \else \if\member d%%%b%
2891 \Put@Line(640,-5)(-3,1){343}% % 4 to 5
2892 \else \if\member e%%%%c%
2893 \Put@Line(240,111)(-3,-1){190}% % 5 to 6
2894 \else \if\member f%%%d%
2895 \Put@Line(63,40)(3,4){110}% % 6 to 7
2896 \else \if\member g%
2897 \Put@Line(200,246)(0,1){320}% % 7 to 8
2898 \else \if\member h%
2899 \Put@Line(400,626)(-3,-1){190}% % 8 to 1
2900 \else \if\member i%
2901 \Put@Line(450,636)(-3,-4){150}% % 9 to 1
2902 \else \if\member j%
2903 \Put@Line(300,110)(0,1){320}% % 5 to 9
2904 \else \if\member k%%%f%
2905 \Put@Line(768,131)(-3,-1){170}% % 3 to 10
2906 \else \if\member l%
2907 \Put@Line(182,187)(3,-1){343}% % 7 to 10
2908 \fi\fi\fi\fi\fi\fi%
2909 \fi\fi\fi\fi\fi\fi\fi}%
2910 % %
2911 \@forsemicol\member:=#2\do{%
2912 \ifx\member\empty\else
2913 \expandafter\@m@mb@r\member;\relax%
2914 \expandafter\threech@r\@membera{}{}%
2915 \ifx\@memberb\@yl\else
2916 \ifcase\@tmpa% %0 omit
2917 \or\setBScolor{\Put@Direct(440,676){\@chairiI}}% %subst. on 1%%%9
2918 % \Put@Direct(440,676){\@chairiI}% %subst. on 1%%%9
2919 \or\setBScolor{\Put@Direct(843,541){\@chairiII}}% %subst. on 2%%10
2920 % \Put@Direct(843,541){\@chairiII}% %subst. on 2%%10
2921 \or\setBScolor{\@chairiIII}% %subst. on 3%%%4
2922 % \@chairiIII% %subst. on 3%%%4
2923 \or\setBScolor{\@chairiIV}% %subst. on 4%%%3
2924 % \@chairiIV% %subst. on 4%%%3
2925 \or\setBScolor{\@chairiV}% %subst. on 5%%%2
2926 % \@chairiV% %subst. on 5%%%2
2927 \or
2928 \setBScolor{\@chairiVI}% %subst. on 6%%%1
2929 % \@chairiVI% %subst. on 6%%%1
2930 \or\setBScolor{\@chairiVII}% %subst. on 7%%%6
2931 % \@chairiVII% %subst. on 7%%%6
2932 \or\setBScolor{\Put@Direct(170,586){\@chairiVIII}}%subst. on 8%%%8
2933 % \Put@Direct(170,586){\@chairiVIII}%subst. on 8%%%8
2934 \or\setBScolor{\Put@Direct(270,450){\@chairiIX}}% %subst. on 9%%%7
2935 % \Put@Direct(270,450){\@chairiIX}% %subst. on 9%%%7
2936 \or\setBScolor{\@chairiX}% %subst. on 10%%5
2937 % \@chairiX% %subst. on 10%%5
2938 \fi %end of ifcase
2939 \fi\fi%
2940 }%
2941 \end{ShiftPicEnvB}%
2942 }% %end of \hadamantane macro
2943 % End of addition 1994/03/05 SF
2944 % \end{macrocode}
2945 % \end{macro}
2946 % \end{macro}
2947 %
2948 % The command |\ylhadamanposition| is to obtain the shift values
2949 % |\@ylii| and |\@yli| which are used for shifting the standard
2950 % point of a substituent.
2951 % \changes{v1.02}{1998/10/23}{New commands for setting substituents}
2952 %
2953 % \begin{macro}{\ylhadamanposition}
2954 % \begin{macrocode}
2955 \def\ylhadamanposition#1{%
2956 \@@ylswfalse%%%\@reset@ylsw
2957 \@forsemicol\member:=#1\do{%
2958 \if@@ylsw\else
2959 \ifx\member\empty\else
2960 \expandafter\@m@mb@r\member;\relax
2961 \expandafter\threech@r\@membera{}{}\relax
2962 \ifx\@memberb\@yl\relax\@@ylswtrue\else\@@ylswfalse\fi
2963 \if@@ylsw
2964 \ifcase\@tmpa%0 omit
2965 \or\gdef\@ylii{-440}\gdef\@yli{-676}\global\@ylswtrue% subst. on 1
2966 \or\gdef\@ylii{-843}\gdef\@yli{-541}\global\@ylswtrue% subst. on 2
2967 \or\gdef\@ylii{-843}\gdef\@yli{-181}\global\@ylswtrue% subst. on 3
2968 \or\gdef\@ylii{-673}\gdef\@yli{46}\global\@ylswtrue% subst. on 4
2969 \or\gdef\@ylii{-270}\gdef\@yli{-90}\global\@ylswtrue% subst. on 5
2970 \or\gdef\@ylii{0}\gdef\@yli{0}\global\@ylswtrue% subst. on 6
2971 \or\gdef\@ylii{-170}\gdef\@yli{-226}\global\@ylswtrue% subst. on 7
2972 \or\gdef\@ylii{-170}\gdef\@yli{-586}\global\@ylswtrue% subst. on 8
2973 \or\gdef\@ylii{-270}\gdef\@yli{-450}\global\@ylswtrue% subst. on 9
2974 \or\gdef\@ylii{-573}\gdef\@yli{-91}\global\@ylswtrue% subst. on 10
2975 \fi%end of ifcase
2976 \fi\fi\fi}}%
2977 % \end{macrocode}
2978 % \end{macro}
2979 %
2980 % Hereafter, the definitions of the commands |\@chairiI| to |\@chairiX|
2981 % are described. Each of the commands can treat $n$a-type bond modifiers
2982 % as well as $n$Sa-type bond modifiers.
2983 %
2984 % \begin{macro}{\@chairiVI}
2985 % \changes{v1.02}{1998/10/31}{Adding \cs{yl@xdiff} and \cs{yl@ydiff}}
2986 % \begin{macrocode}
2987 % ********************************************************
2988 % * treatment of the chair form (inverse) of cyclohexane *
2989 % * added March 05, 1994 by Shinsaku Fujita *
2990 % ********************************************************
2991 % %%%%%%%%%%%%%%%
2992 % % subst. on 6 %
2993 % %%%%%%%%%%%%%%%
2994 \def\@chairiVI{%
2995 \if\@tmpb a%single bond
2996 \yl@xdiff=42
2997 \yl@ydiff=92
2998 \Put@Line(0,0)(0,-1){168}% single bond at 6 axial
2999 \putlratom{-42}{-260}{\@memberb}% left & right type
3000 \else\if\@tmpb b%single bond
3001 \yl@xdiff=16
3002 \yl@ydiff=36
3003 \Put@Line(0,0)(-5,3){144}% single bond at 6 equatorial
3004 \putlatom{-160}{50}{\@memberb}% left type
3005 \else\if\@tmpb S%single bond
3006 \ifx\@tmpc\empty%
3007 \yl@xdiff=10
3008 \yl@ydiff=90
3009 \Put@Line(0,0)(-1,-1){120}% single bond at 6
3010 \putlatom{-130}{-210}{\@memberb}% left type
3011 \else\if\@tmpc a%(a) axial
3012 \yl@xdiff=42
3013 \yl@ydiff=92
3014 \Put@Line(0,0)(0,-1){168}% single bond at 6 axial
3015 \putlratom{-42}{-260}{\@memberb}% left & right type
3016 \else\if\@tmpc e%(e) beta
3017 \yl@xdiff=16
3018 \yl@ydiff=36
3019 \Put@Line(0,0)(-5,3){144}% single bond at 6 equatorial
3020 \putlatom{-160}{50}{\@memberb}% left type
3021 \fi\fi\fi%
3022 \else \if\@tmpb D%double bond
3023 \yl@xdiff=10
3024 \yl@ydiff=90
3025 \putlatom{-130}{-210}{\@memberb}% left type
3026 \Put@Line(-10,10)(-1,-1){120}% double bond at 6
3027 \Put@Line(10,-10)(-1,-1){120}% double bond at 6
3028 \else%
3029 \yl@xdiff=10
3030 \yl@ydiff=90
3031 \putlatom{-130}{-210}{\@memberb}% left type
3032 \Put@Line(0,0)(-1,-1){120}% single bond at 6
3033 \fi\fi\fi\fi}%
3034 % \end{macrocode}
3035 % \end{macro}
3036 %
3037 % \begin{macro}{\@chairiVII}
3038 % \changes{v1.02}{1998/10/31}{Adding \cs{yl@xdiff} and \cs{yl@ydiff}}
3039 % \begin{macrocode}
3040 % %%%%%%%%%%%%%%%
3041 % % subst. on 7 %
3042 % %%%%%%%%%%%%%%%
3043 \def\@chairiVII{%
3044 \if\@tmpb a%single bond
3045 \yl@xdiff=26
3046 \yl@ydiff=46
3047 \Put@Line(170,226)(-5,-3){144}% single bond at 7 equatorial
3048 \putlatom{10}{94}{\@memberb}% left type
3049 \else\ifx\@tmpb\empty%single bond
3050 \yl@xdiff=26
3051 \yl@ydiff=46
3052 \Put@Line(170,226)(-5,-3){144}% single bond at 7 equatorial
3053 \putlatom{10}{94}{\@memberb}% left type
3054 \else\if\@tmpb S%single bond
3055 \ifx\@tmpc\empty%
3056 \yl@xdiff=10
3057 \yl@ydiff=30
3058 \Put@Line(170,226)(-1,1){120}% single bond at 7
3059 \putratom{40}{316}{\@memberb}% left type
3060 \else\if\@tmpc a%(a) axial
3061 \yl@xdiff=32
3062 \yl@ydiff=12
3063 \Put@Line(170,226)(0,1){168}% single bond at 7 axial
3064 \putlratom{138}{406}{\@memberb}% left & right type
3065 \else\if\@tmpc e%(e) beta
3066 \yl@xdiff=26
3067 \yl@ydiff=46
3068 \Put@Line(170,226)(-5,-3){144}% single bond at 7 equatorial
3069 \putlatom{10}{94}{\@memberb}% left type
3070 \fi\fi\fi%
3071 \else \if\@tmpb D%double bond
3072 \yl@xdiff=10
3073 \yl@ydiff=30
3074 \putlatom{40}{316}{\@memberb}% left type
3075 \Put@Line(160,216)(-1,1){120}% double bond at 7
3076 \Put@Line(180,236)(-1,1){120}% double bond at 7
3077 \else%
3078 \yl@xdiff=10
3079 \yl@ydiff=30
3080 \putlatom{40}{316}{\@memberb}% left type
3081 \Put@Line(170,226)(-1,1){120}% single bond at 7
3082 \fi\fi\fi\fi}%
3083 % \end{macrocode}
3084 % \end{macro}
3085 %
3086 % \begin{macro}{\@chairiX}
3087 % \changes{v1.02}{1998/10/31}{Adding \cs{yl@xdiff} and \cs{yl@ydiff}}
3088 % \begin{macrocode}
3089 % %%%%%%%%%%%%%%%%
3090 % % subst. on 10 %
3091 % %%%%%%%%%%%%%%%%
3092 \def\@chairiX{%
3093 \if\@tmpb a%single bond
3094 \yl@xdiff=40
3095 \yl@ydiff=104
3096 \Put@Line(573,91)(0,-1){168}% single bond at 5 axial
3097 \putlratom{533}{-181}{\@memberb}% left type
3098 \else\if\@tmpb b%single bond
3099 \yl@xdiff=-36
3100 \yl@ydiff=3
3101 \Put@Line(573,91)(5,3){144}% single bond at 5 equatorial
3102 \putlatom{753}{180}{\@memberb}% left type
3103 \else\if\@tmpb S%single bond
3104 \ifx\@tmpc\empty%
3105 \yl@xdiff=-10
3106 \yl@ydiff=56
3107 \Put@Line(573,91)(5,-4){170}% single bond at 5
3108 \putratom{753}{-101}{\@memberb}% right type
3109 \else\if\@tmpc a%(a) axial
3110 \yl@xdiff=40
3111 \yl@ydiff=104
3112 \Put@Line(573,91)(0,-1){168}% single bond at 5 axial
3113 \putlratom{533}{-181}{\@memberb}% left type
3114 \else\if\@tmpc e%(e) beta
3115 \yl@xdiff=-36
3116 \yl@ydiff=3
3117 \Put@Line(573,91)(5,3){144}% single bond at 5 equatorial
3118 \putlatom{753}{180}{\@memberb}% left type
3119 \fi\fi\fi%
3120 \else \if\@tmpb D%double bond
3121 \yl@xdiff=10
3122 \yl@ydiff=86
3123 \putratom{733}{-141}{\@memberb}% right type
3124 \Put@Line(563,83)(5,-4){170}% double bond at 5
3125 \Put@Line(583,99)(5,-4){170}% double bond at 5
3126 \else%
3127 \yl@xdiff=-10
3128 \yl@ydiff=76
3129 \Put@Line(573,91)(5,-4){170}% single bond at 5
3130 \putratom{753}{-121}{\@memberb}% right type
3131 \fi\fi\fi\fi}%
3132 % \end{macrocode}
3133 % \end{macro}
3134 %
3135 % \begin{macro}{\@chairiIII}
3136 % \changes{v1.02}{1998/10/31}{Adding \cs{yl@xdiff} and \cs{yl@ydiff}}
3137 % \begin{macrocode}
3138 % %%%%%%%%%%%%%%%
3139 % % subst. on 3 %
3140 % %%%%%%%%%%%%%%%
3141 \def\@chairiIII{%
3142 \if\@tmpb a%single bond
3143 \yl@xdiff=-16
3144 \yl@ydiff=64
3145 \Put@Line(843,181)(5,-3){144}% single bond at 3 equatorial
3146 \putratom{1003}{31}{\@memberb}% right type
3147 \else\ifx\@tmpb\empty%single bond
3148 \yl@xdiff=-16
3149 \yl@ydiff=64
3150 \Put@Line(843,181)(5,-3){144}% single bond at 3 equatorial
3151 \putratom{1003}{31}{\@memberb}% right type
3152 \else\if\@tmpb S%single bond
3153 \ifx\@tmpc\empty%
3154 \yl@xdiff=10
3155 \yl@ydiff=30
3156 \Put@Line(843,181)(1,1){120}% single bond at 3
3157 \putratom{953}{271}{\@memberb}% right type
3158 \else\if\@tmpc a%(a) axial
3159 \yl@xdiff=42
3160 \yl@ydiff=11
3161 \Put@Line(843,181)(0,1){168}% single bond at 3 axial
3162 \putlratom{801}{360}{\@memberb}% left & right type
3163 \else\if\@tmpc e%(e) beta
3164 \yl@xdiff=-16
3165 \yl@ydiff=64
3166 \Put@Line(843,181)(5,-3){144}% single bond at 3 equatorial
3167 \putratom{1003}{31}{\@memberb}% right type
3168 \fi\fi\fi%
3169 \else \if\@tmpb D%double bond
3170 \yl@xdiff=0
3171 \yl@ydiff=30
3172 \putratom{953}{271}{\@memberb}% right type
3173 \Put@Line(833,191)(1,1){120}% double bond at 3
3174 \Put@Line(853,171)(1,1){120}% double bond at 3
3175 \else%
3176 \yl@xdiff=10
3177 \yl@ydiff=30
3178 \Put@Line(843,181)(1,1){120}% single bond at 3
3179 \putratom{953}{271}{\@memberb}% right type
3180 \fi\fi\fi\fi}%
3181 % \end{macrocode}
3182 % \end{macro}
3183 %
3184 % \begin{macro}{\@chairiIV}
3185 % \changes{v1.02}{1998/10/31}{Adding \cs{yl@xdiff} and \cs{yl@ydiff}}
3186 % \begin{macrocode}
3187 % %%%%%%%%%%%%%%%
3188 % % subst. on 4 %
3189 % %%%%%%%%%%%%%%%
3190 \def\@chairiIV{%
3191 \if\@tmpb a%single bond
3192 \yl@xdiff=40
3193 \yl@ydiff=104
3194 \Put@Line(673,-46)(0,-1){168}% single bond at 4 axial
3195 \putlratom{633}{-318}{\@memberb}% left & right type
3196 \else\if\@tmpb b%single bond
3197 \yl@xdiff=-6
3198 \yl@ydiff=17
3199 \Put@Line(673,-46)(5,3){144}% single bond at 4 equatorial
3200 \putratom{823}{23}{\@memberb}% right type
3201 \else\if\@tmpb S%single bond
3202 \ifx\@tmpc\empty%
3203 \yl@xdiff=-10
3204 \yl@ydiff=92
3205 \Put@Line(673,-46)(1,-1){120}% single bond at 4
3206 \putratom{803}{-258}{\@memberb}% right type
3207 \else\if\@tmpc a%(a) axial
3208 \yl@xdiff=40
3209 \yl@ydiff=104
3210 \Put@Line(673,-46)(0,-1){168}% single bond at 4 axial
3211 \putlratom{633}{-318}{\@memberb}% left & right type
3212 \else\if\@tmpc e%(e) beta
3213 \yl@xdiff=-6
3214 \yl@ydiff=17
3215 \Put@Line(673,-46)(5,3){144}% single bond at 4 equatorial
3216 \putratom{823}{23}{\@memberb}% right type
3217 \fi\fi\fi%
3218 \else \if\@tmpb D%double bond
3219 \yl@xdiff=-10
3220 \yl@ydiff=92
3221 \putratom{803}{-258}{\@memberb}% right type
3222 \Put@Line(663,-53)(1,-1){120}% double bond at 4
3223 \Put@Line(683,-38)(1,-1){120}% double bond at 4
3224 \else%
3225 \yl@xdiff=-10
3226 \yl@ydiff=76
3227 \Put@Line(673,-46)(5,-4){170}% single bond at 4
3228 \putratom{853}{-258}{\@memberb}% right type
3229 \fi\fi\fi\fi}%
3230 % \end{macrocode}
3231 % \end{macro}
3232 %
3233 % \begin{macro}{\@chairiV}
3234 % \changes{v1.02}{1998/10/31}{Adding \cs{yl@xdiff} and \cs{yl@ydiff}}
3235 % \begin{macrocode}
3236 % %%%%%%%%%%%%%%%
3237 % % subst. on 5 %
3238 % %%%%%%%%%%%%%%%
3239 \def\@chairiV{%
3240 \if\@tmpb a%single bond
3241 \yl@xdiff=26
3242 \yl@ydiff=102
3243 \Put@Line(270,90)(-5,-3){144}% single bond at 5 equatorial
3244 \putratom{100}{-98}{\@memberb}% left type
3245 \else\ifx\@tmpb\empty%single bond
3246 \yl@xdiff=26
3247 \yl@ydiff=102
3248 \Put@Line(270,90)(-5,-3){144}% single bond at 5 equatorial
3249 \putratom{100}{-98}{\@memberb}% left type
3250 \else\if\@tmpb S%single bond
3251 \ifx\@tmpc\empty%
3252 \yl@xdiff=0
3253 \yl@ydiff=46
3254 \Put@Line(270,90)(-5,4){170}% single bond at 5
3255 \putlatom{100}{180}{\@memberb}% left type
3256 \else\if\@tmpc a%(a) axial
3257 \yl@xdiff=32
3258 \yl@ydiff=12
3259 \Put@Line(270,90)(0,1){168}% single bond at 5 axial
3260 \putlratom{238}{270}{\@memberb}% left type
3261 \else\if\@tmpc e%(e) beta
3262 \yl@xdiff=36
3263 \yl@ydiff=102
3264 \Put@Line(270,90)(-5,-3){144}% single bond at 5 equatorial
3265 \putratom{100}{-98}{\@memberb}% left type
3266 \fi\fi\fi%
3267 \else \if\@tmpb D%double bond
3268 \yl@xdiff=0
3269 \yl@ydiff=36
3270 \putlatom{100}{200}{\@memberb}% left or right type
3271 \Put@Line(260,80)(-5,4){170}% double bond at 5
3272 \Put@Line(280,100)(-5,4){170}% double bond at 5
3273 \else%
3274 \yl@xdiff=0
3275 \yl@ydiff=26
3276 \putlatom{100}{200}{\@memberb}% left type
3277 \Put@Line(270,90)(-5,4){170}% single bond at 5
3278 \fi\fi\fi\fi}%
3279 % \end{macrocode}
3280 % \end{macro}
3281 %
3282 %
3283 % \begin{macro}{\@chairiI}
3284 % \changes{v1.02}{1998/10/31}{Adding \cs{yl@xdiff} and \cs{yl@ydiff}}
3285 % \begin{macrocode}
3286 % %%%%%%%%%%%%%%%
3287 % % subst. on 1 %
3288 % %%%%%%%%%%%%%%%
3289 \def\@chairiI{%
3290 \if\@tmpb a%single bond
3291 \yl@xdiff=42
3292 \yl@ydiff=-10
3293 \Put@Line(0,0)(0,1){168}% single bond at 1 axial
3294 \putlratom{-42}{178}{\@memberb}% left & right type
3295 \else\ifx\@tmpb\empty%
3296 \yl@xdiff=42
3297 \yl@ydiff=-10
3298 \Put@Line(0,0)(0,1){168}% single bond at 1 axial
3299 \putlratom{-42}{178}{\@memberb}% left & right type
3300 \else\if\@tmpb S%single bond
3301 \ifx\@tmpc\empty%
3302 \yl@xdiff=42
3303 \yl@ydiff=-10
3304 \Put@Line(0,0)(0,1){168}% single bond at 1 axial
3305 \putlratom{-42}{178}{\@memberb}% left & right type
3306 \else\if\@tmpc a%(a) axial
3307 \yl@xdiff=42
3308 \yl@ydiff=-10
3309 \Put@Line(0,0)(0,1){168}% single bond at 1 axial
3310 \putlratom{-42}{178}{\@memberb}% left & right type
3311 \else\if\@tmpc e%(e) beta
3312 \yl@xdiff=42
3313 \yl@ydiff=-10
3314 \Put@Line(0,0)(0,1){168}% single bond at 1 axial
3315 \putlratom{-42}{178}{\@memberb}% left & right type
3316 \fi\fi\fi%
3317 \else \if\@tmpb D%double bond
3318 \yl@xdiff=42
3319 \yl@ydiff=-10
3320 \Put@Line(0,0)(0,1){168}% single bond at 1 axial
3321 \putlratom{-42}{178}{\@memberb}% left & right type
3322 \else%
3323 \yl@xdiff=42
3324 \yl@ydiff=-10
3325 \Put@Line(0,0)(0,1){168}% single bond at 1 axial
3326 \putlratom{-42}{178}{\@memberb}% left & right type
3327 \fi\fi\fi\fi}%
3328 % \end{macrocode}
3329 % \end{macro}
3330 %
3331 % \begin{macro}{\@chairiII}
3332 % \changes{v1.02}{1998/10/31}{Adding \cs{yl@xdiff} and \cs{yl@ydiff}}
3333 % \begin{macrocode}
3334 % %%%%%%%%%%%%%%%%
3335 % % subst. on 2 %
3336 % %%%%%%%%%%%%%%%%
3337 \def\@chairiII{%
3338 \if\@tmpb a%single bond
3339 \yl@xdiff=-10
3340 \yl@ydiff=13
3341 \Put@Line(0,0)(3,1){190}% single bond at 6 equatorial
3342 \putratom{200}{50}{\@memberb}% right type
3343 \else\if\@tmpb b%single bond
3344 \yl@xdiff=-10
3345 \yl@ydiff=0
3346 \Put@Line(0,0)(3,4){120}% % bond 1 to 6
3347 \putratom{130}{160}{\@memberb}% left type
3348 \else\if\@tmpb S%single bond
3349 \ifx\@tmpc\empty%
3350 \yl@xdiff=-10
3351 \yl@ydiff=-10
3352 \Put@Line(0,0)(1,1){120}% single bond at 1
3353 \putratom{130}{130}{\@memberb}% left type
3354 \else\if\@tmpc a%(a) axial
3355 \yl@xdiff=-10
3356 \yl@ydiff=0
3357 \Put@Line(0,0)(3,4){120}% % bond 1 to 6
3358 \putratom{130}{160}{\@memberb}% left type
3359 \else\if\@tmpc e%(e) beta
3360 \yl@xdiff=-10
3361 \yl@ydiff=13
3362 \Put@Line(0,0)(3,1){190}% single bond at 6 equatorial
3363 \putratom{200}{50}{\@memberb}% right type
3364 \fi\fi\fi%
3365 \else \if\@tmpb D%double bond
3366 \yl@xdiff=-10
3367 \yl@ydiff=-10
3368 \putratom{130}{130}{\@memberb}% left type
3369 \Put@Line(-10,10)(1,1){120}% double bond at 1
3370 \Put@Line(10,-10)(1,1){120}% double bond at 1
3371 \else%
3372 \yl@xdiff=-10
3373 \yl@ydiff=-10
3374 \putratom{130}{130}{\@memberb}% left type
3375 \Put@Line(0,0)(1,1){120}% single bond at 1
3376 \fi\fi\fi\fi}%
3377 % \end{macrocode}
3378 % \end{macro}
3379 %
3380 % \begin{macro}{\@chairigVIII}
3381 % \changes{v1.02}{1998/10/31}{Adding \cs{yl@xdiff} and \cs{yl@ydiff}}
3382 % \begin{macrocode}
3383 % %%%%%%%%%%%%%%%
3384 % % subst. on 8 %
3385 % %%%%%%%%%%%%%%%
3386 \def\@chairiVIII{%
3387 \if\@tmpb a%single bond
3388 \yl@xdiff=16
3389 \yl@ydiff=36
3390 \Put@Line(0,0)(-5,3){144}% single bond at 1 equatorial
3391 \putlatom{-160}{50}{\@memberb}% left type
3392 \else\if\@tmpb b%single bond
3393 \yl@xdiff=-10
3394 \yl@ydiff=0
3395 \Put@Line(0,0)(3,4){120}% % bond 1 to 6
3396 \putratom{130}{160}{\@memberb}% left type
3397 \else\if\@tmpb S%single bond
3398 \ifx\@tmpc\empty%
3399 \yl@xdiff=4
3400 \yl@ydiff=36
3401 \Put@Line(0,0)(-5,3){144}% single bond at 1 equatorial
3402 \putlatom{-140}{50}{\@memberb}% left type
3403 \else\if\@tmpc e% right-hand
3404 \yl@xdiff=-10
3405 \yl@ydiff=0
3406 \Put@Line(0,0)(3,4){120}% % bond 1 to 6
3407 \putratom{130}{160}{\@memberb}% left type
3408 \else\if\@tmpc a% left-hand
3409 \yl@xdiff=16
3410 \yl@ydiff=36
3411 \Put@Line(0,0)(-5,3){144}% single bond at 1 equatorial
3412 \putlatom{-160}{50}{\@memberb}% left type
3413 \fi\fi\fi%
3414 \else \if\@tmpb D%double bond
3415 \yl@xdiff=4
3416 \yl@ydiff=26
3417 \putlatom{-140}{60}{\@memberb}% left type
3418 \Put@Line(10,10)(-5,3){144}% single bond at 1 equatorial
3419 \Put@Line(0,-10)(-5,3){144}% single bond at 1 equatorial
3420 \else%
3421 \yl@xdiff=4
3422 \yl@ydiff=36
3423 \Put@Line(0,0)(-5,3){144}% single bond at 1 equatorial
3424 \putlatom{-140}{50}{\@memberb}% left type
3425 \fi\fi\fi\fi}%
3426 % \end{macrocode}
3427 % \end{macro}
3428 %
3429 % \begin{macro}{\@chairiIX}
3430 % \changes{v1.02}{1998/10/31}{Adding \cs{yl@xdiff} and \cs{yl@ydiff}}
3431 % \begin{macrocode}
3432 % %%%%%%%%%%%%%%%
3433 % % subst. on 9 %
3434 % %%%%%%%%%%%%%%%
3435 \def\@chairiIX{%
3436 \if\@tmpb a%single bond
3437 \yl@xdiff=16
3438 \yl@ydiff=36
3439 \Put@Line(0,0)(-5,3){144}% single bond at 1 equatorial
3440 \putlatom{-160}{50}{\@memberb}% left type
3441 \else\if\@tmpb b%single bond
3442 \yl@xdiff=-16
3443 \yl@ydiff=36
3444 \Put@Line(0,0)(5,3){144}% single bond at 6 equatorial
3445 \putratom{160}{50}{\@memberb}% left type
3446 \else\if\@tmpb S%single bond
3447 \ifx\@tmpc\empty%
3448 \yl@xdiff=4
3449 \yl@ydiff=36
3450 \Put@Line(0,0)(-5,3){144}% single bond at 1 equatorial
3451 \putlatom{-140}{50}{\@memberb}% left type
3452 \else\if\@tmpc e% right-hand
3453 \yl@xdiff=-16
3454 \yl@ydiff=36
3455 \Put@Line(0,0)(5,3){144}% single bond at 6 equatorial
3456 \putratom{160}{50}{\@memberb}% left type
3457 \else\if\@tmpc a% left-hand
3458 \yl@xdiff=16
3459 \yl@ydiff=36
3460 \Put@Line(0,0)(-5,3){144}% single bond at 1 equatorial
3461 \putlatom{-160}{50}{\@memberb}% left type
3462 \fi\fi\fi%
3463 \else \if\@tmpb D%double bond
3464 \yl@xdiff=4
3465 \yl@ydiff=36
3466 \putlatom{-140}{50}{\@memberb}% left type
3467 \Put@Line(10,10)(-5,3){144}% single bond at 1 equatorial
3468 \Put@Line(0,-10)(-5,3){144}% single bond at 1 equatorial
3469 \else%
3470 \yl@xdiff=4
3471 \yl@ydiff=36
3472 \Put@Line(0,0)(-5,3){144}% single bond at 1 equatorial
3473 \putlatom{-140}{50}{\@memberb}% left type
3474 \fi\fi\fi\fi}%
3475 %</ccycle>
3476 % \end{macrocode}
3477 % \end{macro}
3478 %
3479 % \Finale
3480 %
3481 \endinput