| 1 |
% \iffalse |
| 2 |
% |
| 3 |
% chmst-ps.dtx |
| 4 |
% |
| 5 |
% Copyright (C) 2002, 2004, 2010 by Shinsaku Fujita All rights reserved. |
| 6 |
% |
| 7 |
% ======================================== |
| 8 |
% |
| 9 |
% Modified from the following previous package: |
| 10 |
% |
| 11 |
% chemist.dtx |
| 12 |
% Copyright (C) 1996, 1999, 2000 by Shinsaku Fujita All rights reserved. |
| 13 |
% |
| 14 |
% in order to utilize pstricks. |
| 15 |
% |
| 16 |
% This file is part of the ChemSci system |
| 17 |
% ======================================== |
| 18 |
% |
| 19 |
% This style file is created for submitting a manuscript to |
| 20 |
% scientific journals. This style file is to be contained in the |
| 21 |
% ``chemist'' directory which is an input directory for TeX. |
| 22 |
% |
| 23 |
% For using this file, see |
| 24 |
% Shinsaku Fujita, ``LaTeX for Chemists and Biochemists'' |
| 25 |
% Tokyo Kagaku Dojin, Tokyo (1993), Chapter 16. |
| 26 |
% |
| 27 |
% This work may be distributed and/or modified under the |
| 28 |
% conditions of the LaTeX Project Public License, either version 1.3 |
| 29 |
% of this license or (at your option) any later version. |
| 30 |
% The latest version of this license is in |
| 31 |
% http://www.latex-project.org/lppl.txt |
| 32 |
% and version 1.3 or later is part of all distributions of LaTeX |
| 33 |
% version 2005/12/01 or later. |
| 34 |
% |
| 35 |
% This work has the LPPL maintenance status `maintained'. |
| 36 |
% The Current Maintainer of this work is Shinsaku Fujita. |
| 37 |
% |
| 38 |
% This work consists of the files chmst-ps.dtx and chmst-ps.ins |
| 39 |
% and the derived file chmst-ps.sty. |
| 40 |
% |
| 41 |
% Please report any bugs, comments, suggestions, etc. to: |
| 42 |
% Shinsaku Fujita, |
| 43 |
% Shonan Institute of Chemoinformatics and |
| 44 |
% Mathematical Chemistry |
| 45 |
% [email protected] |
| 46 |
% |
| 47 |
%======================================= |
| 48 |
% |
| 49 |
% This file is a successor to: |
| 50 |
% |
| 51 |
% ********************************************************************* |
| 52 |
% * chemist.sty <Sept 29 1991> by Shinsaku Fujita * |
| 53 |
% * counters and related matters for compounds. * |
| 54 |
% * ffboxit: November 2 1991 by S. Fujita * |
| 55 |
% * bslskipchange: November 6 1991 by S. Fujita (deleted) * |
| 56 |
% * chapinitial: 1991 November 7 by S. Fujita * |
| 57 |
% * variable arrows: 1992 May 24 by S. Fujita * |
| 58 |
% * reaction and scheme arrows (revised): 1992 May 24 by S. Fujita * |
| 59 |
% * changespace <=== bslskipchange: Dec 31 1992 by S. Fujita * |
| 60 |
% * (g)rshfboxit and (g)lshfboxit: January 3, 1993 by S. Fujita * |
| 61 |
% ********************************************************************* |
| 62 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 63 |
% Released on January 3, 1993 |
| 64 |
% Copyright (C) 1993 by Shinsaku Fujita, all rights reserved. |
| 65 |
% This style file is created for making manuscripts of chemical fields. |
| 66 |
% This option style file is to be contained in the ``chemist'' directory |
| 67 |
% which is an input directory for TeX. |
| 68 |
% |
| 69 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 70 |
% \def\j@urnalname{chemist} |
| 71 |
% \def\versi@ndate{January 03, 1993} |
| 72 |
% \def\versi@nno{ver1.00} |
| 73 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 74 |
% |
| 75 |
% Version 1.01 |
| 76 |
% --- added the end commands of the \verbatim environment and the |
| 77 |
% \verb command contained in LaTeX 2.09 |
| 78 |
% --- \LaTeX, \BibTeX logos etc improved |
| 79 |
% \typeout{verbatim for LaTeX2.09 (and LaTeX2e) in chemist.sty} |
| 80 |
% \typeout{logos for LaTeX2.09 (and LaTeX2e) in chemist.sty} |
| 81 |
% \def\versi@ndate{April 20, 1996} |
| 82 |
% \def\j@urnalname{chemist} |
| 83 |
% \def\versi@ndate{April 20, 1996} |
| 84 |
% \def\versi@nno{ver1.01} |
| 85 |
% \def\copyrighth@lder{SF} % Shinsaku Fujita |
| 86 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 87 |
% \def\j@urnalname{chemist} \def\journalID{chemist} |
| 88 |
% \def\versi@ndate{June 15, 1996} |
| 89 |
% \def\versi@nno{ver1.01a} |
| 90 |
% \def\copyrighth@lder{SF} % Shinsaku Fujita |
| 91 |
% \typeout{Package `\j@urnalname' (\versi@nno) <\versi@ndate>\space |
| 92 |
% [\copyrighth@lder]} |
| 93 |
% \typeout{chemist.sty ver1.01a (for LaTeX2e) 1996/06/15[SF]} |
| 94 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 95 |
% \def\j@urnalname{chemist} \def\journalID{chemist} |
| 96 |
% \def\versi@ndate{March 16, 1999} |
| 97 |
% \def\versi@nno{ver2.00} |
| 98 |
% \def\copyrighth@lder{SF} % Shinsaku Fujita |
| 99 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 100 |
% \def\j@urnalname{chemist} \def\journalID{chemist} |
| 101 |
% \def\versi@ndate{November 3, 2000} |
| 102 |
% \def\versi@nno{ver2.00a} |
| 103 |
% \def\copyrighth@lder{SF} % Shinsaku Fujita |
| 104 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 105 |
% \def\j@urnalname{chmst-ps} \def\journalID{chmst-ps} |
| 106 |
% \def\versi@ndate{May 30, 2002} |
| 107 |
% \def\versi@nno{ver1.00} |
| 108 |
% \def\copyrighth@lder{SF} % Shinsaku Fujita |
| 109 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 110 |
% \def\j@urnalname{chmst-ps} \def\journalID{chmst-ps} |
| 111 |
% \def\versi@ndate{August 30, 2004} |
| 112 |
% \def\versi@nno{ver1.01} |
| 113 |
% \def\copyrighth@lder{SF} % Shinsaku Fujita |
| 114 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 115 |
% \def\j@urnalname{chmst-ps} \def\journalID{chmst-ps} |
| 116 |
% \def\versi@ndate{November 08, 2009} |
| 117 |
% \def\versi@nno{ver1.02} |
| 118 |
% \def\copyrighth@lder{SF} % Shinsaku Fujita |
| 119 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 120 |
% \def\j@urnalname{chmst-ps} \def\journalID{chmst-ps} |
| 121 |
% \def\versi@ndate{November 26, 2009} |
| 122 |
% \def\versi@nno{ver1.03} |
| 123 |
% \def\copyrighth@lder{SF} % Shinsaku Fujita |
| 124 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 125 |
% |
| 126 |
% |
| 127 |
% \fi |
| 128 |
% \CheckSum{1615} |
| 129 |
%% \CharacterTable |
| 130 |
%% {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 |
| 131 |
%% 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 |
| 132 |
%% Digits \0\1\2\3\4\5\6\7\8\9 |
| 133 |
%% Exclamation \! Double quote \" Hash (number) \# |
| 134 |
%% Dollar \$ Percent \% Ampersand \& |
| 135 |
%% Acute accent \' Left paren \( Right paren \) |
| 136 |
%% Asterisk \* Plus \+ Comma \, |
| 137 |
%% Minus \- Point \. Solidus \/ |
| 138 |
%% Colon \: Semicolon \; Less than \< |
| 139 |
%% Equals \= Greater than \> Question mark \? |
| 140 |
%% Commercial at \@ Left bracket \[ Backslash \\ |
| 141 |
%% Right bracket \] Circumflex \^ Underscore \_ |
| 142 |
%% Grave accent \` Left brace \{ Vertical bar \| |
| 143 |
%% Right brace \} Tilde \~} |
| 144 |
% |
| 145 |
% \iffalse |
| 146 |
%% |
| 147 |
%% `chmst-ps.dtx' ver1.00 (for LaTeX2e) 2002/05/30 |
| 148 |
%% `chmst-ps.dtx' ver1.01 (for LaTeX2e) 2004/08/30 |
| 149 |
%% `chmst-ps.dtx' ver1.02 (for LaTeX2e) 2009/11/08 |
| 150 |
%% `chmst-ps.dtx' ver1.03 (for LaTeX2e) 2009/11/26 |
| 151 |
%% `chmst-ps.dtx' ver5.00 (for LaTeX2e) 2010/10/01 |
| 152 |
%% by Shinsaku Fujita |
| 153 |
%% |
| 154 |
% |
| 155 |
% \section{Initial declaration} |
| 156 |
% |
| 157 |
% \changes{v1.00}{2002/05/30}{First Version} |
| 158 |
% \changes{v1.01}{2004/08/30}{2nd Version} |
| 159 |
% \changes{v1.02}{2009/11/08}{3rd Version} |
| 160 |
% \changes{v1.03}{2009/11/26}{4th Version, harpoons} |
| 161 |
% \changes{v5.00}{2010/10/01}{For LaTeX Project Public License} |
| 162 |
% |
| 163 |
% \begin{macrocode} |
| 164 |
% \NeedsTeXFormat{LaTeX2e} |
| 165 |
% \end{macrocode} |
| 166 |
% |
| 167 |
% \begin{macrocode} |
| 168 |
% <chmstps>\ProvidesFile{chmst-ps.sty} |
| 169 |
%<driver>\ProvidesFile{chmst-ps.drv} |
| 170 |
%<driver> [2010/10/01 v5.00 |
| 171 |
% <chmstps> ChemSci package ] |
| 172 |
%<driver> ChemSci package driver (English) |
| 173 |
% \end{macrocode} |
| 174 |
% |
| 175 |
%\setcounter{StandardModuleDepth}{1} |
| 176 |
% |
| 177 |
% \section{Driver file for this dtx file} |
| 178 |
% |
| 179 |
% \begin{macrocode} |
| 180 |
%<*driver> |
| 181 |
] |
| 182 |
\documentclass{ltxdoc} |
| 183 |
\GetFileInfo{chmst-ps.drv} |
| 184 |
\title{The chmst-ps Package \space\fileversion \\ |
| 185 |
(Part of the XyMTeX/ChemSci package v5.00)} |
| 186 |
\author{Shinsaku Fujita \\ |
| 187 |
Shonan Institute of Chemoinformatics and |
| 188 |
Mathematical Chemistry \\ |
| 189 |
Ashigara-Kami-Gun, Kanagawa, 258-0019 Japan |
| 190 |
%% Department of Chemistry and Materials Technology \\ |
| 191 |
%% Kyoto Institute of Technology \\ |
| 192 |
%% Matsugasaki, Sakyoku, Kyoto, 606-8585 Japan |
| 193 |
%% (old address) |
| 194 |
%% Ashigara Research Laboratories \\ |
| 195 |
%% Fuji Photo Film Co. Ltd. |
| 196 |
} |
| 197 |
\date{\filedate} |
| 198 |
\begin{document} |
| 199 |
\maketitle |
| 200 |
\tableofcontents |
| 201 |
\DocInput{chmst-ps.dtx} |
| 202 |
\end{document} |
| 203 |
%</driver> |
| 204 |
% \end{macrocode} |
| 205 |
% |
| 206 |
% \fi |
| 207 |
% |
| 208 |
% \StopEventually{} |
| 209 |
% |
| 210 |
% \section{{\sc docstrip} options} |
| 211 |
% |
| 212 |
% This dtx file provides the {\sffamily chmst-ps} package |
| 213 |
% by docstrip processing. |
| 214 |
% |
| 215 |
% \DeleteShortVerb{\|} |
| 216 |
% \begin{center} |
| 217 |
% \begin{tabular}{|l|l|} |
| 218 |
% \hline |
| 219 |
% argument & package name \\ |
| 220 |
% \hline |
| 221 |
% chmstps & chmst-ps.sty \\ |
| 222 |
% driver & a documentation driver file \\ |
| 223 |
% \hline |
| 224 |
% \end{tabular} |
| 225 |
% \end{center} |
| 226 |
% \MakeShortVerb{\|} |
| 227 |
% |
| 228 |
% \section{Version information} |
| 229 |
% |
| 230 |
% The old process for typing out version information remains active. |
| 231 |
% \begin{macrocode} |
| 232 |
%<chmstps>\def\j@urnalname{chmst-ps} \def\journalID{chmst-ps} |
| 233 |
\def\versi@ndate{October 01, 2010} |
| 234 |
\def\versi@nno{ver5.00} |
| 235 |
\def\copyrighth@lder{SF} % Shinsaku Fujita |
| 236 |
%<*chmstps> |
| 237 |
\typeout{Package `\j@urnalname' (\versi@nno) <\versi@ndate>\space |
| 238 |
[\copyrighth@lder]} |
| 239 |
\typeout{chmst-ps.sty ver5.00 (for LaTeX2e) 2010/10/01[SF]} |
| 240 |
%</chmstps> |
| 241 |
% \end{macrocode} |
| 242 |
% |
| 243 |
% \begin{macrocode} |
| 244 |
%<*chmstps> |
| 245 |
\@ifundefined{if@@@chemtimes}{\newif\if@@@chemtimes}{} |
| 246 |
\@ifundefined{if@@chemtimes}{\newif\if@@chemtimes}{}%from chemtimes |
| 247 |
\DeclareOption{chemtimes}{\@@@chemtimestrue} |
| 248 |
\@@@chemtimesfalse |
| 249 |
\ProcessOptions |
| 250 |
\if@@@chemtimes\if@@chemtimes\else |
| 251 |
\PackageError{chmst-ps} |
| 252 |
{The option ``chemtimes'' is not permitted} |
| 253 |
{You should use this option after the chemtimes package is loaded.} |
| 254 |
\fi\fi |
| 255 |
\if@@@chemtimes |
| 256 |
\RequirePackage[chemtimes]{chemist}% |
| 257 |
\else |
| 258 |
\RequirePackage{chemist}% |
| 259 |
\fi |
| 260 |
\RequirePackage{xymtx-ps}% |
| 261 |
% \end{macrocode} |
| 262 |
% |
| 263 |
% \section{Cross-references of compounds} |
| 264 |
% (Deleted) |
| 265 |
% \section{Boxes for placing compounds} |
| 266 |
% (Deleted) |
| 267 |
% \section{Arrows} |
| 268 |
% \subsection{Arrows with variable length} |
| 269 |
% (Deleted) |
| 270 |
% \subsection{Reaction arrows with variable length} |
| 271 |
% |
| 272 |
% The {\sffamily chmst-ps} package defines arrows with variable length |
| 273 |
% for drawing chemical equations, where additional information |
| 274 |
% can be written on the upper and/or downward sides of each arrow. |
| 275 |
% \changes{v1.00}{2002/05/30}{First Version} |
| 276 |
% |
| 277 |
% Several elements for drawing horizontal reaction arrows within the scope of |
| 278 |
% pstricks package are defined first. |
| 279 |
% |
| 280 |
% \begin{macro}{\rArrow@Element} |
| 281 |
% \begin{macro}{\lArrow@Element} |
| 282 |
% \begin{macro}{\lrArrow@Element} |
| 283 |
% \begin{macro}{\eqArrow@Element} |
| 284 |
% \begin{macrocode} |
| 285 |
\newdimen\@tempdimX |
| 286 |
\newdimen\@tempdimY |
| 287 |
\def\rArrow@Element#1{\begingroup\hbox to#1{\hss% |
| 288 |
\begin{pspicture}(0,0)(#1,0.28em)% |
| 289 |
\psline[linewidth=0.4pt,arrowsize=2pt 2,% |
| 290 |
arrowlength=1.6,arrowinset=0.6]{->}(0pt,0.28em)(#1,0.28em)% |
| 291 |
\end{pspicture}\hss}\endgroup} |
| 292 |
\let\Arrow@Element=\rArrow@Element |
| 293 |
\def\lArrow@Element#1{\hbox to#1{\hss% |
| 294 |
\begin{pspicture}(0,0)(#1,0.28em)% |
| 295 |
\psline[linewidth=0.4pt,arrowsize=2pt 2,% |
| 296 |
arrowlength=1.6,arrowinset=0.6]{<-}(0pt,0.28em)(#1,0.28em)% |
| 297 |
\end{pspicture}\hss}} |
| 298 |
\def\lrArrow@Element#1{\hbox to#1{\hss% |
| 299 |
\begin{pspicture}(0,0)(#1,0.28em)% |
| 300 |
\psline[linewidth=0.4pt,arrowsize=2pt 2,% |
| 301 |
arrowlength=1.6,arrowinset=0.6]{<->}(0pt,0.28em)(#1,0.28em)% |
| 302 |
\end{pspicture}\hss}} |
| 303 |
\def\eqArrow@Element#1{\hbox to#1{\hss% |
| 304 |
\begin{pspicture}(0,0)(#1,0.43em)% |
| 305 |
\psline[linewidth=0.4pt,arrowsize=2pt 2,arrowlength=1.6,arrowinset=0.6]% |
| 306 |
{->}(0pt,0.43em)(#1,0.43em)% |
| 307 |
\psline[linewidth=0.4pt,arrowsize=2pt 2,arrowlength=1.6,arrowinset=0.6]% |
| 308 |
{<-}(0pt,0.13em)(#1,0.13em)% |
| 309 |
\end{pspicture}\hss}} |
| 310 |
% \end{macrocode} |
| 311 |
% \end{macro} |
| 312 |
% \end{macro} |
| 313 |
% \end{macro} |
| 314 |
% \end{macro} |
| 315 |
% |
| 316 |
% Several harpoons are created by means of the mechanism of the \textsf{PStricks} |
| 317 |
% package. |
| 318 |
% \changes{v1.03}{2009/11/26}{Harpoons added as PostScript procedures} |
| 319 |
% |
| 320 |
% \begin{macro}{\past@arrowtable} |
| 321 |
% Arow types (Hru, Hrd, Hlu, and Hld) are added to the existing arrow table |
| 322 |
% for a right upward harpoon, a right downward harpoon, a left upward harpoon, |
| 323 |
% and a left downward harpoon. |
| 324 |
% \begin{macrocode} |
| 325 |
\RequirePackage{pstricks}% |
| 326 |
\edef\past@arrowtable{\pst@arrowtable,Hru-Hru,Hrd-Hrd,Hlu-Hlu,Hld-Hld} |
| 327 |
% \end{macrocode} |
| 328 |
% \end{macro} |
| 329 |
% |
| 330 |
% \begin{macro}{\tx@HarpoonrUp} |
| 331 |
% \begin{macro}{\psas@Hru} |
| 332 |
% A right upward harpoon (arow type Hru) is typeset by \verb/\tx@HarpoonrUp/ |
| 333 |
% (/HarpoonrUp as a PostScript name), where its arrowhead is typeset by an |
| 334 |
% internal macro name (\verb/\psas@Hru/). The PostScript commands (/CLW, /ED, and /L) |
| 335 |
% are defined in pstricks.pro. |
| 336 |
% \begin{macrocode} |
| 337 |
%rightharpoonup |
| 338 |
%\edef\past@arrowtable{\pst@arrowtable,Hru-Hru} |
| 339 |
\def\tx@HarpoonrUp{ \tx@setStrokeTransparency HarpoonrUp }% |
| 340 |
\@namedef{psas@Hru}{% |
| 341 |
/HarpoonrUp{%PostScript Procedure |
| 342 |
CLW mul add dup |
| 343 |
2 div /w ED |
| 344 |
mul dup /h ED |
| 345 |
mul /a ED |
| 346 |
CLW 2 div /Hwd ED |
| 347 |
h a sub /Hwh ED |
| 348 |
0 Hwh moveto |
| 349 |
Hwd neg Hwh L |
| 350 |
Hwd neg 0 L |
| 351 |
0 0 L |
| 352 |
w h L |
| 353 |
0 Hwh L |
| 354 |
gsave fill grestore |
| 355 |
}def |
| 356 |
\psk@arrowinset \psk@arrowlength \psk@arrowsize \tx@HarpoonrUp |
| 357 |
} |
| 358 |
% \end{macrocode} |
| 359 |
% \end{macro} |
| 360 |
% \end{macro} |
| 361 |
% |
| 362 |
% \begin{macro}{\tx@HarpoonrDown} |
| 363 |
% \begin{macro}{\psas@Hrd} |
| 364 |
% A right downward harpoon (arow type Hrd) is typeset by \verb/\tx@HarpoonrDown/ |
| 365 |
% (/HarpoonrDown as a PostScript name), where its arrowhead is typeset by an |
| 366 |
% internal macro name (\verb/\psas@Hrd/). |
| 367 |
% \begin{macrocode} |
| 368 |
%rightharpoondown |
| 369 |
%\edef\past@arrowtable{\pst@arrowtable,Hrd-Hrd} |
| 370 |
\def\tx@HarpoonrDown{ \tx@setStrokeTransparency HarpoonrDown }% |
| 371 |
\@namedef{psas@Hrd}{% |
| 372 |
/HarpoonrDown {%PostScript Procedure |
| 373 |
CLW mul add dup |
| 374 |
2 div /w ED |
| 375 |
mul dup /h ED |
| 376 |
mul /a ED |
| 377 |
CLW 2 div /Hwd ED |
| 378 |
h a sub /Hwh ED |
| 379 |
0 Hwh moveto |
| 380 |
Hwd Hwh L |
| 381 |
Hwd 0 L |
| 382 |
0 0 L |
| 383 |
w neg h L |
| 384 |
0 Hwh L |
| 385 |
gsave fill grestore |
| 386 |
}def |
| 387 |
\psk@arrowinset \psk@arrowlength \psk@arrowsize \tx@HarpoonrDown |
| 388 |
} |
| 389 |
% \end{macrocode} |
| 390 |
% \end{macro} |
| 391 |
% \end{macro} |
| 392 |
% |
| 393 |
% \begin{macro}{\tx@HarpoonlUp} |
| 394 |
% \begin{macro}{\psas@Hlu} |
| 395 |
% A left upward harpoon (arow type Hlu) is typeset by \verb/\tx@HarpoonlUp/ |
| 396 |
% (/HarpoonlUp as a PostScript name), where its arrowhead is typeset by an |
| 397 |
% internal macro name (\verb/\psas@Hlu/). |
| 398 |
% \begin{macrocode} |
| 399 |
%leftharpoonup |
| 400 |
%\edef\past@arrowtable{\pst@arrowtable,Hlu-Hlu} |
| 401 |
\def\tx@HarpoonlUp{ \tx@setStrokeTransparency HarpoonlUp }% |
| 402 |
\@namedef{psas@Hlu}{% |
| 403 |
/HarpoonlUp {%PostScript Procedure |
| 404 |
CLW mul add dup |
| 405 |
2 div /w ED |
| 406 |
mul dup /h ED |
| 407 |
mul /a ED |
| 408 |
CLW 2 div /Hwd ED |
| 409 |
h a sub /Hwh ED |
| 410 |
0 Hwh moveto |
| 411 |
Hwd Hwh L |
| 412 |
Hwd 0 L |
| 413 |
0 0 L |
| 414 |
w neg h L |
| 415 |
0 Hwh L |
| 416 |
gsave fill grestore |
| 417 |
}def |
| 418 |
\psk@arrowinset \psk@arrowlength \psk@arrowsize \tx@HarpoonlUp |
| 419 |
} |
| 420 |
% \end{macrocode} |
| 421 |
% \end{macro} |
| 422 |
% \end{macro} |
| 423 |
% |
| 424 |
% \begin{macro}{\tx@HarpoonlDown} |
| 425 |
% \begin{macro}{\psas@Hld} |
| 426 |
% A left downward harpoon (arow type Hld) is typeset by \verb/\tx@HarpoonlDown/ |
| 427 |
% (/HarpoonlDown as a PostScript name), where its arrowhead is typeset by an |
| 428 |
% internal macro name (\verb/\psas@Hld/). |
| 429 |
% \begin{macrocode} |
| 430 |
%leftharpoondown |
| 431 |
%\edef\past@arrowtable{\pst@arrowtable,Hld-Hld} |
| 432 |
\def\tx@HarpoonlDown{ \tx@setStrokeTransparency HarpoonlDown }% |
| 433 |
\@namedef{psas@Hld}{% |
| 434 |
/HarpoonlDown {%PostScript Procedure |
| 435 |
CLW mul add dup |
| 436 |
2 div /w ED |
| 437 |
mul dup /h ED |
| 438 |
mul /a ED |
| 439 |
CLW 2 div /Hwd ED |
| 440 |
h a sub /Hwh ED |
| 441 |
0 Hwh moveto |
| 442 |
Hwd neg Hwh L |
| 443 |
Hwd neg 0 L |
| 444 |
0 0 L |
| 445 |
w h L |
| 446 |
0 Hwh L |
| 447 |
gsave fill grestore |
| 448 |
}def |
| 449 |
\psk@arrowinset \psk@arrowlength \psk@arrowsize \tx@HarpoonlDown |
| 450 |
} |
| 451 |
% \end{macrocode} |
| 452 |
% \end{macro} |
| 453 |
% \end{macro} |
| 454 |
% |
| 455 |
% \begin{macro}{\eqHarpoon@Element} |
| 456 |
% \changes{v1.03}{2009/11/26}{Harpoons added as PostScript procedures} |
| 457 |
% \begin{macrocode} |
| 458 |
\def\eqHarpoon@Element#1{\hbox to#1{\hss% |
| 459 |
\begin{pspicture}(0,0)(#1,0.43em)% |
| 460 |
\psline[linewidth=0.4pt,arrowsize=2pt 2,arrowlength=1.6,arrowinset=0.6]% |
| 461 |
{-Hru}(0pt,0.43em)(#1,0.43em)% |
| 462 |
\psline[linewidth=0.4pt,arrowsize=2pt 2,arrowlength=1.6,arrowinset=0.6]% |
| 463 |
{Hld-}(0pt,0.13em)(#1,0.13em)% |
| 464 |
\end{pspicture}\hss}} |
| 465 |
% |
| 466 |
%\def\eqHarpoon@Element#1{\hbox to#1{\hss% |
| 467 |
%\begin{pspicture}(0,0)(#1,0.43em)% |
| 468 |
%\psline[linewidth=0.8pt,arrowsize=2pt 2,arrowlength=1.6,arrowinset=0.6]% |
| 469 |
%{->}(0pt,0.43em)(#1,0.43em)% |
| 470 |
%\psline[linewidth=0.8pt,arrowsize=2pt 2,arrowlength=1.6,arrowinset=0.6]% |
| 471 |
%{<-}(0pt,0.13em)(#1,0.13em)% |
| 472 |
%\psline[linewidth=0.277em,linecolor=white]{-}(0pt,0.29em)(#1,0.29em)% |
| 473 |
%\end{pspicture}\hss}} |
| 474 |
% \end{macrocode} |
| 475 |
% \end{macro} |
| 476 |
% |
| 477 |
% Equilibirum arrows with uneven lengths are defined by using the \verb/\psline/ command |
| 478 |
% of the pstricks package. |
| 479 |
% \changes{v1.02}{2009/11/08}{2nd Version} |
| 480 |
% |
| 481 |
% \begin{macro}{\reqArrow@Element} |
| 482 |
% \begin{macro}{\leqArrow@Element} |
| 483 |
% \begin{macrocode} |
| 484 |
\def\reqArrow@Element#1{\begingroup% |
| 485 |
\dimen1=#1% |
| 486 |
\dimen0=\eqlbarrowstretch\dimen1% |
| 487 |
\dimen1=#1 \advance\dimen1 by-\dimen0 \divide\dimen1 by2\relax |
| 488 |
\dimen2=\dimen1 \advance\dimen2 by\dimen0 |
| 489 |
\psline[linewidth=0.4pt,arrowsize=2pt 2,arrowlength=1.6,arrowinset=0.6]% |
| 490 |
{->}(0pt,0.43em)(#1,0.43em)% |
| 491 |
\psline[linewidth=0.4pt,arrowsize=2pt 2,arrowlength=1.6,arrowinset=0.6]% |
| 492 |
{<-}(\dimen1,0.13em)(\dimen2,0.13em)\endgroup} |
| 493 |
\def\leqArrow@Element#1{\begingroup% |
| 494 |
\dimen1=#1% |
| 495 |
\dimen0=\eqlbarrowstretch\dimen1% |
| 496 |
\dimen1=#1 \advance\dimen1 by-\dimen0 \divide\dimen1 by2\relax |
| 497 |
\dimen2=\dimen1 \advance\dimen2 by\dimen0 |
| 498 |
\psline[linewidth=0.4pt,arrowsize=2pt 2,arrowlength=1.6,arrowinset=0.6]% |
| 499 |
{->}(\dimen1,0.43em)(\dimen2,0.43em)% |
| 500 |
\psline[linewidth=0.4pt,arrowsize=2pt 2,arrowlength=1.6,arrowinset=0.6]% |
| 501 |
{<-}(0pt,0.13em)(#1,0.13em)\endgroup} |
| 502 |
% \end{macrocode} |
| 503 |
% \end{macro} |
| 504 |
% \end{macro} |
| 505 |
% |
| 506 |
% \begin{macro}{\reqHarpoon@Element} |
| 507 |
% \begin{macro}{\leqHarpoon@Element} |
| 508 |
% \changes{v1.02}{2009/11/19}{Added} |
| 509 |
% \changes{v1.03}{2009/11/26}{Harpoons added as PostScript procedures} |
| 510 |
% \begin{macrocode} |
| 511 |
\def\reqHarpoon@Element#1{\begingroup% |
| 512 |
\dimen1=#1% |
| 513 |
\dimen0=\eqlbarrowstretch\dimen1% |
| 514 |
\dimen1=#1 \advance\dimen1 by-\dimen0 \divide\dimen1 by2\relax |
| 515 |
\dimen2=\dimen1 \advance\dimen2 by\dimen0 |
| 516 |
\psline[linewidth=0.4pt,arrowsize=2pt 2,arrowlength=1.6,arrowinset=0.6]% |
| 517 |
{-Hru}(0pt,0.43em)(#1,0.43em)% |
| 518 |
\psline[linewidth=0.4pt,arrowsize=2pt 2,arrowlength=1.6,arrowinset=0.6]% |
| 519 |
{Hld-}(\dimen1,0.13em)(\dimen2,0.13em)% |
| 520 |
\endgroup} |
| 521 |
\def\leqHarpoon@Element#1{\begingroup% |
| 522 |
\dimen1=#1% |
| 523 |
\dimen0=\eqlbarrowstretch\dimen1% |
| 524 |
\dimen1=#1 \advance\dimen1 by-\dimen0 \divide\dimen1 by2\relax |
| 525 |
\dimen2=\dimen1 \advance\dimen2 by\dimen0 |
| 526 |
\psline[linewidth=0.4pt,arrowsize=2pt 2,arrowlength=1.6,arrowinset=0.6]% |
| 527 |
{-Hru}(\dimen1,0.43em)(\dimen2,0.43em)% |
| 528 |
\psline[linewidth=0.4pt,arrowsize=2pt 2,arrowlength=1.6,arrowinset=0.6]% |
| 529 |
{Hld-}(0pt,0.13em)(#1,0.13em)% |
| 530 |
\endgroup} |
| 531 |
% |
| 532 |
%\def\reqHarpoon@Element#1{\begingroup% |
| 533 |
%\dimen1=#1% |
| 534 |
%\dimen0=\eqlbarrowstretch\dimen1% |
| 535 |
%\dimen1=#1 \advance\dimen1 by-\dimen0 \divide\dimen1 by2\relax |
| 536 |
%\dimen2=\dimen1 \advance\dimen2 by\dimen0 |
| 537 |
%\psline[linewidth=0.8pt,arrowsize=2pt 2,arrowlength=1.6,arrowinset=0.6]% |
| 538 |
%{->}(0pt,0.43em)(#1,0.43em)% |
| 539 |
%\psline[linewidth=0.8pt,arrowsize=2pt 2,arrowlength=1.6,arrowinset=0.6]% |
| 540 |
%{<-}(\dimen1,0.13em)(\dimen2,0.13em)% |
| 541 |
%\psline[linewidth=0.277em,linecolor=white]{-}(0pt,0.29em)(#1,0.29em)% |
| 542 |
%\endgroup} |
| 543 |
%\def\leqHarpoon@Element#1{\begingroup% |
| 544 |
%\dimen1=#1% |
| 545 |
%\dimen0=\eqlbarrowstretch\dimen1% |
| 546 |
%\dimen1=#1 \advance\dimen1 by-\dimen0 \divide\dimen1 by2\relax |
| 547 |
%\dimen2=\dimen1 \advance\dimen2 by\dimen0 |
| 548 |
%\psline[linewidth=0.8pt,arrowsize=2pt 2,arrowlength=1.6,arrowinset=0.6]% |
| 549 |
%\{->}(\dimen1,0.43em)(\dimen2,0.43em)% |
| 550 |
%\psline[linewidth=0.8pt,arrowsize=2pt 2,arrowlength=1.6,arrowinset=0.6]% |
| 551 |
%{<-}(0pt,0.13em)(#1,0.13em)% |
| 552 |
%\psline[linewidth=0.277em,linecolor=white]{-}(0pt,0.287em)(#1,0.287em)% |
| 553 |
%\endgroup} |
| 554 |
% \end{macrocode} |
| 555 |
% \end{macro} |
| 556 |
% \end{macro} |
| 557 |
% |
| 558 |
% |
| 559 |
% Each arrow element is used in the following common command for drawing |
| 560 |
% horizontal reaction arrows. |
| 561 |
% \changes{v1.02}{2009/11/08}{changed definition; |
| 562 |
% added \cs{reactarrowsep} and \cs{reactarrowseprate}} |
| 563 |
% |
| 564 |
% \begin{verbatim} |
| 565 |
% \reactarrowsep (dimension) for adjusting the two vertical spaces (default value 0pt) |
| 566 |
% \reactarrowseprate (string) for adjusting the lower vertical space (default 1.0) |
| 567 |
% \end{verbatim} |
| 568 |
% |
| 569 |
% \begin{macro}{\react@@rlarrow} |
| 570 |
% \begin{macrocode} |
| 571 |
\def\react@@rlarrow[#1]#2#3#4#5{\ensuremath{\mathrel{% |
| 572 |
\hskip#1\raisebox{#2}{\begingroup\@tempdimX=#3\relax% |
| 573 |
\parbox{#3}{\centering |
| 574 |
\baselineskip=.8\normalbaselineskip \ChemStrut{#4}\par% |
| 575 |
\vskip-0.2\normalbaselineskip\vskip\reactarrowsep% |
| 576 |
\begin{pspicture}(0,0)(\@tempdimX,0.6em)% |
| 577 |
% \Arrow@Element{\@tempdimX}% |
| 578 |
\put(0,0){\Arrow@Element{\@tempdimX}}% |
| 579 |
\end{pspicture}% |
| 580 |
\par% |
| 581 |
\vskip\reactarrowseprate\reactarrowsep% |
| 582 |
\vskip-0.1\normalbaselineskip\ChemStrut{#5}}\endgroup}}}} |
| 583 |
%(old definition) |
| 584 |
%\def\react@@rlarrow[#1]#2#3#4#5{% |
| 585 |
%\hskip#1\raisebox{#2}{\begingroup\@tempdimX=#3\relax% |
| 586 |
% \begin{pspicture}(\@tempdimX,0)% |
| 587 |
% \rput[bl](0,0.86em){\hbox to\@tempdimX{\hss |
| 588 |
% \begin{tabular}{c}#4% |
| 589 |
% \end{tabular}\hss}}% |
| 590 |
% \Arrow@Element{\@tempdimX}% |
| 591 |
% \rput[tl](0,-0.3em){\hbox to\@tempdimX{\hss |
| 592 |
% \begin{tabular}{c}% |
| 593 |
% #5\end{tabular}\hss}}% |
| 594 |
% \end{pspicture}\endgroup}} |
| 595 |
% \end{macrocode} |
| 596 |
% \end{macro} |
| 597 |
% |
| 598 |
% \begin{macro}{\reactrarrow} |
| 599 |
% \begin{macro}{\reactlarrow} |
| 600 |
% \begin{macro}{\reactlrarrow} |
| 601 |
% \begin{macro}{\reactEqarrow}%2009/11/19 renamed from \verb/\reacteqarrow/ |
| 602 |
% \begin{macro}{\reacteqarrow}%2009/11/19 |
| 603 |
% \begin{macrocode} |
| 604 |
% ******************* 1991 Oct 4 S. Fujita |
| 605 |
% * reaction arrows * Revised 1992 May 24 S.Fujita%1999/02/02 SF |
| 606 |
% ******************* Redifined 2002 May 30 S. Fujita for pstricks |
| 607 |
% After Chapter 9 of ``LaTeX for (Bio)Chemists'' by Shinsaku Fujita |
| 608 |
% |
| 609 |
% #1 yoko #2 ue, #3 haba, #4 ya no ue, #5 ya no shita |
| 610 |
% |
| 611 |
\def\newreactrarrow{% |
| 612 |
\@ifnextchar[{\newreact@rarrow}{\newreact@rarrow[0pt]}} |
| 613 |
\def\newreact@rarrow[#1]#2#3#4#5{% |
| 614 |
\let\Arrow@Element=\rArrow@Element% |
| 615 |
\react@@rlarrow[#1]{#2}{#3}{#4}{#5}} |
| 616 |
\def\newreactlarrow{% |
| 617 |
\@ifnextchar[{\newreact@larrow}{\newreact@larrow[0pt]}} |
| 618 |
\def\newreact@larrow[#1]#2#3#4#5{% |
| 619 |
\let\Arrow@Element=\lArrow@Element% |
| 620 |
\react@@rlarrow[#1]{#2}{#3}{#4}{#5}} |
| 621 |
\def\newreactlrarrow{% |
| 622 |
\@ifnextchar[{\newreact@lrarrow}{\newreact@lrarrow[0pt]}} |
| 623 |
\def\newreact@lrarrow[#1]#2#3#4#5{% |
| 624 |
\let\Arrow@Element=\lrArrow@Element% |
| 625 |
\react@@rlarrow[#1]{#2}{#3}{#4}{#5}} |
| 626 |
%%%%2009/11/19 |
| 627 |
\def\newreactEqarrow{% |
| 628 |
\@ifnextchar[{\newreact@Eqarrow}{\newreact@Eqarrow[0pt]}} |
| 629 |
\def\newreact@Eqarrow[#1]#2#3#4#5{% |
| 630 |
\let\Arrow@Element=\eqArrow@Element% |
| 631 |
\react@@rlarrow[#1]{#2}{#3}{#4}{#5}} |
| 632 |
\def\newreacteqarrow{% |
| 633 |
\@ifnextchar[{\newreact@eqarrow}{\newreact@eqarrow[0pt]}} |
| 634 |
\def\newreact@eqarrow[#1]#2#3#4#5{% |
| 635 |
\let\Arrow@Element=\eqHarpoon@Element% |
| 636 |
\react@@rlarrow[#1]{#2}{#3}{#4}{#5}} |
| 637 |
%%%%%2009/11/19 |
| 638 |
%\let\reactrarrow=\newreactrarrow |
| 639 |
%\let\reactlarrow=\newreactlarrow |
| 640 |
%\let\reactlrarrow=\newreactlrarrow |
| 641 |
%\let\reactEqarrow=\newreactEqarrow |
| 642 |
%\let\reacteqarrow=\newreacteqarrow |
| 643 |
% \end{macrocode} |
| 644 |
% \end{macro} |
| 645 |
% \end{macro} |
| 646 |
% \end{macro} |
| 647 |
% \end{macro} |
| 648 |
% \end{macro} |
| 649 |
% |
| 650 |
% \begin{macro}{\reactREqarrow}%%renamed 2009/11/19 |
| 651 |
% \begin{macro}{\reactLEqarrow}%%renamed 2009/11/19 |
| 652 |
% \begin{macro}{\reactreqarrow} |
| 653 |
% \begin{macro}{\reactleqarrow} |
| 654 |
% |
| 655 |
% These commands have been added for the XyMTeX version 4.05. |
| 656 |
% The {\sffamily chemist} package additionally defines arrows with variable length |
| 657 |
% for drawing chemical equilibrium, where additional information |
| 658 |
% can be written on the upper and/or downward sides of each arrow. |
| 659 |
% The length of either one of arrows can be reduced by \verb/\eqlbarrowstretch/. |
| 660 |
% |
| 661 |
% \changes{v4.05}{2009/11/08}{added \cs{reactreqarrow} and \cs{reactleqarrow}} |
| 662 |
% |
| 663 |
% \begin{macrocode} |
| 664 |
\def\newreactREqarrow{% |
| 665 |
\@ifnextchar[{\newreact@REqarrow}{\newreact@REqarrow[0pt]}} |
| 666 |
\def\newreact@REqarrow[#1]#2#3#4#5{% |
| 667 |
\let\Arrow@Element=\reqArrow@Element |
| 668 |
\react@@rlarrow[#1]{#2}{#3}{#4}{#5}} |
| 669 |
\def\newreactLEqarrow{% |
| 670 |
\@ifnextchar[{\newreact@LEqarrow}{\newreact@LEqarrow[0pt]}} |
| 671 |
\def\newreact@LEqarrow[#1]#2#3#4#5{% |
| 672 |
\let\Arrow@Element=\leqArrow@Element |
| 673 |
\react@@rlarrow[#1]{#2}{#3}{#4}{#5}} |
| 674 |
%%%%%2009/11/19 |
| 675 |
\def\newreactreqarrow{% |
| 676 |
\@ifnextchar[{\newreact@reqarrow}{\newreact@reqarrow[0pt]}} |
| 677 |
\def\newreact@reqarrow[#1]#2#3#4#5{% |
| 678 |
\let\Arrow@Element=\reqHarpoon@Element |
| 679 |
\react@@rlarrow[#1]{#2}{#3}{#4}{#5}} |
| 680 |
\def\newreactleqarrow{% |
| 681 |
\@ifnextchar[{\newreact@leqarrow}{\newreact@leqarrow[0pt]}} |
| 682 |
\def\newreact@leqarrow[#1]#2#3#4#5{% |
| 683 |
\let\Arrow@Element=\leqHarpoon@Element |
| 684 |
\react@@rlarrow[#1]{#2}{#3}{#4}{#5}} |
| 685 |
%%%%%2009/11/19 |
| 686 |
%\let\reactREqarrow=\newreactREqarrow |
| 687 |
%\let\reactLEqarrow=\newreactLEqarrow |
| 688 |
%\let\reactreqarrow=\newreactreqarrow |
| 689 |
%\let\reactleqarrow=\newreactleqarrow |
| 690 |
% \end{macrocode} |
| 691 |
% \end{macro} |
| 692 |
% \end{macro} |
| 693 |
% \end{macro} |
| 694 |
% \end{macro} |
| 695 |
% |
| 696 |
% Several elements for drawing vertical reaction arrows within the scope of |
| 697 |
% pstricks package are defined first. |
| 698 |
% |
| 699 |
% \begin{macro}{\dArrow@Element} |
| 700 |
% \begin{macro}{\uArrow@Element} |
| 701 |
% \begin{macro}{\veqArrow@Element} |
| 702 |
% \begin{macro}{\duArrow@Element} |
| 703 |
% \begin{macrocode} |
| 704 |
\def\dArrow@Element#1{% |
| 705 |
\psline[linewidth=0.4pt,arrowsize=2pt 2,arrowlength=1.6,arrowinset=0.6]% |
| 706 |
{->}(0pt,#1)(0pt,0pt)} |
| 707 |
\def\uArrow@Element#1{% |
| 708 |
\psline[linewidth=0.4pt,arrowsize=2pt 2,arrowlength=1.6,arrowinset=0.6]% |
| 709 |
{<-}(0pt,#1)(0pt,0pt)} |
| 710 |
\def\veqArrow@Element#1{% |
| 711 |
\psline[linewidth=0.4pt,arrowsize=2pt 2,arrowlength=1.6,arrowinset=0.6]% |
| 712 |
{->}(-0.15em,#1)(-0.15em,0pt)% |
| 713 |
\psline[linewidth=0.4pt,arrowsize=2pt 2,arrowlength=1.6,arrowinset=0.6]% |
| 714 |
{<-}(0.15em,#1)(0.15em,0pt)} |
| 715 |
\def\duArrow@Element#1{% |
| 716 |
\psline[linewidth=0.4pt,arrowsize=2pt 2,arrowlength=1.6,arrowinset=0.6]% |
| 717 |
{<->}(0pt,#1)(0pt,0pt)} |
| 718 |
% \end{macrocode} |
| 719 |
% \end{macro} |
| 720 |
% \end{macro} |
| 721 |
% \end{macro} |
| 722 |
% \end{macro} |
| 723 |
% |
| 724 |
% \begin{macro}{\veqHarpoon@Element} |
| 725 |
% \changes{v1.02}{2009/11/19}{Added} |
| 726 |
% \changes{v1.03}{2009/11/26}{Harpoons added as PostScript procedures} |
| 727 |
% \begin{macrocode} |
| 728 |
\def\veqHarpoon@Element#1{% |
| 729 |
\psline[linewidth=0.4pt,arrowsize=2pt 2,arrowlength=1.6,arrowinset=0.6]% |
| 730 |
{-Hrd}(-0.15em,#1)(-0.15em,0pt)% |
| 731 |
\psline[linewidth=0.4pt,arrowsize=2pt 2,arrowlength=1.6,arrowinset=0.6]% |
| 732 |
{Hlu-}(0.15em,#1)(0.15em,0pt)% |
| 733 |
} |
| 734 |
% |
| 735 |
%\def\veqHarpoon@Element#1{% |
| 736 |
%\psline[linewidth=0.8pt,arrowsize=2pt 2,arrowlength=1.6,arrowinset=0.6]% |
| 737 |
%{->}(-0.15em,#1)(-0.15em,0pt)% |
| 738 |
%\psline[linewidth=0.8pt,arrowsize=2pt 2,arrowlength=1.6,arrowinset=0.6]% |
| 739 |
%{<-}(0.15em,#1)(0.15em,0pt)% |
| 740 |
%\psline[linewidth=0.28em,linecolor=white]{-}(0pt,0em)(0,#1)% |
| 741 |
%} |
| 742 |
% \end{macrocode} |
| 743 |
% \end{macro} |
| 744 |
% |
| 745 |
% Each arrow element is used in the following common command for drawing |
| 746 |
% vertical reaction arrows. |
| 747 |
% |
| 748 |
% \begin{macro}{\react@@duarrow} |
| 749 |
% \begin{macrocode} |
| 750 |
\def\react@@duarrow[#1]#2#3#4#5{\hskip#1\raisebox{#2}{% |
| 751 |
\@tempdimY=#3\def\arraystretch{0.8}% |
| 752 |
\begin{tabular}{l}#4\end{tabular}% |
| 753 |
{\tabcolsep=0pt\begin{tabular}{c}% |
| 754 |
\begin{pspicture}(0,0)(0,\@tempdimY)% |
| 755 |
\Arrow@Element{\@tempdimY}% |
| 756 |
\end{pspicture}\end{tabular}}% |
| 757 |
\begin{tabular}{l}#5\end{tabular}}} |
| 758 |
% \end{macrocode} |
| 759 |
% \end{macro} |
| 760 |
% |
| 761 |
% \begin{macro}{\reactdarrow} |
| 762 |
% \begin{macro}{\reactuarrow} |
| 763 |
% \begin{macro}{\reactduarrow} |
| 764 |
% \begin{macro}{\reactVEqarrow}%%renamed 2009/11/19 |
| 765 |
% \begin{macro}{\reactveqarrow}%%renamed 2009/11/19 |
| 766 |
% Vertical reaction arrows has been added. |
| 767 |
% \changes{v1.00}{2002/05/30}{First Version} |
| 768 |
% \begin{macrocode} |
| 769 |
\def\newreactdarrow{% |
| 770 |
\@ifnextchar[{\newreact@darrow}{\newreact@darrow[0pt]}} |
| 771 |
\def\newreact@darrow[#1]#2#3#4#5{% |
| 772 |
\let\Arrow@Element=\dArrow@Element |
| 773 |
\react@@duarrow[#1]{#2}{#3}{#4}{#5}} |
| 774 |
\def\newreactuarrow{% |
| 775 |
\@ifnextchar[{\newreact@uarrow}{\newreact@uarrow[0pt]}} |
| 776 |
\def\newreact@uarrow[#1]#2#3#4#5{% |
| 777 |
\let\Arrow@Element=\uArrow@Element |
| 778 |
\react@@duarrow[#1]{#2}{#3}{#4}{#5}} |
| 779 |
\def\newreactduarrow{% |
| 780 |
\@ifnextchar[{\newreact@duarrow}{\newreact@duarrow[0pt]}} |
| 781 |
\def\newreact@duarrow[#1]#2#3#4#5{% |
| 782 |
\let\Arrow@Element=\duArrow@Element |
| 783 |
\react@@duarrow[#1]{#2}{#3}{#4}{#5}} |
| 784 |
%%%%%2009/11/19 |
| 785 |
\def\newreactVEqarrow{% |
| 786 |
\@ifnextchar[{\newreact@VEqarrow}{\newreact@VEqarrow[0pt]}} |
| 787 |
\def\newreact@VEqarrow[#1]#2#3#4#5{% |
| 788 |
\let\Arrow@Element=\veqArrow@Element |
| 789 |
\react@@duarrow[#1]{#2}{#3}{#4}{#5}} |
| 790 |
\def\newreactveqarrow{% |
| 791 |
\@ifnextchar[{\newreact@veqarrow}{\newreact@veqarrow[0pt]}} |
| 792 |
\def\newreact@veqarrow[#1]#2#3#4#5{% |
| 793 |
\let\Arrow@Element=\veqHarpoon@Element |
| 794 |
\react@@duarrow[#1]{#2}{#3}{#4}{#5}} |
| 795 |
%%%%%2009/11/19 |
| 796 |
%\let\reactdarrow=\newreactdarrow |
| 797 |
%\let\reactuarrow=\newreactuarrow |
| 798 |
%\let\reactduarrow=\newreactduarrow |
| 799 |
%\let\reactVEqarrow=\newreactVEqarrow |
| 800 |
%\let\reactveqarrow=\newreactveqarrow |
| 801 |
% \end{macrocode} |
| 802 |
% \end{macro} |
| 803 |
% \end{macro} |
| 804 |
% \end{macro} |
| 805 |
% \end{macro} |
| 806 |
% \end{macro} |
| 807 |
% |
| 808 |
% Several elements for drawing down-sloped reaction arrows within the scope of |
| 809 |
% pstricks package are defined first. |
| 810 |
% |
| 811 |
% \begin{macro}{\seArrow@Element} |
| 812 |
% \begin{macrocode} |
| 813 |
\def\seArrow@Element#1{% |
| 814 |
\psline[linewidth=0.4pt,arrowsize=2pt 2,arrowlength=1.6,arrowinset=0.6]% |
| 815 |
{->}(0pt,#1)(#1,0pt)} |
| 816 |
\def\nwArrow@Element#1{% |
| 817 |
\psline[linewidth=0.4pt,arrowsize=2pt 2,arrowlength=1.6,arrowinset=0.6]% |
| 818 |
{<-}(0pt,#1)(#1,0pt)} |
| 819 |
% \end{macrocode} |
| 820 |
% \end{macro} |
| 821 |
% |
| 822 |
% Each arrow element is used in the following common command for drawing |
| 823 |
% down-sloped reaction arrows. |
| 824 |
% |
| 825 |
% \begin{macro}{\react@@decrarrow} |
| 826 |
% \begin{macrocode} |
| 827 |
\def\react@@decrarrow[#1]#2#3#4#5{\hskip#1\raisebox{#2}{% |
| 828 |
\@tempdimX=#3\divide\@tempdimX by2\relax |
| 829 |
\@tempdimY=#3\relax\def\arraystretch{0.8}% |
| 830 |
\begin{tabular}{l}#4\end{tabular}\kern1em% |
| 831 |
{\tabcolsep=0pt\begin{tabular}{c} |
| 832 |
\begin{pspicture}(\@tempdimX,0)(\@tempdimX,\@tempdimY) |
| 833 |
\Arrow@Element{\@tempdimY}% |
| 834 |
\end{pspicture}\end{tabular}}\kern1em% |
| 835 |
\begin{tabular}{l}#5\end{tabular}}} |
| 836 |
% \end{macrocode} |
| 837 |
% \end{macro} |
| 838 |
% |
| 839 |
% \begin{macro}{\reactsearrow} |
| 840 |
% \begin{macro}{\reactnwrarrow} |
| 841 |
% Further reaction arrows have been added. |
| 842 |
% \changes{v1.00}{2002/05/30}{First Version} |
| 843 |
% \begin{macrocode} |
| 844 |
\def\newreactsearrow{% |
| 845 |
\@ifnextchar[{\newreact@searrow}{\newreact@searrow[0pt]}} |
| 846 |
\def\newreact@searrow[#1]#2#3#4#5{% |
| 847 |
\let\Arrow@Element=\seArrow@Element |
| 848 |
\react@@decrarrow[#1]{#2}{#3}{#4}{#5}} |
| 849 |
\def\newreactnwarrow{% |
| 850 |
\@ifnextchar[{\newreact@nwarrow}{\newreact@nwarrow[0pt]}} |
| 851 |
\def\newreact@nwarrow[#1]#2#3#4#5{% |
| 852 |
\let\Arrow@Element=\nwArrow@Element |
| 853 |
\react@@decrarrow[#1]{#2}{#3}{#4}{#5}} |
| 854 |
%%%%%2009/11/19 |
| 855 |
%\let\reactsearrow=\newreactsearrow |
| 856 |
%\let\reactnwarrow=\newreactnwarrow |
| 857 |
% \end{macrocode} |
| 858 |
% \end{macro} |
| 859 |
% \end{macro} |
| 860 |
% |
| 861 |
% Several elements for drawing up-sloped reaction arrows within the scope of |
| 862 |
% pstricks package are defined first. |
| 863 |
% |
| 864 |
% \begin{macro}{\neArrow@Element} |
| 865 |
% \begin{macrocode} |
| 866 |
\def\neArrow@Element#1{% |
| 867 |
\psline[linewidth=0.4pt,arrowsize=2pt 2,arrowlength=1.6,arrowinset=0.6]% |
| 868 |
{->}(0pt,0pt)(#1,#1)} |
| 869 |
\def\swArrow@Element#1{% |
| 870 |
\psline[linewidth=0.4pt,arrowsize=2pt 2,arrowlength=1.6,arrowinset=0.6]% |
| 871 |
{<-}(0pt,0pt)(#1,#1)} |
| 872 |
% \end{macrocode} |
| 873 |
% \end{macro} |
| 874 |
% |
| 875 |
% Each arrow element is used in the following common command for drawing |
| 876 |
% up-sloped reaction arrows. |
| 877 |
% |
| 878 |
% \begin{macro}{\react@@incrarrow} |
| 879 |
% \begin{macrocode} |
| 880 |
\def\react@@incrarrow[#1]#2#3#4#5{\hskip#1\raisebox{#2}{% |
| 881 |
\@tempdimX=#3 \divide\@tempdimX by2 |
| 882 |
\@tempdimY=#3% |
| 883 |
\def\arraystretch{0.8}% |
| 884 |
\begin{tabular}{l}#4\end{tabular}\kern1em% |
| 885 |
{\tabcolsep=0pt |
| 886 |
\begin{tabular}{c} |
| 887 |
\begin{pspicture}(\@tempdimX,0)(\@tempdimX,\@tempdimY) |
| 888 |
\Arrow@Element{\@tempdimY}% |
| 889 |
\end{pspicture}% |
| 890 |
\end{tabular}}\kern1em% |
| 891 |
\begin{tabular}{l}#5\end{tabular}}} |
| 892 |
% \end{macrocode} |
| 893 |
% \end{macro} |
| 894 |
% |
| 895 |
% \begin{macro}{\reactnearrow} |
| 896 |
% \begin{macro}{\reactswarrow} |
| 897 |
% \begin{macrocode} |
| 898 |
\def\newreactnearrow{% |
| 899 |
\@ifnextchar[{\newreact@nearrow}{\newreact@nearrow[0pt]}} |
| 900 |
\def\newreact@nearrow[#1]#2#3#4#5{% |
| 901 |
\let\Arrow@Element=\neArrow@Element |
| 902 |
\react@@incrarrow[#1]{#2}{#3}{#4}{#5}} |
| 903 |
\def\newreactswarrow{% |
| 904 |
\@ifnextchar[{\newreact@swarrow}{\newreact@swarrow[0pt]}} |
| 905 |
\def\newreact@swarrow[#1]#2#3#4#5{% |
| 906 |
\let\Arrow@Element=\swArrow@Element |
| 907 |
\react@@incrarrow[#1]{#2}{#3}{#4}{#5}} |
| 908 |
%%%%%2009/11/19 |
| 909 |
%\let\reactnearrow=\newreactnearrow |
| 910 |
%\let\reactswarrow=\newreactswarrow |
| 911 |
% \end{macrocode} |
| 912 |
% \end{macro} |
| 913 |
% \end{macro} |
| 914 |
% |
| 915 |
% Additional elements for drawing down- and up-sloped equilibrium arrows within the scope of |
| 916 |
% pstricks package are defined first. |
| 917 |
% |
| 918 |
% \begin{macro}{\deqArrow@Element} |
| 919 |
% \begin{macro}{\ueqArrow@Element} |
| 920 |
% \begin{macrocode} |
| 921 |
\def\deqArrow@Element#1{% |
| 922 |
\begingroup |
| 923 |
\@tempdima=#1 \advance\@tempdima by1.2pt |
| 924 |
\psline[linewidth=0.4pt,arrowsize=2pt 2,arrowlength=1.6,arrowinset=0.6]% |
| 925 |
{->}(1.2pt,\@tempdima)(\@tempdima,1.2pt)% |
| 926 |
\@tempdima=#1 \advance\@tempdima by-1.2pt |
| 927 |
\psline[linewidth=0.4pt,arrowsize=2pt 2,arrowlength=1.6,arrowinset=0.6]% |
| 928 |
{<-}(-1.2pt,\@tempdima)(\@tempdima,-1.2pt)\endgroup} |
| 929 |
\def\ueqArrow@Element#1{% |
| 930 |
\@tempdima=#1 \advance\@tempdima by-1.2pt |
| 931 |
\@tempdimb=#1 \advance\@tempdimb by1.2pt |
| 932 |
\psline[linewidth=0.4pt,arrowsize=2pt 2,arrowlength=1.6,arrowinset=0.6]% |
| 933 |
{->}(-1.2pt,1.2pt)(\@tempdima,\@tempdimb)% |
| 934 |
\psline[linewidth=0.4pt,arrowsize=2pt 2,arrowlength=1.6,arrowinset=0.6]% |
| 935 |
{<-}(1.2pt,-1.2pt)(\@tempdimb,\@tempdima)} |
| 936 |
% \end{macrocode} |
| 937 |
% \end{macro} |
| 938 |
% \end{macro} |
| 939 |
% |
| 940 |
% Additional elements for drawing down- and up-sloped equilibrium harpoons within the scope of |
| 941 |
% pstricks package are defined. |
| 942 |
% \changes{v1.02}{2009/11/19}{Added} |
| 943 |
% |
| 944 |
% \begin{macro}{\deqHarpoon@Element} |
| 945 |
% \begin{macro}{\ueqHarpoon@Element} |
| 946 |
% \changes{v1.03}{2009/11/26}{Harpoons added as PostScript procedures} |
| 947 |
% \begin{macrocode} |
| 948 |
\def\deqHarpoon@Element#1{% |
| 949 |
\begingroup |
| 950 |
\@tempdima=#1 \advance\@tempdima by1.2pt |
| 951 |
\psline[linewidth=0.4pt,arrowsize=2pt 2,arrowlength=1.6,arrowinset=0.6]% |
| 952 |
{-Hru}(1.2pt,\@tempdima)(\@tempdima,1.2pt)% |
| 953 |
\@tempdimb=#1 \advance\@tempdimb by-1.2pt |
| 954 |
\psline[linewidth=0.4pt,arrowsize=2pt 2,arrowlength=1.6,arrowinset=0.6]% |
| 955 |
{Hld-}(-1.2pt,\@tempdimb)(\@tempdimb,-1.2pt)% |
| 956 |
\endgroup} |
| 957 |
\def\ueqHarpoon@Element#1{% |
| 958 |
\begingroup |
| 959 |
\@tempdima=#1 \advance\@tempdima by-1.2pt |
| 960 |
\@tempdimb=#1 \advance\@tempdimb by1.2pt |
| 961 |
\psline[linewidth=0.4pt,arrowsize=2pt 2,arrowlength=1.6,arrowinset=0.6]% |
| 962 |
{-Hru}(-1.2pt,1.2pt)(\@tempdima,\@tempdimb)% |
| 963 |
\psline[linewidth=0.4pt,arrowsize=2pt 2,arrowlength=1.6,arrowinset=0.6]% |
| 964 |
{Hld-}(1.2pt,-1.2pt)(\@tempdimb,\@tempdima)% |
| 965 |
\endgroup} |
| 966 |
% |
| 967 |
%\def\deqHarpoon@Element#1{% |
| 968 |
%\begingroup |
| 969 |
%\@tempdima=#1 \advance\@tempdima by1.2pt |
| 970 |
%\psline[linewidth=0.8pt,arrowsize=2pt 2,arrowlength=1.6,arrowinset=0.6]% |
| 971 |
%{->}(1.2pt,\@tempdima)(\@tempdima,1.2pt)% |
| 972 |
%\@tempdimb=#1 \advance\@tempdimb by-1.2pt |
| 973 |
%\psline[linewidth=0.8pt,arrowsize=2pt 2,arrowlength=1.6,arrowinset=0.6]% |
| 974 |
%{<-}(-1.2pt,\@tempdimb)(\@tempdimb,-1.2pt)% |
| 975 |
%\psline[linewidth=0.28em,linecolor=white]{-}(0pt,#1)(#1,0pt)% |
| 976 |
%\endgroup} |
| 977 |
%\def\ueqHarpoon@Element#1{% |
| 978 |
%\begingroup |
| 979 |
%\@tempdima=#1 \advance\@tempdima by-1.2pt |
| 980 |
%\@tempdimb=#1 \advance\@tempdimb by1.2pt |
| 981 |
%\psline[linewidth=0.8pt,arrowsize=2pt 2,arrowlength=1.6,arrowinset=0.6]% |
| 982 |
%{->}(-1.2pt,1.2pt)(\@tempdima,\@tempdimb)% |
| 983 |
%\psline[linewidth=0.8pt,arrowsize=2pt 2,arrowlength=1.6,arrowinset=0.6]% |
| 984 |
%{<-}(1.2pt,-1.2pt)(\@tempdimb,\@tempdima)% |
| 985 |
%\psline[linewidth=0.28em,linecolor=white]{-}(0pt,0pt)(#1,#1)% |
| 986 |
%\endgroup} |
| 987 |
% \end{macrocode} |
| 988 |
% \end{macro} |
| 989 |
% \end{macro} |
| 990 |
% |
| 991 |
% \begin{macro}{\reactDEqarrow} |
| 992 |
% \begin{macro}{\reactUEqarrow} |
| 993 |
% \begin{macro}{\reactdeqarrow} |
| 994 |
% \begin{macro}{\reactueqarrow} |
| 995 |
% Further reaction arrows have been added. |
| 996 |
% \changes{v1.00}{2002/05/30}{First Version} |
| 997 |
% \begin{macrocode} |
| 998 |
\def\newreactDEqarrow{\@ifnextchar[%] |
| 999 |
{\newreact@DEqarrow}{\newreact@DEqarrow[0pt]}} |
| 1000 |
\def\newreact@DEqarrow[#1]#2#3#4#5{% |
| 1001 |
\let\Arrow@Element=\deqArrow@Element |
| 1002 |
\react@@decrarrow[#1]{#2}{#3}{#4}{#5}} |
| 1003 |
\def\newreactUEqarrow{\@ifnextchar[%] |
| 1004 |
{\newreact@UEqarrow}{\newreact@UEqarrow[0pt]}} |
| 1005 |
\def\newreact@UEqarrow[#1]#2#3#4#5{% |
| 1006 |
\let\Arrow@Element=\ueqArrow@Element |
| 1007 |
\react@@decrarrow[#1]{#2}{#3}{#4}{#5}} |
| 1008 |
%%%%2009/11/19 |
| 1009 |
\def\newreactdeqarrow{\@ifnextchar[%] |
| 1010 |
{\newreact@deqarrow}{\newreact@deqarrow[0pt]}} |
| 1011 |
\def\newreact@deqarrow[#1]#2#3#4#5{% |
| 1012 |
\let\Arrow@Element=\deqHarpoon@Element |
| 1013 |
\react@@decrarrow[#1]{#2}{#3}{#4}{#5}} |
| 1014 |
\def\newreactueqarrow{\@ifnextchar[%] |
| 1015 |
{\newreact@ueqarrow}{\newreact@ueqarrow[0pt]}} |
| 1016 |
\def\newreact@ueqarrow[#1]#2#3#4#5{% |
| 1017 |
\let\Arrow@Element=\ueqHarpoon@Element |
| 1018 |
\react@@decrarrow[#1]{#2}{#3}{#4}{#5}} |
| 1019 |
%%%%2009/11/19 |
| 1020 |
%\let\reactDEqarrow=\newreactDEqarrow |
| 1021 |
%\let\reactUEqarrow=\newreactUEqarrow |
| 1022 |
%\let\reactdeqarrow=\newreactdeqarrow |
| 1023 |
%\let\reactueqarrow=\newreactueqarrow |
| 1024 |
% \end{macrocode} |
| 1025 |
% \end{macro} |
| 1026 |
% \end{macro} |
| 1027 |
% \end{macro} |
| 1028 |
% \end{macro} |
| 1029 |
% |
| 1030 |
% Additional elements for drawing down- and up-sloped double-headed arrows |
| 1031 |
% within the scope of pstricks package are defined first. |
| 1032 |
% |
| 1033 |
% \begin{macro}{\ulrArrow@Element} |
| 1034 |
% \begin{macro}{\dlrArrow@Element} |
| 1035 |
% \begin{macrocode} |
| 1036 |
\def\ulrArrow@Element#1{% |
| 1037 |
\psline[linewidth=0.4pt,arrowsize=2pt 2,arrowlength=1.6,arrowinset=0.6]% |
| 1038 |
{<->}(0pt,0pt)(#1,#1)} |
| 1039 |
\def\dlrArrow@Element#1{% |
| 1040 |
\psline[linewidth=0.4pt,arrowsize=2pt 2,arrowlength=1.6,arrowinset=0.6]% |
| 1041 |
{<->}(0pt,#1)(#1,0pt)} |
| 1042 |
% \end{macrocode} |
| 1043 |
% \end{macro} |
| 1044 |
% \end{macro} |
| 1045 |
% |
| 1046 |
% \begin{macro}{\reactulrarrow} |
| 1047 |
% \begin{macro}{\reactdlrarrow} |
| 1048 |
% \begin{macrocode} |
| 1049 |
\def\newreactulrarrow{\@ifnextchar[%] |
| 1050 |
{\newreact@ulrarrow}{\newreact@ulrarrow[0pt]}} |
| 1051 |
\def\newreact@ulrarrow[#1]#2#3#4#5{% |
| 1052 |
\let\Arrow@Element=\ulrArrow@Element |
| 1053 |
\react@@incrarrow[#1]{#2}{#3}{#4}{#5}} |
| 1054 |
\def\newreactdlrarrow{\@ifnextchar[%] |
| 1055 |
{\newreact@dlrarrow}{\newreact@dlrarrow[0pt]}} |
| 1056 |
\def\newreact@dlrarrow[#1]#2#3#4#5{ |
| 1057 |
\let\Arrow@Element=\dlrArrow@Element |
| 1058 |
\react@@decrarrow[#1]{#2}{#3}{#4}{#5}} |
| 1059 |
%%%%2009/11/19 |
| 1060 |
%\let\reactulrarrow=\newreactulrarrow |
| 1061 |
%\let\reactdlrarrow=\newreactdlrarrow |
| 1062 |
% \end{macrocode} |
| 1063 |
% \end{macro} |
| 1064 |
% \end{macro} |
| 1065 |
% |
| 1066 |
% |
| 1067 |
% A new command \verb/\electronshiftAH/ is added to defining bent (curved) arrows |
| 1068 |
% and harpoons. |
| 1069 |
% \changes{v1.03}{2009/12/01}{Added} |
| 1070 |
% |
| 1071 |
% \begin{macro}{\electronshiftAH} |
| 1072 |
% \begin{macrocode} |
| 1073 |
\def\electronshiftAH#1(#2,#3)(#4,#5)(#6,#7){% |
| 1074 |
\@ifnextchar(% |
| 1075 |
{\electr@nshiftAH{#1}(#2,#3)(#4,#5)(#6,#7)}% |
| 1076 |
{\electr@nshiftAH{#1}(#2,#3)(#4,#5)(#4,#5)(#6,#7)}} |
| 1077 |
\def\electr@nshiftAH#1(#2,#3)(#4,#5)(#6,#7)(#8,#9){% |
| 1078 |
\psbezier[unit=\unitlength,linewidth=0.4pt]{#1}% |
| 1079 |
(#2,#3)(#4,#5)(#6,#7)(#8,#9)% |
| 1080 |
}% |
| 1081 |
%\def\electronshiftAH#1{% |
| 1082 |
%\pscurve[unit=\unitlength,linewidth=0.4pt,arrowsize=2pt 2,% |
| 1083 |
%arrowlength=1.6,arrowinset=0.6]{#1}} |
| 1084 |
% \end{macrocode} |
| 1085 |
% \end{macro} |
| 1086 |
% |
| 1087 |
% Several commmands for drawing curved harpoons are defined as follows: |
| 1088 |
% \begin{macro}{\electronshiftHru} |
| 1089 |
% \begin{macro}{\electronshiftHrd} |
| 1090 |
% \begin{macro}{\electronshiftHlu} |
| 1091 |
% \begin{macro}{\electronshiftHld} |
| 1092 |
% \begin{macrocode} |
| 1093 |
\def\electronshiftHru{\electronshiftAH{-Hru}} |
| 1094 |
\def\electronshiftHrd{\electronshiftAH{-Hrd}} |
| 1095 |
\def\electronshiftHlu{\electronshiftAH{Hlu-}} |
| 1096 |
\def\electronshiftHld{\electronshiftAH{Hld-}} |
| 1097 |
% \end{macrocode} |
| 1098 |
% \end{macro} |
| 1099 |
% \end{macro} |
| 1100 |
% \end{macro} |
| 1101 |
% \end{macro} |
| 1102 |
% |
| 1103 |
% Several commmands for drawing curved arrows are defined as follows: |
| 1104 |
% \begin{macro}{\electronshiftArrowr} |
| 1105 |
% \begin{macro}{\electronshiftArrowl} |
| 1106 |
% \begin{macrocode} |
| 1107 |
\def\electronshiftArrowr{\electronshiftAH{->}} |
| 1108 |
\def\electronshiftArrowl{\electronshiftAH{<-}} |
| 1109 |
% \end{macrocode} |
| 1110 |
% \end{macro} |
| 1111 |
% \end{macro} |
| 1112 |
% |
| 1113 |
% The {\sffamily chmst-ps} package defines double-line arrows with variable |
| 1114 |
% length for drawing reaction schemes, where additional information |
| 1115 |
% can be written on the upper and/or downward sides of each arrow. |
| 1116 |
% \changes{v1.00}{2002/05/30}{First Version} |
| 1117 |
% |
| 1118 |
% Several elements for drawing horizontal scheme arrows within the scope of |
| 1119 |
% pstricks package are defined first. |
| 1120 |
% |
| 1121 |
% \begin{macro}{\lSchemeArrow@Element} |
| 1122 |
% \begin{macrocode} |
| 1123 |
\def\lSchemeArrow@Element#1{\hbox to#1{\hss% |
| 1124 |
\begin{pspicture}(0,0)(#1,0.28em)% |
| 1125 |
\psline[linewidth=0.4pt,doubleline=true,doublesep=0.16em,% |
| 1126 |
arrowsize=2pt 2,arrowlength=1.2,arrowinset=0.7]{<-}(0pt,0.28em)(#1,0.28em)% |
| 1127 |
\end{pspicture}\hss}} |
| 1128 |
\def\rSchemeArrow@Element#1{\hbox to#1{\hss% |
| 1129 |
\begin{pspicture}(0,0)(#1,0.28em)% |
| 1130 |
\psline[linewidth=0.4pt,doubleline=true,doublesep=0.16em,% |
| 1131 |
arrowsize=2pt 2,arrowlength=1.2,arrowinset=0.7]{->}(0pt,0.28em)(#1,0.28em)% |
| 1132 |
\end{pspicture}\hss}} |
| 1133 |
\def\lrSchemeArrow@Element#1{\hbox to#1{\hss% |
| 1134 |
\begin{pspicture}(0,0)(#1,0.28em)% |
| 1135 |
\psline[linewidth=0.4pt,doubleline=true,doublesep=0.16em,% |
| 1136 |
arrowsize=2pt 2,arrowlength=1.2,arrowinset=0.7]{<->}(0pt,0.28em)(#1,0.28em)% |
| 1137 |
\end{pspicture}\hss}} |
| 1138 |
% \end{macrocode} |
| 1139 |
% \end{macro} |
| 1140 |
% |
| 1141 |
% \begin{macro}{\schemelarrow} |
| 1142 |
% \begin{macro}{\schemerarrow} |
| 1143 |
% \begin{macro}{\schemelrarrow} |
| 1144 |
% |
| 1145 |
% \begin{macrocode} |
| 1146 |
% ******************************** |
| 1147 |
% * scheme arrows * |
| 1148 |
% * 1991 OCT 4 S. Fujita * |
| 1149 |
% * Revised 1992 May 24 S.Fujita * 1999/02/02 by S. Fujita |
| 1150 |
% ******************************** Redefined 2002/05/30 by SF |
| 1151 |
% After Chapter 9 of ``LaTeX for (Bio)Chemists'' by Shinsaku Fujita |
| 1152 |
\def\newschemelarrow#1#2#3#4{% |
| 1153 |
\let\Arrow@Element=\lSchemeArrow@Element |
| 1154 |
\react@@rlarrow[0pt]{#1}{#2}{#3}{#4}} |
| 1155 |
\def\newschemerarrow#1#2#3#4{% |
| 1156 |
\let\Arrow@Element=\rSchemeArrow@Element |
| 1157 |
\react@@rlarrow[0pt]{#1}{#2}{#3}{#4}} |
| 1158 |
\def\newschemelrarrow#1#2#3#4{% |
| 1159 |
\let\Arrow@Element=\lrSchemeArrow@Element |
| 1160 |
\react@@rlarrow[0pt]{#1}{#2}{#3}{#4}} |
| 1161 |
%%%%2009/11/19 |
| 1162 |
%\let\schemelarrow=\newschemelarrow |
| 1163 |
%\let\schemerarrow=\newschemerarrow |
| 1164 |
%\let\schemelrarrow=\newschemelrarrow |
| 1165 |
% \end{macrocode} |
| 1166 |
% \end{macro} |
| 1167 |
% \end{macro} |
| 1168 |
% \end{macro} |
| 1169 |
% |
| 1170 |
% \section{Redefinition of verbatim} |
| 1171 |
% (Deleted) |
| 1172 |
% |
| 1173 |
% \section{Shadowed Boxes} |
| 1174 |
% (Deleted) |
| 1175 |
% |
| 1176 |
% \section{Further boxes} |
| 1177 |
% (Deleted) |
| 1178 |
% |
| 1179 |
% \section{Symbols for instant photography} |
| 1180 |
% (Deleted) |
| 1181 |
% |
| 1182 |
% \section{Various arrows with fixed length} |
| 1183 |
% |
| 1184 |
% Because various arrows with a fixed length have been defined in the \textsf{chemist} package, |
| 1185 |
% the corresponding codes for the \textsf{chmst-ps} package are described here. |
| 1186 |
% |
| 1187 |
% \changes{v1.02}{2009/11/19}{Added} |
| 1188 |
% |
| 1189 |
% \begin{macro}{\llongrightarrow} |
| 1190 |
% \begin{macro}{\llongleftarrow} |
| 1191 |
% \begin{macro}{\Equilibarrow} |
| 1192 |
% |
| 1193 |
% \begin{macrocode} |
| 1194 |
\def\newllongrightarrow{\ensuremath{\mathrel{% |
| 1195 |
\hbox to28pt{\hss\rArrow@Element{28pt}\hss}}}} |
| 1196 |
\def\newllongleftarrow{\ensuremath{\mathrel{% |
| 1197 |
\hbox to28pt{\hss\lArrow@Element{28pt}\hss}}}} |
| 1198 |
\def\newllongleftrightarrow{\ensuremath{\mathrel{% |
| 1199 |
\hbox to28pt{\hss\lrArrow@Element{28pt}\hss}}}} |
| 1200 |
\def\newEquilibarrow{\ensuremath{\mathrel{% |
| 1201 |
\hbox to28pt{\hss\eqArrow@Element{28pt}\hss}}}} |
| 1202 |
%\let\llongrightarrow=\newllongrightarrow |
| 1203 |
%\let\llongleftarrow=\newllongleftarrow |
| 1204 |
%\let\llongleftrightarrow=\newllongleftrightarrow |
| 1205 |
%\let\Equilibarrow=\newEquilibarrow |
| 1206 |
% \end{macrocode} |
| 1207 |
% \end{macro} |
| 1208 |
% \end{macro} |
| 1209 |
% \end{macro} |
| 1210 |
% |
| 1211 |
% \changes{v1.02}{2009/11/19}{Added} |
| 1212 |
% \begin{macro}{\Llongrightarrow} |
| 1213 |
% \begin{macro}{\Llongleftarrow} |
| 1214 |
% \begin{macro}{\Llongleftrightarrow} |
| 1215 |
% |
| 1216 |
% \begin{macrocode} |
| 1217 |
\def\newLlongrightarrow{\ensuremath{\mathrel{% |
| 1218 |
\hbox to28pt{\hss\rSchemeArrow@Element{28pt}\hss}}}} |
| 1219 |
\def\newLlongleftarrow{\ensuremath{\mathrel{% |
| 1220 |
\hbox to28pt{\hss\lSchemeArrow@Element{28pt}\hss}}}} |
| 1221 |
\def\newLlongleftrightarrow{\ensuremath{% |
| 1222 |
\mathrel{\hbox to28pt{\hss\lrSchemeArrow@Element{28pt}\hss}}}} |
| 1223 |
%\let\Llongrightarrow=\newLlongrightarrow |
| 1224 |
%\let\Llongleftarrow=\newLlongleftarrow |
| 1225 |
%\let\Llongleftrightarrow\newLlongleftrightarrow |
| 1226 |
% \end{macrocode} |
| 1227 |
% \end{macro} |
| 1228 |
% \end{macro} |
| 1229 |
% \end{macro} |
| 1230 |
% |
| 1231 |
% \changes{v1.02}{2009/11/19}{Added} |
| 1232 |
% \begin{macro}{\lllongrightarrow} |
| 1233 |
% \begin{macro}{\lllongleftarrow} |
| 1234 |
% \begin{macro}{\lllongleftrightarrow} |
| 1235 |
% \begin{macro}{\Equiliblongarrow} |
| 1236 |
% |
| 1237 |
% \begin{macrocode} |
| 1238 |
\def\newlllongrightarrow{\ensuremath{\mathrel{% |
| 1239 |
\hbox to35pt{\hss\rArrow@Element{35pt}\hss}}}} |
| 1240 |
\def\newlllongleftarrow{\ensuremath{\mathrel{% |
| 1241 |
\hbox to35pt{\hss\lArrow@Element{35pt}\hss}}}} |
| 1242 |
\def\newlllongleftrightarrow{\ensuremath{\mathrel{% |
| 1243 |
\hbox to35pt{\hss\lrArrow@Element{35pt}\hss}}}} |
| 1244 |
\def\newEquiliblongarrow{\ensuremath{\mathrel{% |
| 1245 |
\hbox to35pt{\hss\eqArrow@Element{35pt}\hss}}}} |
| 1246 |
%\let\lllongrightarrow=\newlllongrightarrow |
| 1247 |
%\let\lllongleftarrow=\newlllongleftarrow |
| 1248 |
%\let\lllongleftrightarrow=\newlllongleftrightarrow |
| 1249 |
%\let\Equiliblongarrow=\newEquiliblongarrow |
| 1250 |
% \end{macrocode} |
| 1251 |
% \end{macro} |
| 1252 |
% \end{macro} |
| 1253 |
% \end{macro} |
| 1254 |
% \end{macro} |
| 1255 |
% |
| 1256 |
% \changes{v1.02}{2009/11/19}{Added} |
| 1257 |
% \begin{macro}{\Lllongrightarrow} |
| 1258 |
% \begin{macro}{\Lllongleftarrow} |
| 1259 |
% \begin{macro}{\Lllongleftrightarrow} |
| 1260 |
% |
| 1261 |
% \begin{macrocode} |
| 1262 |
\def\newLllongrightarrow{\ensuremath{\mathrel{% |
| 1263 |
\hbox to35pt{\hss\rSchemeArrow@Element{35pt}\hss}}}} |
| 1264 |
\def\newLllongleftarrow{\ensuremath{\mathrel{% |
| 1265 |
\hbox to35pt{\hss\lSchemeArrow@Element{35pt}\hss}}}} |
| 1266 |
\def\newLllongleftrightarrow{\ensuremath{% |
| 1267 |
\mathrel{\hbox to35pt{\hss\lrSchemeArrow@Element{35pt}\hss}}}} |
| 1268 |
%\let\Lllongrightarrow=\newLllongrightarrow |
| 1269 |
%\let\Lllongleftarrow=\newLllongleftarrow |
| 1270 |
%\let\Lllongleftrightarrow\newLllongleftrightarrow |
| 1271 |
% \end{macrocode} |
| 1272 |
% \end{macro} |
| 1273 |
% \end{macro} |
| 1274 |
% \end{macro} |
| 1275 |
% |
| 1276 |
% |
| 1277 |
% Several elements for drawing horizontal harpoons within the scope of |
| 1278 |
% pstricks package are defined first. |
| 1279 |
% \changes{v1.02}{2009/11/19}{Added} |
| 1280 |
% |
| 1281 |
% \begin{macro}{\rightharpoonupElement} |
| 1282 |
% \changes{v1.02}{2009/11/19}{Added} |
| 1283 |
% \changes{v1.03}{2009/11/26}{Harpoons added as PostScript procedures} |
| 1284 |
% \begin{macrocode} |
| 1285 |
\def\rightharpoonupElement#1{% |
| 1286 |
\lower0.2pt\hbox to#1{\hss% |
| 1287 |
\begin{pspicture}(0,0)(#1,0.28em) |
| 1288 |
\psline[linewidth=0.4pt,arrowsize=2pt 2,arrowlength=1.6,arrowinset=0.6]% |
| 1289 |
{-Hru}(0pt,0.28em)(#1,0.28em) |
| 1290 |
\end{pspicture}\hss}} |
| 1291 |
% |
| 1292 |
%\def\rightharpoonupElement#1{% |
| 1293 |
%\lower0.2pt\hbox to#1{\hss% |
| 1294 |
%\begin{pspicture}(0,0)(#1,0.28em) |
| 1295 |
%\psline[linewidth=0.8pt,arrowsize=2pt 2,arrowlength=1.6,arrowinset=0.6]% |
| 1296 |
%{->}(0pt,0.28em)(#1,0.28em) |
| 1297 |
%\psline[linewidth=0.36em,linecolor=white]{-}(0pt,0.1em)(#1,0.1em) |
| 1298 |
%\end{pspicture}\hss}} |
| 1299 |
% \end{macrocode} |
| 1300 |
% \end{macro} |
| 1301 |
% |
| 1302 |
% \begin{macro}{\rightharpoondownElement} |
| 1303 |
% \changes{v1.02}{2009/11/19}{Added} |
| 1304 |
% \changes{v1.03}{2009/11/26}{Harpoons added as PostScript procedures} |
| 1305 |
% \begin{macrocode} |
| 1306 |
\def\rightharpoondownElement#1{% |
| 1307 |
\raise0.2pt\hbox to#1{\hss% |
| 1308 |
\begin{pspicture}(0,0)(#1,0.28em) |
| 1309 |
\psline[linewidth=0.4pt,arrowsize=2pt 2,arrowlength=1.6,arrowinset=0.6]% |
| 1310 |
{-Hrd}(0pt,0.28em)(#1,0.28em) |
| 1311 |
\end{pspicture}\hss}} |
| 1312 |
% |
| 1313 |
%\def\rightharpoondownElement#1{% |
| 1314 |
%\raise0.2pt\hbox to#1{\hss% |
| 1315 |
%\begin{pspicture}(0,0)(#1,0.28em) |
| 1316 |
%\psline[linewidth=0.8pt,arrowsize=2pt 2,arrowlength=1.6,arrowinset=0.6]% |
| 1317 |
%{->}(0pt,0.28em)(#1,0.28em) |
| 1318 |
%\psline[linewidth=0.34em,linecolor=white]{-}(0pt,0.49em)(#1,0.49em) |
| 1319 |
%\end{pspicture}\hss}} |
| 1320 |
% \end{macrocode} |
| 1321 |
% \end{macro} |
| 1322 |
% |
| 1323 |
% \begin{macro}{\leftharpoonupElement} |
| 1324 |
% \changes{v1.02}{2009/11/19}{Added} |
| 1325 |
% \changes{v1.03}{2009/11/26}{Harpoons added as PostScript procedures} |
| 1326 |
% \begin{macrocode} |
| 1327 |
\def\leftharpoonupElement#1{% |
| 1328 |
\lower0.2pt\hbox to#1{\hss% |
| 1329 |
\begin{pspicture}(0,0)(#1,0.28em) |
| 1330 |
\psline[linewidth=0.4pt,arrowsize=2pt 2,arrowlength=1.6,arrowinset=0.6]% |
| 1331 |
{Hlu-}(0pt,0.28em)(#1,0.28em) |
| 1332 |
\end{pspicture}\hss}} |
| 1333 |
% |
| 1334 |
%\def\leftharpoonupElement#1{% |
| 1335 |
%\lower0.2pt\hbox to#1{\hss% |
| 1336 |
%\begin{pspicture}(0,0)(#1,0.28em) |
| 1337 |
%\psline[linewidth=0.8pt,arrowsize=2pt 2,arrowlength=1.6,arrowinset=0.6]% |
| 1338 |
%{<-}(0pt,0.28em)(#1,0.28em) |
| 1339 |
%\psline[linewidth=0.36em,linecolor=white]{-}(0pt,0.1em)(#1,0.1em) |
| 1340 |
%\end{pspicture}\hss}} |
| 1341 |
% \end{macrocode} |
| 1342 |
% \end{macro} |
| 1343 |
% |
| 1344 |
% \begin{macro}{\leftharpoondownElement} |
| 1345 |
% \changes{v1.02}{2009/11/19}{Added} |
| 1346 |
% \changes{v1.03}{2009/11/26}{Harpoons added as PostScript procedures} |
| 1347 |
% \begin{macrocode} |
| 1348 |
\def\leftharpoondownElement#1{% |
| 1349 |
\lower0.2pt\hbox to#1{\hss% |
| 1350 |
\begin{pspicture}(0,0)(#1,0.28em) |
| 1351 |
\psline[linewidth=0.4pt,arrowsize=2pt 2,arrowlength=1.6,arrowinset=0.6]% |
| 1352 |
{Hld-}(0pt,0.28em)(#1,0.28em) |
| 1353 |
\end{pspicture}\hss}} |
| 1354 |
% |
| 1355 |
%\def\leftharpoondownElement#1{% |
| 1356 |
%\lower0.2pt\hbox to#1{\hss% |
| 1357 |
%\begin{pspicture}(0,0)(#1,0.28em) |
| 1358 |
%\psline[linewidth=0.8pt,arrowsize=2pt 2,arrowlength=1.6,arrowinset=0.6]% |
| 1359 |
%{<-}(0pt,0.28em)(#1,0.28em) |
| 1360 |
%\psline[linewidth=0.34em,linecolor=white]{-}(0pt,0.49em)(#1,0.49em) |
| 1361 |
%\end{pspicture}\hss}} |
| 1362 |
% \end{macrocode} |
| 1363 |
% \end{macro} |
| 1364 |
% |
| 1365 |
% |
| 1366 |
% \changes{v1.02}{2009/11/19}{Added} |
| 1367 |
% \begin{macro}{\llongrightharpoonup} |
| 1368 |
% \begin{macro}{\llongrightharpoondown} |
| 1369 |
% \begin{macro}{\llongleftharpoonup} |
| 1370 |
% \begin{macro}{\llongleftharpoondown} |
| 1371 |
% \begin{macrocode} |
| 1372 |
\def\newllongrightharpoonup{\ensuremath{\mathrel{\rightharpoonupElement{28pt}}}} |
| 1373 |
\def\newllongrightharpoondown{\ensuremath{\mathrel{\rightharpoondownElement{28pt}}}} |
| 1374 |
\def\newllongleftharpoonup{\ensuremath{\mathrel{\leftharpoonupElement{28pt}}}} |
| 1375 |
\def\newllongleftharpoondown{\ensuremath{\mathrel{\leftharpoondownElement{28pt}}}} |
| 1376 |
%\let\llongrightharpoonup=\newllongrightharpoonup |
| 1377 |
%\let\llongrightharpoondown=\newllongrightharpoondown |
| 1378 |
%\let\llongleftharpoonup=\newllongleftharpoonup |
| 1379 |
%\let\llongleftharpoondown=\newllongleftharpoondown |
| 1380 |
% \end{macrocode} |
| 1381 |
% \end{macro} |
| 1382 |
% \end{macro} |
| 1383 |
% \end{macro} |
| 1384 |
% \end{macro} |
| 1385 |
% |
| 1386 |
% \changes{v1.02}{2009/11/19}{Added} |
| 1387 |
% \begin{macro}{\lllongrightharpoonup} |
| 1388 |
% \begin{macro}{\lllongrightharpoondown} |
| 1389 |
% \begin{macro}{\lllongleftharpoonup} |
| 1390 |
% \begin{macro}{\lllongleftharpoondown} |
| 1391 |
% \begin{macrocode} |
| 1392 |
\def\newlllongrightharpoonup{\ensuremath{\mathrel{\rightharpoonupElement{35pt}}}} |
| 1393 |
\def\newlllongrightharpoondown{\ensuremath{\mathrel{\rightharpoondownElement{35pt}}}} |
| 1394 |
\def\newlllongleftharpoonup{\ensuremath{\mathrel{\leftharpoonupElement{35pt}}}} |
| 1395 |
\def\newlllongleftharpoondown{\ensuremath{\mathrel{\leftharpoondownElement{35pt}}}} |
| 1396 |
%\let\lllongrightharpoonup=\newlllongrightharpoonup |
| 1397 |
%\let\lllongrightharpoondown=\newlllongrightharpoondown |
| 1398 |
%\let\lllongleftharpoonup=\newlllongleftharpoonup |
| 1399 |
%\let\lllongleftharpoondown\newlllongleftharpoondown |
| 1400 |
% \end{macrocode} |
| 1401 |
% \end{macro} |
| 1402 |
% \end{macro} |
| 1403 |
% \end{macro} |
| 1404 |
% \end{macro} |
| 1405 |
% |
| 1406 |
% |
| 1407 |
% \changes{v1.02}{2009/11/19}{Added} |
| 1408 |
% \begin{macro}{\equilibarrow} |
| 1409 |
% \begin{macro}{\equiliblongarrow} |
| 1410 |
% \begin{macrocode} |
| 1411 |
\def\newequilibarrow{\ensuremath{\mathrel{% |
| 1412 |
\hbox to28pt{\hss\eqHarpoon@Element{28pt}\hss}}}} |
| 1413 |
\def\newequiliblongarrow{\ensuremath{\mathrel{% |
| 1414 |
\hbox to35pt{\hss\eqHarpoon@Element{35pt}\hss}}}} |
| 1415 |
%\let\equilibarrow=\newequilibarrow |
| 1416 |
%\let\equiliblongarrow=\newequiliblongarrow |
| 1417 |
% \end{macrocode} |
| 1418 |
% \end{macro} |
| 1419 |
% \end{macro} |
| 1420 |
% |
| 1421 |
% |
| 1422 |
% \section{Chemical Corrections} |
| 1423 |
% (Deleted) |
| 1424 |
% |
| 1425 |
% |
| 1426 |
% \section{XyMcompd and XyMtab Environments} |
| 1427 |
% (Deleted) |
| 1428 |
% |
| 1429 |
% \section{Useful commands} |
| 1430 |
% (Deleted) |
| 1431 |
% |
| 1432 |
% \section{Double and triple bonds} |
| 1433 |
% (Deleted) |
| 1434 |
% |
| 1435 |
% \section{Curved Arrows} |
| 1436 |
% |
| 1437 |
% To illustrate the mechanisms of organic reactions, |
| 1438 |
% curved arrows are used to show an electron shift. |
| 1439 |
% First, the macros for drawing them are |
| 1440 |
% defined as follows. |
| 1441 |
% \changes{v1.01}{2004/08/30}{Added at XyMTeX V4.01} |
| 1442 |
% |
| 1443 |
% \begin{macro}{\electronAHshift} |
| 1444 |
% \changes{v5.00}{2010/10/01}{Redefined for compatibility to PDF mode} |
| 1445 |
% |
| 1446 |
% Arrows having a usual arrow head are defined as follows. |
| 1447 |
% Keywords for differentiation are: r (right) and l (left), |
| 1448 |
% which are contained in the middle of each command name. |
| 1449 |
% |
| 1450 |
% The |\pscurve| command of the \textsf{pstricks} package has been |
| 1451 |
% replaced by |\psbezier|, where two control points are calculated |
| 1452 |
% by means of |\calcontrolpoints| defined in the \textsf{chemist} package. |
| 1453 |
% |
| 1454 |
% \begin{macrocode} |
| 1455 |
\def\electronAHshift{% |
| 1456 |
\@ifnextchar[{\@electronAHshift}{\@electronAHshift[0]}} |
| 1457 |
\def\@electronAHshift[#1](#2,#3)(#4,#5)#6{% |
| 1458 |
\@tempcntXa=#2 \@tempcntYa=#3 |
| 1459 |
\@tempcntXb=#4 \@tempcntYb=#5 |
| 1460 |
\calcontrolpoints{#1}%defined in chemist package |
| 1461 |
%\pscurve[unit=\unitlength,linewidth=0.4pt]{#6}% |
| 1462 |
\psbezier[unit=\unitlength,linewidth=0.4pt]{#6}% |
| 1463 |
(#2,#3)(\@cnttempa,\@cnttempb)(\@tempcntXc,\@tempcntYc)(#4,#5)% |
| 1464 |
} |
| 1465 |
% \end{macrocode} |
| 1466 |
% \end{macro} |
| 1467 |
% |
| 1468 |
% \begin{macro}{\electronrshiftarrow} |
| 1469 |
% \changes{v5.00}{2010/10/01}{Redefined using two control points} |
| 1470 |
% \begin{macrocode} |
| 1471 |
\def\electronrshiftarrow{% |
| 1472 |
\@ifnextchar[{\@electronrshiftarrow}{\@electronrshiftarrow[0]}} |
| 1473 |
\def\@electronrshiftarrow[#1](#2,#3)(#4,#5){% |
| 1474 |
\ifnum#2<#4\relax |
| 1475 |
\electronAHshift[#1](#2,#3)(#4,#5){->}% |
| 1476 |
\else |
| 1477 |
\ifcase#1\relax |
| 1478 |
\electronAHshift[1](#2,#3)(#4,#5){->}% |
| 1479 |
\or |
| 1480 |
\electronAHshift[0](#2,#3)(#4,#5){->}% |
| 1481 |
\fi\fi} |
| 1482 |
% \end{macrocode} |
| 1483 |
% \end{macro} |
| 1484 |
% |
| 1485 |
% \begin{macro}{\electronlshiftarrow} |
| 1486 |
% \changes{v5.00}{2010/10/01}{Redefined using two control points} |
| 1487 |
% \begin{macrocode} |
| 1488 |
\def\electronlshiftarrow{% |
| 1489 |
\@ifnextchar[{\@electronlshiftarrow}{\@electronlshiftarrow[0]}} |
| 1490 |
\def\@electronlshiftarrow[#1](#2,#3)(#4,#5){% |
| 1491 |
\ifnum#2<#4\relax |
| 1492 |
\electronAHshift[#1](#2,#3)(#4,#5){<-}% |
| 1493 |
\else |
| 1494 |
\ifcase#1\relax |
| 1495 |
\electronAHshift[1](#2,#3)(#4,#5){<-}% |
| 1496 |
\or |
| 1497 |
\electronAHshift[0](#2,#3)(#4,#5){<-}% |
| 1498 |
\fi\fi} |
| 1499 |
\def\futuresubst#1{\kern140\unitlength #1} |
| 1500 |
% \end{macrocode} |
| 1501 |
% \end{macro} |
| 1502 |
% |
| 1503 |
% \begin{macro}{\electronlshiftarrow} |
| 1504 |
% \changes{v5.00}{2010/10/01}{Redefined using two control points} |
| 1505 |
% \begin{macrocode} |
| 1506 |
\def\electronlshiftarrow{% |
| 1507 |
\@ifnextchar[{\@electronlshiftarrow}{\@electronlshiftarrow[0]}} |
| 1508 |
\def\@electronlshiftarrow[#1](#2,#3)(#4,#5){% |
| 1509 |
\ifnum#2<#4\relax |
| 1510 |
\electronAHshift[#1](#2,#3)(#4,#5){<-}% |
| 1511 |
\else |
| 1512 |
\ifcase#1\relax |
| 1513 |
\electronAHshift[1](#2,#3)(#4,#5){<-}% |
| 1514 |
\or |
| 1515 |
\electronAHshift[0](#2,#3)(#4,#5){<-}% |
| 1516 |
\fi\fi} |
| 1517 |
\def\futuresubst#1{\kern140\unitlength #1} |
| 1518 |
% \end{macrocode} |
| 1519 |
% \end{macro} |
| 1520 |
% |
| 1521 |
% Arrows having a harpoon-type head are defined as follows. |
| 1522 |
% Keywords for differentiation are: |
| 1523 |
% Hru (harpoon right upward), Hrd (harpoon right downward), |
| 1524 |
% Hlu (harpoon left upward), and Hld (harpoon left downward). |
| 1525 |
% |
| 1526 |
% \begin{macro}{\electronHrushiftarrow} |
| 1527 |
% \changes{v5.00}{2010/10/01}{Defined using two control points} |
| 1528 |
% \begin{macrocode} |
| 1529 |
\def\electronHrushiftarrow{% |
| 1530 |
\@ifnextchar[{\@electronHrushiftarrow}{\@electronHrushiftarrow[0]}} |
| 1531 |
\def\@electronHrushiftarrow[#1](#2,#3)(#4,#5){% |
| 1532 |
\ifnum#2<#4\relax |
| 1533 |
\electronAHshift[#1](#2,#3)(#4,#5){-Hru}% |
| 1534 |
\else |
| 1535 |
\ifcase#1\relax |
| 1536 |
\electronAHshift[1](#2,#3)(#4,#5){-Hru}% |
| 1537 |
\or |
| 1538 |
\electronAHshift[0](#2,#3)(#4,#5){-Hru}% |
| 1539 |
\fi\fi} |
| 1540 |
% \end{macrocode} |
| 1541 |
% \end{macro} |
| 1542 |
% |
| 1543 |
% \begin{macro}{\electronHrdshiftarrow} |
| 1544 |
% \changes{v5.00}{2010/10/01}{Defined using two control points} |
| 1545 |
% \begin{macrocode} |
| 1546 |
\def\electronHrdshiftarrow{% |
| 1547 |
\@ifnextchar[{\@electronHrdshiftarrow}{\@electronHrdshiftarrow[0]}} |
| 1548 |
\def\@electronHrdshiftarrow[#1](#2,#3)(#4,#5){% |
| 1549 |
\ifnum#2<#4\relax |
| 1550 |
\electronAHshift[#1](#2,#3)(#4,#5){-Hrd}% |
| 1551 |
\else |
| 1552 |
\ifcase#1\relax |
| 1553 |
\electronAHshift[1](#2,#3)(#4,#5){-Hrd}% |
| 1554 |
\or |
| 1555 |
\electronAHshift[0](#2,#3)(#4,#5){-Hrd}% |
| 1556 |
\fi\fi} |
| 1557 |
% \end{macrocode} |
| 1558 |
% \end{macro} |
| 1559 |
% |
| 1560 |
% \begin{macro}{\electronHlushiftarrow} |
| 1561 |
% \changes{v5.00}{2010/10/01}{Defined using two control points} |
| 1562 |
% \begin{macrocode} |
| 1563 |
% |
| 1564 |
% \begin{macrocode} |
| 1565 |
\def\electronHlushiftarrow{% |
| 1566 |
\@ifnextchar[{\@electronHlushiftarrow}{\@electronHlushiftarrow[0]}} |
| 1567 |
\def\@electronHlushiftarrow[#1](#2,#3)(#4,#5){% |
| 1568 |
\ifnum#2<#4\relax |
| 1569 |
\electronAHshift[#1](#2,#3)(#4,#5){Hlu-}% |
| 1570 |
\else |
| 1571 |
\ifcase#1\relax |
| 1572 |
\electronAHshift[1](#2,#3)(#4,#5){Hlu-}% |
| 1573 |
\or |
| 1574 |
\electronAHshift[0](#2,#3)(#4,#5){Hlu-}% |
| 1575 |
\fi\fi} |
| 1576 |
% \end{macrocode} |
| 1577 |
% \end{macro} |
| 1578 |
% |
| 1579 |
% \begin{macro}{\electronHrdshiftarrow} |
| 1580 |
% \changes{v5.00}{2010/10/01}{Defined using two control points} |
| 1581 |
% \begin{macrocode} |
| 1582 |
% |
| 1583 |
% \begin{macrocode} |
| 1584 |
\def\electronHldshiftarrow{% |
| 1585 |
\@ifnextchar[{\@electronHldshiftarrow}{\@electronHldshiftarrow[0]}} |
| 1586 |
\def\@electronHldshiftarrow[#1](#2,#3)(#4,#5){% |
| 1587 |
\ifnum#2<#4\relax |
| 1588 |
\electronAHshift[#1](#2,#3)(#4,#5){Hld-}% |
| 1589 |
\else |
| 1590 |
\ifcase#1\relax |
| 1591 |
\electronAHshift[1](#2,#3)(#4,#5){Hld-}% |
| 1592 |
\or |
| 1593 |
\electronAHshift[0](#2,#3)(#4,#5){Hld-}% |
| 1594 |
\fi\fi} |
| 1595 |
% \end{macrocode} |
| 1596 |
% \end{macro} |
| 1597 |
% |
| 1598 |
% |
| 1599 |
% \section{Initial Setting and Switch to PostScript Arrows} |
| 1600 |
% |
| 1601 |
% \begin{macro}{\chmstpssw} |
| 1602 |
% \begin{macrocode} |
| 1603 |
\def\chmstpssw{%setting of the chmst-ps package |
| 1604 |
\let\reactrarrow=\newreactrarrow% |
| 1605 |
\let\reactlarrow=\newreactlarrow |
| 1606 |
\let\reactlrarrow=\newreactlrarrow |
| 1607 |
\let\reactEqarrow=\newreactEqarrow |
| 1608 |
\let\reacteqarrow=\newreacteqarrow |
| 1609 |
%%%% |
| 1610 |
\let\reactREqarrow=\newreactREqarrow% |
| 1611 |
\let\reactLEqarrow=\newreactLEqarrow |
| 1612 |
\let\reactreqarrow=\newreactreqarrow |
| 1613 |
\let\reactleqarrow=\newreactleqarrow |
| 1614 |
%%%% |
| 1615 |
\let\reactdarrow=\newreactdarrow% |
| 1616 |
\let\reactuarrow=\newreactuarrow |
| 1617 |
\let\reactduarrow=\newreactduarrow |
| 1618 |
\let\reactVEqarrow=\newreactVEqarrow |
| 1619 |
\let\reactveqarrow=\newreactveqarrow |
| 1620 |
%%%% |
| 1621 |
\let\reactnearrow=\newreactnearrow% |
| 1622 |
\let\reactswarrow=\newreactswarrow |
| 1623 |
%%%% |
| 1624 |
\let\reactsearrow=\newreactsearrow% |
| 1625 |
\let\reactnwarrow=\newreactnwarrow |
| 1626 |
%%%% |
| 1627 |
\let\reactDEqarrow=\newreactDEqarrow% |
| 1628 |
\let\reactUEqarrow=\newreactUEqarrow |
| 1629 |
\let\reactdeqarrow=\newreactdeqarrow |
| 1630 |
\let\reactueqarrow=\newreactueqarrow |
| 1631 |
%%%% |
| 1632 |
\let\reactulrarrow=\newreactulrarrow% |
| 1633 |
\let\reactdlrarrow=\newreactdlrarrow |
| 1634 |
%%%% |
| 1635 |
\let\schemelarrow=\newschemelarrow% |
| 1636 |
\let\schemerarrow=\newschemerarrow |
| 1637 |
\let\schemelrarrow=\newschemelrarrow |
| 1638 |
%%%% |
| 1639 |
\let\llongrightarrow=\newllongrightarrow% |
| 1640 |
\let\llongleftarrow=\newllongleftarrow |
| 1641 |
\let\llongleftrightarrow=\newllongleftrightarrow |
| 1642 |
\let\Equilibarrow=\newEquilibarrow |
| 1643 |
%%% |
| 1644 |
\let\Llongrightarrow=\newLlongrightarrow% |
| 1645 |
\let\Llongleftarrow=\newLlongleftarrow |
| 1646 |
\let\Llongleftrightarrow\newLlongleftrightarrow |
| 1647 |
%%% |
| 1648 |
\let\lllongrightarrow=\newlllongrightarrow% |
| 1649 |
\let\lllongleftarrow=\newlllongleftarrow |
| 1650 |
\let\lllongleftrightarrow=\newlllongleftrightarrow |
| 1651 |
\let\Equiliblongarrow=\newEquiliblongarrow |
| 1652 |
%%% |
| 1653 |
\let\Lllongrightarrow=\newLllongrightarrow% |
| 1654 |
\let\Lllongleftarrow=\newLllongleftarrow |
| 1655 |
\let\Lllongleftrightarrow\newLllongleftrightarrow |
| 1656 |
%%% |
| 1657 |
\let\llongrightharpoonup=\newllongrightharpoonup% |
| 1658 |
\let\llongrightharpoondown=\newllongrightharpoondown |
| 1659 |
\let\llongleftharpoonup=\newllongleftharpoonup |
| 1660 |
\let\llongleftharpoondown=\newllongleftharpoondown |
| 1661 |
%%% |
| 1662 |
\let\lllongrightharpoonup=\newlllongrightharpoonup% |
| 1663 |
\let\lllongrightharpoondown=\newlllongrightharpoondown |
| 1664 |
\let\lllongleftharpoonup=\newlllongleftharpoonup |
| 1665 |
\let\lllongleftharpoondown\newlllongleftharpoondown |
| 1666 |
%%% |
| 1667 |
\let\equilibarrow=\newequilibarrow% |
| 1668 |
\let\equiliblongarrow=\newequiliblongarrow |
| 1669 |
%%% |
| 1670 |
} |
| 1671 |
\let\chmstpspdfsw=\chmstpssw%for compatibility to PDF mode |
| 1672 |
% \end{macrocode} |
| 1673 |
% \end{macro} |
| 1674 |
% |
| 1675 |
% \begin{macrocode} |
| 1676 |
\chmstpssw%initial setting |
| 1677 |
%</chmstps> |
| 1678 |
% \end{macrocode} |
| 1679 |
% |
| 1680 |
% \Finale |
| 1681 |
\endinput |