Home > Store

The LaTeX Companion: Parts I & II, 3rd Edition, 3rd Edition

Register your product to gain access to bonus material or receive a coupon.

The LaTeX Companion: Parts I & II, 3rd Edition, 3rd Edition

Best Value Purchase

Book + eBook Bundle

  • Your Price: $136.24
  • List Price: $234.98
  • We're temporarily out of stock, but order now and we'll send it to you later.
  • Includes EPUB and PDF
  • About eBook Formats
  • This eBook includes the following formats, accessible from your Account page after purchase:

    ePub EPUB The open industry format known for its reflowable content and usability on supported mobile devices.

    Adobe Reader PDF The popular standard, used most often with the free Acrobat® Reader® software.

    This eBook requires no passwords or activation to read. We customize your eBook by discreetly watermarking it with your name, making it uniquely yours.

More Purchase Options

Book

  • Your Price: $95.99
  • List Price: $119.99
  • We're temporarily out of stock, but order now and we'll send it to you later.

eBook

  • Your Price: $91.99
  • List Price: $114.99
  • Includes EPUB and PDF
  • About eBook Formats
  • This eBook includes the following formats, accessible from your Account page after purchase:

    ePub EPUB The open industry format known for its reflowable content and usability on supported mobile devices.

    Adobe Reader PDF The popular standard, used most often with the free Acrobat® Reader® software.

    This eBook requires no passwords or activation to read. We customize your eBook by discreetly watermarking it with your name, making it uniquely yours.

Description

  • Copyright 2023
  • Edition: 3rd
  • Book
  • ISBN-10: 0-13-816648-X
  • ISBN-13: 978-0-13-816648-9

For nearly three decades The LaTeX Companion has been the essential resource for anyone using LaTeX to create high-quality documents. Just like the earlier editions, this completely updated third edition is designed to serve as the stable core resource for users: covering all aspects of document production, from detailed micro-typography questions and macro-typography (heading design, lists, mathematics, tables, graphics, fonts, page-layout, etc.) to bibliography and index production.

All chapters have been thoroughly revised and in many cases largely extended to describe new important functionality and features. More than 5,000 add-on packages have been analyzed in detail, out of which roughly 10% have been chosen for inclusion in The LaTeX Companion. All important aspects of these packages are described to provide the user once again with a satisfying one-stop-shop experience for the decade to come.

Following the concept of the earlier versions, the new edition is full of novel tips and tricks for using LaTeX in both traditional and modern typesetting, and also shows you how to customize layout features to your own needs--from phrases and paragraphs to headings, lists, and pages.

Inside you will find:

  • Expert advice on using LaTeX's formatting tools to create publications of all types and sizes--memos, articles, books, or even encyclopedias.
  • In-depth coverage of all essential extension packages--e.g., for tabular and technical typesetting, floats and captions, multicolumn layouts, graphics, or font selection--including discussions of the underlying typographic and TeXnical concepts.
  • Detailed techniques for generating and typesetting contents lists, bibliographies, indexes, etc.
  • Full coverage of the latest packages for all types of documents--mathematical, multilingual, and many more.
  • Tips and tricks for LaTeX programmers and systems support.
  • Detailed help on all error messages, including those troublesome low-level TeX errors.

New to this edition:

  • Inclusion of, or more details on, important new or changed large-scale packages, e.g., biblatex, fontspec, hyperref, mathtools, siunitx, tcolorbox, tikz, and unicode-math, to name just a few.
  • Coverage of newer engine developments, e.g., the use of Unicode engines with LaTeX.
  • Discussion of all vital changes to LaTeX itself, which is undergoing a transformation to keep it relevant in the years to come. Examples are the new hook management system for LaTeX, the extended document command syntax, and the inclusion of the LaTeX3 programming layer into the LaTeX format.
  • Inclusion of many new, useful (smaller) packages in all chapters--each offering additional functionality.
  • Two new chapters devoted to the use of high-quality fonts for text and math (OpenType, TrueType, and Type 1), now available for use with LaTeX. They offer a comprehensive set of samples to choose from (more than 120 text font families and 40 math font layouts), compiled with the help of an expert font designer.
  • Revised discussions of multi-lingual support by the authors of the babel system to typeset text from a wide range of languages and cultures.
  • The chapter on bibliography generation now also covers the styles made available with biblatex and biber.
  • More than 1,500 fully tested examples (an increase of 30%) that illustrate the text and solve typographical and technical problems--all ready to run!

