blob: 2fdea5cdf1df8d96263b9ab977a31d6403c57e13 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{subsupscripts}[2009/10/27 v1.0]
% Default skips
\newcommand{\singleleftscriptskip}{-0.27ex}
\newcommand{\singlerightscriptskip}{-0.18ex}
\newcommand{\dblleftscriptskip}{-0.75ex}
\newcommand{\dblrightscriptskip}{-0.645ex}
% Customize skips
\newcommand{\setSingleLSkip}[1]{\renewcommand{\singleleftscriptskip}{#1}}
\newcommand{\setSingleRSkip}[1]{\renewcommand{\singlerightscriptskip}{#1}}
\newcommand{\setDblLSkip}[1]{\renewcommand{\dblleftscriptskip}{#1}}
\newcommand{\setDblRSkip}[1]{\renewcommand{\dblrightscriptskip}{#1}}
\newcommand{\largerSkips}{\setSingleLSkip{-0.16ex}\setSingleRSkip{-0.07ex}\setDblLSkip{0ex}\setDblRSkip{0ex}}
% Scripts commands
\newcommand{\fourscriptsC}[7]{{\null}^{#2}_{#3}\hspace{#6}#1\hspace{#7}{\null}^{#4}_{#5}}
\newcommand{\lrsubscriptsC}[5]{\fourscriptsC{#1}{}{#2}{}{#3}{#4}{#5}}
\newcommand{\lrsuperscriptsC}[5]{\fourscriptsC{#1}{#2}{}{#3}{}{#4}{#5}}
\newcommand{\fourscripts}[5]{\fourscriptsC{#1}{#2}{#3}{#4}{#5}{\dblleftscriptskip}{\dblrightscriptskip}}
\newcommand{\lrsubscripts}[3]{\fourscripts{#1}{}{#2}{}{#3}}
\newcommand{\lrsuperscripts}[3]{\fourscripts{#1}{#2}{}{#3}{}}
\newcommand{\twolscripts}[4][\singleleftscriptskip]{{\null}^{#3}_{#4}\hspace{#1}#2}
\newcommand{\tworscripts}[4][\singlerightscriptskip]{#2\hspace{#1}{\null}^{#3}_{#4}}
\newcommand{\lsubscript}[3][\singleleftscriptskip]{\twolscripts[#1]{#2}{}{#3}}
\newcommand{\lsuperscript}[3][\singleleftscriptskip]{\twolscripts[#1]{#2}{#3}{}}
\newcommand{\rsubscript}[3][\singlerightscriptskip]{\tworscripts[#1]{#2}{}{#3}}
\newcommand{\rsuperscript}[3][\singlerightscriptskip]{\tworscripts[#1]{#2}{#3}{}}
|