From 10de002a89f8d259923ae38d4f6d5f79638f90cb Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 1 Apr 2013 22:52:30 +0000 Subject: needspace (1apr13) git-svn-id: svn://tug.org/texlive/trunk@29601 c570f23f-e606-0410-a88d-b1316a301751 --- .../texmf-dist/doc/latex/needspace/needspace.pdf | Bin 137092 -> 157011 bytes .../source/latex/needspace/needspace.tex | 24 ++++++++++----------- .../texmf-dist/tex/latex/needspace/needspace.sty | 6 +----- Master/tlpkg/libexec/ctan2tds | 1 + 4 files changed, 14 insertions(+), 17 deletions(-) (limited to 'Master') diff --git a/Master/texmf-dist/doc/latex/needspace/needspace.pdf b/Master/texmf-dist/doc/latex/needspace/needspace.pdf index 6082e146bda..385ac3b4ead 100644 Binary files a/Master/texmf-dist/doc/latex/needspace/needspace.pdf and b/Master/texmf-dist/doc/latex/needspace/needspace.pdf differ 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 diff --git a/Master/tlpkg/libexec/ctan2tds b/Master/tlpkg/libexec/ctan2tds index 3615bacf1d6..e8dd3186337 100755 --- a/Master/tlpkg/libexec/ctan2tds +++ b/Master/tlpkg/libexec/ctan2tds @@ -1916,6 +1916,7 @@ $standardsource='\.(bat|c|drv|dtx|fea|fdd|ins|sfd)$|configure.*|install-sh'; 'microtype-de', 'NULL', # doc package 'mkjobtexmf', 'Makefile.in|' . $standardsource, 'mpman-ru', 'NULL', # doc package + 'needspace', '\.tex|' . $standardsource, 'ot2cyr', '\.afm|\.etx|' . $standardsource, 'patch', '\.doc', 'pdfx', 'rvdtx\.sty|' . $standardsource, -- cgit v1.2.3