diff options
author | Karl Berry <karl@freefriends.org> | 2013-04-01 22:52:30 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2013-04-01 22:52:30 +0000 |
commit | 10de002a89f8d259923ae38d4f6d5f79638f90cb (patch) | |
tree | 1e799f3b40733828959e7b36ec875e2da6fa6be1 /Master/texmf-dist | |
parent | e6bf1654e9dcecdb03d8172c7493d45fc245783d (diff) |
needspace (1apr13)
git-svn-id: svn://tug.org/texlive/trunk@29601 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r-- | Master/texmf-dist/doc/latex/needspace/needspace.pdf | bin | 137092 -> 157011 bytes | |||
-rw-r--r-- | Master/texmf-dist/source/latex/needspace/needspace.tex | 24 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/needspace/needspace.sty | 6 |
3 files changed, 13 insertions, 17 deletions
diff --git a/Master/texmf-dist/doc/latex/needspace/needspace.pdf b/Master/texmf-dist/doc/latex/needspace/needspace.pdf Binary files differindex 6082e146bda..385ac3b4ead 100644 --- a/Master/texmf-dist/doc/latex/needspace/needspace.pdf +++ b/Master/texmf-dist/doc/latex/needspace/needspace.pdf diff --git a/Master/texmf-dist/source/latex/needspace/needspace.tex b/Master/texmf-dist/source/latex/needspace/needspace.tex index 365cdcca10f..fc7c81e92f4 100644 --- a/Master/texmf-dist/source/latex/needspace/needspace.tex +++ b/Master/texmf-dist/source/latex/needspace/needspace.tex @@ -12,10 +12,10 @@ %%%%%%%%%%%%%%%%%%%% \RequirePackage{filecontents} -\begin{filecontents}{needspace.sty} +\begin{filecontents*}{needspace.sty} \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{needspace}[2010/09/12 v1.3c reserve vertical space] +\ProvidesPackage{needspace}[2010/09/12 v1.3d reserve vertical space] \newcommand{\needspace}[1]{% \begingroup @@ -48,7 +48,7 @@ \break \fi\endgroup} -\end{filecontents} +\end{filecontents*} %%%%%%%%%1%%%%%%%%%2%%%%%%%%%3%%%%%%%%%4%%%%%%%%%5 @@ -72,7 +72,7 @@ %% DOCUMENTATION %% %%%%%%%%%%%%%%%%%%% -\documentclass{article} +\documentclass{ltxdoc} \usepackage[it,medium]{titlesec} \usepackage[T1]{fontenc} \usepackage{microtype} @@ -81,13 +81,10 @@ \linespread{1.1} \frenchspacing +\usepackage{fancyvrb} + \usepackage[svgnames]{xcolor} \usepackage[colorlinks,linktocpage]{hyperref} -\usepackage{gmdoc} -\usepackage{gmverb} -\dekclubs -\stanzaskip=\bigskipamount -\CodeSpacesGrey \DeclareRobustCommand\pkg{\textsf} \usepackage{needspace} @@ -109,7 +106,7 @@ This packages two commands, \cs{needspace} and \cs{Needspace}, for reserving space to keep a certain amount of material from being split over a page break. -If there is not enough space, a `\newpage' is automatically inserted. +If there is not enough space, a \verb|\newpage| is automatically inserted. The \cs{needspace}\meta{length} macro reserves an \emph{approximate} amount of space \meta{length} for the material following to be kept on the same page. The accuracy of its @@ -132,6 +129,9 @@ Here, we request that we need next five lines on a single page/column: \needspace{5\baselineskip} The next five lines ... \end{verbatim} + +\newpage +\noindent In this case, the space is reserved more accurately: \begin{verbatim} ... previous text. @@ -152,12 +152,12 @@ The current maintainer of this work is Will Robertson. \bigskip \noindent Copyright Peter Wilson, 1996--2003 \\ - Copyright Will Robertson, 2010 + Copyright Will Robertson, 2010, 2013 \clearpage \parindent=0pt \section{Implementation} -\DocInput{needspace.sty} +\VerbatimInput{needspace.sty} \end{document} diff --git a/Master/texmf-dist/tex/latex/needspace/needspace.sty b/Master/texmf-dist/tex/latex/needspace/needspace.sty index a30aa51a16c..113d87216ff 100644 --- a/Master/texmf-dist/tex/latex/needspace/needspace.sty +++ b/Master/texmf-dist/tex/latex/needspace/needspace.sty @@ -1,10 +1,6 @@ -%% LaTeX2e file `needspace.sty' -%% generated by the `filecontents' environment -%% from source `needspace' on 2010/09/12. -%% \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{needspace}[2010/09/12 v1.3c reserve vertical space] +\ProvidesPackage{needspace}[2010/09/12 v1.3d reserve vertical space] \newcommand{\needspace}[1]{% \begingroup |