diff options
-rw-r--r-- | Master/texmf-dist/doc/latex/fwlw/fwlw.pdf | bin | 0 -> 152390 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/fwlw/fwlw.tex | 90 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/fwlw/fwlw.sty (renamed from Master/texmf-dist/tex/latex/ltxmisc/fwlw.sty) | 0 | ||||
-rwxr-xr-x | Master/tlpkg/bin/tlpkg-ctan-check | 2 | ||||
-rw-r--r-- | Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc | 1 | ||||
-rw-r--r-- | Master/tlpkg/tlpsrc/fwlw.tlpsrc | 0 |
6 files changed, 92 insertions, 1 deletions
diff --git a/Master/texmf-dist/doc/latex/fwlw/fwlw.pdf b/Master/texmf-dist/doc/latex/fwlw/fwlw.pdf Binary files differnew file mode 100644 index 00000000000..84d4c7ace4c --- /dev/null +++ b/Master/texmf-dist/doc/latex/fwlw/fwlw.pdf diff --git a/Master/texmf-dist/doc/latex/fwlw/fwlw.tex b/Master/texmf-dist/doc/latex/fwlw/fwlw.tex new file mode 100644 index 00000000000..be27e0246a7 --- /dev/null +++ b/Master/texmf-dist/doc/latex/fwlw/fwlw.tex @@ -0,0 +1,90 @@ +\documentclass[pagesize=auto]{scrartcl} + +\usepackage{fixltx2e} +\usepackage{etex} +\usepackage{xspace} +\usepackage{lmodern} +\usepackage[T1]{fontenc} +\usepackage{textcomp} +\usepackage{booktabs} +\usepackage{microtype} +\usepackage[unicode=true]{hyperref} + +\newcommand*{\mail}[1]{\href{mailto:#1}{\texttt{#1}}} +\newcommand*{\pkg}[1]{\textsf{#1}} +\newcommand*{\cls}[1]{\textsf{#1}} +\newcommand*{\cs}[1]{\texttt{\textbackslash#1}} +\makeatletter +\newcommand*{\cmd}[1]{\cs{\expandafter\@gobble\string#1}} +\makeatother +\newcommand*{\env}[1]{\texttt{#1}} +\newcommand*{\opt}[1]{\texttt{#1}} +\newcommand*{\meta}[1]{\textlangle\textsl{#1}\textrangle} +\newcommand*{\marg}[1]{\texttt{\{}\meta{#1}\texttt{\}}} +\newcommand*{\oarg}[1]{\texttt{[}\meta{#1}\texttt{]}} +\newcommand*{\BibTeX}{Bib\kern-0.08em\TeX\@\xspace} +\newcommand*{\BigTeX}{Big\kern-0.08em\TeX\@\xspace} + +\pdfstringdefDisableCommands{% + \def\BibTeX{BibTeX\xspace}% + \def\BigTeX{BigTeX\space}% +} + +\addtokomafont{title}{\rmfamily} + +\title{The \pkg{fwlw} package} +\subtitle{First Word, Last Word} +\author{Donald Arseneau} +\date{1995} + + +\begin{document} + +\maketitle + +\noindent +Modifications to \LaTeX\ output mechanism to determine the first and +last words on the current page, plus the first word on the \emph{next} +page. These can be used in head-lines or foot-lines. The `words' +you see may not be real words, but any unbreakable object. + +Such labelling does not make sense when \cmd{\chapter} generates a page +break, so the last page before a \cmd{\chapter} (or any \cmd{\clearpage}) gets +a blank ``next word'', and the first page of the chapter gets a blank +``first word''. There is a problem when footnotes split: the ``next word'' +is blank. + +Two pagestyles are defined to print these words: \verb+\pagestyle{NextWordFoot}+ +which helps you read ahead to the word on the next page; and \verb+\pagestyle{fwlwhead}+ +which is like the headers in a lexicon. Or you can use the +words in your own page-style\ldots + +The words are available in the box registers: +% +\begin{labeling}[\hspace{\labelsep}--]{\cmd{\FirstWordBox}} +\item[\cmd{\FirstWordBox}] first word on this page +\item[\cmd{\NextWordBox}] first word on next page +\item[\cmd{\LastWordBox}] last word on this page +\end{labeling} +% +Use them in your header lines like: \verb+\copy\LastWordBox+. + +Note that `words' may be things like: +% +\begin{itemize} +\item \verb+two~words+ +\item \verb+[ ]Word+ (\verb+[ ]+ represents a parindent box) +\item a whole displayed equation +\item the first column of an aligned equation +\item anomalously blank, if there are \cmd{\write}s or split footnotes etc. +\item partial words like \verb+par-+ or \verb+-tial+. +\end{itemize} + +An entirely different approach is possible using \cmd{\mark} and \cmd{\obeyspaces}, +and would have different problems. The problems with catcode changes +may be more or less serious for your particular application. You are +welcome to write a package using that method. The best solution would +involve \cmd{\mark} and an input filter program to +`\verb+\w{tag} \w{each} \w{word}, \w{in} \w{some} \w{way}+.' + +\end{document} diff --git a/Master/texmf-dist/tex/latex/ltxmisc/fwlw.sty b/Master/texmf-dist/tex/latex/fwlw/fwlw.sty index 17498f0bd51..17498f0bd51 100644 --- a/Master/texmf-dist/tex/latex/ltxmisc/fwlw.sty +++ b/Master/texmf-dist/tex/latex/fwlw/fwlw.sty diff --git a/Master/tlpkg/bin/tlpkg-ctan-check b/Master/tlpkg/bin/tlpkg-ctan-check index 4a144317576..d91c5ecba17 100755 --- a/Master/tlpkg/bin/tlpkg-ctan-check +++ b/Master/tlpkg/bin/tlpkg-ctan-check @@ -131,7 +131,7 @@ my @TLP_working = qw( fp fpl fragmaster fragments framed frankenstein frcursive free-math-font-survey frenchle fribrief frletter frontespizio ftcap ftnxtra - fullblck fullpict functan + fullblck fullpict functan fwlw gaceta galois garrigues gastex gatech-thesis gb4e gcard gchords gcite gene-logic genmisc genmpage gentium gentle geometry diff --git a/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc b/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc index a89cded8443..0e3df60ee1f 100644 --- a/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc +++ b/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc @@ -244,6 +244,7 @@ depend fribrief depend fullblck depend fullpict depend fundus +depend fwlw depend g-brief depend gauss depend gcard diff --git a/Master/tlpkg/tlpsrc/fwlw.tlpsrc b/Master/tlpkg/tlpsrc/fwlw.tlpsrc new file mode 100644 index 00000000000..e69de29bb2d --- /dev/null +++ b/Master/tlpkg/tlpsrc/fwlw.tlpsrc |