summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2016-09-06 21:31:34 +0000
committerKarl Berry <karl@freefriends.org>2016-09-06 21:31:34 +0000
commit327ccdda521fd51f95fc32ad7f01789a5a278f5d (patch)
tree4a3ee83b2cdbeda34b729c4b5bc250227d5cd955 /Master/texmf-dist/doc
parent47962829fa9ae2e9127ec987e6428fcf34da7578 (diff)
fancyhdr (6sep16)
git-svn-id: svn://tug.org/texlive/trunk@42004 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc')
-rw-r--r--Master/texmf-dist/doc/latex/fancyhdr/fancyhdr.pdfbin378142 -> 383113 bytes
-rw-r--r--Master/texmf-dist/doc/latex/fancyhdr/fancyhdr.tex43
2 files changed, 34 insertions, 9 deletions
diff --git a/Master/texmf-dist/doc/latex/fancyhdr/fancyhdr.pdf b/Master/texmf-dist/doc/latex/fancyhdr/fancyhdr.pdf
index 49b2aef326c..b765f8720bf 100644
--- a/Master/texmf-dist/doc/latex/fancyhdr/fancyhdr.pdf
+++ b/Master/texmf-dist/doc/latex/fancyhdr/fancyhdr.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/fancyhdr/fancyhdr.tex b/Master/texmf-dist/doc/latex/fancyhdr/fancyhdr.tex
index 910136ece15..0b4c0527a5f 100644
--- a/Master/texmf-dist/doc/latex/fancyhdr/fancyhdr.tex
+++ b/Master/texmf-dist/doc/latex/fancyhdr/fancyhdr.tex
@@ -6,6 +6,7 @@
\usepackage{array}
\usepackage{a4wide}
\usepackage{boxedminipage}
+\usepackage{fourier-orns}
\makeindex
\title{Page layout in \LaTeX}
\author{Piet van Oostrum\thanks{A considerable part of this article was
@@ -24,9 +25,9 @@
PSNFSS}}
\newcommand{\bs}{\symbol{'134}}
\newcommand{\Cmd}[1]{\texttt{\def\{{\char`\{}\def\}{\char`\}}\bs#1}}
-\newcommand{\CmdIndex}[1]{\index{#1@\texttt{\bs#1}}}
-\newcommand{\TTindex}[1]{\index{#1@\texttt{#1}}}
-\newcommand{\PSindex}[1]{\index{page style!#1@\texttt{#1}}}
+\newcommand{\CmdIndex}[1]{\index{#1@\string\texttt{\bs#1}}}
+\newcommand{\TTindex}[1]{\index{#1@\string\texttt{#1}}}
+\newcommand{\PSindex}[1]{\index{page style!#1@\string\texttt{#1}}}
%\floatstyle{ruled}
\restylefloat{figure}
\renewcommand{\topfraction}{0.9}
@@ -776,6 +777,23 @@ redefine the command \Cmd{headrule}:
to\headwidth{\dotfill}\vss}}
\end{verbatim}
+As an alternative to changing \Cmd{headrulewidth} to 0 to have the rule disappear, you can also make it empty with
+\begin{verbatim}
+\renewcommand{\headrule}{}
+\end{verbatim}
+Visually this make no difference, but it is more difficult to restore it later to its default value.
+
+Finally, let us make a real `decorative' line\footnote{Based upon an idea by Wayne Chan.}.
+\begin{verbatim}
+\usepackage{fourier-orns}
+...
+\renewcommand\headrule{\hrulefill
+\raisebox{-2.1pt}[10pt][10pt]{\quad\decofourleft\decotwo\decofourright\quad}\hrulefill}
+\end{verbatim}
+This gives us the following headrule:
+
+\noindent\makebox[\textwidth]{\hrulefill \raisebox{-2.1pt}[10pt][10pt]{\quad\decofourleft\decotwo\decofourright\quad}\hrulefill}
+
\CmdIndex{footruleskip}
There is one additional parameter that you can set: \Cmd{footruleskip}. It
defines the distance between the decorative line in the footer and the top
@@ -942,11 +960,10 @@ by defining:
\end{verbatim}
Sometimes you may want to change the layout also for pages that contain a
-float on the top of the page or a float on the bottom of the page.
+float on the top of the page, a float on the bottom of the page or a footnote on the bottom of the page.
-\textsf{fancyhdr} gives you the commands \Cmd{iftopfloat} and \Cmd{ifbotfloat}
-similar to
- \Cmd{iffloatpage}.
+\textsf{fancyhdr} gives you the commands \Cmd{iftopfloat}, \Cmd{ifbotfloat} and \Cmd{iffootnote}
+similar to \Cmd{iffloatpage}.
Note: Marks in floats will not be visible in \latex/'s output routine, so
it is not useful to put marks in floats. So there is currently no way to
@@ -1165,7 +1182,7 @@ package: If commands of the form
\Cmd{lastxmark} gives you the last $m_2$ value
of the current page.
-In case you want the last $m_1$ value or the first $m_2$ value, you can use the \Cmd{lastleftxmark} or \Cmd{firstrightxmark}, respectively. For symmetry reasons there are also commands \Cmd{firstleftxmark} (=\Cmd{firstxmark}), \Cmd{lastrightxmark} (=\Cmd{lastxmark}), \Cmd{topleftxmark} (=\Cmd{topxmark}) and \Cmd{toprightxmark}.
+In case you want the last $m_1$ value or the first $m_2$ value, you can use the \Cmd{lastleftxmark} or \Cmd{firstrightxmark}, respectively. For symmetry reasons there are also commands \Cmd{firstleftxmark} (=\Cmd{firstxmark}), \Cmd{lastrightxmark} (=\Cmd{lastxmark}), \Cmd{topleftxmark} (=\Cmd{topxmark}) and \Cmd{toprightxmark}. The top-marks are basically the last-marks of the previous page.
\CmdIndex{lastleftxmark}
\CmdIndex{firstrightxmark}
\CmdIndex{firstleftxmark}
@@ -1671,10 +1688,18 @@ WWW: http://www.pietvanoostrum.com
\item Updated contact information.
\item Added Version information. :)
\end{itemize}
+\item Version 2.1. August 28...., 2016:
+ \begin{itemize}
+ \item Explain what the top-marks are.
+ \end{itemize}
+\item Version 2.1. Sept. 6, 2016
+ \begin{itemize}
+ \item Add \verb|\string| to special indexing commands to get a neater index file.
+ \item Add a decorative headrule example
+ \end{itemize}
\end{itemize}
-
\printindex
\end{document}