In short, the two parts of The LaTeX Companion, Third Edition, cover all you need to know about LaTeX use in the twenty-first century, while also offering expertly curated discussions of the best add-on packages now available--over 500 are covered!

The examples can be downloaded from https://ctan.org/pkg/tlc3-examples.

Register your book for convenient access to downloads, updates, and/or corrections as they become available.

Downloads

Downloads

Visit the author's site to download code examples: https://ctan.org/pkg/tlc3-examples

Sample Content

Table of Contents

Part I:
List of Figures xxviii
List of Tables xxxi
Foreword xxxvii
Preface xxxix

Chapter 1: Introduction 1
1.1 A brief history (of nearly half a century) 1
1.2 Today's systems 8
1.3 Working with this book 13

Chapter 2: The Structure of a LaTeX Document 21
2.1 The overall structure of a source file 22
2.2 Sectioning commands 32
2.3 Table of contents structures 54
2.4 Managing references 75
2.5 Document source management 108

Chapter 3: Basic Formatting Tools -- Paragraph Level 119
3.1 Shaping your paragraphs 120
3.2 Dealing with special characters 147
3.3 Generated or specially formatted text 154
3.4 Various ways of highlighting and quoting text 177
3.5 Footnotes, endnotes, and marginals 204
3.6 Support for document development 237

Chapter 4: Basic Formatting Tools -- Larger Structures 253
4.1 Lists 254
4.2 Simulating typed text 296
4.3 Lines and columns 333
4.4 Generating sample texts 361

Chapter 5: The Layout of the Page 365
5.1 Geometrical dimensions of the layout 366
5.2 Changing the layout 368
5.3 Dynamic page data: page numbers and marks 385
5.4 Page styles 395
5.5 Page decorations and watermarks 409
5.6 Visual formatting 414
5.7 Doing layout with class 429

Chapter 6: Tabular Material 431
6.1 Standard LaTeX environments 432
6.2 array -- Extending the tabular environments 437
6.3 Calculating column widths 446
6.4 Multipage tabular material 456
6.5 Color in tables 466
6.6 Customizing table rules and spacing 467
6.7 Other extensions 476
6.8 Footnotes in tabular material 491
6.9 keyvaltable -- Separating table data and formatting 494
6.10 tabularray -- Late breaking news 504

Chapter 7: Mastering Floats 505
7.1 An overview of LaTeX's float concepts 506
7.2 Float placement control 519
7.3 Extensions to LaTeX's float concept 528
7.4 Controlling the float caption 538
7.5 Key/value approaches for floats and subfloats 560

Chapter 8: Graphics Generation and Manipulation 575
8.1 LaTeX's image loading support 576
8.2 Manipulating graphical objects in LaTeX 587
8.3 Producing (fairly) portable line graphics 602
8.4 Flexible boxes for multiple purposes 614
8.5 tikz -- A general-purpose graphics system 631

Chapter 9: Font Selection and Encodings 647
9.1 Introduction 648
9.2 Understanding font characteristics 652
9.3 Using fonts in text 658
9.4 Using fonts in math 676
9.5 Standard LaTeX font support 683

Part II (page numbers begin with "II"):
Foreword, Part II II v
Preface, Part II II vii

Chapter 10: Text and Symbol Fonts II 1
10.1 Overview II 2
10.2 Samples of larger font families II 11
10.3 Humanist (Oldstyle) serif fonts II 36
10.4 Garalde (Oldstyle) serif fonts II 38
10.5 Transitional/Neoclassical serif fonts II 46
10.6 Didone (Modern) serif fonts II 60
10.7 Slab serif (Egyptian) fonts II 64
10.8 Sans serif fonts II 67
10.9 Monospaced (typewriter) fonts II 88
10.10 Historical and other fonts II 97
10.11 Fonts supporting Latin and polytonic Greek II 106
10.12 Fonts supporting Latin and Cyrillic II 110
10.13 The LaTeX world of symbols II 113

