From 300efd5afacdf57d11f593b9263b7224e8052de9 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 19 Nov 2009 18:35:24 +0000 Subject: new latex package subsupscripts 1.0 (27oct09) git-svn-id: svn://tug.org/texlive/trunk@16080 c570f23f-e606-0410-a88d-b1316a301751 --- .../tex/latex/subsupscripts/subsupscripts.sty | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Master/texmf-dist/tex/latex/subsupscripts/subsupscripts.sty (limited to 'Master/texmf-dist/tex/latex/subsupscripts') 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 -- cgit v1.2.3