| 1 |
% \iffalse meta-comment |
| 2 |
%% File: steroid.dtx |
| 3 |
% |
| 4 |
% Copyright 2009, 2010 by Shinsaku Fujita |
| 5 |
% Copyright for the XyMTeX system 1993,1996,1998,2001,2002,2004,2005,2009 by Shinsaku Fujita |
| 6 |
% |
| 7 |
% This file is part of XyMTeX system. |
| 8 |
% ------------------------------------- |
| 9 |
% |
| 10 |
% This file is a successor to: |
| 11 |
% |
| 12 |
% steroid.sty |
| 13 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 14 |
% \typeout{XyMTeX for Drawing Chemical Structural Formulas. Version 1.00} |
| 15 |
% \typeout{ -- Released December 1, 1993 by Shinsaku Fujita} |
| 16 |
% Copyright (C) 1993 by Shinsaku Fujita, all rights reserved. |
| 17 |
% |
| 18 |
% This file is a part of the macro package ``XyMTeX'' which has been |
| 19 |
% designed for typesetting chemical structural formulas. |
| 20 |
% |
| 21 |
% This file is to be contained in the ``xymtex'' directory which is |
| 22 |
% an input directory for TeX. It is a LaTeX optional style file and |
| 23 |
% should be used only within LaTeX, because several macros of the file |
| 24 |
% are based on LaTeX commands. |
| 25 |
% |
| 26 |
% For the review of XyMTeX, see |
| 27 |
% (1) Shinsaku Fujita, ``Typesetting structural formulas with the text |
| 28 |
% formatter TeX/LaTeX'', Computers and Chemistry, in press. |
| 29 |
% The following book deals with an application of TeX/LaTeX to |
| 30 |
% preparation of manuscripts of chemical fields: |
| 31 |
% (2) Shinsaku Fujita, ``LaTeX for Chemists and Biochemists'' |
| 32 |
% Tokyo Kagaku Dozin, Tokyo (1993) [in Japanese]. |
| 33 |
% |
| 34 |
% This work may be distributed and/or modified under the |
| 35 |
% conditions of the LaTeX Project Public License, either version 1.3 |
| 36 |
% of this license or (at your option) any later version. |
| 37 |
% The latest version of this license is in |
| 38 |
% http://www.latex-project.org/lppl.txt |
| 39 |
% and version 1.3 or later is part of all distributions of LaTeX |
| 40 |
% version 2005/12/01 or later. |
| 41 |
% |
| 42 |
% This work has the LPPL maintenance status `maintained'. |
| 43 |
% The Current Maintainer of this work is Shinsaku Fujita. |
| 44 |
% |
| 45 |
% This work consists of the files steroid.dtx and steroid.ins |
| 46 |
% and the derived file steroid.sty. |
| 47 |
% |
| 48 |
% Please report any bugs, comments, suggestions, etc. to: |
| 49 |
% Shinsaku Fujita, |
| 50 |
% Shonan Institute of Chemoinformatics and Mathematical Chemistry |
| 51 |
% Kaneko 479-7 Ooimachi, Ashigara-Kami-Gun, Kanagawa 250-0019 Japan |
| 52 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 53 |
% \def\j@urnalname{steroid} |
| 54 |
% \def\versi@ndate{June 15, 2009} |
| 55 |
% \def\versi@nno{ver1.00} |
| 56 |
% \def\copyrighth@lder{SF}% Shinsaku Fujita |
| 57 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 58 |
% |
| 59 |
% \fi |
| 60 |
% |
| 61 |
% \CheckSum{1778} |
| 62 |
%% \CharacterTable |
| 63 |
%% {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 |
| 64 |
%% 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 |
| 65 |
%% Digits \0\1\2\3\4\5\6\7\8\9 |
| 66 |
%% Exclamation \! Double quote \" Hash (number) \# |
| 67 |
%% Dollar \$ Percent \% Ampersand \& |
| 68 |
%% Acute accent \' Left paren \( Right paren \) |
| 69 |
%% Asterisk \* Plus \+ Comma \, |
| 70 |
%% Minus \- Point \. Solidus \/ |
| 71 |
%% Colon \: Semicolon \; Less than \< |
| 72 |
%% Equals \= Greater than \> Question mark \? |
| 73 |
%% Commercial at \@ Left bracket \[ Backslash \\ |
| 74 |
%% Right bracket \] Circumflex \^ Underscore \_ |
| 75 |
%% Grave accent \` Left brace \{ Vertical bar \| |
| 76 |
%% Right brace \} Tilde \~} |
| 77 |
% |
| 78 |
% \setcounter{StandardModuleDepth}{1} |
| 79 |
% |
| 80 |
% \StopEventually{} |
| 81 |
% \MakeShortVerb{\|} |
| 82 |
% |
| 83 |
% \iffalse |
| 84 |
% \changes{v1.00}{2009/06/15}{The first version} |
| 85 |
% \changes{v5.00}{2010/10/01}{for bond coloring and the LaTeX Project Public License} |
| 86 |
% \fi |
| 87 |
% |
| 88 |
% \iffalse |
| 89 |
%<*driver> |
| 90 |
\NeedsTeXFormat{pLaTeX2e} |
| 91 |
% \fi |
| 92 |
\ProvidesFile{steroid.dtx}[2010/10/01 v5.00 XyMTeX{} package file] |
| 93 |
% \iffalse |
| 94 |
\documentclass{ltxdoc} |
| 95 |
\GetFileInfo{steroid.dtx} |
| 96 |
% |
| 97 |
% %%XyMTeX Logo: Definition 2%%% |
| 98 |
\def\UPSILON{\char'7} |
| 99 |
\def\XyM{X\kern-.30em\smash{% |
| 100 |
\raise.50ex\hbox{\UPSILON}}\kern-.30em{M}} |
| 101 |
\def\XyMTeX{\XyM\kern-.1em\TeX} |
| 102 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 103 |
\title{Steroid derivatives by {\sffamily steroid.sty} |
| 104 |
of \XyMTeX{} (\fileversion) } |
| 105 |
\author{Shinsaku Fujita \\ |
| 106 |
Shonan Institute of Chemoinformatics and Mathematical Chemistry, \\ |
| 107 |
Kaneko 479-7 Ooimachi, Ashigara-Kami-Gun Kanagawa-ken, 258-0019, Japan. |
| 108 |
} |
| 109 |
\date{\filedate} |
| 110 |
% |
| 111 |
\begin{document} |
| 112 |
\maketitle |
| 113 |
\DocInput{steroid.dtx} |
| 114 |
\end{document} |
| 115 |
%</driver> |
| 116 |
% \fi |
| 117 |
% |
| 118 |
% \section{Introduction}\label{steroid:intro} |
| 119 |
% |
| 120 |
% \subsection{Options for {\sffamily docstrip}} |
| 121 |
% |
| 122 |
% \DeleteShortVerb{\|} |
| 123 |
% \begin{center} |
| 124 |
% \begin{tabular}{|l|l|} |
| 125 |
% \hline |
| 126 |
% \emph{option} & \emph{function}\\ \hline |
| 127 |
% steroid & steroid.sty \\ |
| 128 |
% driver & driver for this dtx file \\ |
| 129 |
% \hline |
| 130 |
% \end{tabular} |
| 131 |
% \end{center} |
| 132 |
% \MakeShortVerb{\|} |
| 133 |
% |
| 134 |
% \subsection{Version Information} |
| 135 |
% |
| 136 |
% \begin{macrocode} |
| 137 |
%<*steroid> |
| 138 |
\typeout{XyMTeX for Drawing Chemical Structural Formulas. Version 5.00} |
| 139 |
\typeout{ -- Released October 01, 2010 by Shinsaku Fujita} |
| 140 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 141 |
\def\j@urnalname{steroid} |
| 142 |
\def\versi@ndate{October 01, 2010} |
| 143 |
\def\versi@nno{ver5.00} |
| 144 |
\def\copyrighth@lder{SF}% Shinsaku Fujita |
| 145 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 146 |
\typeout{XyMTeX Macro File `\j@urnalname' (\versi@nno) <\versi@ndate>% |
| 147 |
\space[\copyrighth@lder]} |
| 148 |
% \end{macrocode} |
| 149 |
% |
| 150 |
% \section{List of commands for steroid.sty} |
| 151 |
% |
| 152 |
% \begin{verbatim} |
| 153 |
% ********************************* |
| 154 |
% * steroid.sty: list of commands * |
| 155 |
% ********************************* |
| 156 |
% |
| 157 |
% <Macros for drawing basic steroids> |
| 158 |
% |
| 159 |
% \gonane |
| 160 |
% \gonanealpha |
| 161 |
% \gonanebeta |
| 162 |
% |
| 163 |
% \estrane |
| 164 |
% \estranealpha |
| 165 |
% \estranebeta |
| 166 |
% |
| 167 |
% \steroidnochainandrostane |
| 168 |
% \androstane |
| 169 |
% \androstanealpha |
| 170 |
% \androstanebeta |
| 171 |
% |
| 172 |
% \steroidethylchain |
| 173 |
% \steroidethylchainpregnane |
| 174 |
% \pregnane |
| 175 |
% \pregnanealpha |
| 176 |
% \pregnanebeta |
| 177 |
% |
| 178 |
% <Macros for drawing steroids with chains (modern type)> |
| 179 |
% C22-C23: transoid |
| 180 |
% |
| 181 |
% \steroidChain |
| 182 |
% \steroidChaindiMe |
| 183 |
% \cholestaneAlpha |
| 184 |
% \cholestaneBeta |
| 185 |
% \cholestane |
| 186 |
% |
| 187 |
% \ergostaneAlpha |
| 188 |
% \ergostaneBeta |
| 189 |
% \ergostane |
| 190 |
% |
| 191 |
% \campestaneAlpha |
| 192 |
% \campestaneBeta |
| 193 |
% \campestane |
| 194 |
% |
| 195 |
% \poriferastaneAlpha |
| 196 |
% \poriferastaneBeta |
| 197 |
% \poriferastane |
| 198 |
% |
| 199 |
% \stigmastaneAlpha |
| 200 |
% \stigmastaneBeta |
| 201 |
% \stigmastane |
| 202 |
% |
| 203 |
% <Macros for drawing steroids with short chains (modern type)> |
| 204 |
% C22-C23: transoid |
| 205 |
% |
| 206 |
% \steroidShortChain |
| 207 |
% \steroidShortChainMe |
| 208 |
% \cholaneAlpha |
| 209 |
% \cholaneBeta |
| 210 |
% |
| 211 |
% <Macros for drawing steroids with short chains (old type)> |
| 212 |
% C22-C23: transoid |
| 213 |
% |
| 214 |
% \steroidshortchain |
| 215 |
% \steroidshortchainMe |
| 216 |
% \cholanealpha |
| 217 |
% \cholanebeta |
| 218 |
% \cholanE |
| 219 |
% |
| 220 |
% <Macros for drawing steroids with chains (old type)> |
| 221 |
% C22-C23: cisoid |
| 222 |
% |
| 223 |
% \steroidchaindiMe |
| 224 |
% \cholestanealpha |
| 225 |
% \cholestanebeta |
| 226 |
% \cholestanE |
| 227 |
% |
| 228 |
% \ergostanealpha |
| 229 |
% \ergostanebeta |
| 230 |
% \ergostanE |
| 231 |
% |
| 232 |
% \campestanealpha |
| 233 |
% \campestanebeta |
| 234 |
% \campestanE |
| 235 |
% |
| 236 |
% \poriferastanealpha |
| 237 |
% \poriferastanebeta |
| 238 |
% \poriferastanE |
| 239 |
% |
| 240 |
% \stigmastanealpha |
| 241 |
% \stigmastanebeta |
| 242 |
% \stigmastanE |
| 243 |
% |
| 244 |
% <Macros for drawing spirostans> |
| 245 |
% |
| 246 |
% \steroidspiro |
| 247 |
% \steroidspirotriMe |
| 248 |
% \spirostanalpha |
| 249 |
% \spirostanbeta |
| 250 |
% \spirostan |
| 251 |
% \spirostannor |
| 252 |
% |
| 253 |
% <Macros for drawing furostans> |
| 254 |
% |
| 255 |
% \steroidfuros |
| 256 |
% \steroidspirotriMe |
| 257 |
% \furostanalpha |
| 258 |
% \furostanbeta |
| 259 |
% \furostan |
| 260 |
% |
| 261 |
% <Macros for drawing spiro pyranoses> |
| 262 |
% |
| 263 |
% \pyranoseChairi |
| 264 |
% \pyranoseChairii |
| 265 |
% |
| 266 |
% \end{verbatim} |
| 267 |
% |
| 268 |
% \section{Input of basic macros} |
| 269 |
% |
| 270 |
% To assure the compatibility to \LaTeX{}2.09 (the native mode), |
| 271 |
% the commands added by \LaTeXe{} have not been used in the resulting sty |
| 272 |
% files ({\sf steroid.sty} for the present case). Hence, the combination |
| 273 |
% of |\input| and |\@ifundefined| is used to crossload sty |
| 274 |
% files ({\sf chemstr.sty} for the present case) in place of the |
| 275 |
% |\RequirePackage| command of \LaTeXe{}. |
| 276 |
% |
| 277 |
% \begin{macrocode} |
| 278 |
% ************************* |
| 279 |
% * input of basic macros * |
| 280 |
% ************************* |
| 281 |
\@ifundefined{setsixringv}{\input chemstr.sty\relax}{} |
| 282 |
\@ifundefined{steroidchain}{\input carom.sty\relax}{} |
| 283 |
\@ifundefined{ylchairiposition}{\input ccycle.sty\relax}{} |
| 284 |
\unitlength=0.1pt |
| 285 |
% \end{macrocode} |
| 286 |
% |
| 287 |
% The commands |\steroid| and |\steroidchain| for drawing raw skeletons of |
| 288 |
% steroid derivatives have been already defined in {\sf carom.sty}, which |
| 289 |
% is loaded automatically as above. |
| 290 |
% |
| 291 |
% \section{Macros for Steroids with No Side Chains} |
| 292 |
% |
| 293 |
% By starting from the commands |\steroid| defined in the {\sf carom.sty}, |
| 294 |
% several intermediate commands are defined to draw steroid derivatives |
| 295 |
% without side chains. |
| 296 |
% |
| 297 |
% \begin{macro}{\gonane} |
| 298 |
% \begin{macro}{\gonanealpha} |
| 299 |
% \begin{macro}{\gonanebeta} |
| 300 |
% \begin{macro}{\estrane} |
| 301 |
% \begin{macro}{\estranealpha} |
| 302 |
% \begin{macro}{\estranebeta} |
| 303 |
% \begin{macrocode} |
| 304 |
% *********************************************** |
| 305 |
% * For drawing side chains of the common style * |
| 306 |
% *********************************************** |
| 307 |
% ******************* |
| 308 |
% * gonane, estrane * |
| 309 |
% ******************* |
| 310 |
\def\gonanealpha{\@ifnextchar[{\@gonanealpha}{\@gonanealpha[]}} |
| 311 |
\def\@gonanealpha[#1]#2{% |
| 312 |
\steroid[#1]{#2;5A==H;8B==H;9A==H;{10}B==H;{13}B==H;{14}A==H}} |
| 313 |
\def\gonanebeta{\@ifnextchar[{\@gonanebeta}{\@gonanebeta[]}} |
| 314 |
\def\@gonanebeta[#1]#2{% |
| 315 |
\steroid[#1]{#2;5B==H;8B==H;9A==H;{10}B==H;{13}B==H;{14}A==H}} |
| 316 |
\def\gonane{\@ifnextchar[{\@gonane}{\@gonane[]}} |
| 317 |
\def\@gonane[#1]#2{% |
| 318 |
\steroid[#1]{#2;8B==H;9A==H;{10}B==H;{13}B==H;{14}A==H}} |
| 319 |
\def\estranealpha{\@ifnextchar[{\@estranealpha}{\@estranealpha[]}} |
| 320 |
\def\@estranealpha[#1]#2{% |
| 321 |
\steroid[#1]{#2;5A==H;8B==H;9A==H;{10}B==H;{13}B==CH$_{3}$;{14}A==H}} |
| 322 |
\def\estranebeta{\@ifnextchar[{\@estranebeta}{\@estranebeta[]}} |
| 323 |
\def\@estranebeta[#1]#2{ |
| 324 |
\steroid[#1]{#2;5B==H;8B==H;9A==H;{10}B==H;{13}B==CH$_{3}$;{14}A==H}} |
| 325 |
\def\estrane{\@ifnextchar[{\@estrane}{\@estrane[]}} |
| 326 |
\def\@estrane[#1]#2{ |
| 327 |
\steroid[#1]{#2;8B==H;9A==H;{10}B==H;{13}B==CH$_{3}$;{14}A==H}} |
| 328 |
% \end{macrocode} |
| 329 |
% \end{macro} |
| 330 |
% \end{macro} |
| 331 |
% \end{macro} |
| 332 |
% \end{macro} |
| 333 |
% \end{macro} |
| 334 |
% \end{macro} |
| 335 |
% |
| 336 |
% \begin{macro}{\steroidnochainandrostane} |
| 337 |
% \begin{macro}{\androstane} |
| 338 |
% \begin{macro}{\androstanealpha} |
| 339 |
% \begin{macro}{\androstanebeta} |
| 340 |
% \begin{macrocode} |
| 341 |
% ************** |
| 342 |
% * androstane * |
| 343 |
% ************** |
| 344 |
\def\steroidnochainandrostane[#1]#2{% |
| 345 |
\steroid[#1]{#2;8B==H;9A==H;{10}B==CH$_{3}$;{13}B==CH$_{3}$;{14}A==H}} |
| 346 |
\def\androstanealpha{\@ifnextchar[{\@androstanealpha}{\@androstanealpha[]}} |
| 347 |
\def\@androstanealpha[#1]#2{\steroidnochainandrostane[#1]{#2;5A==H}} |
| 348 |
\def\androstanebeta{\@ifnextchar[{\@androstanebeta}{\@androstanebeta[]}} |
| 349 |
\def\@androstanebeta[#1]#2{\steroidnochainandrostane[#1]{#2;5B==H}} |
| 350 |
\def\androstane{\@ifnextchar[{\@androstane}{\@androstane[]}} |
| 351 |
\def\@androstane[#1]#2{\steroidnochainandrostane[#1]{#2}} |
| 352 |
% \end{macrocode} |
| 353 |
% \end{macro} |
| 354 |
% \end{macro} |
| 355 |
% \end{macro} |
| 356 |
% \end{macro} |
| 357 |
% |
| 358 |
% \section{Macros for Steroids with a Ethyl Chain} |
| 359 |
% |
| 360 |
% After the definition of the macro |\steroidethylchain| for |
| 361 |
% drawing steroids with an ethyl chain, several commands for |
| 362 |
% drawing pregnane derivative are defined. |
| 363 |
% |
| 364 |
% \begin{macro}{\steroidethylchain} |
| 365 |
% \begin{macrocode} |
| 366 |
\def\steroidethylchain{\@ifnextchar[{\@steroidethylchain[@}{\@steroidethylchain[Z]}} |
| 367 |
\def\@steroidethylchain[#1]#2{% |
| 368 |
\@reset@ylsw\reset@@yl |
| 369 |
\yl@steroidposition{#2}% |
| 370 |
\ylposition{#2}{-21}{0}{3}{0}%for 22 and 23 positions |
| 371 |
\if@ylsw \ifx\@@ylii\empty |
| 372 |
\def\@@ylii{-1026}\def\@@yli{-606}\fi |
| 373 |
\else |
| 374 |
\ylposition{#2}{-14}{5}{7}{0}%for 20 position |
| 375 |
\fi |
| 376 |
\if@ylsw\ifx\@@ylii\empty |
| 377 |
\def\@@ylii{-1026}\def\@@yli{-606}\fi\else |
| 378 |
\ylposition{#2}{-20}{3}{5}{0}%for 24 position |
| 379 |
\fi |
| 380 |
\if@ylsw\ifx\@@ylii\empty |
| 381 |
\def\@@ylii{-1397}\def\@@yli{-709}\fi\fi |
| 382 |
\if@ylsw |
| 383 |
\yl@shiftii=\@ylii |
| 384 |
\ifx\@@ylii\empty\else |
| 385 |
\advance\yl@shiftii\@@ylii\fi |
| 386 |
\yl@shifti=\@yli |
| 387 |
\ifx\@@yli\empty\else |
| 388 |
\advance\yl@shifti\@@yli\fi |
| 389 |
\advance\yl@shiftii\yl@xdiff |
| 390 |
\advance\yl@shifti\yl@ydiff |
| 391 |
\begin{sfpicture}(0,0)(-\yl@shiftii,-\yl@shifti)% |
| 392 |
\reset@yl@xydiff%1999/1/6 by S. Fujita |
| 393 |
\else |
| 394 |
\begin{sfpicture}(1850,1500)(-\shiftii,-\shifti)% |
| 395 |
\iforigpt \typeout{command `steroidethylchain' is based on `steroid'.}\fi% |
| 396 |
\fi |
| 397 |
\Put@Direct(0,0){\@steroidskeleton{#1}{#2}}% |
| 398 |
\Put@Line(855,709)(0,1){200}% %bond 17-20 |
| 399 |
\Put@Line(1026,1012)(-5,-3){171}% %bond 22-20 |
| 400 |
\@tfor\member:=#1\do{% |
| 401 |
\expandafter\twoCH@R\member//\relax% |
| 402 |
\if\@tmpa Z\relax% |
| 403 |
\ifx\@tmpb\empty%no action |
| 404 |
\else\if\@tmpb a% |
| 405 |
\Put@Line(888,735)(0,1){148}% %double bond 17-20 |
| 406 |
\else\if\@tmpb b% |
| 407 |
\Put@Line(1020,970)(-5,-3){126}% %double bond 22-20 |
| 408 |
\fi\fi\fi\fi}% |
| 409 |
\Put@Direct(1026,606){\setsixringv{#2}{-21}{0}{3}{0}}%for 22 and 23 positions |
| 410 |
\Put@Direct(1026,606){\setsixringv{#2}{-14}{5}{7}{0}}%for 20 position |
| 411 |
%\Put@Direct(1197,709){\setsixringv{#2}{-20}{3}{5}{0}}%for 24 position |
| 412 |
%\Put@Direct(1397,709){\setatombond{#2}{-24}{4}}% % for 25 |
| 413 |
\end{sfpicture}}% %end of \steroidethylchain macro% |
| 414 |
% \end{macrocode} |
| 415 |
% \end{macro} |
| 416 |
% |
| 417 |
% \begin{macro}{\steroidethylchainpregnane} |
| 418 |
% \begin{macro}{\pregnane} |
| 419 |
% \begin{macro}{\pregnanealpha} |
| 420 |
% \begin{macro}{\pregnanebeta} |
| 421 |
% \begin{macrocode} |
| 422 |
% ************ |
| 423 |
% * pregnane * |
| 424 |
% ************ |
| 425 |
\def\steroidethylchainpregnane[#1]#2{% |
| 426 |
\steroidethylchain[#1]{#2;8B==H;9A==H;{10}B==CH$_{3}$;{13}B==CH$_{3}$;{14}A==H;% |
| 427 |
{17}SA==\raisebox{-4pt}{~H}}} |
| 428 |
\def\pregnanealpha{\@ifnextchar[{\@pregnanealpha}{\@pregnanealpha[]}} |
| 429 |
\def\@pregnanealpha[#1]#2{\steroidethylchainpregnane[#1]{#2;5A==H}} |
| 430 |
\def\pregnanebeta{\@ifnextchar[{\@pregnanebeta}{\@pregnanebeta[]}} |
| 431 |
\def\@pregnanebeta[#1]#2{\steroidethylchainpregnane[#1]{#2;5B==H}} |
| 432 |
\def\pregnane{\@ifnextchar[{\@pregnane}{\@pregnane[]}} |
| 433 |
\def\@pregnane[#1]#2{\steroidethylchainpregnane[#1]{#2}} |
| 434 |
% \end{macrocode} |
| 435 |
% \end{macro} |
| 436 |
% \end{macro} |
| 437 |
% \end{macro} |
| 438 |
% \end{macro} |
| 439 |
% |
| 440 |
% \section{Macros for Steroids with Chains (Modern Types)} |
| 441 |
% |
| 442 |
% For drawing steroids with side chains of modern expressions, the command |\steroidChain| |
| 443 |
% is created in addition to the previous command |\steroidchain| for drawing a side chain |
| 444 |
% of an old expression. |
| 445 |
% |
| 446 |
% \begin{macro}{\steroidChain} |
| 447 |
% \begin{macrocode} |
| 448 |
% ************************************************************ |
| 449 |
% * Raw Skeleton for drawing side chains of the modern style * |
| 450 |
% ************************************************************ |
| 451 |
\def\steroidChain{\@ifnextchar[{\@steroidChain[@}{\@steroidChain[Z]}} |
| 452 |
\def\@steroidChain[#1]#2{% |
| 453 |
\@reset@ylsw\reset@@yl |
| 454 |
\yl@steroidposition{#2}% |
| 455 |
\ylposition{#2}{-21}{0}{3}{0}%for 22 and 23 positions |
| 456 |
\if@ylsw \ifx\@@ylii\empty |
| 457 |
\def\@@ylii{-1026}\def\@@yli{-606}\fi |
| 458 |
\else |
| 459 |
\ylposition{#2}{-14}{5}{7}{0}%for 20 position |
| 460 |
\fi |
| 461 |
\if@ylsw |
| 462 |
\ifx\@@ylii\empty |
| 463 |
\def\@@ylii{-1026}\def\@@yli{-606}\fi%%set 20 position |
| 464 |
\else |
| 465 |
\ylposition{#2}{-23}{0}{2}{0}%for 24 position |
| 466 |
\fi |
| 467 |
\if@ylsw\ifx\@@ylii\empty |
| 468 |
\def\@@ylii{-1368}\def\@@yli{-606}\fi%%set 24 positions |
| 469 |
\else |
| 470 |
\ylatombondposition{#2}{-24}{4}% % for 25 |
| 471 |
\fi |
| 472 |
\if@ylsw\ifx\@@ylii\empty |
| 473 |
\def\@@ylii{-1539}\def\@@yli{-909}\fi%%set 25 positions |
| 474 |
\else |
| 475 |
\ylatombondposition{#2}{-25}{4}% % for 26 |
| 476 |
\fi |
| 477 |
\if@ylsw\ifx\@@ylii\empty |
| 478 |
\def\@@ylii{-1710}\def\@@yli{-1012}\fi%%set 26 positions |
| 479 |
\else |
| 480 |
\ylatombondposition{#2}{-26}{4}% % for 27 |
| 481 |
\fi |
| 482 |
\if@ylsw\ifx\@@ylii\empty |
| 483 |
\def\@@ylii{-1539}\def\@@yli{-709}\fi%%set 27 positions |
| 484 |
\fi |
| 485 |
\if@ylsw |
| 486 |
\yl@shiftii=\@ylii |
| 487 |
\ifx\@@ylii\empty\else |
| 488 |
\advance\yl@shiftii\@@ylii\fi |
| 489 |
\yl@shifti=\@yli |
| 490 |
\ifx\@@yli\empty\else |
| 491 |
\advance\yl@shifti\@@yli\fi |
| 492 |
\advance\yl@shiftii\yl@xdiff |
| 493 |
\advance\yl@shifti\yl@ydiff |
| 494 |
\begin{sfpicture}(0,0)(-\yl@shiftii,-\yl@shifti)% |
| 495 |
\reset@yl@xydiff%1999/1/6 by S. Fujita |
| 496 |
\else |
| 497 |
\begin{sfpicture}(2300,1500)(-\shiftii,-\shifti)% |
| 498 |
\iforigpt \typeout{command `steroidChain' is based on `steroid'.}\fi% |
| 499 |
\fi |
| 500 |
\Put@Direct(0,0){\@steroidskeleton{#1}{#2}}% |
| 501 |
\Put@Line(855,709)(0,1){200}% %bond 17-20 |
| 502 |
\Put@Line(1026,1012)(-5,-3){171}% %bond 22-20 |
| 503 |
\Put@Line(1026,1012)(5,-3){171}% %bond 22-23 |
| 504 |
\Put@Line(1197,909)(5,3){171}% %bond 23-24 |
| 505 |
\Put@Line(1368,1012)(5,-3){171}% %bond 24-25 |
| 506 |
\Put@Line(1539,909)(5,3){171}% %bond 25-26 |
| 507 |
\Put@Line(1539,909)(0,-1){200}% %bond 25-27 |
| 508 |
\@tfor\member:=#1\do{% |
| 509 |
\expandafter\twoCH@R\member//\relax% |
| 510 |
\if\@tmpa Z\relax% |
| 511 |
\ifx\@tmpb\empty%no action |
| 512 |
\else\if\@tmpb a% |
| 513 |
\Put@Line(888,735)(0,1){148}% %double bond 17-20 |
| 514 |
\else\if\@tmpb b% |
| 515 |
\Put@Line(1020,970)(-5,-3){126}% %double bond 22-20 |
| 516 |
\else\if\@tmpb c% |
| 517 |
\Put@Line(1032,970)(5,-3){126}% %double bond 22-23 |
| 518 |
\else\if\@tmpb d% |
| 519 |
\Put@Line(1203,952)(5,3){126}% %double bond 23-24 |
| 520 |
\else\if\@tmpb e% |
| 521 |
\Put@Line(1372,970)(5,-3){126}% %double bond 24-25 |
| 522 |
\else\if\@tmpb f% |
| 523 |
\Put@Line(1545,952)(5,3){126}% %double bond 25-26 |
| 524 |
\else\if\@tmpb F% |
| 525 |
\Put@Line(1580,890)(5,3){126}% %double bond 25-26(alternative) |
| 526 |
\else\if\@tmpb g% |
| 527 |
\Put@Line(1580,890)(0,-1){148}% %double bond 25-27 |
| 528 |
\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi}% |
| 529 |
\Put@Direct(1026,606){\setsixringv{#2}{-21}{0}{2}{0}}%for 22 position |
| 530 |
\Put@Direct(1192,909){\setsixringv{#2}{-19}{3}{5}{0}}%for 23 position |
| 531 |
\Put@Direct(1368,606){\setsixringv{#2}{-23}{0}{2}{0}}%for 24 position |
| 532 |
\Put@Direct(1539,909){\setatombond{#2}{-24}{5}}% % for 25 |
| 533 |
\Put@Direct(1026,606){\setsixringv{#2}{-14}{5}{7}{0}}%for 20 position |
| 534 |
\end{sfpicture}}% %end of \steroidChain macro% |
| 535 |
% \end{macrocode} |
| 536 |
% \end{macro} |
| 537 |
% |
| 538 |
% \begin{macro}{\steroidChaindiMe} |
| 539 |
% \begin{macrocode} |
| 540 |
\def\steroidChaindiMe[#1]#2{% |
| 541 |
\steroidChain[#1]{#2;8B==H;9A==H;{10}B==CH$_{3}$;{13}B==CH$_{3}$;{14}A==H;% |
| 542 |
{17}SA==\raisebox{-4pt}{~H};{20}SA==H$_{3}$C;{20}SB==H}} |
| 543 |
% \end{macrocode} |
| 544 |
% \end{macro} |
| 545 |
% |
| 546 |
% Sometimes, |\cholestane[{Z}{Zb}]{}| may be used in place of |
| 547 |
% |\cholestane[{Zb}]{}| because the latter gives an erroneous |
| 548 |
% result. |
| 549 |
% |
| 550 |
% |
| 551 |
% \begin{macro}{\cholestaneAlpha} |
| 552 |
% \begin{macro}{\cholestaneBeta} |
| 553 |
% \begin{macro}{\cholestane} |
| 554 |
% \begin{macro}{\ergostaneAlpha} |
| 555 |
% \begin{macro}{\ergostaneBeta} |
| 556 |
% \begin{macro}{\ergostane} |
| 557 |
% \begin{macro}{\campestaneAlpha} |
| 558 |
% \begin{macro}{\campestaneBeta} |
| 559 |
% \begin{macro}{\campestane} |
| 560 |
% \begin{macro}{\poriferastaneAlpha} |
| 561 |
% \begin{macro}{\poriferastaneBeta} |
| 562 |
% \begin{macro}{\poriferastane} |
| 563 |
% \begin{macro}{\stigmastaneAlpha} |
| 564 |
% \begin{macro}{\stigmastaneBeta} |
| 565 |
% \begin{macro}{\stigmastane} |
| 566 |
% \begin{macrocode} |
| 567 |
% ***************************************************** |
| 568 |
% * Intermediate skeletons for drawing * |
| 569 |
% * cholestane, ergostane, campestane, poriferastane, * |
| 570 |
% * and stigmastane (the modern type) * |
| 571 |
% ***************************************************** |
| 572 |
\def\cholestaneAlpha{\@ifnextchar[{\@cholestaneAlpha}{\@cholestaneAlpha[]}} |
| 573 |
\def\@cholestaneAlpha[#1]#2{\steroidChaindiMe[#1]{#2;5A==H}} |
| 574 |
\def\cholestaneBeta{\@ifnextchar[{\@cholestaneBeta}{\@cholestaneBeta[]}} |
| 575 |
\def\@cholestaneBeta[#1]#2{\steroidChaindiMe[#1]{#2;5B==H}} |
| 576 |
\def\cholestane{\@ifnextchar[{\@cholestane}{\@cholestane[]}} |
| 577 |
\def\@cholestane[#1]#2{\steroidChaindiMe[#1]{#2}} |
| 578 |
\def\ergostaneAlpha{\@ifnextchar[{\@ergostaneAlpha}{\@ergostaneAlpha[]}} |
| 579 |
\def\@ergostaneAlpha[#1]#2{% |
| 580 |
\@cholestaneAlpha[#1]{#2;{24}SA==CH$_{3}$;{24}SB==H}} |
| 581 |
\def\ergostaneBeta{\@ifnextchar[{\@ergostaneBeta}{\@ergostaneBeta[]}} |
| 582 |
\def\@ergostaneBeta[#1]#2{% |
| 583 |
\@cholestaneBeta[#1]{#2;{24}SA==CH$_{3}$;{24}SB==H}} |
| 584 |
\def\ergostane{\@ifnextchar[{\@ergostane}{\@ergostane[]}} |
| 585 |
\def\@ergostane[#1]#2{% |
| 586 |
\@cholestane[#1]{#2;{24}SA==CH$_{3}$;{24}SB==H}} |
| 587 |
\def\campestaneAlpha{\@ifnextchar[{\@campestaneAlpha}{\@campestaneAlpha[]}} |
| 588 |
\def\@campestaneAlpha[#1]#2{% |
| 589 |
\@cholestaneAlpha[#1]{#2;{24}Su==\mbox{C\rlap{H$_{3}$}\kern20\unitlength};{24}Sd==~H}} |
| 590 |
\def\campestaneBeta{\@ifnextchar[{\@campestaneBeta}{\@campestaneBeta[]}} |
| 591 |
\def\@campestaneBeta[#1]#2{% |
| 592 |
\@cholestaneBeta[#1]{#2;{24}Su==\mbox{C\rlap{H$_{3}$}\kern20\unitlength};{24}Sd==~H}} |
| 593 |
\def\campestane{\@ifnextchar[{\@campestane}{\@campestane[]}} |
| 594 |
\def\@campestane[#1]#2{% |
| 595 |
\@cholestane[#1]{#2;{24}Su==\mbox{C\rlap{H$_{3}$}\kern20\unitlength};{24}Sd==~H}} |
| 596 |
\def\poriferastaneAlpha{\@ifnextchar[{\@poriferastaneAlpha}{\@poriferastaneAlpha[]}} |
| 597 |
\def\@poriferastaneAlpha[#1]#2{% |
| 598 |
\@cholestaneAlpha[#1]{#2;{24}SA==\dimethylene{}{1==(yl)};{24}SB==H}} |
| 599 |
\def\poriferastaneBeta{\@ifnextchar[{\@poriferastaneBeta}{\@poriferastaneBeta[]}} |
| 600 |
\def\@poriferastaneBeta[#1]#2{% |
| 601 |
\@cholestaneBeta[#1]{#2;{24}SA==\dimethylene{}{1==(yl)};{24}SB==H}} |
| 602 |
\def\poriferastane{\@ifnextchar[{\@poriferastane}{\@poriferastane[]}} |
| 603 |
\def\@poriferastane[#1]#2{% |
| 604 |
\@cholestane[#1]{#2;{24}SA==\dimethylene{}{1==(yl)};{24}SB==H}} |
| 605 |
\def\stigmastaneAlpha{\@ifnextchar[{\@stigmastaneAlpha}{\@stigmastaneAlpha[]}} |
| 606 |
\def\@stigmastaneAlpha[#1]#2{% |
| 607 |
\@cholestaneAlpha[#1]{#2;{24}Su==\dimethylene{}{1==(yl)};{24}Sd==H}} |
| 608 |
\def\stigmastaneBeta{\@ifnextchar[{\@stigmastaneBeta}{\@stigmastaneBeta[]}} |
| 609 |
\def\@stigmastaneBeta[#1]#2{% |
| 610 |
\@cholestaneBeta[#1]{#2;{24}Su==\dimethylene{}{1==(yl)};{24}Sd==H}} |
| 611 |
\def\stigmastane{\@ifnextchar[{\@stigmastane}{\@stigmastane[]}} |
| 612 |
\def\@stigmastane[#1]#2{% |
| 613 |
\@cholestane[#1]{#2;{24}Su==\dimethylene{}{1==(yl)};{24}Sd==H}} |
| 614 |
% \end{macrocode} |
| 615 |
% \end{macro} |
| 616 |
% \end{macro} |
| 617 |
% \end{macro} |
| 618 |
% \end{macro} |
| 619 |
% \end{macro} |
| 620 |
% \end{macro} |
| 621 |
% \end{macro} |
| 622 |
% \end{macro} |
| 623 |
% \end{macro} |
| 624 |
% \end{macro} |
| 625 |
% \end{macro} |
| 626 |
% \end{macro} |
| 627 |
% \end{macro} |
| 628 |
% \end{macro} |
| 629 |
% \end{macro} |
| 630 |
% |
| 631 |
% \section{Macros for Steroids with Short Chains (Modern Types)} |
| 632 |
% |
| 633 |
% |
| 634 |
% \begin{macro}{\steroidShortChain} |
| 635 |
% \begin{macrocode} |
| 636 |
% ****************************************************************** |
| 637 |
% * Raw Skeleton for drawing short side chains of the modern style * |
| 638 |
% ****************************************************************** |
| 639 |
\def\steroidShortChain{\@ifnextchar[{\@steroidShortChain[@}{\@steroidShortChain[Z]}} |
| 640 |
\def\@steroidShortChain[#1]#2{% |
| 641 |
\@reset@ylsw\reset@@yl |
| 642 |
\yl@steroidposition{#2}% |
| 643 |
\ylposition{#2}{-21}{0}{3}{0}%for 22 and 23 positions |
| 644 |
\if@ylsw \ifx\@@ylii\empty |
| 645 |
\def\@@ylii{-1026}\def\@@yli{-606}\fi |
| 646 |
\else |
| 647 |
\ylposition{#2}{-14}{5}{7}{0}%for 20 position |
| 648 |
\fi |
| 649 |
\if@ylsw |
| 650 |
\ifx\@@ylii\empty |
| 651 |
\def\@@ylii{-1026}\def\@@yli{-606}\fi%%set 20 position |
| 652 |
\else |
| 653 |
\ylposition{#2}{-23}{0}{2}{0}%for 24 position |
| 654 |
\fi |
| 655 |
\if@ylsw\ifx\@@ylii\empty |
| 656 |
\def\@@ylii{-1368}\def\@@yli{-606}\fi%%set 24 positions |
| 657 |
\fi |
| 658 |
\if@ylsw |
| 659 |
\yl@shiftii=\@ylii |
| 660 |
\ifx\@@ylii\empty\else |
| 661 |
\advance\yl@shiftii\@@ylii\fi |
| 662 |
\yl@shifti=\@yli |
| 663 |
\ifx\@@yli\empty\else |
| 664 |
\advance\yl@shifti\@@yli\fi |
| 665 |
\advance\yl@shiftii\yl@xdiff |
| 666 |
\advance\yl@shifti\yl@ydiff |
| 667 |
\begin{sfpicture}(0,0)(-\yl@shiftii,-\yl@shifti)% |
| 668 |
\reset@yl@xydiff%1999/1/6 by S. Fujita |
| 669 |
\else |
| 670 |
\begin{sfpicture}(2000,1500)(-\shiftii,-\shifti)% |
| 671 |
\iforigpt \typeout{command `steroidChain' is based on `steroid'.}\fi% |
| 672 |
\fi |
| 673 |
\Put@Direct(0,0){\@steroidskeleton{#1}{#2}}% |
| 674 |
\Put@Line(855,709)(0,1){200}% %bond 17-20 |
| 675 |
\Put@Line(1026,1012)(-5,-3){171}% %bond 22-20 |
| 676 |
\Put@Line(1026,1012)(5,-3){171}% %bond 22-23 |
| 677 |
\Put@Line(1197,909)(5,3){171}% %bond 23-24 |
| 678 |
\@tfor\member:=#1\do{% |
| 679 |
\expandafter\twoCH@R\member//\relax% |
| 680 |
\if\@tmpa Z\relax% |
| 681 |
\ifx\@tmpb\empty%no action |
| 682 |
\else\if\@tmpb a% |
| 683 |
\Put@Line(888,735)(0,1){148}% %double bond 17-20 |
| 684 |
\else\if\@tmpb b% |
| 685 |
\Put@Line(1020,970)(-5,-3){126}% %double bond 22-20 |
| 686 |
\else\if\@tmpb c% |
| 687 |
\Put@Line(1032,970)(5,-3){126}% %double bond 22-23 |
| 688 |
\else\if\@tmpb d% |
| 689 |
\Put@Line(1203,952)(5,3){126}% %double bond 23-24 |
| 690 |
\fi\fi\fi\fi\fi\fi}% |
| 691 |
\Put@Direct(1026,606){\setsixringv{#2}{-21}{0}{2}{0}}%for 22 position |
| 692 |
\Put@Direct(1192,909){\setsixringv{#2}{-19}{3}{5}{0}}%for 23 position |
| 693 |
\Put@Direct(1368,606){\setsixringv{#2}{-23}{0}{2}{0}}%for 24 position |
| 694 |
%\Put@Direct(1539,909){\setatombond{#2}{-24}{5}}% % for 25 |
| 695 |
\Put@Direct(1026,606){\setsixringv{#2}{-14}{5}{7}{0}}%for 20 position |
| 696 |
\end{sfpicture}}% %end of \steroidShortChain macro% |
| 697 |
% \end{macrocode} |
| 698 |
% \end{macro} |
| 699 |
% |
| 700 |
% |
| 701 |
% \begin{macro}{\steroidShortChainMe} |
| 702 |
% \begin{macrocode} |
| 703 |
\def\steroidShortChainMe[#1]#2{% |
| 704 |
\steroidShortChain[#1]{#2;8B==H;9A==H;{10}B==CH$_{3}$;{13}B==CH$_{3}$;{14}A==H;% |
| 705 |
{17}SA==\raisebox{-4pt}{~H};{20}SA==H$_{3}$C;{20}SB==H}} |
| 706 |
% \end{macrocode} |
| 707 |
% \end{macro} |
| 708 |
% |
| 709 |
% |
| 710 |
% \begin{macro}{\cholaneAlpha} |
| 711 |
% \begin{macro}{\cholaneBeta} |
| 712 |
% \begin{macro}{\cholane} |
| 713 |
% \begin{macrocode} |
| 714 |
% ***************************************************************** |
| 715 |
% * Intermediate skeletons for drawing choranes (the modern type) * |
| 716 |
% ***************************************************************** |
| 717 |
\def\cholaneAlpha{\@ifnextchar[{\@cholaneAlpha}{\@cholaneAlpha[]}} |
| 718 |
\def\@cholaneAlpha[#1]#2{\steroidShortChainMe[#1]{#2;5A==H}} |
| 719 |
\def\cholaneBeta{\@ifnextchar[{\@cholaneBeta}{\@cholaneBeta[]}} |
| 720 |
\def\@cholaneBeta[#1]#2{\steroidShortChainMe[#1]{#2;5B==H}} |
| 721 |
\def\cholane{\@ifnextchar[{\@cholane}{\@cholane[]}} |
| 722 |
\def\@cholane[#1]#2{\steroidShortChainMe[#1]{#2}} |
| 723 |
% \end{macrocode} |
| 724 |
% \end{macro} |
| 725 |
% \end{macro} |
| 726 |
% \end{macro} |
| 727 |
% |
| 728 |
% \section{Macros for Steroids with Short Chains (Old Types)} |
| 729 |
% |
| 730 |
% \begin{macro}{\steroidshortchain} |
| 731 |
% \begin{macrocode} |
| 732 |
% ****************************************************** |
| 733 |
% * Raw skeletons drawing side chains of the old style * |
| 734 |
% ****************************************************** |
| 735 |
\def\steroidshortchain{\@ifnextchar[{\@steroidshortchain[@}{\@steroidshortchain[Z]}} |
| 736 |
\def\@steroidshortchain[#1]#2{% |
| 737 |
\@reset@ylsw\reset@@yl |
| 738 |
\yl@steroidposition{#2}% |
| 739 |
\ylposition{#2}{-21}{0}{3}{0}%for 22 and 23 positions |
| 740 |
\if@ylsw \ifx\@@ylii\empty |
| 741 |
\def\@@ylii{-1026}\def\@@yli{-606}\fi |
| 742 |
\else |
| 743 |
\ylposition{#2}{-14}{5}{7}{0}%for 20 position |
| 744 |
\fi |
| 745 |
\if@ylsw\ifx\@@ylii\empty |
| 746 |
\def\@@ylii{-1026}\def\@@yli{-606}\fi\else |
| 747 |
\ylposition{#2}{-20}{3}{5}{0}%for 24 position |
| 748 |
\fi |
| 749 |
\if@ylsw\ifx\@@ylii\empty |
| 750 |
\def\@@ylii{-1397}\def\@@yli{-709}\fi\fi |
| 751 |
\if@ylsw |
| 752 |
\yl@shiftii=\@ylii |
| 753 |
\ifx\@@ylii\empty\else |
| 754 |
\advance\yl@shiftii\@@ylii\fi |
| 755 |
\yl@shifti=\@yli |
| 756 |
\ifx\@@yli\empty\else |
| 757 |
\advance\yl@shifti\@@yli\fi |
| 758 |
\advance\yl@shiftii\yl@xdiff |
| 759 |
\advance\yl@shifti\yl@ydiff |
| 760 |
\begin{sfpicture}(0,0)(-\yl@shiftii,-\yl@shifti)% |
| 761 |
\reset@yl@xydiff%1999/1/6 by S. Fujita |
| 762 |
\else |
| 763 |
\begin{sfpicture}(1850,1500)(-\shiftii,-\shifti)% |
| 764 |
\iforigpt \typeout{command `steroidshortchain' is based on `steroid'.}\fi% |
| 765 |
\fi |
| 766 |
\Put@Direct(0,0){\@steroidskeleton{#1}{#2}}% |
| 767 |
\Put@Line(855,709)(0,1){200}% %bond 17-20 |
| 768 |
\Put@Line(1026,1012)(-5,-3){171}% %bond 22-20 |
| 769 |
\Put@Line(1026,1012)(5,-3){171}% %bond 22-23 |
| 770 |
\Put@Line(1197,709)(0,1){200}% %bond 24-23 |
| 771 |
\@tfor\member:=#1\do{% |
| 772 |
\expandafter\twoCH@R\member//\relax% |
| 773 |
\if\@tmpa Z\relax% |
| 774 |
\ifx\@tmpb\empty%no action |
| 775 |
\else\if\@tmpb a% |
| 776 |
\Put@Line(888,735)(0,1){148}% %double bond 17-20 |
| 777 |
\else\if\@tmpb b% |
| 778 |
\Put@Line(1020,970)(-5,-3){126}% %double bond 22-20 |
| 779 |
\else\if\@tmpb c% |
| 780 |
\Put@Line(1032,970)(5,-3){126}% %double bond 22-23 |
| 781 |
\else\if\@tmpb d% |
| 782 |
\Put@Line(1164,735)(0,1){148}% %double bond 24-23 |
| 783 |
\fi\fi\fi\fi\fi\fi}% |
| 784 |
\Put@Direct(1026,606){\setsixringv{#2}{-21}{0}{3}{0}}%for 22 and 23 positions |
| 785 |
\Put@Direct(1026,606){\setsixringv{#2}{-14}{5}{7}{0}}%for 20 position |
| 786 |
\Put@Direct(1197,709){\setsixringv{#2}{-20}{3}{5}{0}}%for 24 position |
| 787 |
\end{sfpicture}}% %end of \steroidshortchain macro% |
| 788 |
% \end{macrocode} |
| 789 |
% \end{macro} |
| 790 |
% |
| 791 |
% \begin{macro}{\steroidshortchainMe} |
| 792 |
% \begin{macro}{\cholanealpha} |
| 793 |
% \begin{macro}{\cholanebeta} |
| 794 |
% \begin{macro}{\cholanE} |
| 795 |
% \begin{macrocode} |
| 796 |
% *********** |
| 797 |
% * cholane * |
| 798 |
% *********** |
| 799 |
\def\steroidshortchainMe[#1]#2{% |
| 800 |
\steroidshortchain[#1]{#2;8B==H;9A==H;{10}B==CH$_{3}$;{13}B==CH$_{3}$;{14}A==H;% |
| 801 |
{17}SA==\raisebox{-4pt}{~H};{20}SA==H$_{3}$C;{20}SB==H}} |
| 802 |
\def\cholanealpha{\@ifnextchar[{\@cholanealpha}{\@cholanealpha[]}} |
| 803 |
\def\@cholanealpha[#1]#2{\steroidshortchainMe[#1]{#2;5A==H}} |
| 804 |
\def\cholanebeta{\@ifnextchar[{\@cholanebeta}{\@cholanebeta[]}} |
| 805 |
\def\@cholanebeta[#1]#2{\steroidshortchainMe[#1]{#2;5B==H}} |
| 806 |
\def\cholanE{\@ifnextchar[{\@cholanE}{\@cholanE[]}} |
| 807 |
\def\@cholanE[#1]#2{\steroidshortchainMe[#1]{#2}} |
| 808 |
% \end{macrocode} |
| 809 |
% \end{macro} |
| 810 |
% \end{macro} |
| 811 |
% \end{macro} |
| 812 |
% \end{macro} |
| 813 |
% |
| 814 |
% \section{Macros for Steroids with Chains (Old Types)} |
| 815 |
% |
| 816 |
% For drawing steroids with side chains of old expressions, the command |\steroidchain| |
| 817 |
% defined in {\sf carom.sty} is used. |
| 818 |
% |
| 819 |
% \begin{macro}{\steroidchaindiMe} |
| 820 |
% \begin{macro}{\cholestanealpha} |
| 821 |
% \begin{macro}{\cholestanebeta} |
| 822 |
% \begin{macro}{\cholestanE} |
| 823 |
% \begin{macro}{\ergostanealpha} |
| 824 |
% \begin{macro}{\ergostanebeta} |
| 825 |
% \begin{macro}{\ergostanE} |
| 826 |
% \begin{macro}{\campestanealpha} |
| 827 |
% \begin{macro}{\campestanebeta} |
| 828 |
% \begin{macro}{\campestanE} |
| 829 |
% \begin{macrocode} |
| 830 |
% ************************************************ |
| 831 |
% * cholestane, ergostane, campestane (old type) * |
| 832 |
% ************************************************ |
| 833 |
\def\steroidchaindiMe[#1]#2{% |
| 834 |
\steroidchain[#1]{#2;8B==H;9A==H;{10}B==CH$_{3}$;{13}B==CH$_{3}$;{14}A==H;% |
| 835 |
{17}SA==\raisebox{-4pt}{~H};{20}SA==H$_{3}$C;{20}SB==H}} |
| 836 |
\def\cholestanealpha{\@ifnextchar[{\@cholestanealpha}{\@cholestanealpha[]}} |
| 837 |
\def\@cholestanealpha[#1]#2{\steroidchaindiMe[#1]{#2;5A==H}} |
| 838 |
\def\cholestanebeta{\@ifnextchar[{\@cholestanebeta}{\@cholestanebeta[]}} |
| 839 |
\def\@cholestanebeta[#1]#2{\steroidchaindiMe[#1]{#2;5B==H}} |
| 840 |
\def\cholestanE{\@ifnextchar[{\@cholestanE}{\@cholestanE[]}} |
| 841 |
\def\@cholestanE[#1]#2{\steroidchaindiMe[#1]{#2}} |
| 842 |
\def\ergostanealpha{\@ifnextchar[{\@ergostanealpha}{\@ergostanealpha[]}} |
| 843 |
\def\@ergostanealpha[#1]#2{% |
| 844 |
\@cholestanealpha[#1]{#2;{24}Su==CH$_{3}$;{24}Sd==H}} |
| 845 |
\def\ergostanebeta{\@ifnextchar[{\@ergostanebeta}{\@ergostanebeta[]}} |
| 846 |
\def\@ergostanebeta[#1]#2{% |
| 847 |
\@cholestanebeta[#1]{#2;{24}Su==CH$_{3}$;{24}Sd==H}} |
| 848 |
\def\ergostanE{\@ifnextchar[{\@ergostanE}{\@ergostanE[]}} |
| 849 |
\def\@ergostanE[#1]#2{% |
| 850 |
\@cholestanE[#1]{#2;{24}Su==CH$_{3}$;{24}Sd==H}} |
| 851 |
\def\campestanealpha{\@ifnextchar[{\@campestanealpha}{\@campestanealpha[]}} |
| 852 |
\def\@campestanealpha[#1]#2{% |
| 853 |
\@cholestanealpha[#1]{#2;{24}Sd==\mbox{C\rlap{H$_{3}$}\kern20\unitlength};{24}Su==~H}} |
| 854 |
\def\campestanebeta{\@ifnextchar[{\@campestanebeta}{\@campestanebeta[]}} |
| 855 |
\def\@campestanebeta[#1]#2{% |
| 856 |
\@cholestanebeta[#1]{#2;{24}Sd==\mbox{C\rlap{H$_{3}$}\kern20\unitlength};{24}Su==~H}} |
| 857 |
\def\campestanE{\@ifnextchar[{\@campestanE}{\@campestanE[]}} |
| 858 |
\def\@campestanE[#1]#2{% |
| 859 |
\@cholestanE[#1]{#2;{24}Sd==\mbox{C\rlap{H$_{3}$}\kern20\unitlength};{24}Su==~H}} |
| 860 |
% \end{macrocode} |
| 861 |
% \end{macro} |
| 862 |
% \end{macro} |
| 863 |
% \end{macro} |
| 864 |
% \end{macro} |
| 865 |
% \end{macro} |
| 866 |
% \end{macro} |
| 867 |
% \end{macro} |
| 868 |
% \end{macro} |
| 869 |
% \end{macro} |
| 870 |
% \end{macro} |
| 871 |
% |
| 872 |
% \begin{macro}{\poriferastanealpha} |
| 873 |
% \begin{macro}{\poriferastanebeta} |
| 874 |
% \begin{macro}{\poriferastanE} |
| 875 |
% \begin{macro}{\stigmastanealpha} |
| 876 |
% \begin{macro}{\stigmastanebeta} |
| 877 |
% \begin{macro}{\stigmastanE} |
| 878 |
% \begin{macrocode} |
| 879 |
% ***************************************** |
| 880 |
% * poriferastane, stigmastane (old type) * |
| 881 |
% ***************************************** |
| 882 |
\def\poriferastanealpha{\@ifnextchar[{\@poriferastanealpha}{\@poriferastanealpha[]}} |
| 883 |
\def\@poriferastanealpha[#1]#2{% |
| 884 |
\@cholestanealpha[#1]{#2;{24}Su==\dimethylenei{}{1==(yl)};{24}Sd==H}} |
| 885 |
\def\poriferastanebeta{\@ifnextchar[{\@poriferastanebeta}{\@poriferastanebeta[]}} |
| 886 |
\def\@poriferastanebeta[#1]#2{% |
| 887 |
\@cholestanebeta[#1]{#2;{24}Su==\dimethylenei{}{1==(yl)};{24}Sd==H}} |
| 888 |
\def\poriferastanE{\@ifnextchar[{\@poriferastanE}{\@poriferastanE[]}} |
| 889 |
\def\@poriferastanE[#1]#2{% |
| 890 |
\@cholestanE[#1]{#2;{24}Su==\dimethylenei{}{1==(yl)};{24}Sd==H}} |
| 891 |
\def\stigmastanealpha{\@ifnextchar[{\@stigmastanealpha}{\@stigmastanealpha[]}} |
| 892 |
\def\@stigmastanealpha[#1]#2{% |
| 893 |
\@cholestanealpha[#1]{#2;{24}SA==\dimethylenei{}{1==(yl)};{24}SB==H}} |
| 894 |
\def\stigmastanebeta{\@ifnextchar[{\@stigmastanebeta}{\@stigmastanebeta[]}} |
| 895 |
\def\@stigmastanebeta[#1]#2{% |
| 896 |
\@cholestanebeta[#1]{#2;{24}SA==\dimethylenei{}{1==(yl)};{24}SB==H}} |
| 897 |
\def\stigmastanE{\@ifnextchar[{\@stigmastanE}{\@stigmastanE[]}} |
| 898 |
\def\@stigmastanE[#1]#2{% |
| 899 |
\@cholestanE[#1]{#2;{24}SA==\dimethylenei{}{1==(yl)};{24}SB==H}} |
| 900 |
% \end{macrocode} |
| 901 |
% \end{macro} |
| 902 |
% \end{macro} |
| 903 |
% \end{macro} |
| 904 |
% \end{macro} |
| 905 |
% \end{macro} |
| 906 |
% \end{macro} |
| 907 |
% |
| 908 |
% \section{Macros for Spirostans} |
| 909 |
% |
| 910 |
% After the macro |\steroidspiro| is defined as a basic macro |
| 911 |
% several macros for drawing spirostans are defined. |
| 912 |
% |
| 913 |
% \begin{macro}{\steroidspiro} |
| 914 |
% \begin{macrocode} |
| 915 |
% *************************************** |
| 916 |
% * Raw skeleton for drawing spirostans * |
| 917 |
% *************************************** |
| 918 |
\def\steroidspiro{\@ifnextchar[{\@steroidspiro[@}{\@steroidspiro[Z]}} |
| 919 |
\def\@steroidspiro[#1]#2{% |
| 920 |
\@reset@ylsw\reset@@yl |
| 921 |
\yl@steroidposition{#2}% |
| 922 |
\ylposition{#2}{-20}{1}{3}{0}%for 22 position |
| 923 |
\if@ylsw \ifx\@@ylii\empty |
| 924 |
\def\@@ylii{-1026}\def\@@yli{-606}\fi |
| 925 |
\else |
| 926 |
\ylposition{#2}{-14}{5}{7}{0}%for 20 position |
| 927 |
\fi |
| 928 |
\if@ylsw |
| 929 |
\ifx\@@ylii\empty |
| 930 |
\def\@@ylii{-1026}\def\@@yli{-606}\fi%%set 20 position |
| 931 |
\else |
| 932 |
\ylposition{#2}{-22}{0}{2}{0}%for 23 position |
| 933 |
\fi |
| 934 |
\if@ylsw\ifx\@@ylii\empty |
| 935 |
\def\@@ylii{-1368}\def\@@yli{-400}\fi%%set 23 position |
| 936 |
\else |
| 937 |
\ylatombondposition{#2}{-23}{4}% % for 24 |
| 938 |
\fi |
| 939 |
\if@ylsw\ifx\@@ylii\empty |
| 940 |
\def\@@ylii{-1539}\def\@@yli{-909}\fi%%set 24 position |
| 941 |
\else |
| 942 |
\ylatombondposition{#2}{-24}{4}% % for 25 |
| 943 |
\fi |
| 944 |
\if@ylsw\ifx\@@ylii\empty |
| 945 |
\def\@@ylii{-1539}\def\@@yli{-1109}\fi%%set 25 position |
| 946 |
\else |
| 947 |
\ylatombondposition{#2}{-25}{4}% % for 26 |
| 948 |
\fi |
| 949 |
\if@ylsw\ifx\@@ylii\empty |
| 950 |
\def\@@ylii{-1368}\def\@@yli{-1212}\fi%%set 26 position |
| 951 |
\fi |
| 952 |
\if@ylsw |
| 953 |
\yl@shiftii=\@ylii |
| 954 |
\ifx\@@ylii\empty\else |
| 955 |
\advance\yl@shiftii\@@ylii\fi |
| 956 |
\yl@shifti=\@yli |
| 957 |
\ifx\@@yli\empty\else |
| 958 |
\advance\yl@shifti\@@yli\fi |
| 959 |
\advance\yl@shiftii\yl@xdiff |
| 960 |
\advance\yl@shifti\yl@ydiff |
| 961 |
\begin{sfpicture}(0,0)(-\yl@shiftii,-\yl@shifti)% |
| 962 |
\reset@yl@xydiff%1999/1/6 by S. Fujita |
| 963 |
\else |
| 964 |
\begin{sfpicture}(2300,1500)(-\shiftii,-\shifti)% |
| 965 |
\iforigpt \typeout{command `steroidspiro' is based on `steroid'.}\fi% |
| 966 |
\fi |
| 967 |
\Put@Direct(0,0){\@steroidskeleton{#1}{#2}}% |
| 968 |
\Put@Line(855,709)(0,1){200}% %bond 17-20 |
| 969 |
\Put@Line(855,909)(1,0){342}% %bond 20-22 |
| 970 |
\Put@Line(1197,909)(0,-1){140}% %bond 22-O (down) |
| 971 |
\Put@Line(1026,606)(5,3){120}% %bond 16-O |
| 972 |
\Put@Direct(1197,709){\makebox(0,0){O}}% |
| 973 |
\dotorline(1197,909)(0,1){140}/(1197,909)(1197,1049)% 22-O (up) |
| 974 |
{\thicklines |
| 975 |
\Put@Line(1197,909)(5,-3){171}% %bond 22-23 |
| 976 |
}% |
| 977 |
\Put@Line(1539,909)(-5,-3){171}% %bond 24-23 |
| 978 |
\Put@Line(1539,909)(0,1){200}% %bond 24-25 |
| 979 |
\Put@Line(1539,1109)(-5,3){171}% %bond 25-26 |
| 980 |
\Put@Line(1368,1212)(-5,-3){120}% %bond 26-O (down) |
| 981 |
\Put@Direct(1197,1109){\makebox(0,0){O}}% |
| 982 |
\@tfor\member:=#1\do{% |
| 983 |
\expandafter\twoCH@R\member//\relax% |
| 984 |
\if\@tmpa Z\relax% |
| 985 |
\ifx\@tmpb\empty%no action |
| 986 |
\else\if\@tmpb a% |
| 987 |
\Put@Line(888,735)(0,1){148}% %double bond 17-20 |
| 988 |
\else\if\@tmpb b% |
| 989 |
\Put@Line(888,880)(1,0){276}% %double bond 20-22 |
| 990 |
\else\if\@tmpb c% |
| 991 |
\Put@Line(1164,880)(0,-1){116}% %double bond 22-O |
| 992 |
\else\if\@tmpb d% |
| 993 |
\Put@Line(1039,650)(5,3){100}% %double bond 16-O |
| 994 |
\else\if\@tmpb e% |
| 995 |
\Put@Line(1240,930)(5,-3){126}% %double bond 22-23 |
| 996 |
\else\if\@tmpb f% |
| 997 |
\Put@Line(1366,848)(5,3){140}% %double bond 23-24 |
| 998 |
\else\if\@tmpb g% |
| 999 |
\Put@Line(1504,930)(0,1){148}% %double bond 24-25 |
| 1000 |
\else\if\@tmpb h% |
| 1001 |
\Put@Line(1366,1166)(5,-3){140}% %double bond 26-25 |
| 1002 |
\else\if\@tmpb i% |
| 1003 |
\Put@Line(1366,1166)(-5,-3){110}% %double bond 26-O |
| 1004 |
\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi}% |
| 1005 |
\Put@Direct(1026,606){\setsixringv{#2}{-14}{5}{7}{0}}%for 20 position |
| 1006 |
\Put@Direct(1026,606){\setsixringv{#2}{-112}{4}{6}{0}}%for 17 position (117 as Exception) |
| 1007 |
\Put@Direct(1368,806){\setsixringv{#2}{-25}{0}{2}{0}}%for 26 |
| 1008 |
\Put@Direct(1368,806){\setsixringv{#2}{-23}{1}{3}{0}}%for 25 |
| 1009 |
\Put@Direct(1368,806){\setsixringv{#2}{-21}{2}{4}{0}}%for 24 |
| 1010 |
\Put@Direct(1368,806){\setsixringv{#2}{-19}{3}{5}{0}}%for 23 |
| 1011 |
\end{sfpicture}}% %end of \steroidspiro macro% |
| 1012 |
% \end{macrocode} |
| 1013 |
% \end{macro} |
| 1014 |
% |
| 1015 |
% \begin{macro}{\steroidspirotriMe} |
| 1016 |
% \begin{macro}{\spirostanalpha} |
| 1017 |
% \begin{macro}{\spirostanbeta} |
| 1018 |
% \begin{macro}{\spirostan} |
| 1019 |
% \begin{macro}{\spirostannor} |
| 1020 |
% \begin{macrocode} |
| 1021 |
% ************** |
| 1022 |
% * spirostans * |
| 1023 |
% ************** |
| 1024 |
\def\steroidspirotriMe[#1]#2{% |
| 1025 |
\steroidspiro[#1]{#2;8B==H;9A==H;{10}B==CH$_{3}$;{13}B==CH$_{3}$;{14}A==H;% |
| 1026 |
{117}FA==H;{20}A==H$_{3}$C;{16}FA==H}} |
| 1027 |
\def\spirostanalpha{\@ifnextchar[{\@spirostanalpha}{\@spirostanalpha[]}} |
| 1028 |
\def\@spirostanalpha[#1]#2{\steroidspirotriMe[#1]{#2;5A==H;{25}B==CH$_{3}$}} |
| 1029 |
\def\spirostanbeta{\@ifnextchar[{\@spirostanbeta}{\@spirostanbeta[]}} |
| 1030 |
\def\@spirostanbeta[#1]#2{\steroidspirotriMe[#1]{#2;5B==H;{25}B==CH$_{3}$}} |
| 1031 |
\def\spirostan{\@ifnextchar[{\@spirostan}{\@spirostan[]}} |
| 1032 |
\def\@spirostan[#1]#2{\steroidspirotriMe[#1]{#2;{{25}}==\null}} |
| 1033 |
\def\spirostannor{\@ifnextchar[{\@spirostannor}{\@spirostannor[]}} |
| 1034 |
\def\@spirostannor[#1]#2{\steroidspirotriMe[#1]{#2}} |
| 1035 |
% \end{macrocode} |
| 1036 |
% \end{macro} |
| 1037 |
% \end{macro} |
| 1038 |
% \end{macro} |
| 1039 |
% \end{macro} |
| 1040 |
% \end{macro} |
| 1041 |
% |
| 1042 |
% \section{Macros for Furostans} |
| 1043 |
% |
| 1044 |
% After the macro |\steroidfuros| is defined as a basic macro, |
| 1045 |
% several macros for drawing furostans are defined. |
| 1046 |
% |
| 1047 |
% \begin{macro}{\steroidfuros} |
| 1048 |
% \begin{macrocode} |
| 1049 |
% ************************************** |
| 1050 |
% * Raw skeleton for drawing furostans * |
| 1051 |
% ************************************** |
| 1052 |
\def\steroidfuros{\@ifnextchar[{\@steroidfuros[@}{\@steroidfuros[Z]}} |
| 1053 |
\def\@steroidfuros[#1]#2{% |
| 1054 |
\@reset@ylsw\reset@@yl |
| 1055 |
\yl@steroidposition{#2}% |
| 1056 |
\ylposition{#2}{-20}{1}{3}{0}%for 22 position |
| 1057 |
\if@ylsw \ifx\@@ylii\empty |
| 1058 |
\def\@@ylii{-1026}\def\@@yli{-606}\fi |
| 1059 |
\else |
| 1060 |
\ylposition{#2}{-14}{5}{7}{0}%for 20 position |
| 1061 |
\fi |
| 1062 |
\if@ylsw |
| 1063 |
\ifx\@@ylii\empty |
| 1064 |
\def\@@ylii{-1026}\def\@@yli{-606}\fi%%set 20 position |
| 1065 |
\else |
| 1066 |
\ylposition{#2}{-22}{0}{2}{0}%for 23 position |
| 1067 |
\fi |
| 1068 |
\if@ylsw\ifx\@@ylii\empty |
| 1069 |
\def\@@ylii{-1368}\def\@@yli{-606}\fi%%set 23 position |
| 1070 |
\else |
| 1071 |
\ylatombondposition{#2}{-23}{4}% % for 24 |
| 1072 |
\fi |
| 1073 |
\if@ylsw\ifx\@@ylii\empty |
| 1074 |
\def\@@ylii{-1539}\def\@@yli{-909}\fi%%set 24 position |
| 1075 |
\else |
| 1076 |
\ylatombondposition{#2}{-24}{4}% % for 25 |
| 1077 |
\fi |
| 1078 |
\if@ylsw\ifx\@@ylii\empty |
| 1079 |
\def\@@ylii{-1710}\def\@@yli{-1012}\fi%%set 25 position |
| 1080 |
\else |
| 1081 |
\ylatombondposition{#2}{-25}{4}% % for 26 |
| 1082 |
\fi |
| 1083 |
\if@ylsw\ifx\@@ylii\empty |
| 1084 |
\def\@@ylii{-1710}\def\@@yli{-1212}\fi%%set 26 position |
| 1085 |
\else |
| 1086 |
\ylatombondposition{#2}{-26}{4}% % for 27 |
| 1087 |
\fi |
| 1088 |
\if@ylsw\ifx\@@ylii\empty |
| 1089 |
\def\@@ylii{-1881}\def\@@yli{-909}\fi%%set 27 position |
| 1090 |
\fi |
| 1091 |
\if@ylsw |
| 1092 |
\yl@shiftii=\@ylii |
| 1093 |
\ifx\@@ylii\empty\else |
| 1094 |
\advance\yl@shiftii\@@ylii\fi |
| 1095 |
\yl@shifti=\@yli |
| 1096 |
\ifx\@@yli\empty\else |
| 1097 |
\advance\yl@shifti\@@yli\fi |
| 1098 |
\advance\yl@shiftii\yl@xdiff |
| 1099 |
\advance\yl@shifti\yl@ydiff |
| 1100 |
\begin{sfpicture}(0,0)(-\yl@shiftii,-\yl@shifti)% |
| 1101 |
\reset@yl@xydiff%1999/1/6 by S. Fujita |
| 1102 |
\else |
| 1103 |
\begin{sfpicture}(2300,1500)(-\shiftii,-\shifti)% |
| 1104 |
\iforigpt \typeout{command `steroidfuros' is based on `steroid'.}\fi% |
| 1105 |
\fi |
| 1106 |
\Put@Direct(0,0){\@steroidskeleton{#1}{#2}}% |
| 1107 |
\Put@Line(855,709)(0,1){200}% %bond 17-20 |
| 1108 |
\Put@Line(855,909)(1,0){342}% %bond 20-22 |
| 1109 |
\Put@Line(1197,909)(0,-1){140}% %bond 22-O (down) |
| 1110 |
\Put@Line(1026,606)(5,3){120}% %bond 16-O |
| 1111 |
\Put@Direct(1197,709){\makebox(0,0){O}}% |
| 1112 |
\Put@Line(1197,909)(5,3){171}% %bond 22-23 |
| 1113 |
\Put@Line(1368,1012)(5,-3){171}% %bond 23-24 |
| 1114 |
\Put@Line(1539,909)(5,3){171}% %bond 24-25 |
| 1115 |
\Put@Line(1710,1012)(5,-3){171}% %bond 25-27 |
| 1116 |
\Put@Line(1710,1012)(0,1){200}% %bond 25-27 |
| 1117 |
\@tfor\member:=#1\do{% |
| 1118 |
\expandafter\twoCH@R\member//\relax% |
| 1119 |
\if\@tmpa Z\relax% |
| 1120 |
\ifx\@tmpb\empty%no action |
| 1121 |
\else\if\@tmpb a% |
| 1122 |
\Put@Line(888,735)(0,1){148}% %double bond 17-20 |
| 1123 |
\else\if\@tmpb b% |
| 1124 |
\Put@Line(888,880)(1,0){276}% %double bond 20-22 |
| 1125 |
\else\if\@tmpb c% |
| 1126 |
\Put@Line(1164,880)(0,-1){116}% %double bond 22-O |
| 1127 |
\else\if\@tmpb d% |
| 1128 |
\Put@Line(1039,650)(5,3){100}% %double bond 16-O |
| 1129 |
\else\if\@tmpb e% |
| 1130 |
\Put@Line(1240,900)(5,3){126}% %double bond 22-23 |
| 1131 |
\else\if\@tmpb f% |
| 1132 |
\Put@Line(1410,1022)(5,-3){126}% %double bond 23-24 |
| 1133 |
\else\if\@tmpb g% |
| 1134 |
\Put@Line(1582,900)(5,3){126}% %double bond 24-25 |
| 1135 |
\else\if\@tmpb h% |
| 1136 |
\Put@Line(1740,1035)(0,1){150}% %double bond 25-26 |
| 1137 |
\else\if\@tmpb i% |
| 1138 |
\Put@Line(1752,1022)(5,-3){126}% %double bond 25-27 |
| 1139 |
\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi}% |
| 1140 |
\Put@Direct(1026,606){\setsixringv{#2}{-14}{5}{7}{0}}%for 20 position |
| 1141 |
\Put@Direct(1026,606){\setsixringv{#2}{-112}{4}{6}{0}}%for 17 position (117 as Exception) |
| 1142 |
\Put@Direct(1197,503){\setsixringv{#2}{-21}{0}{2}{0}}%for 22 |
| 1143 |
\Put@Direct(1368,606){\setsixringv{#2}{-22}{0}{2}{0}}%for 23 |
| 1144 |
\Put@Direct(1539,909){\setsixringv{#2}{-20}{3}{5}{0}}%for 24 |
| 1145 |
\Put@Direct(1710,1012){\setatombond{#2}{-24}{3}}% % for 25 |
| 1146 |
\Put@Direct(1539,909){\setsixringv{#2}{-24}{1}{3}{0}}%for 26 |
| 1147 |
\Put@Direct(1710,606){\setsixringv{#2}{-25}{1}{3}{0}}%for 27 |
| 1148 |
\end{sfpicture}}% %end of \steroidfuros macro% |
| 1149 |
% \end{macrocode} |
| 1150 |
% \end{macro} |
| 1151 |
% |
| 1152 |
% \begin{macro}{\steroidfurostriMe} |
| 1153 |
% \begin{macro}{\furostanalpha} |
| 1154 |
% \begin{macro}{\furostanbeta} |
| 1155 |
% \begin{macro}{\furostan} |
| 1156 |
% \begin{macrocode} |
| 1157 |
% ************* |
| 1158 |
% * furostans * |
| 1159 |
% ************* |
| 1160 |
\def\steroidfurostriMe[#1]#2{% |
| 1161 |
\steroidfuros[#1]{#2;8B==H;9A==H;{10}B==CH$_{3}$;{13}B==CH$_{3}$;{14}A==H;% |
| 1162 |
{117}FA==H;{20}A==H$_{3}$C;{16}FA==H}} |
| 1163 |
\def\furostanalpha{\@ifnextchar[{\@furostanalpha}{\@furostanalpha[]}} |
| 1164 |
\def\@furostanalpha[#1]#2{\steroidfurostriMe[#1]{#2;5A==H}} |
| 1165 |
\def\furostanbeta{\@ifnextchar[{\@furostanbeta}{\@furostanbeta[]}} |
| 1166 |
\def\@furostanbeta[#1]#2{\steroidfurostriMe[#1]{#2;5B==H}} |
| 1167 |
\def\furostan{\@ifnextchar[{\@furostan}{\@furostan[]}} |
| 1168 |
\def\@furostan[#1]#2{\steroidfurostriMe[#1]{#2}} |
| 1169 |
%</steroid> |
| 1170 |
% \end{macrocode} |
| 1171 |
% \end{macro} |
| 1172 |
% \end{macro} |
| 1173 |
% \end{macro} |
| 1174 |
% \end{macro} |
| 1175 |
% |
| 1176 |
% \section{Macros for Spiro Pyranoses} |
| 1177 |
% |
| 1178 |
% The macro |\pyranoseChairi| is defined to draw steroid with spiro pyranose rings |
| 1179 |
% The switch |\pyranoseChairalphatrue| is declared to draw an alpha bond (a dashed line). |
| 1180 |
% |
| 1181 |
% \changes{v5.00}{2010/10/01}{for bond coloring} |
| 1182 |
% \begin{macro}{\ifpyranoseChairalpha} |
| 1183 |
% \begin{macro}{\pyranoseChairi} |
| 1184 |
% \begin{macrocode} |
| 1185 |
\newif\ifpyranoseChairalpha |
| 1186 |
\pyranoseChairalphatrue |
| 1187 |
\def\pyranoseChairi{\@ifnextchar[{\@pyranoseChairi}{\@pyranoseChairi[r]}} |
| 1188 |
\def\@pyranoseChairi[#1]#2{% |
| 1189 |
\@reset@ylsw% |
| 1190 |
\ylchairiposition{#2}% |
| 1191 |
\def\@@ylii{0}\def\@@yli{0}% |
| 1192 |
\begin{ShiftPicEnvB}(0,0)(-\yl@shiftii,-\yl@shifti)/% |
| 1193 |
(1600,800)(-400,-319){chairi}% |
| 1194 |
(400,319)%2002/4/30 by S. Fujita |
| 1195 |
% skeletal bonds |
| 1196 |
\thinlines% |
| 1197 |
\ifpyranoseChairalpha |
| 1198 |
\dotorline(0,0)(3,4){140}/(0,0)(140,187)% bond 1 to 6 |
| 1199 |
\else |
| 1200 |
\Put@Line(0,0)(3,4){140}% % bond 1 to 6 |
| 1201 |
\fi |
| 1202 |
\Put@Line(573,91)(-3,1){360}% % 5 to 6 |
| 1203 |
\Put@Direct(130,190){O}% |
| 1204 |
\Put@Line(573,91)(3,1){270}% % 5 to 4 |
| 1205 |
{\thicklines% |
| 1206 |
\molfronttrue% |
| 1207 |
\Put@Line(843,181)(-3,-4){170}% % 4 to 3 |
| 1208 |
\Put@Line(673,-46)(-3,1){403}% % 3 to 2 |
| 1209 |
\Put@Line(0,0)(3,1){270}% % 1 to 2 |
| 1210 |
}% |
| 1211 |
\thinlines% |
| 1212 |
% inner double bonds |
| 1213 |
\@tfor\member:=#1\do{% |
| 1214 |
\if\member r%no endcyclic bonds |
| 1215 |
\else \if\member c%%%a% |
| 1216 |
\Put@Line(767,139)(-3,-4){110}% % double bond 3 to 4 |
| 1217 |
\else \if\member b%%%d%%%b% |
| 1218 |
\Put@Line(640,-5)(-3,1){343}% % 4 to 5 |
| 1219 |
\else \if\member a%%%e%%%%c% |
| 1220 |
\Put@Line(240,111)(-3,-1){190}% % 5 to 6 |
| 1221 |
\else \if\member f%%%d% |
| 1222 |
\Put@Line(63,40)(3,4){110}% % 6 to 7 |
| 1223 |
\else \if\member e%%%l% |
| 1224 |
\Put@Line(182,187)(3,-1){343}% % 7 to 10 |
| 1225 |
\else \if\member d%%%k%%%f% |
| 1226 |
\Put@Line(768,131)(-3,-1){170}% % 10 to 3 |
| 1227 |
\fi\fi\fi\fi\fi\fi\fi}% |
| 1228 |
% % |
| 1229 |
\@forsemicol\member:=#2\do{% |
| 1230 |
\ifx\member\empty\else |
| 1231 |
\expandafter\@m@mb@r\member;\relax% |
| 1232 |
\expandafter\threech@r\@membera{}{}% |
| 1233 |
\ifx\@memberb\@yl\else |
| 1234 |
\ifcase\@tmpa%0 omit |
| 1235 |
\or\setBScolor{\@chairia}% subst. on 1 |
| 1236 |
\or\setBScolor{\@chairib}% subst. on 2 |
| 1237 |
\or\setBScolor{\@chairic}% subst. on 3 |
| 1238 |
\or\setBScolor{\@chairid}% subst. on 4 |
| 1239 |
\or\setBScolor{\@chairie}% subst. on 5 |
| 1240 |
\or\setBScolor{\@chairif}% subst. on 6 |
| 1241 |
\fi %end of ifcase |
| 1242 |
\fi\fi% |
| 1243 |
}\end{ShiftPicEnvB}}% %end of \pyranoseChairi macro |
| 1244 |
% \end{macrocode} |
| 1245 |
% \end{macro} |
| 1246 |
% \end{macro} |
| 1247 |
% |
| 1248 |
% The macro |\pyranoseChairii| is defined to draw steroid with spiro pyranose rings |
| 1249 |
% |
| 1250 |
% \changes{v5.00}{2010/10/01}{for bond coloring} |
| 1251 |
% \begin{macro}{\pyranoseChairii} |
| 1252 |
% \begin{macrocode} |
| 1253 |
\def\pyranoseChairii{\@ifnextchar[{\@pyranoseChairii}{\@pyranoseChairii[r]}} |
| 1254 |
\def\@pyranoseChairii[#1]#2{% |
| 1255 |
\@reset@ylsw% |
| 1256 |
\ylchairiposition{#2}% |
| 1257 |
\def\@@ylii{0}\def\@@yli{0}% |
| 1258 |
\begin{ShiftPicEnvB}(0,0)(-\yl@shiftii,-\yl@shifti)/% |
| 1259 |
(1600,800)(-400,-319){chairi}% |
| 1260 |
(400,319)%2002/4/30 by S. Fujita |
| 1261 |
% skeletal bonds |
| 1262 |
\thinlines% |
| 1263 |
\ifpyranoseChairalpha |
| 1264 |
\dotorline(0,0)(3,4){170}/(0,0)(170,227)% bond 1 to 6 |
| 1265 |
\else |
| 1266 |
\Put@Line(0,0)(3,4){170}% % bond 1 to 6 |
| 1267 |
\fi |
| 1268 |
\Put@Line(170,226)(3,-1){403}% % 6 to 5 |
| 1269 |
\Put@Line(573,91)(3,1){270}% % 5 to 4 |
| 1270 |
\Put@Direct(230,50){O}% |
| 1271 |
{\thicklines% |
| 1272 |
\molfronttrue% |
| 1273 |
\Put@Line(843,181)(-3,-4){170}% % 4 to 3 |
| 1274 |
\Put@Line(673,-46)(-3,1){360}% % 3 to 2 |
| 1275 |
\Put@Line(0,0)(3,1){230}% % 1 to 2 |
| 1276 |
}% |
| 1277 |
\thinlines% |
| 1278 |
% inner double bonds |
| 1279 |
\@tfor\member:=#1\do{% |
| 1280 |
\if\member r%no endcyclic bonds |
| 1281 |
\else \if\member c%%%a% |
| 1282 |
\Put@Line(767,139)(-3,-4){110}% % double bond 3 to 4 |
| 1283 |
\else \if\member b%%%d%%%b% |
| 1284 |
\Put@Line(640,-5)(-3,1){343}% % 4 to 5 |
| 1285 |
\else \if\member a%%%e%%%%c% |
| 1286 |
\Put@Line(240,111)(-3,-1){190}% % 5 to 6 |
| 1287 |
\else \if\member f%%%d% |
| 1288 |
\Put@Line(63,40)(3,4){110}% % 6 to 7 |
| 1289 |
\else \if\member e%%%l% |
| 1290 |
\Put@Line(182,187)(3,-1){343}% % 7 to 10 |
| 1291 |
\else \if\member d%%%k%%%f% |
| 1292 |
\Put@Line(768,131)(-3,-1){170}% % 10 to 3 |
| 1293 |
\fi\fi\fi\fi\fi\fi\fi}% |
| 1294 |
% % |
| 1295 |
\@forsemicol\member:=#2\do{% |
| 1296 |
\ifx\member\empty\else |
| 1297 |
\expandafter\@m@mb@r\member;\relax% |
| 1298 |
\expandafter\threech@r\@membera{}{}% |
| 1299 |
\ifx\@memberb\@yl\else |
| 1300 |
\ifcase\@tmpa%0 omit |
| 1301 |
\or\setBScolor{\@chairia}% subst. on 1 |
| 1302 |
\or\setBScolor{\@chairib}% subst. on 2 |
| 1303 |
\or\setBScolor{\@chairic}% subst. on 3 |
| 1304 |
\or\setBScolor{\@chairid}% subst. on 4 |
| 1305 |
\or\setBScolor{\@chairie}% subst. on 5 |
| 1306 |
\or\setBScolor{\@chairif}% subst. on 6 |
| 1307 |
\fi %end of ifcase |
| 1308 |
\fi\fi% |
| 1309 |
}\end{ShiftPicEnvB}}% %end of \pyranoseChairii macro |
| 1310 |
% \end{macrocode} |
| 1311 |
% \end{macro} |
| 1312 |
% |
| 1313 |
% \changes{v1.00}{2009/6/15}{Creating \cs{cholestanealfa} etc.} |
| 1314 |
% |
| 1315 |
% \Finale |
| 1316 |
% |
| 1317 |
\endinput |