summaryrefslogtreecommitdiff
path: root/info/latex-doc-ptr/latex-doc-ptr.html
blob: 674de5fabbd761ad6abeadfbc8bd4fa4fdca258e (plain)
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

<?xml version="1.0" encoding="iso-8859-1" ?> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  
<!--http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd-->  
<html xmlns="http://www.w3.org/1999/xhtml"  
> 
<head><title></title> 
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> 
<meta name="generator" content="TeX4ht (http://www.tug.org/tex4ht/)" /> 
<meta name="originator" content="TeX4ht (http://www.tug.org/tex4ht/)" /> 
<!-- xhtml,html --> 
<meta name="src" content="latex-doc-ptr.tex" /> 
<link rel="stylesheet" type="text/css" href="latex-doc-ptr.css" /> 
</head><body 
>
<div class="center" 
>
<!--l. 6--><p class="noindent" >
</p><!--l. 7--><p class="noindent" ><span 
class="Spectral-Bold-lf-t-1x-x-172">A First Set of </span><span class="LATEX"><span 
class="Spectral-Bold-lf-t-1x-x-172">L</span><span class="A"><span 
class="Spectral-Bold-lf-t-1x-x-172">A</span></span><span class="TEX"><span 
class="Spectral-Bold-lf-t-1x-x-172">T</span><span 
class="E"><span 
class="Spectral-Bold-lf-t-1x-x-172">E</span></span><span 
class="Spectral-Bold-lf-t-1x-x-172">X</span></span></span> <span 
class="Spectral-Bold-lf-t-1x-x-172">Resources</span></p></div>
   <div class="columns-2">
<!--l. 17--><p class="indent" >   This page suggests documentation, add-on components, and other resources for a beginning <span class="LATEX">L<span class="A">A</span><span class="TEX">T<span 
class="E">E</span>X</span></span>
user.
</p><!--l. 20--><p class="indent" >   The links here are to freely available materials, so you can click to see the documentation online. Where
the documentation is also available offline in a typical <span class="TEX">T<span 
class="E">E</span>X</span> installation, we provide its name as an end note.
View it by running `<span 
class="ectt-1095">texdoc </span><span 
class="Spectral-LightItalic-lf-t-1x-x-109">name</span>' in a terminal.
</p>
<h3 class="sectionHead"><a 
 id="x1-1000"></a>Starting</h3>
<!--l. 32--><p class="noindent" >To run <span class="LATEX">L<span class="A">A</span><span class="TEX">T<span 
class="E">E</span>X</span></span>, you must use an online service or install a distribution. Online services are commercial;
find them by entering `online latex' in a search engine. For distributions, your choices are <a 
href="https://tug.org/texlive/" ><span class="TEX">T<span 
class="E">E</span>X</span>&#x00A0;Live</a> on a
Unix system, including GNU/Linux, or on Windows, or the related <a 
href="https://tug.org/mactex/" >Mac<span class="TEX">T<span 
class="E">E</span>X</span></a> on Macintosh, or <a 
href="https://miktex.org/" >MiK<span class="TEX">T<span 
class="E">E</span>X</span></a> on
Windows or a Unix system.
<p class="subsection"><span 
class="Spectral-Bold-lf-t-1x-x-109">Tutorials  </span>The site <a 
href="https://www.learnlatex.org/" ><span 
class="ectt-1095">learnlatex.org</span></a> teaches you the basics in a sound way, and also lets you play with the
commands to see the results. For a more traditional document, the most widely recommended one is <a 
href="https://ctan.org/pkg/lshort-english" >The
Not-So Short Guide to <span class="LATEX">L<span class="A">A</span><span class="TEX">T<span 
class="E">E</span>X</span></span>2<span 
class="cmmi-10x-x-109">&#x03B5;</span></a>, available in many languages.<sup><a 
href="#ennote-1" id="enmark-1"><span 
class="cmr-8">1</span></a></sup>
   <p>Many people use <span class="LATEX">L<span class="A">A</span><span class="TEX">T<span 
