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