[latexrefman-commits] r478 - in /trunk: ChangeLog latex2e.texi
jhefferon at domain.hid
jhefferon at domain.hid
Fri Nov 27 23:32:45 CET 2015
Author: jhefferon
Date: Fri Nov 27 23:32:45 2015
New Revision: 478
URL: http://svn.gna.org/viewcvs/latexrefman?rev=478&view=rev
Log:
makeatletter
Modified:
trunk/ChangeLog
trunk/latex2e.texi
Modified: trunk/ChangeLog
URL: http://svn.gna.org/viewcvs/latexrefman/trunk/ChangeLog?rev=478&r1=477&r2=478&view=diff
==============================================================================
--- trunk/ChangeLog (original)
+++ trunk/ChangeLog Fri Nov 27 23:32:45 2015
@@ -1,3 +1,7 @@
+2015-11-27 Jim Hefferon <jhefferon at domain.hid>
+
+ * latex2e.texi (\makeatletter and \makeatother) Adjust wording.
+
2015-11-26 Vincent Belaïche <vincentb1 at domain.hid>
* latex2e-fr.texi (\newsavebox, \newtheorem, \newfont): Complete
Modified: trunk/latex2e.texi
URL: http://svn.gna.org/viewcvs/latexrefman/trunk/latex2e.texi?rev=478&r1=477&r2=478&view=diff
==============================================================================
--- trunk/latex2e.texi (original)
+++ trunk/latex2e.texi Fri Nov 27 23:32:45 2015
@@ -540,8 +540,7 @@
Used to redefine internal @LaTeX{} commands. @code{\makeatletter} makes
the at-sign character at domain.hid{@@} have the category code of a letter,
11. @code{\makeatother} sets the category code of at domain.hid{@@} to 12,
-its original value. Use these inside a @file{.tex} file, in the
-preamble, but not in @file{.sty} or @file{.cls} files.
+its original value.
As each character is read by @TeX{} and @LaTeX{}, it is assigned a
character code (for instance, the backslash at domain.hid{\} is assigned
@@ -557,15 +556,24 @@
@code{\makeatletter} and @code{\makeatother} allow users to define or
redefine commands named with @code{@@}.
-Put in the preamble, this redefines the section command (to center the
-section title and put it in bold type, as well as adjust the spacing).
-
+Use these inside a @file{.tex} file, in the preamble. Don't use them
+inside @file{.sty} or @file{.cls} files since the @code{\documentclass}
+and @code{\usepackage} commands set the at sign to have the character
+code of a letter.
+
+The example code below, if put in the preamble, redefines the
+section command to center the section title, put it in bold type,
+and adjust the spacing.
+
+ at c From http://zoonek.free.fr/LaTeX/LaTeX_samples_section/0.html
@example
\makeatletter
-\renewcommand\section at domain.hid @{section at domain.hid@@@}%
- @{-3.5ex \@@plus -1ex \@@minus -.2ex@}%
- @{2.3ex \@@plus.2ex@}%
- @{\centering\normalfont\Large\bfseries@}@}
+\renewcommand\section at domain.hid@}% Name
+ @{1@}% Level: 0=part, 1=chapter, etc.
+ @{0pt@}% Heading indent
+ @{-3.5ex plus -1ex minus -.2ex@}% Beforeskip (if neg, no head indent)
+ @{2.3ex plus.2ex@}% Afterskip (if neg, run-in heading)
+ @{\centering\normalfont\Large\bfseries@}@} % Style of head
\makeatother
@end example
More information about the latexrefman-commits
mailing list