class="E">E</span>X</span></span> to write mathematical text and for this the premier choice is from the
American Mathematical Society. See their <a 
href="http://mirror.ctan.org/info/amslatex/primer/amshelp.pdf" >Getting up and running with AMS-<span class="LATEX">L<span class="A">A</span><span class="TEX">T<span 
class="E">E</span>X</span></span></a>,<sup><a 
href="#ennote-2" id="enmark-2"><span 
class="cmr-8">2</span></a></sup> and more detail is
in <a 
href="http://mirror.ctan.org/macros/latex/required/amsmath/amsldoc.pdf" >Users Guide for the <span 
class="ectt-1095">amsmath </span>package</a>.<sup><a 
href="#ennote-3" id="enmark-3"><span 
class="cmr-8">3</span></a></sup>
</p>
<h3 class="sectionHead"><a 
 id="x1-2000"></a>Documentation</h3>
<p class="subsection"><span 
class="Spectral-Bold-lf-t-1x-x-109">References  </span>The nearest thing to a general reference for <span class="LATEX">L<span class="A">A</span><span class="TEX">T<span 
class="E">E</span>X</span></span> is <a 
href="http://mirror.ctan.org/info/latex2e-help-texinfo/latex2e.html" ><span class="LATEX">L<span class="A">A</span><span class="TEX">T<span 
class="E">E</span>X</span></span>2<span 
class="cmmi-10x-x-109">&#x03B5;</span> unofficial reference manual</a>.<sup><a 
href="#ennote-4" id="enmark-4"><span 
class="cmr-8">4</span></a></sup>
Look for symbols in the <a 
href="http://mirror.ctan.org/info/symbols/comprehensive/symbols-letter.pdf" >Comprehensive List of Symbols</a>.<sup><a 
href="#ennote-5" id="enmark-5"><span 
class="cmr-8">5</span></a></sup> And, <a 
href="https://tug.org/TUGboat/" >TUGboat</a>, the journal of the <a 
href="https://tug.org" ><span class="TEX">T<span 
class="E">E</span>X</span> Users
Group</a>, has published many articles, at levels from beginner to expert, almost since the inception of
<span class="TEX">T<span 
class="E">E</span>X</span>.
<p class="subsection"><span 
class="Spectral-Bold-lf-t-1x-x-109">FAQs  </span>Many web pages offer quick help with <span class="LATEX">L<span class="A">A</span><span class="TEX">T<span 
class="E">E</span>X</span></span>, although they can be out of date. Particularly useful
and reliable are the <a 
href="https://texfaq.org/" ><span class="TEX">T<span 
class="E">E</span>X</span> FAQ</a>,<sup><a 
href="#ennote-6" id="enmark-6"><span 
class="cmr-8">6</span></a></sup> as well as <a 
href="https://tug.org/interest.html" ><span class="TEX">T<span 
class="E">E</span>X</span> Resources on the Web</a>. You can also get a handy
general <a 
href="http://mirror.ctan.org/info/latexcheat/latexcheat/latexsheet.pdf" ><span class="LATEX">L<span class="A">A</span><span class="TEX">T<span 
class="E">E</span>X</span></span> Cheat Sheet</a>,<sup><a 
href="#ennote-7" id="enmark-7"><span 
class="cmr-8">7</span></a></sup> as well as the <a 
href="http://mirrors.ctan.org/info/undergradmath/undergradmath.pdf" >Math for Undergraduates Cheat Sheet</a>.<sup><a 
href="#ennote-8" id="enmark-8"><span 
class="cmr-8">8</span></a></sup> Also,
<a 
href="http://mirror.ctan.org/info/l2tabu/english/l2tabuen.pdf" >An essential guide to <span class="LATEX">L<span class="A">A</span><span class="TEX">T<span 
class="E">E</span>X</span></span>2<span 
class="cmmi-10x-x-109">&#x03B5;</span> usage</a><sup><a 
href="#ennote-9" id="enmark-9"><span 
class="cmr-8">9</span></a></sup> helps you develop sound habits, by saying what not to
do.
<p class="subsection"><span 
class="Spectral-Bold-lf-t-1x-x-109">Questions  </span>If you are stuck on an issue, the <a 
href="https://tex.stackexchange.com/" ><span class="TEX">T<span 
class="E">E</span>X</span>-<span class="LATEX">L<span class="A">A</span><span class="TEX">T<span 
class="E">E</span>X</span></span> Stack Exchange</a> site and the mailing list
<a 
href="https://lists.tug.org/texhax" >texhax@tug.org</a> are where knowledgeable people hang out. You are likely to find an answer in their past
discussions, which cover decades, and if not then you can post a question yourself.
<p class="subsection"><span 
class="Spectral-Bold-lf-t-1x-x-109">Books  </span>There are many excellent books about <span class="LATEX">L<span class="A">A</span><span class="TEX">T<span 
class="E">E</span>X</span></span>. Visit the <a 
href="https://tug.org/books/" ><span class="TEX">T<span 
class="E">E</span>X</span> Users Group's book list</a> for a
selection, and for discounts.
<h3 class="sectionHead"><a 
 id="x1-3000"></a>Packages</h3>
