-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathlatex2e.info
10146 lines (8028 loc) · 390 KB
/
latex2e.info
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
This is latex2e.info, produced by texi2any version 6.0dev+dev from
latex2e.texi.
This document is an unofficial reference manual for LaTeX, a document
preparation system, version of December 2015.
This manual was originally translated from 'LATEX.HLP' v1.0a in the
VMS Help Library. The pre-translation version was written by George D.
Greenwade of Sam Houston State University. The LaTeX 2.09 version was
written by Stephen Gilmore. The LaTeX2e version was adapted from this
by Torsten Martinsen. Karl Berry made further updates and additions,
and gratefully acknowledges using 'Hypertext Help with LaTeX', by
Sheldon Green, and 'LaTeX Command Summary' (for LaTeX 2.09) by L. Botway
and C. Biemesderfer (published by the TeX Users Group as 'TeXniques'
number 10), as reference material (no text was directly copied).
Copyright 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015 Karl
Berry.
Copyright 1988, 1994, 2007 Stephen Gilmore.
Copyright 1994, 1995, 1996 Torsten Martinsen.
Permission is granted to make and distribute verbatim copies of this
manual provided the copyright notice and this permission notice are
preserved on all copies.
Permission is granted to copy and distribute modified versions of
this manual under the conditions for verbatim copying, provided that the
entire resulting derived work is distributed under the terms of a
permission notice identical to this one.
Permission is granted to copy and distribute translations of this
manual into another language, under the above conditions for modified
versions.
INFO-DIR-SECTION TeX
START-INFO-DIR-ENTRY
* LaTeX2e: (latex2e). Unofficial LaTeX reference manual.
END-INFO-DIR-ENTRY
File: latex2e.info, Node: Top, Next: About this document, Up: (dir)
LaTeX2e: An unofficial reference manual
***************************************
This document is an unofficial reference manual (version of December
2015) for LaTeX2e, a document preparation system.
* Menu:
* About this document:: Bug reporting, etc.
* Overview:: What is LaTeX?
* Document classes:: Some of the various classes available.
* Fonts:: Italic, bold, typewriter, etc.
* Layout:: Controlling the page layout.
* Sectioning:: How to section properly.
* Cross references:: Automatic referencing.
* Environments:: Such as enumerate & itemize.
* Line breaking:: Influencing line breaks.
* Page breaking:: Influencing page breaks.
* Footnotes:: How to produce footnotes.
* Definitions:: Define your own commands, etc.
* Counters:: Internal counters used by LaTeX.
* Lengths:: The length commands.
* Making paragraphs:: Paragraph commands.
* Math formulas:: How to create mathematical formulas.
* Modes:: Paragraph, Math or LR modes.
* Page styles:: Various styles of page layout.
* Spaces:: Horizontal and vertical space.
* Boxes:: Making boxes.
* Special insertions:: Inserting reserved and special characters.
* Splitting the input:: Dealing with big files by splitting.
* Front/back matter:: Tables of contents, glossaries, indexes.
* Letters:: The 'letter' class.
* Terminal input/output:: User interaction.
* Command line:: System-independent command-line behavior.
* Document templates:: Starter templates for various document classes.
* Concept Index:: General index.
* Command Index:: Alphabetical list of LaTeX commands.
File: latex2e.info, Node: About this document, Next: Overview, Prev: Top, Up: Top
1 About this document
*********************
This is an unofficial reference manual for the LaTeX2e document
preparation system, which is a macro package for the TeX typesetting
program (*note Overview::). This document's home page is
<http://home.gna.org/latexrefman>. That page has links to the current
output in various formats, sources, mailing list archives and
subscriptions, and other infrastructure.
In this document, we will mostly just use 'LaTeX' rather than
'LaTeX2e', since the previous version of LaTeX (2.09) was retired many
years ago.
LaTeX is currently maintained by a group of volunteers
(<http://latex-project.org>). The official documentation written by the
LaTeX project is available from their web site. This document is
completely unofficial and has not been reviewed by the LaTeX
maintainers. Do not send bug reports or anything else about this
document to them. Instead, please send all comments to
This document is a reference. There is a vast array of other sources
of information about LaTeX, at all levels. Here are a few
introductions.
<http://ctan.org/pkg/latex-doc-ptr>
Two pages of recommended references to LaTeX documentation.
<http://ctan.org/pkg/first-latex-doc>
Writing your first document, with a bit of both text and math.
<http://ctan.org/pkg/usrguide>
The guide for document authors that is maintained as part of LaTeX;
there are plenty of others available elsewhere.
<http://ctan.org/pkg/lshort>
A short introduction to LaTeX, translated to many languages.
<http://tug.org/begin.html>
Introduction to the TeX system, including LaTeX, with further
references.
File: latex2e.info, Node: Overview, Next: Document classes, Prev: About this document, Up: Top
2 Overview of LaTeX
*******************
LaTeX is a system for typesetting documents. It was originally created
by Leslie Lamport and is now maintained by a group of volunteers
(<http://latex-project.org>). It is widely used, particularly for
complex and technical documents, such as those involving mathematics.
A LaTeX user writes an input file containing text along with
interspersed commands, for instance commands describing how the text
should be formatted. It is implemented as a set of related commands
that interface with Donald E. Knuth's TeX typesetting program (the
technical term is that LaTeX is a "macro package" for the TeX engine).
The user produces the output document by giving that input file to the
TeX engine.
The term LaTeX is also sometimes used to mean the language in which
the document is marked up, that is, to mean the set of commands
available to a LaTeX user.
The name LaTeX is short for "Lamport TeX". It is pronounced LAH-teck
or LAY-teck, or sometimes LAY-tecks. Inside a document, produce the
logo with '\LaTeX'. Where use of the logo is not sensible, such as in
plain text, write it as 'LaTeX'.
* Menu:
* Starting and ending:: The standard beginning and end of a document.
* Output files:: Files produced.
* TeX engines:: Programs that can compile TeX and LaTeX.
* LaTeX command syntax:: General syntax of LaTeX commands.
File: latex2e.info, Node: Starting and ending, Next: Output files, Up: Overview
2.1 Starting and ending
=======================
LaTeX files have a simple global structure, with a standard beginning
and ending. Here is a "hello, world" example:
\documentclass{article}
\begin{document}
Hello, \LaTeX\ world.
\end{document}
Here, the 'article' is the so-called "document class", implemented in a
file 'article.cls'. Any document class can be used. A few document
classes are defined by LaTeX itself, and vast array of others are widely
available. *Note Document classes::.
You can include other LaTeX commands between the '\documentclass' and
the '\begin{document}' commands. This area is called the "preamble".
The '\begin{document} ... \end{document}' is a so-called
"environment"; the 'document' environment (and no others) is required in
all LaTeX documents (*note document::). LaTeX provides many
environments itself, and many more are defined separately. *Note
Environments::.
The following sections discuss how to produce PDF or other output
from a LaTeX input file.
File: latex2e.info, Node: Output files, Next: TeX engines, Prev: Starting and ending, Up: Overview
2.2 Output files
================
LaTeX produces a main output file and at least two accessory files. The
main output file's name ends in either '.dvi' or '.pdf'.
'.dvi'
If LaTeX is invoked with the system command 'latex' then it
produces a DeVice Independent file, with extension '.dvi'. You can
view this file with a command such as 'xdvi', or convert it to a
PostScript '.ps' file with 'dvips' or to a Portable Document Format
'.pdf' file with 'dvipdfmx'. The contents of the file can be
dumped in human-readable form with 'dvitype'. A vast array of
other DVI utility programs are available
(<http://mirror.ctan.org/tex-archive/dviware>).
'.pdf'
If LaTeX is invoked via the system command 'pdflatex', among other
commands (*note TeX engines::), then the main output is a Portable
Document Format (PDF) file. Typically this is a self-contained
file, with all fonts and images included.
LaTeX also produces at least two additional files.
'.log'
This transcript file contains summary information such as a list of
loaded packages. It also includes diagnostic messages and perhaps
additional information for any errors.
'.aux'
Auxiliary information is used by LaTeX for things such as cross
references. For example, the first time that LaTeX finds a forward
reference--a cross reference to something that has not yet appeared
in the source--it will appear in the output as a doubled question
mark '??'. When the referred-to spot does eventually appear in the
source then LaTeX writes its location information to this '.aux'
file. On the next invocation, LaTeX reads the location information
from this file and uses it to resolve the reference, replacing the
double question mark with the remembered location.
LaTeX may produce yet more files, characterized by the filename
ending. These include a '.lof' file that is used to make a list of
figures, a '.lot' file used to make a list of tables, and a '.toc' file
used to make a table of contents. A particular class may create others;
the list is open-ended.
File: latex2e.info, Node: TeX engines, Next: LaTeX command syntax, Prev: Output files, Up: Overview
2.3 TeX engines
===============
LaTeX is defined to be a set of commands that are run by a TeX
implementation (*note Overview::). This section gives a terse overview
of the main programs.
'latex'
'pdflatex'
In TeX Live (<http://tug.org/texlive>), if LaTeX is invoked via
either the system command 'latex' or 'pdflatex', then the pdfTeX
engine is run (<http://ctan.org/pkg/pdftex>). When invoked as
'latex', the main output is a '.dvi' file; as 'pdflatex', the main
output is a '.pdf' file.
pdfTeX incorporates the e-TeX extensions to Knuth's original
program (<http://ctan.org/pkg/etex>), including additional
programming features and bi-directional typesetting, and has plenty
of extensions of its own. e-TeX is available on its own as the
system command 'etex', but this is plain TeX (and produces '.dvi').
In other TeX distributions, 'latex' may invoke e-TeX rather than
pdfTeX. In any case, the e-TeX extensions can be assumed to be
available in LaTeX.
'lualatex'
If LaTeX is invoked via the system command 'lualatex', the LuaTeX
engine is run (<http://ctan.org/pkg/luatex>). This program allows
code written in the scripting language Lua (<http://luatex.org>) to
interact with TeX's typesetting. LuaTeX handles UTF-8 Unicode
input natively, can handle OpenType and TrueType fonts, and
produces a '.pdf' file by default. There is also 'dvilualatex' to
produce a '.dvi' file, but this is rarely used.
'xelatex'
If LaTeX is invoked with the system command 'xelatex', the XeTeX
engine is run (<http://tug.org/xetex>). Like LuaTeX, XeTeX
natively supports UTF-8 Unicode and TrueType and OpenType fonts,
though the implementation is completely different, mainly using
external libraries instead of internal code. XeTeX produces a
'.pdf' file as output; it does not support DVI output.
Internally, XeTeX creates an '.xdv' file, a variant of DVI, and
translates that to PDF using the ('x')'dvipdfmx' program, but this
process is automatic. The '.xdv' file is only useful for
debugging.
Other variants of LaTeX and TeX exist, e.g., to provide additional
support for Japanese and other languages ([u]pTeX,
<http://ctan.org/pkg/ptex>, <http://ctan.org/pkg/uptex>).
File: latex2e.info, Node: LaTeX command syntax, Prev: TeX engines, Up: Overview
2.4 LaTeX command syntax
========================
In the LaTeX input file, a command name starts with a backslash
character, '\'. The name itself then consists of either (a) a string of
letters or (b) a single non-letter.
LaTeX commands names are case sensitive so that '\pagebreak' differs
from '\Pagebreak' (the latter is not a standard command). Most commands
are lowercase, but in any event you must enter all commands in the same
case as they are defined.
A command may be followed by zero, one, or more arguments. These
arguments may be either required or optional. Required arguments are
contained in curly braces, '{...}'. Optional arguments are contained in
square brackets, '[...]'. Generally, but not universally, if the
command accepts an optional argument, it comes first, before any
required arguments.
Inside of an optional argument, to use the character close square
bracket (']') hide it inside curly braces, as in '\item[closing bracket
{]}]'. Similarly, if an optional argument comes last, with no required
argument after it, then to make the first character of the following
text be an open square bracket, hide it inside curly braces.
LaTeX has the convention that some commands have a '*' form that is
related to the form without a '*', such as '\chapter' and '\chapter*'.
The exact difference in behavior varies from command to command.
This manual describes all accepted options and '*'-forms for the
commands it covers (barring unintentional omissions, a.k.a. bugs).
* Menu:
* Environment:: Area of the source with distinct behavior.
* Declaration:: Change the value or meaning of a command.
* \makeatletter and \makeatother:: Change the status of the at-sign character.
File: latex2e.info, Node: Environment, Next: Declaration, Up: LaTeX command syntax
Synopsis:
\begin{ENVIRONMENT NAME}
..
\end{ENVIRONMENT NAME}
An area of LaTeX source, inside of which there is a distinct
behavior. For instance, for poetry in LaTeX put the lines between
'\begin{verse}' and '\end{verse}'.
\begin{verse}
There once was a man from Nantucket \\
..
\end{verse}
The ENVIRONMENT NAME at the beginning must exactly match that at the
end. This includes the case where ENVIRONMENT NAME ends in a
star ('*'); both the '\begin' and '\end' texts must include the star.
Environments may have arguments, including optional arguments. This
example produces a table. The first argument is optional (and causes
the table to be aligned on its top row) while the second argument is
required (it specifies the formatting of columns).
\begin{tabular}[t]{r|l}
.. rows of table ..
\end{tabular}
File: latex2e.info, Node: Declaration, Next: \makeatletter and \makeatother, Prev: Environment, Up: LaTeX command syntax
A command that changes the value, or changes the meaning, of some other
command or parameter. For instance, the '\mainmatter' command changes
the setting of page numbers from roman numerals to arabic.
File: latex2e.info, Node: \makeatletter and \makeatother, Prev: Declaration, Up: LaTeX command syntax
Synopsis:
\makeatletter
... definition of commands with @ in their name ..
\makeatother
Used to redefine internal LaTeX commands. '\makeatletter' makes the
at-sign character '@' have the category code of a letter, 11.
'\makeatother' sets the category code of '@' to 12, its original value.
As each character is read by TeX and LaTeX, it is assigned a
character code (for instance, the backslash '\' is assigned the
character code 0, for characters that start a command). These two
commands alter the code assigned to '@'.
The alteration is needed because many of LaTeX's commands use '@' in
their name, to prevent users from accidentally defining a command that
replaces one of LaTeX's own. Command names consist of a category 0
character, ordinarily backslash, followed by letters, category 11
characters (except that a command name can consist of a single
category 0 character followed by a single non-letter symbol). So under
the default category codes, user-defined commands cannot contain an '@'.
But '\makeatletter' and '\makeatother' allow users to define or redefine
commands named with '@'.
Use these inside a '.tex' file, in the preamble. Don't use them
inside '.sty' or '.cls' files since the '\documentclass' and
'\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.
\makeatletter
\renewcommand\section{\@startsection{section}% 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
File: latex2e.info, Node: Document classes, Next: Fonts, Prev: Overview, Up: Top
3 Document classes
******************
The document's overall class is defined with this command, which is
normally the first command in a LaTeX source file.
\documentclass[OPTIONS]{CLASS}
The following document CLASS names are built into LaTeX. (Many other
document classes are available as separate packages; *note Overview::.)
'article'
For a journal article, a presentation, and miscellaneous general
use.
'book'
Full-length books, including chapters and possibly including front
matter, such as a preface, and back matter, such as an appendix
(*note Front/back matter::).
'letter'
Mail, optionally including mailing labels (*note Letters::).
'report'
For documents of length between an 'article' and a 'book', such as
technical reports or theses, which may contain several chapters.
'slides'
For slide presentations--rarely used today. In its place the
'beamer' package is perhaps the most prevalent (*note beamer
template::).
Standard OPTIONS are described in the next section.
* Menu:
* Document class options:: Global options.
File: latex2e.info, Node: Document class options, Up: Document classes
3.1 Document class options
==========================
You can specify so-called "global options" or "class options" to the
'\documentclass' command by enclosing them in square brackets. To
specify more than one OPTION, separate them with a comma, as in:
\documentclass[OPTION1,OPTION2,...]{CLASS}
Here is the list of the standard class options.
All of the standard classes except 'slides' accept the following
options for selecting the typeface size (default is '10pt'):
10pt 11pt 12pt
All of the standard classes accept these options for selecting the
paper size (these show height by width):
'a4paper'
210 by 297 mm (about 8.25 by 11.75 inches)
'b5paper'
176 by 250 mm (about 7 by 9.875 inches)
'executivepaper'
7.25 by 10.5 inches
'legalpaper'
8.5 by 14 inches
'letterpaper'
8.5 by 11 inches (the default)
When using one of the engines pdfLaTeX, LuaLaTeX, or XeLaTeX (*note
TeX engines::), options other than 'letterpaper' set the print area but
you must also set the physical paper size. One way to do that is to put
'\pdfpagewidth=\paperwidth' and '\pdfpageheight=\paperheight' in your
document's preamble. The 'geometry' package provides flexible ways of
setting the print area and physical page size.
Miscellaneous other options:
'draft'
'final'
Mark ('draft') or do not mark ('final') overfull boxes with a black
box in the margin; default is 'final'.
'fleqn'
Put displayed formulas flush left; default is centered.
'landscape'
Selects landscape format; default is portrait.
'leqno'
Put equation numbers on the left side of equations; default is the
right side.
'openbib'
Use "open" bibliography format.
'titlepage'
'notitlepage'
Specifies whether there is a separate page for the title
information and for the abstract also, if there is one. The
default for the 'report' class is 'titlepage', for the other
classes it is 'notitlepage'.
The following options are not available with the 'slides' class.
'onecolumn'
'twocolumn'
Typeset in one or two columns; default is 'onecolumn'.
'oneside'
'twoside'
Selects one- or two-sided layout; default is 'oneside', except that
in the 'book' class the default is 'twoside'.
For one-sided printing, the text is centered on the page. For
two-sided printing, the '\evensidemargin' ('\oddsidemargin')
parameter determines the distance on even (odd) numbered pages
between the left side of the page and the text's left margin, with
'\oddsidemargin' being 40% of the difference between '\paperwidth'
and '\textwidth', and '\evensidemargin' is the remainder.
'openright'
'openany'
Determines if a chapter should start on a right-hand page; default
is 'openright' for 'book', and 'openany' for 'report'.
The 'slides' class offers the option 'clock' for printing the time at
the bottom of each note.
Additional packages are loaded like this:
\usepackage[OPTIONS]{PKG}
To specify more than one package, you can separate them with a comma,
as in '\usepackage{PKG1,PKG2,...}', or use multiple '\usepackage'
commands.
Any options given in the '\documentclass' command that are unknown by
the selected document class are passed on to the packages loaded with
'\usepackage'.
File: latex2e.info, Node: Fonts, Next: Layout, Prev: Document classes, Up: Top
4 Fonts
*******
Two important aspects of selecting a "font" are specifying a size and a
style. The LaTeX commands for doing this are described here.
* Menu:
* Font styles:: Select roman, italics, etc.
* Font sizes:: Select point size.
* Low-level font commands:: Select encoding, family, series, shape.
File: latex2e.info, Node: Font styles, Next: Font sizes, Up: Fonts
4.1 Font styles
===============
The following type style commands are supported by LaTeX.
This first group of commands is typically used with an argument, as
in '\textit{TEXT}'. In the table below, the corresponding command in
parenthesis is the "declaration form", which takes no arguments, as in
'{\itshape TEXT}'. The scope of the declaration form lasts until the
next type style command or the end of the current group.
These commands, in both the argument form and the declaration form,
are cumulative; e.g., you can say either '\sffamily\bfseries' or
'\bfseries\sffamily' to get bold sans serif.
You can alternatively use an environment form of the declarations;
for instance, '\begin{ttfamily}...\end{ttfamily}'.
These font-switching commands automatically insert italic corrections
if needed. (*Note \/::, for the details of italic corrections.)
Specifically, they insert the italic correction unless the following
character is in the list '\nocorrlist', which by default consists of a
period and a comma. To suppress the automatic insertion of italic
correction, use '\nocorr' at the start or end of the command argument,
such as '\textit{\nocorr text}' or '\textsc{text \nocorr}'.
'\textrm (\rmfamily)'
Roman.
'\textit (\itshape)'
Italics.
'\textmd (\mdseries)'
Medium weight (default).
'\textbf (\bfseries)'
Boldface.
'\textup (\upshape)'
Upright (default).
'\textsl (\slshape)'
Slanted.
'\textsf (\sffamily)'
Sans serif.
'\textsc (\scshape)'
Small caps.
'\texttt (\ttfamily)'
Typewriter.
'\textnormal (\normalfont)'
Main document font.
Although it also changes fonts, the '\emph{TEXT}' command is
semantic, for text to be emphasized, and should not be used as a
substitute for '\textit'. For example, '\emph{START TEXT \emph{MIDDLE
TEXT} END TEXT}' will result in the START TEXT and END TEXT in italics,
but MIDDLE TEXT will be in roman.
LaTeX also provides the following commands, which unconditionally
switch to the given style, that is, are _not_ cumulative. Also, they
are used differently than the above commands: '{\CMD...}' instead of
'\CMD{...}'. These are two unrelated constructs.
'\bf'
Switch to bold face.
'\cal'
Switch to calligraphic letters for math.
'\it'
Italics.
'\rm'
Roman.
'\sc'
Small caps.
'\sf'
Sans serif.
'\sl'
Slanted (oblique).
'\tt'
Typewriter (monospace, fixed-width).
The '\em' command is the unconditional version of '\emph'.
(Some people consider the unconditional font-switching commands, such
as '\tt', obsolete and that only the cumulative commands ('\texttt')
should be used. Others think that both sets of commands have their
place and sometimes an unconditional font switch is precisely what you
want; for one example, *note 'description': description.)
The following commands are for use in math mode. They are not
cumulative, so '\mathbf{\mathit{SYMBOL}}' does not create a boldface and
italic SYMBOL; instead, it will just be in italics. This is because
typically math symbols need consistent typographic treatment, regardless
of the surrounding environment.
'\mathrm'
Roman, for use in math mode.
'\mathbf'
Boldface, for use in math mode.
'\mathsf'
Sans serif, for use in math mode.
'\mathtt'
Typewriter, for use in math mode.
'\mathit'
'(\mit)'
Italics, for use in math mode.
'\mathnormal'
For use in math mode, e.g., inside another type style declaration.
'\mathcal'
Calligraphic letters, for use in math mode.
In addition, the command '\mathversion{bold}' can be used for
switching to bold letters and symbols in formulas.
'\mathversion{normal}' restores the default.
Finally, the command '\oldstylenums{NUMERALS}' will typeset so-called
"old-style" numerals, which have differing heights and depths (and
sometimes widths) from the standard "lining" numerals, which all have
the same height as upper-case letters. LaTeX's default fonts support
this, and will respect '\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 'textcomp' package must be
loaded, and sometimes package options are provided to make them the
default. FAQ entry:
<http://www.tex.ac.uk/cgi-bin/texfaq2html?label=osf>.
File: latex2e.info, Node: Font sizes, Next: Low-level font commands, Prev: Font styles, Up: Fonts
4.2 Font sizes
==============
The following standard type size commands are supported by LaTeX. The
table shows the command name and the corresponding actual font size used
(in points) with the '10pt', '11pt', and '12pt' document size options,
respectively (*note Document class options::).
Command '10pt' '11pt' '12pt'
--------------------------------------------------
'\tiny' 5 6 6
'\scriptsize' 7 8 8
'\footnotesize' 8 9 10
'\small' 9 10 10.95
'\normalsize' (default) 10 10.95 12
'\large' 12 12 14.4
'\Large' 14.4 14.4 17.28
'\LARGE' 17.28 17.28 20.74
'\huge' 20.74 20.74 24.88
'\Huge' 24.88 24.88 24.88
The commands as listed here are "declaration forms". The scope of
the declaration form lasts until the next type style command or the end
of the current group. You can also use the environment form of these
commands; for instance, '\begin{tiny}...\end{tiny}'.
File: latex2e.info, Node: Low-level font commands, Prev: Font sizes, Up: Fonts
4.3 Low-level font commands
===========================
These commands are primarily intended for writers of macros and
packages. The commands listed here are only a subset of the available
ones.
'\fontencoding{ENCODING}'
Select the font encoding, the encoding of the output font. There
are a large number of valid encodings. The most common are 'OT1',
Knuth's original encoding for Computer Modern (the default), and
'T1', also known as the Cork encoding, which has support for the
accented characters used by the most widespread European languages
(German, French, Italian, Polish and others), which allows TeX to
hyphenate words containing accented letters.
'\fontfamily{FAMILY}'
Select the font family. The web page
<http://www.tug.dk/FontCatalogue/> provides one way to browse
through many of the fonts easily used with LaTeX. Here are
examples of some common families:
'pag' Avant Garde
'fvs' Bitstream Vera Sans
'pbk' Bookman
'bch' Charter
'ccr' Computer Concrete
'cmr' Computer Modern
'pcr' Courier
'phv' Helvetica
'fi4' Inconsolata
'lmr' Latin Modern
'lmss' Latin Modern Sans
'lmtt' Latin Modern Typewriter
'pnc' New Century Schoolbook
'ppl' Palatino
'ptm' Times
'uncl' Uncial
'put' Utopia
'pzc' Zapf Chancery
'\fontseries{SERIES}'
Select the font series. A "series" combines a "weight" and a
"width". Typically, a font supports only a few of the possible
combinations. Some common combined series values include:
'm' Medium (normal)
'b' Bold
'c' Condensed
'bc' Bold condensed
'bx' Bold extended
The possible values for weight, individually, are:
'ul' Ultra light
'el' Extra light
'l' Light
'sl' Semi light
'm' Medium (normal)
'sb' Semi bold
'b' Bold
'eb' Extra bold
'ub' Ultra bold
The possible values for width, individually, are (the percentages
are just guides and are not followed precisely by all fonts):
'uc' Ultra condensed, 50%
'ec' Extra condensed, 62.5%
'c' Condensed, 75%
'sc' Semi condensed, 87.5%
'm' Medium, 100%
'sx' Semi expanded, 112.5%
'x' Expanded, 125%
'ex' Extra expanded, 150%
'ux' Ultra expanded, 200%
When forming the SERIES string from the weight and width, drop the
'm' that stands for medium weight or medium width, unless both
weight and width are 'm', in which case use just one (''m'').
'\fontshape{SHAPE}'
Select font shape. Valid shapes are:
'n' Upright (normal)
'it' Italic
'sl' Slanted (oblique)
'sc' Small caps
'ui' Upright italics
'ol' Outline
The two last shapes are not available for most font families, and
small caps are often missing as well.
'\fontsize{SIZE}{SKIP}'
Set the font size and the line spacing. The unit of both
parameters defaults to points ('pt'). The line spacing is the
nominal vertical space between lines, baseline to baseline. It is
stored in the parameter '\baselineskip'. The default
'\baselineskip' for the Computer Modern typeface is 1.2 times the
'\fontsize'. Changing '\baselineskip' directly is inadvisable
since its value is reset every time a size change happens; see
'\baselinestretch', next.
'\baselinestretch'
LaTeX multiplies the line spacing by the value of the
'\baselinestretch' parameter; the default factor is 1. A change
takes effect when '\selectfont' (see below) is called. You can
make line skip changes happen for the entire document by doing
'\renewcommand{\baselinestretch}{2.0}' in the preamble.
However, the best way to double-space a document is to use the
'setspace' package. In addition to offering a number of spacing
options, this package keeps the line spacing single-spaced in
places where that is typically desirable, such as footnotes and
figure captions. See the package documentation.
'\linespread{FACTOR}'
Equivalent to '\renewcommand{\baselinestretch}{FACTOR}', and
therefore must be followed by '\selectfont' to have any effect.
Best specified in the preamble, or use the 'setspace' package, as
just described.
'\selectfont'
The effects of the font commands described above do not happen
until '\selectfont' is called, as in
'\fontfamily{FAMILYNAME}\selectfont'. It is often useful to put
this in a macro:
'\newcommand*{\myfont}{\fontfamily{FAMILYNAME}\selectfont}'
(*note \newcommand & \renewcommand::).
'\usefont{ENC}{FAMILY}{SERIES}{SHAPE}'
The same as invoking '\fontencoding', '\fontfamily', '\fontseries'
and '\fontshape' with the given parameters, followed by
'\selectfont'. For example:
\usefont{ot1}{cmr}{m}{n}
File: latex2e.info, Node: Layout, Next: Sectioning, Prev: Fonts, Up: Top
5 Layout
********
Commands for controlling the general page layout.
* Menu:
* \onecolumn:: Use one-column layout.
* \twocolumn:: Use two-column layout.
* \flushbottom:: Make all text pages the same height.
* \raggedbottom:: Allow text pages of differing height.
* Page layout parameters:: '\headheight' '\footskip'.
* Floats:: Figures, tables, etc.
File: latex2e.info, Node: \onecolumn, Next: \twocolumn, Up: Layout
5.1 '\onecolumn'
================
Start a new page and produce single-column output. If the document is
given the class option 'onecolumn' then this is the default behavior
(*note Document class options::).
This command is fragile (*note \protect::).
File: latex2e.info, Node: \twocolumn, Next: \flushbottom, Prev: \onecolumn, Up: Layout
5.2 '\twocolumn'
================
Synopses:
\twocolumn
\twocolumn[PRELIM ONE COLUMN TEXT]
Start a new page and produce two-column output. If the document is
given the class option 'twocolumn' then this is the default (*note
Document class options::).
If the optional PRELIM ONE COLUMN TEXT argument is present, it is
typeset in one-column mode before the two-column typesetting starts.
This command is fragile (*note \protect::).
These parameters control typesetting in two-column output:
'\columnsep'
The distance between columns. The default is 35pt. Change it with
a command such as '\setlength{\columnsep}{40pt}' You must change it
before the two column environment starts; in the preamble is a good
place.
'\columnseprule'
The width of the rule between columns. The rule appears halfway
between the two columns. The default is 0pt, meaning that there is
no rule. Change it with a command such as
'\setlength{\columnseprule}{0.4pt}', before the two-column
environment starts.
'\columnwidth'
The width of a single column. In one-column mode this is equal to
'\textwidth'. In two-column mode by default LaTeX sets the width
of each of the two columns to be half of '\textwidth' minus
'\columnsep'.
In a two-column document, the starred environments 'table*' and
'figure*' are two columns wide, whereas the unstarred environments
'table' and 'figure' take up only one column (*note figure:: and *note
table::). LaTeX places starred floats at the top of a page. The
following parameters control float behavior of two-column output.
'\dbltopfraction'
The maximum fraction at the top of a two-column page that may be
occupied by two-column wide floats. The default is 0.7, meaning
that the height of a 'table*' or 'figure*' environment must not
exceed '0.7\textheight' . If the height of your starred float
environment exceeeds this then you can take one of the following
actions to prevent it from floating all the way to the back of the
document:
* Use the '[tp]' location specifier to tell LaTeX to try to put
the bulky float on a page by itself, as well as at the top of
a page.
* Use the '[t!]' location specifier to override the effect of
'\dbltopfraction' for this particular float.
* Increase the value of '\dbltopfraction' to a suitably large
number, to avoid going to float pages so soon.
You can redefine it, for instance with
'\renewcommand{\dbltopfraction}{0.9}'.
'\dblfloatpagefraction'
For a float page of two-column wide floats, this is the minimum
fraction that must be occupied by floats, limiting the amount of