summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-06-27 21:00:55 +0000
committerKarl Berry <karl@freefriends.org>2019-06-27 21:00:55 +0000
commitc42d11dc2660b6d946ae415f0f2dec0367b0eb33 (patch)
treecc9af8757dfe61297133d21faa43040ec6d17e03 /Master/texmf-dist/tex
parent144303ebd5af8db374ad8c0dfb144ef433b4f981 (diff)
spacingtricks (27jun19)
git-svn-id: svn://tug.org/texlive/trunk@51495 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r--Master/texmf-dist/tex/latex/spacingtricks/spacingtricks.sty100
1 files changed, 100 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/spacingtricks/spacingtricks.sty b/Master/texmf-dist/tex/latex/spacingtricks/spacingtricks.sty
new file mode 100644
index 00000000000..d026b759d57
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/spacingtricks/spacingtricks.sty
@@ -0,0 +1,100 @@
+%%
+%% This is file `spacingtricks.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% spacingtricks.dtx (with options: `package')
+%%
+%% This is a generated file.
+%%
+%% Copyright (C) 2019 by Antoine Missier <antoine.missier@ac-toulouse.fr>
+%%
+%% This file may be distributed and/or modified under the conditions of
+%% the LaTeX Project Public License, either version 1.3 of this license
+%% or (at your option) any later version. The latest version of this
+%% license is in:
+%%
+%% http://www.latex-project.org/lppl.txt
+%%
+%% and version 1.3 or later is part of all distributions of LaTeX version
+%% 2005/12/01 or later.
+%%
+\NeedsTeXFormat{LaTeX2e}[2005/12/01]
+\ProvidesPackage{spacingtricks}
+ [2019/06/26 v1.0 .dtx spacingtricks file]
+\RequirePackage{ifthen}
+\RequirePackage{xspace}
+
+\newcommand*{\centered}[1]{{\setlength{\parskip}{0pt}\par\noindent\hfill
+ #1\hfill\mbox{}\par}}
+\newcommand{\footnotespace}{}
+\newcommand{\footnoteindent}{}
+\let\footnt\footnote
+\renewcommand{\footnote}[2][]{\unskip\footnotespace%
+ \ifthenelse{\equal{#1}{}}{
+ \unskip\footnt{\footnoteindent\ignorespaces #2}
+ }{
+ \unskip\footnt[#1]{\footnoteindent\ignorespaces #2}
+ }\unskip
+}
+\newlength{\strutheight}
+\newcommand*{\vstrut}[2][0pt]{%
+ \setlength{\strutheight}{#2}%
+ \addtolength{\strutheight}{#1}%
+ \unskip
+ \ensuremath{\rule[-#1]{0pt}{\strutheight}}%
+ \ignorespaces%
+}
+
+\newlength{\parindentlength}
+\setlength{\parindentlength}{\parindent}
+\renewcommand{\indent}{\hspace{\parindentlength}}
+
+\newenvironment*{indentblock}[1][\parindentlength]{
+ \begin{list}{}{%
+ \setlength{\leftmargin}{#1}
+ \setlength{\itemsep}{0pt}
+ \setlength{\topsep}{1ex}
+ \setlength{\partopsep}{0pt}
+ }
+ \item[]
+ }{\end{list}}
+
+\newenvironment*{compactlist}[1][\textbullet]{
+ \begin{list}{#1\unskip}{% \unskip suppresses the space created by \xspace
+ \setlength{\labelwidth}{1em}
+ %\setlength{\leftmargin}{\labelwidth} % indentation
+ \setlength{\itemsep}{0pt}
+ \setlength{\parsep}{0pt}
+ \setlength{\topsep}{0ex}
+ \setlength{\partopsep}{0pt}
+ }
+ }{\end{list}}
+
+\providecommand{\bul}{\textbullet}
+\providecommand{\dash}{\textendash}
+\providecommand{\ddash}{\textemdash}
+\providecommand{\aster}{\textasteriskcentered}
+\providecommand{\hand}{\ding{43}\xspace}
+\providecommand{\checksymb}{\ding{51}\xspace}
+\providecommand{\arrowsymb}{\ding{226}\xspace}
+
+\providecommand{\ie}{i.e.\@\xspace}
+\providecommand{\eg}{e.g.\@\xspace}
+
+\newcommand{\@@dualboxes}[3][1]{
+ \par\noindent
+ \raisebox{-#1\height}{#2} \hfill
+ \raisebox{-#1\height}{#3} \smallskip
+ }
+\newcommand{\@dualboxes}[3][1]{
+ \par\noindent \hfill
+ \raisebox{-#1\height}{#2} \hfill
+ \raisebox{-#1\height}{#3} \hfill\mbox{}\smallskip
+ }
+\newcommand{\dualboxes}{\@ifstar{\@@dualboxes}{\@dualboxes}}
+
+\endinput
+%%
+%% End of file `spacingtricks.sty'.