diff options
author | Karl Berry <karl@freefriends.org> | 2009-11-19 18:35:24 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2009-11-19 18:35:24 +0000 |
commit | 300efd5afacdf57d11f593b9263b7224e8052de9 (patch) | |
tree | bf1daa5807fd927a6478a8d02b3dd78018935eb9 /Master/texmf-dist/tex/latex/subsupscripts | |
parent | d3cf783af3eef0576a9acb15fb345ac082f53d66 (diff) |
new latex package subsupscripts 1.0 (27oct09)
git-svn-id: svn://tug.org/texlive/trunk@16080 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/subsupscripts')
-rw-r--r-- | Master/texmf-dist/tex/latex/subsupscripts/subsupscripts.sty | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/subsupscripts/subsupscripts.sty b/Master/texmf-dist/tex/latex/subsupscripts/subsupscripts.sty new file mode 100644 index 00000000000..2fdea5cdf1d --- /dev/null +++ b/Master/texmf-dist/tex/latex/subsupscripts/subsupscripts.sty @@ -0,0 +1,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}{}}
\ No newline at end of file |