summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/FAQ-en/faq-how-do-i.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/generic/FAQ-en/faq-how-do-i.tex')
-rw-r--r--Master/texmf-dist/doc/generic/FAQ-en/faq-how-do-i.tex81
1 files changed, 63 insertions, 18 deletions
diff --git a/Master/texmf-dist/doc/generic/FAQ-en/faq-how-do-i.tex b/Master/texmf-dist/doc/generic/FAQ-en/faq-how-do-i.tex
index ba0b48c2c66..34aae1174b7 100644
--- a/Master/texmf-dist/doc/generic/FAQ-en/faq-how-do-i.tex
+++ b/Master/texmf-dist/doc/generic/FAQ-en/faq-how-do-i.tex
@@ -1,4 +1,4 @@
-% $Id: faq-how-do-i.tex,v 1.24 2011/02/10 23:01:29 rf10 Exp rf10 $
+% $Id: faq-how-do-i.tex,v 1.28 2011/05/04 06:40:43 rf10 Exp rf10 $
\section{How do I do\dots{}?}
@@ -6,18 +6,20 @@
\Question[Q-proof]{Proof environment}
-It has long been thought impossible to make a \environment{proof}
+It was long thought impossible to make a \environment{proof}
environment which automatically includes an `end-of-proof' symbol.
Some proofs end in displayed maths; others do not. If the input file
-contains
-% beware line break
+contains % ! line break
\texttt{...\csx{]} }\cmdinvoke{end}{proof} then \LaTeX{} finishes off
the displayed maths and gets ready for a new line before it reads any
instructions connected with ending the proof, so the code is very
tricky. You \emph{can} insert the symbol by hand, but the
-\Package{ntheorem} package now solves the problem for \LaTeX{} users:
-it does indeed provide an automatic way of signalling the end of a
-proof.
+(apparently) original `automatic' solution came with Paul Taylor's
+\Package{QED}.
+
+Nowadays, the \Package{ntheorem} package now solves the problem for
+\LaTeX{} users: it provides an automatic way of signalling
+the end of a proof.
The \AMSLaTeX{} package \Package{amsthm} also provides a
\environment{proof} environment that does the job; though you need to
@@ -40,6 +42,7 @@ The \cmdinvoke{tag*}{\csx{qedhere}} construction may be used in any of
\CTANref{amslatex}[amsthm]
\item[ntheorem.sty]\CTANref{ntheorem}
\end{ctanrefs}
+\LastEdit{2011-03-09}
\Question[Q-theoremfmt]{Theorem bodies printed in a roman font}
@@ -256,9 +259,11 @@ Ellipses are commonly required, and \LaTeX{} natively supplies a fair
range (\csx{dots}, \csx{cdots}, \csx{vdots} and \csx{ddots}). By using
the \Package{graphics} package, one can change the slope of the
\csx{ddots} command, as in
+\begin{quote}
\begin{verbatim}
- $ ... \reflectbox{$\ddots$} ... $
+$ ... \reflectbox{$\ddots$} ... $
\end{verbatim}
+\end{quote}
While this works, it is not a recommended way of achieving the desired
result (see below). Moreover, \LaTeX{}'s range is not adequate to
everyone's requirements, and at least three packages provide
@@ -1060,6 +1065,7 @@ which takes a length specification: you can say things like ``\texttt{15cm}''
or ``\csx{columnwidth}'' here. You must also have an \csx{extracolsep}
command in the \texttt{clpr} layout argument, inside an \texttt{@\{\}}
directive. So, for example, one might have
+\begin{quote}
\begin{wideversion}
\begin{verbatim}
\begin{tabular*}{\columnwidth}{@{\extracolsep{\fill}}lllr}
@@ -1068,9 +1074,10 @@ directive. So, for example, one might have
\begin{narrowversion}
\begin{verbatim}
\begin{tabular*}{\columnwidth}%
- {@{\extracolsep{\fill}}lllr}
+ {@{\extracolsep{\fill}}lllr}
\end{verbatim}
\end{narrowversion}
+\end{quote}
The \csx{extracolsep} applies to all inter-column gaps to its right as
well; if you don't want all gaps stretched, add
\cmdinvoke{extracolsep}{0pt} to cancel the original.
@@ -1217,6 +1224,27 @@ each row. Its disadvantages are that it's really rather slow in
operation (since it gets in the way of everything within tables) and
its (lack of) compatibility with other packages.
+The \Package{makecell} package provides a command \csx{gape} that may
+be used to apply strut expansion for a single cell of a table:
+\begin{quote}
+\begin{verbatim}
+\begin{tabular}{lll}
+ ... & \gape{cell contents} & ... \\
+ ...
+\end{tabular}
+\end{verbatim}
+\end{quote}
+The package's similar \csx{Gape} command provides the same function,
+but with optional arguments that allow you to adjust the top and
+bottom adjustment.
+
+To adjust every cell in whole tables, the
+\cmdinvoke{setcellgapes}{\meta{value}} sets the adjustment value (an
+optional argument of ``\texttt{t}'' or ``\texttt{b}'' restricts
+adjustment to the top or bottom of each cell, respectively). Having
+issued \csx{setcellgapes}, the command \csx{makegapedcells} switches
+cell expansion on, and \csx{nomakegapedcells} switches it off again.
+
The \Package{cellspace} package does a (possibly inferior) job by
defining a new table/array column type ``S'', which you apply to each
column specification. So, for example,
@@ -1248,8 +1276,10 @@ packages such as \Package{longtable}.
\item[bigstrut.sty]\CTANref{bigstrut}
\item[booktabs.sty]\CTANref{booktabs}
\item[cellspace.sty]\CTANref{cellspace}
+\item[makecell.sty]\CTANref{makecell}
\item[tabls.sty]\CTANref{tabls}
\end{ctanrefs}
+\LastEdit{2011-05-02}
\Question[Q-longtab]{Tables longer than a single page}
@@ -3096,8 +3126,8 @@ following minimal solution:
\begin{wideversion}
\begin{verbatim}
\def\RCS$#1: #2 ${\expandafter\def\csname RCS#1\endcsname{#2}}
-\RCS$Revision: 1.24 $ % or any RCS keyword
-\RCS$Date: 2011/02/10 23:01:29 $
+\RCS$Revision: 1.28 $ % or any RCS keyword
+\RCS$Date: 2011/05/04 06:40:43 $
...
\date{Revision \RCSRevision, \RCSDate}
\end{verbatim}
@@ -3107,8 +3137,8 @@ following minimal solution:
\def\RCS$#1: #2 ${\expandafter
\def\csname RCS#1\endcsname{#2}%
}
-\RCS$Revision: 1.24 $ % or any RCS keyword
-\RCS$Date: 2011/02/10 23:01:29 $
+\RCS$Revision: 1.28 $ % or any RCS keyword
+\RCS$Date: 2011/05/04 06:40:43 $
...
\date{Revision \RCSRevision, \RCSDate}
\end{verbatim}
@@ -3774,7 +3804,7 @@ the selections before setting up hyphenation exceptions.
\Question[Q-logos]{Typesetting all those \TeX{}-related logos}
Knuth was making a particular point about the capabilities of \TeX{}
-when he defined the logo. Unfortunately, many believe, he thereby
+when he defined the logo. Unfortunately (in some people's opinion) he thereby
opened floodgates to give the world a whole range of rather silly
`bumpy road' logos for \TeX{} entities such as \AMSTeX{}, \PiCTeX{},
\BibTeX{}, and so on, produced in a flurry of different fonts, sizes,
@@ -3793,9 +3823,9 @@ The \MF{} and \MP{} logos can be set in fonts that \LaTeXe{}
knows about (so that they scale with the surrounding text) using the
\Package{mflogo} package; but be aware that booby-traps surround the
use of the Knuthian font for \MP{} (you might get
-\htmlignore
-\textlogo{META\hphantom{P}O\hphantom{S}T}).
-\endhtmlignore
+\begin{typesetversion}
+ \textlogo{META\hphantom{P}O\hphantom{S}T}).
+\end{typesetversion}
% the following htmlversion stuff seems to do roughly what's required,
% which is nice, given the feebleness of representing all these silly
% logos in html otherwise...
@@ -3806,16 +3836,31 @@ You needn't despair, however~--- most versions of the logo font
distributed nowadays contain the missing letters, and the author
himself uses just `MetaPost'.
+A well-designed set of macros is provided by package \Package{hologo},
+which defines a command \csx{hologo}, which one uses as (for example)
+\cmdinvoke{hologo}{pdfLaTeX} for what you might get by typing
+``\texttt{pdf}\csx{LaTeX}'', as well as a capitalised version
+\cmdinvoke{Hologo}{pdfLaTeX} for ``\texttt{Pdf}\csx{LaTeX}''.
+
+The package \Package{metalogo} deals with a problem of these myriad
+logos, that's often ignored nowadays: the geometry of characters from
+different fonts is (obviously) different, and they naturally fit
+together differently. The package makes it possible for you to adjust
+the spacing between the the letters of one of these odd logos (even
+the especially weird mirrored ``E'' in \xetex{}).
+
For those who don't wish to acquire the `proper' logos, the canonical
thing to do is to say \texttt{AMS-}\cmdinvoke{TeX}{}
for \AMSTeX{}, \texttt{Pic}\cmdinvoke{TeX}{}
for \PiCTeX{}, \texttt{Bib}\cmdinvoke{TeX}{}
for \BibTeX{}, and so on.
\begin{ctanrefs}
+\item[hologo.sty]Distributed as part of \CTANref{oberdiek}[hologo]
+\item[metalogo.sty]\CTANref{metalogo}
\item[mflogo.sty]\CTANref{mflogo}
\item[texnames.sty]\CTANref{texnames}
\end{ctanrefs}
-\LastEdit{2009-06-07}
+\LastEdit{2010-03-24}
\Question[Q-bold-extras]{How to do bold-tt or bold-sc}