Chapter 11: Higher Mathematics II 127
11.1 Introduction to amsmath and mathtools II 128
11.2 Display and alignment structures for equations II 131
11.3 Matrix-like environments II 153
11.4 Compound structures and decorations II 163
11.5 Variable symbol commands II 180
11.6 Words in mathematics II 191
11.7 Fine-tuning the mathematical layout II 194
11.8 Symbols in formulas II 208

Chapter 12: Fonts in Formulas II 225
12.1 The world of (Latin) math alphabets II 226
12.2 Making it bold II 235
12.3 Traditional math font setup through packages II 238
12.4 unicode-math -- Using Unicode math fonts II 253
12.5 A visual comparison of different math setups II 261

Chapter 13: Localizing Documents II 297
13.1 TEX and nonEnglish languages II 297
13.2 The babel user interface II 301
13.3 User commands provided by language options II 308
13.4 Support for Cyrillic and Greek II 324
13.5 Complex scripts II 330
13.6 Tailoring babel II 332
13.7 Other approaches II 341

Chapter 14: Index Generation II 343
14.1 Syntax of the index entries II 345
14.2 MakeIndex -- A program to sort and format indexes II 350
14.3 upmendex -- A Unicode-aware indexing program II 364
14.4 xindy, xindex -- Two other indexing programs II 370
14.5 Enhancing the index with LaTeX features II 371

Chapter 15: Bibliography Generation II 375
15.1 The standard LaTeX bibliography environment II 376
15.2 The biber and BibTeX programs II 378
15.3 The BibTeX database format II 380
15.4 Using BibTeX or biber to produce the bibliography II 409
15.5 On-line bibliographies II 413
15.6 Bibliography database management tools II 414
15.7 Formatting the bibliography with styles II 418

Chapter 16: Managing Citations II 469
16.1 Introduction II 469
16.2 The number-only system II 473
16.3 The author-date system II 487
16.4 The author-number system II 502
16.5 The author-title system II 507
16.6 The verbose system II 537
16.7 biblatex -- One ring to rule them all II 541
16.8 Multiple bibliographies in one document II 569

Chapter 17: LaTeX Package Documentation Tools II 583
17.1 doc -- Documenting LaTeX and other code II 584
17.2 docstrip.tex -- Producing ready-to-run code II 599
17.3 l3build -- A versatile development environment II 606
17.4 Making use of version control tools II 615

Appendix A: LaTeX Overview for Preamble, Package, and Class Writers II 621
A.1 Linking markup and formatting II 622
A.2 Counters and length expressions II 646
A.3 Page markup -- Boxes and rules II 660
A.4 LaTeX's hook management II 671
A.5 Control structure extensions II 685
A.6 Package and class file structure II 693

Appendix B: Tracing and Resolving Problems II 711
B.1 Error messages II 712
B.2 Dying with memory exceeded II 744
B.3 Warnings and informational messages II 749
B.4 TeX and LaTeX commands for tracing II 765

Appendix C: Going Beyond II 783
C.1 Learn LaTeX -- A LaTeX online course for beginners II 784
C.2 Finding information available on your computer II 785
C.3 Accessing online information and getting help II 787
C.4 Getting all those TeX files II 789
C.5 Giving back to the community II 792

Bibliography II 795
Index of Commands and Concepts II 817
People II 967
Biographies II 973
Production Notes II 977

Updates

Errata

Please visit the author's site for up-to-date errata listings.
https://www.latex-project.org/help/books/tlc3.err

Submit Errata

More Information

InformIT Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from InformIT and its family of brands. I can unsubscribe at any time.

Overview


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information


To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites, develop new products and services, conduct educational research and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email information@informit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information


Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children


This site is not directed to children under the age of 13.

Marketing


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information


If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out


Users can always make an informed choice as to whether they should proceed with certain services offered by InformIT. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.informit.com/u.aspx.

Sale of Personal Information


Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents


California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure


Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

Links


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact


Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice


We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020