summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Master/texmf-dist/doc/latex/spacingtricks/spacingtricks.pdfbin123502 -> 125130 bytes
-rw-r--r--Master/texmf-dist/source/latex/spacingtricks/spacingtricks.dtx39
-rw-r--r--Master/texmf-dist/tex/latex/spacingtricks/spacingtricks.sty10
3 files changed, 34 insertions, 15 deletions
diff --git a/Master/texmf-dist/doc/latex/spacingtricks/spacingtricks.pdf b/Master/texmf-dist/doc/latex/spacingtricks/spacingtricks.pdf
index dbeb4464f90..814c057caea 100644
--- a/Master/texmf-dist/doc/latex/spacingtricks/spacingtricks.pdf
+++ b/Master/texmf-dist/doc/latex/spacingtricks/spacingtricks.pdf
Binary files differ
diff --git a/Master/texmf-dist/source/latex/spacingtricks/spacingtricks.dtx b/Master/texmf-dist/source/latex/spacingtricks/spacingtricks.dtx
index cfc25cb650b..fcd0222f47a 100644
--- a/Master/texmf-dist/source/latex/spacingtricks/spacingtricks.dtx
+++ b/Master/texmf-dist/source/latex/spacingtricks/spacingtricks.dtx
@@ -20,7 +20,7 @@
%<*package>
\NeedsTeXFormat{LaTeX2e}[2005/12/01]
\ProvidesPackage{spacingtricks}
- [2019/06/26 v1.0 .dtx spacingtricks file]
+ [2019/09/06 v1.1 .dtx spacingtricks file]
%</package>
%<*driver>
\documentclass{ltxdoc}
@@ -54,7 +54,7 @@
%</driver>
% \fi
%
-% \CheckSum{882}
+% \CheckSum{905}
%
% \CharacterTable
% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
@@ -76,13 +76,15 @@
% \changes{v0.1}{2011/12/27}{Initial version}
% \changes{v1.0}{2019/05/04}{dtx and ins files, added the footnote command}
% \changes{v1.0}{2019/06/16}{English translation of the documentation}
+% \changes{v1.1}{2019/09/06}{No automatic line breaking at the end of the centered command,
+% new length compactitemlist}
%
% \GetFileInfo{spacingtricks.sty}
%
% \title{The \texttt{spacingtricks} package\thanks{This document
-% corresponds to \textsf{spacingtricks}~\fileversion, initial version \filedate.}}
+% corresponds to \textsf{spacingtricks}~\fileversion, dated \filedate.}}
% \author{Antoine Missier \\ \texttt{antoine.missier@ac-toulouse.fr}}
-% \date{June 26, 2019}
+% \date{September 06, 2019}
% \maketitle
%
% \section{Introduction}
@@ -122,7 +124,7 @@
% The "\centered"\marg{text} command yields a centered line without vertical spacing.
% It acts like "\centerline" except in lists or tables where its behavior is much better
% (see the following examples).
-% Moreover, the line break before and after the macro is automatic.
+% Moreover, the line break before (but not after) the macro is automatic.
%
% Here is a comparative example of the centering commands inside a list:
% \begin{enumerate}
@@ -140,7 +142,7 @@
% the (general) column alignment
% \footnote{In tables, we can also use the powerful \texttt{\bslash makecell} command
% of the \textsf{makecell} package~\cite{MKCELL}, on the other hand
-% the \texttt{\bslash centerline} command doesn't work at all.
+% the \texttt{\bslash centerline} command doesn't work for a single line in a cell.
% Let us also mention the \texttt{\bslash centeredline} command, from the package
% \textsf{centeredline}~\cite{CENTER}, which allows to use \texttt{\bslash verb}
% commands inside the text to center; but it doesn't work in tables either.}.
@@ -148,11 +150,11 @@
% \begin{center}
% \begin{tabular}{|l|r|}
% \hline
-% left aligned column & right aligned column \\
+% left aligned column & right aligned column \\
% \hline
% another cell & \centered{centered cell} \\
% \hline
-% \centered{centered cell} & the last cell right aligned \\
+% \centered{centered line} & the last cell right aligned \\
% \hline
% \end{tabular}
% \end{center}
@@ -376,6 +378,13 @@
% macro \texttt{xspace} from the \textsf{xspace} package~\cite{XSP}).
%
% \medskip
+% \DescribeMacro{\compactlistindent}
+% This length (fixed at 1\,em by default) can be modified with "\setlength" to increase
+% or decrease the indentation of the \texttt{compactlist} environment.
+% Notice that there are several other ways to construct a compact list in particular
+% with the \texttt{noitemsep} key of the \textsf{enumitem} package~\cite{ENUM}.
+%
+% \medskip
% \DescribeMacro{\ie} \DescribeMacro{\eg}
% In English, at the end of a sentence, the point is followed by an em space
% which is larger than an interword space.
@@ -524,14 +533,18 @@
\item[]
}{\end{list}}
+\newlength{\compactlistindent}
+\setlength{\compactlistindent}{1em}
\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}
+ \setlength{\labelwidth}{1em}
+ \setlength{\leftmargin}{\labelwidth}
+ \addtolength{\leftmargin}{\labelsep}
+ \addtolength{\leftmargin}{\compactlistindent}
}
}{\end{list}}
@@ -565,16 +578,18 @@
% \end{macrocode}
%
% \medskip
-% \begin{thebibliography}{8}
+% \begin{thebibliography}{9}
% \bibitem{XSP} \emph{The \textsf{xspace} package}, David Carlisle, Morten Høgholm,
% CTAN v1.13 2014/10/28.
% \bibitem{MKCELL} \emph{The \textsf{makecell} package}, Olga Lapko, CTAN, v0.1e 2009/08/03.
% \bibitem{CENTER} \emph{\textsf{centeredline} -- A macro for centering lines}, Jean-François
% Burnol, CTAN, v1.1 2019/05/03.
% \bibitem{CELLSP} \emph{The \textsf{cellspace} package}, Josselin Noirel, CTAN, v1.8 2019/03/11.
+% \bibitem{ENUM} \emph{Customizing lists with the \textsf{enumitem} package}, Javier Bezos,
+% CTAN, v3.9 2019/06/20.
% \bibitem{ARCOL} \emph{The \textsf{arraycols} package}, Antoine Missier, CTAN, v1.0 2019/06/26.
% \bibitem{MSMATH} \emph{\textsf{mismath} -- Miscellaneous mathematical macros}, Antoine Missier,
-% CTAN, v1.5 2019/06/22.
+% CTAN, v1.6 2019/09/06.
% \bibitem{PICINS} \emph{Bilder in \LaTeX -Dokumenten -- PicIns-Benutzerhandbuch},
% Joachim Bleser, Edmund Lang, CTAN, v3.0 sept. 1992.
% \bibitem{COMP} \emph{The \LaTeX\ Companion}. Frank Mittelbach, Michel Goossens,
diff --git a/Master/texmf-dist/tex/latex/spacingtricks/spacingtricks.sty b/Master/texmf-dist/tex/latex/spacingtricks/spacingtricks.sty
index d026b759d57..35064ab25a2 100644
--- a/Master/texmf-dist/tex/latex/spacingtricks/spacingtricks.sty
+++ b/Master/texmf-dist/tex/latex/spacingtricks/spacingtricks.sty
@@ -22,7 +22,7 @@
%%
\NeedsTeXFormat{LaTeX2e}[2005/12/01]
\ProvidesPackage{spacingtricks}
- [2019/06/26 v1.0 .dtx spacingtricks file]
+ [2019/09/06 v1.1 .dtx spacingtricks file]
\RequirePackage{ifthen}
\RequirePackage{xspace}
@@ -61,14 +61,18 @@
\item[]
}{\end{list}}
+\newlength{\compactlistindent}
+\setlength{\compactlistindent}{1em}
\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}
+ \setlength{\labelwidth}{1em}
+ \setlength{\leftmargin}{\labelwidth}
+ \addtolength{\leftmargin}{\labelsep}
+ \addtolength{\leftmargin}{\compactlistindent}
}
}{\end{list}}