<!--l. 131--><p class="noindent" >One of <span class="LATEX">L<span class="A">A</span><span class="TEX">T<span 
class="E">E</span>X</span></span>'s strengths is the tremendous number of available add-on packages. This list covers most of
what beginners want to do. (There are some comments in parentheses that often come up in conjunction
                                                                                         
                                                                                         
with these recommendations.)
<p class="subsection"><span 
class="Spectral-Bold-lf-t-1x-x-109">Our archive  </span>The Comprehensive <span class="TEX">T<span 
class="E">E</span>X</span> Archive Network, <a 
href="https://ctan.org" ><span 
class="Spectral-Light-lf-t-1">CTAN</span></a>, has the latest official versions of the
packages that are in the distributions, along with documentation. <a 
href="https://ctan.org/topics/cloud" >Browsing by topic</a> can be very
handy.
   
<p><p>If you have trouble finding something, it may be the house package of a journal or institution. Look on
their web page as well as on <span 
class="Spectral-Light-lf-t-1">CTAN</span>.
<p class="subsection"><span 
class="Spectral-Bold-lf-t-1x-x-109">Every document  </span>To change page size, margins, and orientation, use <a 
href="https://ctan.org/pkg/geometry" ><span 
class="ectt-1095">geometry</span></a>.<sup><a 
href="#ennote-10" id="enmark-10"><span 
class="cmr-8">10</span></a></sup> Get multiple columns
with <a 
href="https://ctan.org/pkg/multicol" ><span 
class="ectt-1095">multicol</span></a>.<sup><a 
href="#ennote-11" id="enmark-11"><span 
class="cmr-8">11</span></a></sup>
   <p>As referred to above, any document containing significant amounts of mathematics should use the
American Mathematical Society's packages <a 
href="https://ctan.org/pkg/amsmath" ><span 
class="ectt-1095">amsmath</span></a><sup><a 
href="#ennote-12" id="enmark-12"><span 
class="cmr-8">12</span></a></sup> and <a 
href="https://ctan.org/pkg/amsfonts" ><span 
class="ectt-1095">amsfonts</span></a>.<sup><a 
href="#ennote-13" id="enmark-13"><span 
class="cmr-8">13</span></a></sup> Also use their <a 
href="https://ctan.org/pkg/amsthm" ><span 
class="ectt-1095">amsthm</span></a><sup><a 
href="#ennote-14" id="enmark-14"><span 
class="cmr-8">14</span></a></sup> for
producing theorem environments. Notes: (1)&#x00A0;<a 
href="https://ctan.org/pkg/amsfonts" ><span 
class="ectt-1095">amssymb</span></a> inputs <a 
href="https://ctan.org/pkg/amsfonts" ><span 
class="ectt-1095">amsfonts</span></a> so load the former instead of the
latter, (2)&#x00A0;many authors also use the calligraphic characters in <a 
href="https://ctan.org/pkg/rsfs" ><span 
class="ectt-1095">rsfs</span></a>,<sup><a 
href="#ennote-15" id="enmark-15"><span 
class="cmr-8">15</span></a></sup> (3)&#x00A0;get bold math symbols with <a 
href="https://ctan.org/pkg/bm" ><span 
class="ectt-1095">bm</span></a>,<sup><a 
href="#ennote-16" id="enmark-16"><span 
class="cmr-8">16</span></a></sup>
(4)&#x00A0;don't load <a 
href="https://ctan.org/pkg/amsmath" ><span 
class="ectt-1095">amsmath</span></a> directly, instead get it by loading <a 
href="https://ctan.org/pkg/mathtools" ><span 
class="ectt-1095">mathtools</span></a><sup><a 
href="#ennote-17" id="enmark-17"><span 
class="cmr-8">17</span></a></sup> for some useful improvements, and
(4)&#x00A0;load <a 
href="https://ctan.org/pkg/amsthm" ><span 
class="ectt-1095">amsthm</span></a> after <a 
href="https://ctan.org/pkg/mathtools" ><span 
class="ectt-1095">mathtools</span></a>.
   <p>Also, include <a 
