diff options
Diffstat (limited to 'Master/texmf-dist/source/latex/base/ltspace.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/base/ltspace.dtx | 112 |
1 files changed, 56 insertions, 56 deletions
diff --git a/Master/texmf-dist/source/latex/base/ltspace.dtx b/Master/texmf-dist/source/latex/base/ltspace.dtx index 5f867a72a3b..4ad37e1c377 100644 --- a/Master/texmf-dist/source/latex/base/ltspace.dtx +++ b/Master/texmf-dist/source/latex/base/ltspace.dtx @@ -2,29 +2,29 @@ % % Copyright 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 % The LaTeX3 Project and any individual authors listed elsewhere -% in this file. -% +% in this file. +% % This file is part of the LaTeX base system. % ------------------------------------------- -% +% % It may be distributed and/or modified under the % conditions of the LaTeX Project Public License, either version 1.3c % 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.3c or later is part of all distributions of LaTeX +% and version 1.3c or later is part of all distributions of LaTeX % version 2005/12/01 or later. -% +% % This file has the LPPL maintenance status "maintained". -% +% % The list of all files belonging to the LaTeX base distribution is % given in the file `manifest.txt'. See also `legal.txt' for additional % information. -% -% The list of derived (unpacked) files belonging to the distribution -% and covered by LPPL is defined by the unpacking scripts (with +% +% The list of derived (unpacked) files belonging to the distribution +% and covered by LPPL is defined by the unpacking scripts (with % extension .ins) which are part of the distribution. -% +% % \fi % % \iffalse @@ -69,7 +69,7 @@ % This section deals with spacing, and line- and page-breaking. % % \subsection{User Commands} -% +% % \DescribeMacro\nopagebreak\oarg{i} : \meta{i} = 0,...,4. % % Default argument = 4. Puts a penalty into the vertical list @@ -80,15 +80,15 @@ % 3 : penalty = |\@highpenalty|\\ % 4 : penalty = 10000 % -% \DescribeMacro\pagebreak\oarg{i} : +% \DescribeMacro\pagebreak\oarg{i} : % same as \nopagebreak except negatives of its penalty % % \DescribeMacro\linebreak\oarg{i} : analog of the above % % \DescribeMacro\nolinebreak\oarg{i} : analog of the above % -% \DescribeMacro\samepage : -% inhibits page breaking most places by setting the +% \DescribeMacro\samepage : +% inhibits page breaking most places by setting the % following penalties to 10000:\\ % |\interlinepenalty|\\ % |\postdisplaypenalty|\\ @@ -101,7 +101,7 @@ % % \DescribeMacro{\\} : initially defined to be |\newline| % -% |\\|\oarg{length} : initially defined to be +% |\\|\oarg{length} : initially defined to be % |\vspace|\marg{length}|\newline|\\ % Note: |\\*| adds a |\vadjust{\penalty 10000}| % @@ -124,9 +124,9 @@ % mechanisms: % \begin{itemize} % \item |\unskip| is used to remove the glue just added by -% a space that has already had its effect; it is sometimes -% invoked after an |\ifdim| test on |\lastskip| (see below); -% \item |\ignorespaces| is used to ignore space-tokens yet to come. +% a space that has already had its effect; it is sometimes +% invoked after an |\ifdim| test on |\lastskip| (see below); +% \item |\ignorespaces| is used to ignore space-tokens yet to come. % \end{itemize} % % The test done on |\lastskip| is sometimes for equality with zero and @@ -139,7 +139,7 @@ % internally does an |\unskip|) and one bit of code (in |\@item|) even % has two |\unskips| before a |\par|. These uses may be fossil code % but if they are necessary, maybe |\@killglue| would be even safer. -% +% % Such removal of glue by |\unskip| may sometimes have the wrong result, % removing not the glue from a space-token but other explicit glue; % this is sometimes not what is intended. @@ -168,14 +168,14 @@ % % Also, the current rules do not work well when more than one such % command appears consecutively, separated by space-tokens; it leaves -% glue between every other invisible. +% glue between every other invisible. % % There is also a question about what these commands should do when % they occur next to spaces that do not come from space tokens but, % for example, from |\hspace|. Should they still produce `just one % space'? If so, which one? It is good to note that the manual % is sufficiently cautious about invisibles that we are not obliged to -% make anything work. +% make anything work. % % Another interesting side-road to explore is whether the space-tokens % either side of an |\hspace{...}| should be ignored. @@ -204,11 +204,11 @@ % paragraphs, which is probably not what the author intended (since % there is no empty line after it). % \begin{verbatim} -% +% % \index{beginnings} % Beginnings of paragraphs ... % \end{verbatim} -% +% % I know of no algorithm that will handle satisfactorily even % all the most common cases; note that it could be that the best % algorithm may be different for different invisibles since, @@ -224,7 +224,7 @@ % to zero; examples of such glue are |\hskip 1sp| and, possibly better % but more complex, |\hskip -1sp \hskip 1sp|. However, this only works % when it is known that user-supplied text is about to start. -% +% % Some similar concerns apply to the handling of space and penalties % in vertical mode; there is an extra hurdle here as |\unskip| does % not work on the main vertical list. The complexity of the tests done @@ -265,11 +265,11 @@ % \item Remove unnecessary |\unskips|. % \item Investigate and rationalise the `newline' code. % \item Find better algorithms for all sorts of things or, easier(?), -% fix \TeX{} itself. +% fix \TeX{} itself. % \end{itemize} -% +% % \subsection{The code} -% +% % \begin{macrocode} %<*2ekernel> \message{spacing,} @@ -288,7 +288,7 @@ % % % \begin{macro}{\@no@pgbk} -% \changes{v1.2h}{1995/07/05}{Macro replaces \cs{@pgbk} +% \changes{v1.2h}{1995/07/05}{Macro replaces \cs{@pgbk} % and \cs{@nopgbk}} % \begin{macrocode} \def\@no@pgbk #1[#2]{% @@ -313,7 +313,7 @@ % \end{macro} % \end{macro} % \begin{macro}{\@no@lnbk} -% \changes{v1.2u}{1996/10/29}{Macro replaces \cs{@lnbk} +% \changes{v1.2u}{1996/10/29}{Macro replaces \cs{@lnbk} % and \cs{@nolnbk}} % \begin{macrocode} \def\@no@lnbk #1[#2]{% @@ -411,13 +411,13 @@ \def\@gnewline #1{% \ifvmode \@nolnerr - \else + \else \unskip \reserved@e {\reserved@f#1}\nobreak \hfil \break \fi} % \end{macrocode} % \end{macro} % -% +% % \begin{macro}{\@getpen} % \begin{macrocode} \def\@getpen#1{\ifcase #1 \z@ \or \@lowpenalty\or @@ -516,21 +516,21 @@ % destroy them. %\begin{verbatim} %\def \@esphack{% -% \relax \ifvmode -% \nobreak -% \ifdim \@savsk=\z@ -% \else +% \relax \ifvmode +% \nobreak +% \ifdim \@savsk=\z@ +% \else % \vskip\@savsk % \fi -% \else +% \else % \ifhmode % \spacefactor \@savsf -% \ifdim \@savsk>\z@ +% \ifdim \@savsk>\z@ % \ignorespaces -% \fi +% \fi % \fi % \fi -%} +%} %\end{verbatim} % For the moment we are going to ignore the vertical versions until % they are correct. @@ -585,13 +585,13 @@ % not live in vmode (this is how some people feel about marginals). % % If it occurs in vmode then it enters hmode and ensures that -% |\@savsk| is nonzero so that the |\ignorespaces| is put in later. +% |\@savsk| is nonzero so that the |\ignorespaces| is put in later. % It is not used at present. % \changes{v1.2f}{1995/05/25}{(CAR) not used so `removed'.} %\begin{verbatim} % \def \@vbsphack{ % % \relax \ifvmode -% \leavevmode +% \leavevmode % \@savsk 1sp % \@savsf \spacefactor % \else @@ -608,8 +608,8 @@ % \subsection{Vertical spacing} % % -% \LaTeX\ supports the plain \TeX\ commands -% |\smallskip|, |\medskip| and |\bigskip|. +% \LaTeX\ supports the plain \TeX\ commands +% |\smallskip|, |\medskip| and |\bigskip|. % However, it redefines them using |\vspace| instead of |\vskip|. % % Extra vertical space is added by the command @@ -675,7 +675,7 @@ % \end{macrocode} % \end{macro} % -% +% % \begin{macro}{\addvspace} % \changes{v1.2b}{1994/11/12}{Corrected error message} % \changes{v1.2c}{1994/11/13}{Recorrected error message} @@ -730,16 +730,16 @@ % \begin{macro}{\@vspacer} % \changes{v1.2f}{1995/05/25} % {(CAR) macros modified to be more efficient} -% \changes{v1.2f}{1995/05/25}{(CAR) \cs{@restorepar} added to avoid +% \changes{v1.2f}{1995/05/25}{(CAR) \cs{@restorepar} added to avoid % possible infinite tail recursion caused by a typo in the argument.} % The new code for these commands depends on the following facts: % \begin{itemize} -% \item The value of prevdepth is changed only when a box or rule +% \item The value of prevdepth is changed only when a box or rule % is created and added to a vertical list; -% \item The value of prevdepth is used only when a box is created +% \item The value of prevdepth is used only when a box is created % and added to a vertical list; -% \item The value of prevdepth is always local to the building of -% one vertical list. +% \item The value of prevdepth is always local to the building of +% one vertical list. % \end{itemize} % \begin{macrocode} \DeclareRobustCommand\vspace{\@ifstar\@vspacer\@vspace} @@ -791,7 +791,7 @@ % \end{macro} % \end{macro} % \end{macro} -% +% % \begin{macro}{\smallskipamount} % \begin{macro}{\medskipamount} % \begin{macro}{\bigskipamount} @@ -814,7 +814,7 @@ % This idea is borrowed from the \textsf{amsmath} package but % here we define a robust command. % -% This command is a low-level command designed for use only before +% This command is a low-level command designed for use only before % hyphens or dashes (such as |-|, |--|, or |---|). % % It could probably be better implemented: it may need its own @@ -851,7 +851,7 @@ % \begin{macro}{\@xobeysp} % \changes{v1.2t}{1996/09/28}{Moved from ltmiscen.dtx and redefined to % use \cs{nobreakspace }} -% +% % This is a robust command that produces a horizontal space at % which, in paragraph-mode, a line-break is not possible. We then % define an active |~| to expand to it since this is the documented @@ -865,7 +865,7 @@ % % We need to keep \cs{@xobeysp} as it is widely used; so here it is % let to the non-robust command \cs{nobreakspace }. -% +% % \begin{macrocode} \DeclareRobustCommand{\nobreakspace}{% \leavevmode\nobreak\ } @@ -934,7 +934,7 @@ % % \begin{macro}{\fill} % \begin{macrocode} -\newskip\fill +\newskip\fill \fill = 0pt plus 1fill % \end{macrocode} % \end{macro} @@ -973,7 +973,7 @@ % \end{macro} % \end{macro} % \end{macro} -% +% % \begin{macro}{\obeycr} % \begin{macro}{\restorecr} % The following definitions will probably get deleted or moved to @@ -986,7 +986,7 @@ \@gobblecr}% {\catcode`\^^M=13 \gdef\@gobblecr{\@ifnextchar \@gobble\ignorespaces}} -\gdef\restorecr{\catcode`\^^M5 }} +\gdef\restorecr{\catcode`\^^M5 }} % \end{macrocode} % \end{macro} % \end{macro} |