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