Debian Codegraph @

texmf-dist/tex/latex/oberdiek/chemarr.sty

raw
1 %%
2 %% This is file `chemarr.sty',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% chemarr.dtx (with options: `package')
8 %%
9 %% This is a generated file.
10 %%
11 %% Project: chemarr
12 %% Version: 2016/05/16 v1.3
13 %%
14 %% Copyright (C)
15 %% 2001, 2006 Heiko Oberdiek
16 %% 2016-2019 Oberdiek Package Support Group
17 %%
18 %% This work may be distributed and/or modified under the
19 %% conditions of the LaTeX Project Public License, either
20 %% version 1.3c of this license or (at your option) any later
21 %% version. This version of this license is in
22 %% https://www.latex-project.org/lppl/lppl-1-3c.txt
23 %% and the latest version of this license is in
24 %% https://www.latex-project.org/lppl.txt
25 %% and version 1.3 or later is part of all distributions of
26 %% LaTeX version 2005/12/01 or later.
27 %%
28 %% This work has the LPPL maintenance status "maintained".
29 %%
30 %% The Current Maintainers of this work are
31 %% Heiko Oberdiek and the Oberdiek Package Support Group
32 %% https://github.com/ho-tex/oberdiek/issues
33 %%
34 %%
35 %% This work consists of the main source file chemarr.dtx
36 %% and the derived files
37 %% chemarr.sty, chemarr.pdf, chemarr.ins, chemarr.drv,
38 %% chemarr-example.tex.
39 %%
40 \NeedsTeXFormat{LaTeX2e}
41 \ProvidesPackage{chemarr}%
42 [2016/05/16 v1.3 Arrows for chemical reactions (HO)]
43 \RequirePackage{amsmath}
44 \newcommand{\xrightleftharpoons}[2][]{%
45 \ensuremath{%
46 \mathrel{%
47 \settoheight{\dimen@}{\raise 2pt\hbox{$\rightharpoonup$}}%
48 \setlength{\dimen@}{-\dimen@}%
49 \edef\CA@temp{\the\dimen@}%
50 \settoheight\dimen@{$\rightleftharpoons$}%
51 \addtolength{\dimen@}{\CA@temp}%
52 \raisebox{\dimen@}{%
53 \rlap{%
54 \raisebox{2pt}{%
55 $%
56 \ext@arrow 0359\rightharpoonupfill@{\hphantom{#1}}{#2}%
57 $%
58 }%
59 }%
60 \hbox{%
61 $%
62 \ext@arrow 3095\leftharpoondownfill@{#1}{\hphantom{#2}}%
63 $%
64 }%
65 }%
66 }%
67 }%
68 }
69 \newcommand*{\leftharpoondownfill@}{%
70 \arrowfill@\leftharpoondown\relbar\relbar
71 }
72 \newcommand*{\rightharpoonupfill@}{%
73 \arrowfill@\relbar\relbar\rightharpoonup
74 }
75 \endinput
76 %%
77 %% End of file `chemarr.sty'.