summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/FAQ-en/faq-adj-types.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/generic/FAQ-en/faq-adj-types.tex')
-rw-r--r--Master/texmf-dist/doc/generic/FAQ-en/faq-adj-types.tex115
1 files changed, 90 insertions, 25 deletions
diff --git a/Master/texmf-dist/doc/generic/FAQ-en/faq-adj-types.tex b/Master/texmf-dist/doc/generic/FAQ-en/faq-adj-types.tex
index b03de85315d..63a9dc49fd3 100644
--- a/Master/texmf-dist/doc/generic/FAQ-en/faq-adj-types.tex
+++ b/Master/texmf-dist/doc/generic/FAQ-en/faq-adj-types.tex
@@ -1,4 +1,4 @@
-% $Id: faq-adj-types.tex,v 1.35 2011/10/12 21:58:46 rf10 Exp rf10 $
+% $Id: faq-adj-types.tex,v 1.41 2012/02/18 19:28:56 rf10 Exp rf10 $
\section{Adjusting the typesetting}
@@ -138,6 +138,7 @@ available, with examples, in
%\item[ifmslide.sty]\CTANref{ifmslide}
\item[lecturer.sty]\CTANref{lecturer}
\item[seminar.cls]\CTANref{seminar}
+\item[pdfscreen.sty]\CTANref{pdfscreen}
\item[pgf.sty]\CTANref{pgf}
\item[powerdot.cls]\CTANref{powerdot}
\item[pp4]\CTANref{ppower4}
@@ -215,7 +216,7 @@ route):
\begin{ctanrefs}
\item[a0poster.cls]\CTANref{a0poster}
\item[beamer.cls]\CTANref{beamer}
-\item[beamberposter.sty]\CTANref{beamerposter}
+\item[beamerposter.sty]\CTANref{beamerposter}
\item[flowfram.sty]\CTANref{flowfram}
\item[multicol.sty]Distributed as part of \CTANref{2etools}[multicol]
\item[sciposter.cls]\CTANref{sciposter}
@@ -815,10 +816,10 @@ and \csx{subparagraph}; you can (if you \emph{must}) arrange that these
two commands produce numbered headings, so that you can use them as
\csx{subsubsubsection}s and lower.
-The \Package{titlesec} allows you to adjust the definitions of the
-sectioning macros, and it may be used to
-transform a \csx{paragraph}'s typesetting so that it looks like that
-of a \csx{section}.
+The \Package{titlesec} package provides a sensible set of macros for
+you to adjust the definitions of the sectioning macros, and it may be
+used to transform a \csx{paragraph}'s typesetting so that it looks
+like that of a \csx{section}.
If you want to program the change yourself, you'll find that the
commands (\csx{section} all the way down to \csx{subparagraph}) are
@@ -826,13 +827,21 @@ defined in terms of the internal \csx{@startsection} command, which
takes 6~arguments. Before attempting this sort of work, you are well
advised to read the \LaTeX{} sources (\File{ltsect.dtx} in the
\LaTeX{} distribution) and the source of the standard packages
-(\File{classes.dtx}). The \Qref*{\LaTeX{} Companion}{Q-latex-books}
-discusses use of \csx{@startsection} for this sort of thing.
+(\File{classes.dtx}), or to make use of the % ! line break
+\Qref*{\LaTeX{} Companion}{Q-latex-books}, which
+discusses the use of \csx{@startsection} for this sort of thing.
+
+You will note that Lamport didn't go on adding ``\texttt{sub}'' to the
+names of sectioning commands, when creating commands for the lowest
+levels of a document. This would seem sensible to any but the most
+rigorous stickler for symmetry~--- it would surely challenge pretty
+much anyone's reading of the source of a document, if there was a need
+to distinguish \csx{subsubsubsection} and \csx{subsubsubsubsection}
\begin{ctanrefs}
\item[\nothtml{\rmfamily}\LaTeX{} source]\CTANref{latex}
\item[titlesec.sty]\CTANref{titlesec}
\end{ctanrefs}
-\LastEdit{2011-06-01}
+\LastEdit{2012-02-14}
\Question[Q-captsty]{The style of captions}
@@ -1203,8 +1212,16 @@ you're using is odd enough that it puts a page header on a chapter's
opening page.
Note that the \Package{titlesec} package manages the running heads in
-a completely different fashion; users of that package should refer to
-the documentation.
+a completely different fashion; for example, you can use the optional
+argument of sectioning commands for page headers, only, by loading the
+package as:
+\begin{quote}
+\begin{verbatim}
+\usepackage[toctitles]{titlesec}
+\end{verbatim}
+\end{quote}
+The package documentation offers other useful techniques in this area.
+\LeadFrom{Tobi}{sx}{2012-02-01}
The \Class{memoir} class avoids all the silliness by providing an
extra optional argument for chapter and sectioning commands, for
@@ -1230,6 +1247,7 @@ tailor the header text to fit, with very little trouble.
\item[memoir.cls]\CTANref{memoir}
\item[titlesec.sty]\CTANref{titlesec}
\end{ctanrefs}
+\LastEdit{2012-02-01}
\nothtml{\begingroup\boldmath}
\Question[Q-nofm]{Page numbering ``\meta{n} of \meta{m}''}
@@ -1387,7 +1405,8 @@ paper size can be programmed by the document. Users who wish to, may
of course consult the manuals of the various programs to write the
necessary code.
-The \Package{geometry} package (whose main business is defining
+The \Package{geometry} and \Package{zwpagelayout} packages (whose main
+business includes defining
typeset page areas), also takes notice the size of the paper that the
document is going to be printed on, and can issue the commands
necessary to ensure the correct size of paper is used. If
@@ -1398,7 +1417,7 @@ engine, there are package options which instruct \Package{geometry}
which \csx{special} commands to use. (Note that the options are
ignored if you are using either \PDFLaTeX{} or V\TeX{}.)
-So, the resolution of the problem, when you are using \latex{}, is to add
+So, one resolution of the problem, when you are using \latex{}, is to add
\begin{quote}
\begin{verbatim}
\usepackage[processor-option,...]{geometry}
@@ -1419,6 +1438,16 @@ If you're using \PDFLaTeX{}, \xetex{} or V\TeX{}, load with
where \pkgoption{program-option} is \pkgoption{pdftex},
\pkgoption{xetex} or \pkgoption{vtex}.
+The alternative, \Package{zwpagelayout} requires a \pkgoption{driver}
+option:
+\begin{quote}
+\begin{verbatim}
+\usepackage[driver=value,...]{zwpagelayout}
+\end{verbatim}
+\end{quote}
+(permissible \meta{values} are \pkgoption{pdftex}, \pkgoption{xetex}
+and \pkgoption{dvips}; the default value is \pkgoption{unknown}).
+
Needless to say, both the ``big'' classes (\Class{koma-script} and
\Class{memoir}) provide their own ways to get the paper size
``right''.
@@ -1440,8 +1469,9 @@ output that specifies the necessary paper size.
\item[geometry.sty]\CTANref{geometry}
\item[memoir.cls]\CTANref{memoir}
\item[typearea.sty]Distributed as part of \CTANref{koma-script}[typearea]
+\item[zwpagelayout.sty]\CTANref{zwpagelayout}
\end{ctanrefs}
-\LastEdit{2011-03-07}
+\LastEdit{2011-12-12}
\Question[Q-changemargin]{Changing the margins in \LaTeX{}}
@@ -1485,10 +1515,11 @@ temporarily~--- and there's an answer that covers that, too:
\Question[Q-marginpkgs]{Packages to set up page designs}
-The `ultimate' tool for adjusting the dimensions and position of the
-printed material on the page is the \Package{geometry} package; a very
+There are two trustworthy tools for adjusting the dimensions and position of the
+printed material on the page are \Package{geometry} and the
+\Package{zwpagelayout} packages; a very
wide range of adjustments of the layout may be relatively
-straightforwardly programmed, and package documentation is good and
+straightforwardly programmed with either, and package documentation is good and
comprehensive.
As is usual, users of the \Class{memoir} class have built-in
@@ -1497,9 +1528,11 @@ are recommended to use an alternative package, \Package{typearea}. In
either case it is difficult to argue that users should go for
\Package{geometry}: both alternatives are good.
-The documentation of \Package{geometry} is a bit overwhelming, and
-learning all its capabilities may be more than you ever need.
-Somewhat simpler to use is the \Package{vmargin} package, which has a
+The documentation both of \Package{geometry} and of
+\Package{zwpagelayout} is rather overwhelming, and
+learning all of of either package's capabilities is likely to be more
+than you ever need.
+The \Package{vmargin} package is somewhat simpler to use: it has a
canned set of paper sizes (a superset of that provided in \LaTeXe{}),
provision for custom paper, margin adjustments and provision for
two-sided printing.
@@ -1510,17 +1543,19 @@ two-sided printing.
\item[memoir.cls]\CTANref{memoir}
\item[typearea.sty]Distributed as part of \CTANref{koma-script}[typearea]
\item[vmargin.sty]\CTANref{vmargin}
+\item[zwpagelayout.sty]\CTANref{zwpagelayout}
\end{ctanrefs}
+\LastEdit{2011-12-12}
\Question[Q-marginmanual]{How to set up page layout ``by hand''}
So you're eager to do it yourself, notwithstanding the cautions
-\begin{narrowversion}
+\begin{flatversion}
outlined above (\Qref{}{Q-changemargin}).
-\end{narrowversion}
-\begin{wideversion}
+\end{flatversion}
+\begin{hyperversion}
outlined in ``\Qref{changing margins}{Q-changemargin}''.
-\end{wideversion}
+\end{hyperversion}
It's important that you first start by familiarising yourself
with LaTeX's page layout parameters. For example, see section C.5.3 of the
@@ -1768,6 +1803,9 @@ The \Package{draftwatermark} package uses the same author's
\Package{everypage} package to provide a simple interface for adding
textual (`DRAFT'-like) watermarks.
+The \Package{xwatermark} package provides very flexible watermarking,
+with a ``modern'' (key-value) interface.
+
More elaborate watermarks may be achieved using the \Package{eso-pic}
package, which in turn uses the package \Package{everyshi}, or by
using \Package{everypage}. \Package{Eso-pic} attaches a
@@ -1790,6 +1828,23 @@ the content of the page.
\Package{Everypage} allows you to add ``something'' to every page, or
to a particular page; you therefore need to construct your own
apparatus for anything complicated.
+
+Finally, one can use the \ProgName{pdftk} untility; with it, the
+command:
+\begin{quote}
+\begin{verbatim}
+pdftk a.pdf background b.pdf output c.pdf
+\end{verbatim}
+\end{quote}
+will recreate \File{a.pdf} as \File{c.pdf}, having used the first page
+of \File{b.pdf} as background on every page. If you have a standard
+background (``DRAFT'' or ``SECRET'', or whatever) used in several
+files, \ProgName{pdftk} might well be attractive.
+
+\ProgName{Pdftk} is available as a command line tool; it is available
+in most linux distritbutions, but may be downloaded from its
+% ! line break
+\href{http://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/}{home site}
\begin{ctanrefs}
\item[atbegshi.sty]Distributed as part of \CTANref{oberdiek}[atbegshi]
\item[draftcopy.sty]\CTANref{draftcopy}
@@ -3041,7 +3096,7 @@ out beyond the side or the bottom of the page if it doesn't fit in the
typeset area.
If you want a substantial portion of your text to be framed (or
-coloured), the restriction starts to seem a real imposition.
+coloured), the restriction imposes a serious restriction.
Fortunately, there are ways around the problem.
The \Package{framed} package provides \environment{framed} and
@@ -3053,6 +3108,14 @@ marginpars and head-line entries, and will not work with
\Class{memoir} class includes the functionality of the
\Package{framed} package.
+The \Package{mdframed} package does the same job, using a different
+algorithm. The package also provides means of defining
+`private' framed environments, whose parameters are set at definition
+time, thus saving considerable effort in documents with many framed
+boxes. Its restrictions seem much the same as those of
+\Package{framed}; this is as one would expect, but the list is
+noticeably different in the two packages' documentation.
+
The \Package{boites} package provides a \environment{breakbox}
environment; examples of its use may be found in the distribution, and
the package's \File{README} file contains terse documentation. The
@@ -3073,9 +3136,11 @@ current \LaTeX{}.
\item[backgrnd.tex]\CTANref{backgrnd}
\item[boites.sty]\CTANref{boites}
\item[framed.sty]\CTANref{framed}
+\item[mdframed.sty]\CTANref{mdframed}
\item[memoir.cls]\CTANref{memoir}
\item[shade.tex]\CTANref{shade}
\end{ctanrefs}
+\LastEdit{2012-02-14}
\Question[Q-overstrike]{Overstriking characters}