href="https://ctan.org/pkg/microtype" ><span 
class="ectt-1095">microtype</span></a>.<sup><a 
href="#ennote-18" id="enmark-18"><span 
class="cmr-8">18</span></a></sup> It will make your document have fewer awkward lines.
<p class="subsection"><span 
class="Spectral-Bold-lf-t-1x-x-109">Inside a document  </span>Tweak the layout of lists with <a 
href="https://ctan.org/pkg/enumitem" ><span 
class="ectt-1095">enumitem</span></a>.<sup><a 
href="#ennote-19" id="enmark-19"><span 
class="cmr-8">19</span></a></sup>
   <p>Enhance captions with <a 
href="https://ctan.org/pkg/caption" ><span 
class="ectt-1095">caption</span></a><sup><a 
href="#ennote-20" id="enmark-20"><span 
class="cmr-8">20</span></a></sup> and control floating environments with <a 
href="https://ctan.org/pkg/float" ><span 
class="ectt-1095">float</span></a>.<sup><a 
href="#ennote-21" id="enmark-21"><span 
class="cmr-8">21</span></a></sup> (In particular, this
package provides the `<span 
class="ectt-1095">H</span>' option to override automatic float placement and put something exactly where you
ask. This may cause issues&nbsp;&mdash; what if you want to include a two inch tall graphic on a page that has only an
inch left?&nbsp;&mdash; but it sometimes is what you want.)
   <p>Get hyperlinks and turn references into links with <a 
href="https://ctan.org/pkg/hyperref" ><span 
class="ectt-1095">hyperref</span></a><sup><a 
href="#ennote-22" id="enmark-22"><span 
class="cmr-8">22</span></a></sup> (make sure to set it up, as with
<span class="lstinline"></span><span 
class="ectt-1000">\</span><span 
class="ectt-1000">hypersetup</span><span 
class="ectt-1000">{</span><span 
class="ectt-1000">colorlinks</span><span 
class="ectt-1000">=</span><span 
class="ectt-1000">true</span><span 
class="ectt-1000">}</span>). Have cross-references that say `Theorem&#x00A0;1.2' instead of just `1.2' with
<a 
href="https://ctan.org/pkg/cleveref" ><span 
class="ectt-1095">cleveref</span></a>.<sup><a 
href="#ennote-23" id="enmark-23"><span 
class="cmr-8">23</span></a></sup> For <span 
class="Spectral-Light-lf-t-1">URL</span>'s and file paths that can break across lines, use <a 
href="https://ctan.org/pkg/url" ><span 
class="ectt-1095">url</span></a>.<sup><a 
href="#ennote-24" id="enmark-24"><span 
class="cmr-8">24</span></a></sup> (If you use <a 
href="https://ctan.org/pkg/hyperref" ><span 
class="ectt-1095">hyperref</span></a> then note
that it has its own commands for the <a 
href="https://ctan.org/pkg/cleveref" ><span 
class="ectt-1095">cleveref</span></a> and <a 
href="https://ctan.org/pkg/url" ><span 
class="ectt-1095">url</span></a> functions.)
   <p>Inside verbatim text, make single quotes come out correctly with <a 
href="https://ctan.org/pkg/upquote" ><span 
class="ectt-1095">upquote</span></a>.<sup><a 
href="#ennote-25" id="enmark-25"><span 
class="cmr-8">25</span></a></sup> For including computer
code, the <a 
href="https://ctan.org/pkg/listings" ><span 
class="ectt-1095">listings</span></a><sup><a 
href="#ennote-26" id="enmark-26"><span 
class="cmr-8">26</span></a></sup> package is very popular. (Copy and paste for computer code is especially convenient.
This is a start for the <a 
href="https://ctan.org/pkg/listings" ><span 
class="ectt-1095">listings</span></a> package. </p><!--l. 219-->
     <div class="lstlisting" id="listing-1"><span class="label"><a 
 id="x1-3001r1"></a></span><span 
class="ectt-1000">\</span><span 
class="ectt-1000">lstset</span><span 
class="ectt-1000">{</span><span 
class="ectt-1000">basicstyle</span><span 
class="ectt-1000">=\</span><span 
class="ectt-1000">ttfamily</span><span 
class="ectt-1000">,</span><span 
class="ectt-1000">&#x00A0;</span><br /><span class="label"><a 
 id="x1-3002r2"></a></span><span 
class="ectt-1000">&#x00A0;</span><span 
class="ectt-1000">&#x00A0;</span><span 
class="ectt-1000">&#x00A0;</span><span 
class="ectt-1000">&#x00A0;</span><span 
class="ectt-1000">&#x00A0;</span><span 
class="ectt-1000">&#x00A0;</span><span 
class="ectt-1000">&#x00A0;</span><span 
class="ectt-1000">&#x00A0;</span><span 
class="ectt-1000">keepspaces</span><span 
class="ectt-1000">=</span><span 
class="ectt-1000">true</span><span 
class="ectt-1000">,</span><span 
class="ectt-1000">&#x00A0;</span><br /><span class="label"><a 
 id="x1-3003r3"></a></span><span 
class="ectt-1000">&#x00A0;</span><span 
class="ectt-1000">&#x00A0;</span><span 
class="ectt-1000">&#x00A0;</span><span 
class="ectt-1000">&#x00A0;</span><span 
class="ectt-1000">&#x00A0;</span><span 
class="ectt-1000">&#x00A0;</span><span 
class="ectt-1000">&#x00A0;</span><span 
class="ectt-1000">&#x00A0;</span><span 
class="ectt-1000">columns</span><span 
class="ectt-1000">=</span><span 
class="ectt-1000">fullflexible</span><span 
class="ectt-1000">}</span>
     
   </div>
   But it is not a full solution. The results depend on the <span 
class="Spectral-Light-lf-t-1">PDF </span>viewer and worse, if your code line begins
with blank spaces then after copy and paste those spaces are gone.)
   <p>If you use Python, <a 
href="https://ctan.org/pkg/pythontex" ><span 
class="ectt-1095">pythontex</span></a><sup><a 
href="#ennote-27" id="enmark-27"><span 
class="cmr-8">27</span></a></sup> will show code listings, but it also allows you to execute Python and put
the results in your output. Do the same for the <span 
class="Spectral-LightItalic-lf-t-1x-x-109">Sage </span>mathematics software with <a 
href="https://ctan.org/pkg/sagetex" ><span 
class="ectt-1095">sagetex</span></a>, and similar
support exists for other languages.
   <p>There are many packages that add table capabilities, such as multirow entries and breaking across
pages. The first package to try is <a 
href="https://ctan.org/pkg/array" ><span 
class="ectt-1095">array</span></a>,<sup><a 
href="#ennote-28" id="enmark-28"><span 
class="cmr-8">28</span></a></sup> which lets you define your own column types. To handle
scientific units, use <a 
href="https://ctan.org/pkg/siunitx" ><span 
class="ectt-1095">siunitx</span></a><sup><a 
href="#ennote-29" id="enmark-29"><span 
class="cmr-8">29</span></a></sup> (which also has a table column type for aligning on a decimal
point).
   <p>Make boxes that are colored or framed, such as boxes for theorems, with <a 
href="https://ctan.org/pkg/tcolorbox" ><span 
class="ectt-1095">tcolorbox</span></a>.<sup><a 
href="#ennote-30" id="enmark-30"><span 
class="cmr-8">30</span></a></sup>
   <p>Use <a 
href="https://ctan.org/pkg/babel" ><span 
class="ectt-1095">babel</span></a><sup><a 
href="#ennote-31" id="enmark-31"><span 
class="cmr-8">31</span></a></sup> for internationalization, including changing the title of the abstract or the bibliography.
(Note that <span class="LATEX">L<span class="A">A</span><span class="TEX">T<span 
class="E">E</span>X</span></span> now defaults to UTF-8 encoded input.)
   <p>Finally, when developing a document, you often want to generate filler text. Use <a 
href="https://ctan.org/pkg/lipsum" ><span 
class="ectt-1095">lipsum</span></a>.<sup><a 
href="#ennote-32" id="enmark-32"><span 
class="cmr-8">32</span></a></sup>
<p class="subsection"><span 
class="Spectral-Bold-lf-t-1x-x-109">Color and graphics  </span>For colors, use <a 
href="https://ctan.org/pkg/xcolor" ><span 
class="ectt-1095">xcolor</span></a>.<sup><a 
href="#ennote-33" id="enmark-33"><span 
class="cmr-8">33</span></a></sup>
   <p>To include graphics and do simple manipulations such as resizing, use <a 
href="https://ctan.org/pkg/graphicx" ><span 
class="ectt-1095">graphicx</span></a>.<sup><a 
href="#ennote-34" id="enmark-34"><span 
class="cmr-8">34</span></a></sup> Use the <span 
class="Spectral-Light-lf-t-1">JPG </span>format
for photos, <span 
class="Spectral-Light-lf-t-1">PNG </span>for other kinds of raster graphics, and <span 
class="Spectral-Light-lf-t-1">PDF </span>for vector graphics. If your graphic is in another
                                                                                         
                                                                                         
format then convert it to one of these three. (Usually in your <span class="LATEX">L<span class="A">A</span><span class="TEX">T<span 
class="E">E</span>X</span></span> source, you give the file name without
the extension, as with <span class="lstinline"></span><span 
class="ectt-1000">\</span><span 
class="ectt-1000">includegraphics</span><span 
class="ectt-1000">{</span><span 
class="ectt-1000">myplot</span><span 
class="ectt-1000">}</span>.) Include parts of an outside <span 
class="Spectral-Light-lf-t-1">PDF </span>document with
<a 
href="https://ctan.org/pkg/pdfpages" ><span 
class="ectt-1095">pdfpages</span></a>.<sup><a 
href="#ennote-35" id="enmark-35"><span 
class="cmr-8">35</span></a></sup> Include video or sound using <a 
href="https://ctan.org/pkg/media9" ><span 
class="ectt-1095">media9</span></a>.<sup><a 
href="#ennote-36" id="enmark-36"><span 
class="cmr-8">36</span></a></sup>
   <p>In your plots and graphics, you want that the fonts and notations match your document. You have a few
choices. Draw inside your document with <a 
href="https://ctan.org/pkg/pgf" >Ti<span 
class="Spectral-LightItalic-lf-t-1x-x-109">k</span>Z</a>.<sup><a 
href="#ennote-37" id="enmark-37"><span 
class="cmr-8">37</span></a></sup> You can instead draw using an external command
language such as <a 
href="https://asymptote.sourceforge.io/" >Asymptote</a>,<sup><a 
href="#ennote-38" id="enmark-38"><span 
class="cmr-8">38</span></a></sup> and bring the results in as graphics. And there are other options, such as
that the <a 
href="http://www.gnuplot.info/" >Gnuplot</a> plotting software will output Ti<span 
class="Spectral-LightItalic-lf-t-1x-x-109">k</span>Z commands, and the <a 
href="https://inkscape.org/" >Inkscape</a> vector graphics editor
allows you to embed <span class="LATEX">L<span class="A">A</span><span class="TEX">T<span 
class="E">E</span>X</span></span>-generated equations.
<p class="subsection"><span 
class="Spectral-Bold-lf-t-1x-x-109">Front and back matter, headers, footers  </span>To style chapter and section titles, use <a 
href="https://ctan.org/pkg/titlesec" ><span 
class="ectt-1095">titlesec</span></a>.<sup><a 
href="#ennote-39" id="enmark-39"><span 
class="cmr-8">39</span></a></sup> For page
headers and footers, reach for <a 
href="https://ctan.org/pkg/fancyhdr" ><span 
class="ectt-1095">fancyhdr</span></a>.<sup><a 
href="#ennote-40" id="enmark-40"><span 
class="cmr-8">40</span></a></sup> You can tweak the format of tables of contents, lists of figures,
etc., with <a 
href="https://ctan.org/pkg/tocloft" ><span 
class="ectt-1095">tocloft</span></a>.<sup><a 
href="#ennote-41" id="enmark-41"><span 
class="cmr-8">41</span></a></sup>
   <p>For footnotes, use <a 
href="https://ctan.org/pkg/footmisc" ><span 
class="ectt-1095">footmisc</span></a>.<sup><a 
href="#ennote-42" id="enmark-42"><span 
class="cmr-8">42</span></a></sup> Make an index with <a 
href="https://ctan.org/pkg/makeindex" ><span 
class="ectt-1095">makeindex</span></a>.<sup><a 
href="#ennote-43" id="enmark-43"><span 
class="cmr-8">43</span></a></sup> With <a 
href="https://ctan.org/pkg/answers" ><span 
class="ectt-1095">answers</span></a><sup><a 
href="#ennote-44" id="enmark-44"><span 
class="cmr-8">44</span></a></sup> you can send exercise
answers to an external file, where you can make them a separate document or include them at the end of the
current one.
   <p>Bibliographies are a thorny area. Often you have strict requirements, such as from the <a 
href="https://ctan.org/pkg/MLA" ><span 
class="ectt-1095">MLA</span></a>.<sup><a 
href="#ennote-45" id="enmark-45"><span 
class="cmr-8">45</span></a></sup> <span 
class="Spectral-Light-lf-t-1">CTAN </span>is a
big help here; check out the many styles for both <a 
href="https://ctan.org/topic/bibtex-sty" >B<span 
class="Spectral-Light-lf-sc-t-1x-x-109">ib</span><span class="TEX">T<span 
class="E">E</span>X</span></a><sup><a 
href="#ennote-46" id="enmark-46"><span 
class="cmr-8">46</span></a></sup> and <a 
href="https://ctan.org/topic/biblatex" >B<span 
class="Spectral-Light-lf-sc-t-1x-x-109">ib</span><span class="LATEX">L<span class="A">A</span><span class="TEX">T<span 
class="E">E</span>X</span></span></a>.<sup><a 
href="#ennote-47" id="enmark-47"><span 
class="cmr-8">47</span></a></sup>
<p class="subsection"><span 
class="Spectral-Bold-lf-t-1x-x-109">Special documents  </span>Make exams and problem sets with the <a 
href="https://ctan.org/pkg/exam" ><span 
class="ectt-1095">exam</span></a><sup><a 
href="#ennote-48" id="enmark-48"><span 
class="cmr-8">48</span></a></sup> class.
   <p>There are many, many resume and CV packages. Start with <span 
class="Spectral-Light-lf-t-1">CTAN</span>'s <a 
href="https://ctan.org/topic/cv" >cv topic</a>.
   <p>To make presentations, use the <a 
href="https://ctan.org/pkg/beamer" ><span 
class="ectt-1095">beamer</span></a><sup><a 
href="#ennote-49" id="enmark-49"><span 
class="cmr-8">49</span></a></sup> class. (However, with this package you are entering another
world, where many of the packages discussed here do not work. For example, section title styling happens
via a completely different mechanism.)
<h3 class="sectionHead"><a 
 id="x1-4000"></a>Fonts and engines</h3>
<!--l. 344--><p class="noindent" >The documentation for font use commands from the <span class="LATEX">L<span class="A">A</span><span class="TEX">T<span 
class="E">E</span>X</span></span> developers is <a 
href="http://mirror.ctan.org/macros/latex/base/fntguide.pdf" ><span class="LATEX">L<span class="A">A</span><span class="TEX">T<span 
class="E">E</span>X</span></span>2<span 
class="cmmi-10x-x-109">&#x03B5;</span> font selection</a>.<sup><a 
href="#ennote-50" id="enmark-50"><span 
class="cmr-8">50</span></a></sup>
</p><!--l. 348--><p class="indent" >   To move beyond the default fonts, visit the <a 
href="https://tug.org/FontCatalogue/" ><span class="LATEX">L<span class="A">A</span><span class="TEX">T<span 
class="E">E</span>X</span></span>&#x00A0;Font Catalogue</a>, which includes copy and paste code
to make each one work.
</p><!--l. 353--><p class="indent" >   Beyond that list, you can also use your computer system's fonts (beware this makes your source