diff options
author | Karl Berry <karl@freefriends.org> | 2011-05-04 23:39:21 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2011-05-04 23:39:21 +0000 |
commit | 16bfcc69400c93c3d779a104107606ae122a7dbe (patch) | |
tree | e2456232be21108418db974f47ea118eec770469 /Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-seccntfmt.html | |
parent | 9a8f00b89c2c1cd283f5fd0fb54959ef0690646f (diff) |
FAQ-en 3.22 (4may11)
git-svn-id: svn://tug.org/texlive/trunk@22304 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-seccntfmt.html')
-rw-r--r-- | Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-seccntfmt.html | 70 |
1 files changed, 0 insertions, 70 deletions
diff --git a/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-seccntfmt.html b/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-seccntfmt.html deleted file mode 100644 index a1c11c6ef0d..00000000000 --- a/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-seccntfmt.html +++ /dev/null @@ -1,70 +0,0 @@ -<head> -<title>UK TeX FAQ -- question label seccntfmt</title> -</head><body> -<h3>Adjusting the presentation of section numbers</h3> -<p/>The general issues of adjusting the appearance of section headings are -pretty complex, and are covered in -the question on -<a href="FAQ-secthead.html">the style of section headings</a>. -<p/>However, people regularly want merely to change the way the section -number appears in the heading, and some such people don’t mind writing -out a few macros. This answer is for <em>them</em>. -<p/>The section number is typeset using the - - <a href="FAQ-atsigns.html">LaTeX internal</a> -<code>\</code><code>@seccntformat</code> command, which is given the “name” (section, -subsection, …) of the heading, as argument. Ordinarily, -<code>\</code><code>@seccntformat</code> -merely outputs the section number, and then a <code>\</code><code>quad</code> of space: -<blockquote> -<pre> -\renewcommand*{\@seccntformat}[1]{% - \csname the#1\endcsname\quad -} -</pre> -</blockquote><p> -Suppose you want to put a stop after every section (subsection, -subsubsection, …) number, a trivial change may be implemented by -simple modification of the command: -<blockquote> -<pre> -\renewcommand*{\@seccntformat}[1]{% - \csname the#1\endcsname.\quad -} -</pre> -</blockquote><p> -However, many people want to modify section numbers, but not -subsection numbers, or any of the others. To do this, one must make -<code>\</code><code>@seccntformat</code> switch according to its argument. The following -technique for doing the job is slightly wasteful, but is efficient -enough for a relatively rare operation: -<blockquote> -<pre> -\renewcommand*{\@seccntformat}[1]{% - \csname the#1\endcsname - \csname adddot@#1\endcsname\quad -} -</pre> -</blockquote><p> -which uses a second-level command to provide the dot, if it has been -defined; otherwise it merely appends <code>\</code><code>relax</code> (which does nothing -in this context). The definition of the second-level command (the -version for the <code>section</code>, here) specifies what to put after a -section number, but it could be used to put anything after it: -<blockquote> -<pre> -\newcommand*{\adddot@section}{.} -</pre> -</blockquote><p> -Note that all the command definitions above are dealing in -<a href="FAQ-atsigns.html">LaTeX internal commands</a>, so the above -code should be in a package file, for preference. -<p/>The <i>Koma-script</i> classes have different commands for specifying -changes to section number presentation: <code>\</code><code>partformat</code>, -<code>\</code><code>chapterformat</code> and <code>\</code><code>othersectionlevelsformat</code>, but otherwise -their facilities are similar to those of “raw” LaTeX. -<dl> -<dt><tt><i>KOMA script bundle</i></tt><dd><a href="http://mirror.ctan.org/macros/latex/contrib/koma-script.zip">macros/latex/contrib/koma-script</a> (or <a href="http://mirror.ctan.org/macros/latex/contrib/koma-script/">browse the directory</a>) -</dl> -<p/><p>This question on the Web: <a href="http://www.tex.ac.uk/cgi-bin/texfaq2html?label=seccntfmt">http://www.tex.ac.uk/cgi-bin/texfaq2html?label=seccntfmt</a> -</body> |