diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/latex2e-help-texinfo/latex2e.texi')
-rw-r--r-- | Master/texmf-dist/doc/latex/latex2e-help-texinfo/latex2e.texi | 90 |
1 files changed, 64 insertions, 26 deletions
diff --git a/Master/texmf-dist/doc/latex/latex2e-help-texinfo/latex2e.texi b/Master/texmf-dist/doc/latex/latex2e-help-texinfo/latex2e.texi index f962885638c..8bfe58fe889 100644 --- a/Master/texmf-dist/doc/latex/latex2e-help-texinfo/latex2e.texi +++ b/Master/texmf-dist/doc/latex/latex2e-help-texinfo/latex2e.texi @@ -1,16 +1,17 @@ \input texinfo -@c $Id: latex2e.texi 263 2012-04-25 16:43:05Z karl $ +@c $Id: latex2e.texi 270 2013-05-13 17:48:08Z karl $ @comment %**start of header (This is for running Texinfo on a region.) @setfilename latex2e.info -@set UPDATED May 2012 +@set UPDATED May 2013 @settitle @LaTeX{}2e reference manual (@value{UPDATED}) @comment %**end of header (This is for running Texinfo on a region.) @c latex 2.09 commands should all be present now, @c xx but latex2e stuff is missing. @c -@c xx mention \oldstylenums (comes from where?) @c xx mention \topnumber, \bottomnumber, \totalnumber +@c xx mention \nocorr, \textit and ic +@c xx give actual smallskip/etc. defaults @c @c xx merge http://ctan.org/tex-archive/info/latex-info/ (alt-latex-info) @c xx merge permuted-index @@ -18,9 +19,9 @@ @c xx The typeset source2e has an index with all kernel @c xx commands, though some are internal and shouldn't be included. @c xx classes.dtx et al. define additional commands. +@c xx See also http://www.ctan.org/pkg/macros2e. @c -@c xx packages -- required, additional, useful; oberdiek ... -@c xx fonts -- latexsys +@c xx packages -- required, additional, useful; oberdiek; fonts @copying This document is an unofficial reference manual for @LaTeX{}, a @@ -38,7 +39,7 @@ and C.@tie{}Biemesderfer (published by the @TeX{} Users Group as @cite{@TeX{}niques} number 10), as reference material (no text was directly copied). -Copyright @copyright{} 2007, 2008, 2009, 2010, 2011, 2012 Karl Berry.@* +Copyright @copyright{} 2007, 2008, 2009, 2010, 2011, 2012, 2013 Karl Berry.@* Copyright @copyright{} 1988, 1994, 2007 Stephen Gilmore.@* Copyright @copyright{} 1994, 1995, 1996 Torsten Martinsen. @@ -511,39 +512,49 @@ Medium weight (default). @findex \textbf @findex \bfseries Boldface. + @item \textup (\upshape) @findex \textup @findex \upshape Upright (default). The opposite of slanted. + @item \textsl (\slshape) @findex \textsl @findex \slshape Slanted. + @item \textsf (\sffamily) @findex \textsf @findex \sffamily Sans serif. + @item \textsc (\scshape) @findex \textsc @findex \scshape Small caps. + @item \texttt (\ttfamily) @findex \texttt @findex \ttfamily Typewriter. + @item \textnormal (\normalfont) @findex \textnormal @findex \normalfont Main document font. + @item \mathrm @findex \mathrm Roman, for use in math mode. + @item \mathbf @findex \mathbf Boldface, for use in math mode. + @item \mathsf @findex \mathsf Sans serif, for use in math mode. + @item \mathtt @findex \mathtt Typewriter, for use in math mode. @@ -555,17 +566,33 @@ Italics, for use in math mode. @item \mathnormal @findex \mathnormal For use in math mode, e.g. inside another type style declaration. + @item \mathcal @findex \mathcal `Calligraphic' letters, for use in math mode. + @end table -In addition, the command -@code{\mathversion@{bold@}} @findex \mathversion -can be used for switching to bold letters and symbols in +In addition, the command @code{\mathversion@{bold@}} can be used for +switching to bold letters and symbols in formulas. @code{\mathversion@{normal@}} restores the default. +@findex \oldstylenums +@cindex numerals, old-style +@cindex old-style numerals +@cindex lining numerals +@cindex @code{textcomp} package +Finally, the command @code{\oldstylenums@{@var{numerals}@}} will +typeset so-called ``old-style'' numerals, which have differing heights +and depths (and sometimes widths) from the standard ``lining'' +numerals. @LaTeX{}'s default fonts support this, and will respect +@code{\textbf} (but not other styles; there are no italic old-style +numerals in Computer Modern). Many other fonts have old-style +numerals also; sometimes the @code{textcomp} package must be loaded, +and sometimes package options are provided to make them the default. +FAQ entry: @url{http://www.tex.ac.uk/cgi-bin/texfaq2html?label=osf}. + @LaTeX{} also provides these commands, which unconditionally switch to the given style, that is, are @emph{not} cumulative. They are used differently than the above commands, too: @code{@{\@var{cmd} ...@}} @@ -1977,9 +2004,11 @@ point and a minus sign---a number like @code{5}, @code{0.3} or @code{-3.1416}. A coordinate specifies a length in multiples of the unit length @code{\unitlength}, so if @code{\unitlength} has been set to @code{1cm}, then the coordinate 2.54 specifies a length of 2.54 -centimeters. You should only change the value of @code{\unitlength}, -using the @code{\setlength} command, outside of a @code{picture} -environment. +centimeters. + +You should only change the value of @code{\unitlength}, using the +@code{\setlength} command, outside of a @code{picture} environment. +The default value is @code{1pt}. A position is a pair of coordinates, such as @code{(2.4,-5)}, specifying the point with x-coordinate @code{2.4} and y-coordinate @code{-5}. @@ -3372,14 +3401,16 @@ footnotes. This is @samp{6.65pt} for @samp{10pt}, @samp{7.7pt} for command, respectively. Synopses: @example - \newcommand@{@var{cmd}@}[@var{nargs}]@{@var{defn}@} -\renewcommand@{@var{cmd}@}[@var{nargs}]@{@var{defn}@} - \newcommand@{@var{cmd}@}[@var{nargs}][@var{default}]@{@var{defn}@} -\renewcommand@{@var{cmd}@}[@var{nargs}][@var{default}]@{@var{defn}@} + \newcommand[*]@{@var{cmd}@}[@var{nargs}][@var{optarg}]@{@var{defn}@} +\renewcommand[*]@{@var{cmd}@}[@var{nargs}][@var{optarg}]@{@var{defn}@} @end example - @table @var +@item @code{*} +@cindex *-form of defining new commands +The *-form of these commands requires that the arguments not contain +multiple paragraphs of text (not @code{\long}, in plain @TeX{} terms). + @item cmd The command name beginning with @code{\}. For @code{\newcommand}, it must not be already defined and must not begin with @code{\end}; for @@ -3390,11 +3421,12 @@ An optional integer from 1 to 9 specifying the number of arguments that the command will take. The default is for the command to have no arguments. -@item default +@item optarg If this optional parameter is present, it means that the command's -first argument is optional. When the new command is called, the -default value of the optional argument (i.e., if it is not specified -in the call) is the string @samp{def}. +first argument is optional. The default value of the optional +argument (i.e., if it is not specified in the call) is @var{optarg}, +or, if that argument is present in the @code{\newcommand} but has an +empty value, the string @samp{def}. @item defn The text to be substituted for every occurrence of @code{cmd}; a @@ -3470,15 +3502,19 @@ defined, to refer to a new bin for storing boxes. Synopses: @example - \newenvironment@{@var{env}@}[@var{nargs}]@{@var{begdef}@}@{@var{enddef}@} - \newenvironment@{@var{env}@}[@var{nargs}][@var{default}]@{@var{begdef}@}@{@var{enddef}@} -\renewenvironment@{@var{env}@}[@var{nargs}]@{@var{begdef}@}@{@var{enddef}@} + \newenvironment[*]@{@var{env}@}[@var{nargs}][@var{default}]@{@var{begdef}@}@{@var{enddef}@} +\renewenvironment[*]@{@var{env}@}[@var{nargs}]@{@var{begdef}@}@{@var{enddef}@} @end example These commands define or redefine an environment @var{env}, that is, @code{\begin@{@var{env}@} @dots{} \end@{@var{env}@}}. @table @var +@item @code{*} +@cindex *-form of environment commands +The *-form of these commands requires that the arguments (not the +contents of the environment) not contain multiple paragraphs of text. + @item env The name of the environment. For @code{\newenvironment}, @var{env} must not be an existing environment, and the command @code{\@var{env}} @@ -5309,7 +5345,7 @@ a capital letter. Here are side-by-side examples with and without @c Texinfo does it differently, but the result is the same. @quotation -@dots{} in C@. Pascal, though @dots{} +@dots{} in C@. Pascal, though @dots{}@* @dots{} in C. Pascal, though @dots{} @end quotation @@ -6937,9 +6973,11 @@ The @code{beamer} class creates slides presentations. \end{frame} \end{document} - @end verbatim +One web resource for this: +@url{http://robjhyndman.com/hyndsight/beamer/}. + @node tugboat template @section @code{tugboat} template |