Book Image

LaTeX Cookbook

By : Stefan Kottwitz
Book Image

LaTeX Cookbook

By: Stefan Kottwitz

Overview of this book

LaTeX is a high-quality typesetting software and is very popular, especially among scientists. Its programming language gives you full control over every aspect of your documents, no matter how complex they are. LaTeX's huge amount of customizable templates and supporting packages cover most aspects of writing with embedded typographic expertise. With this book you will learn to leverage the capabilities of the latest document classes and explore the functionalities of the newest packages. The book starts with examples of common document types. It provides you with samples for tuning text design, using fonts, embedding images, and creating legible tables. Common document parts such as the bibliography, glossary, and index are covered, with LaTeX's modern approach.You will learn how to create excellent graphics directly within LaTeX, including diagrams and plots quickly and easily. Finally, you will discover how to use the new engines XeTeX and LuaTeX for advanced programming and calculating with LaTeX. The example-driven approach of this book is sure to increase your productivity.
Table of Contents (19 chapters)
LaTeX Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Suppressing ligatures


Ligatures raise the typographical quality and thus we should retain them. However, there may be a reason to disable them, for example, in verbatim text such as the source code.

Furthermore, it's possible that searching or copying of ligatures in a PDF file would fail, which we discussed in the previous recipe.

How to do it...

We will now see how to disable ligatures. We will use the microtype package:

  1. Load the microtype package:

    \usepackage{microtype}
  2. Disable ligatures completely:

    \DisableLigatures{encoding = *, family = * }
  3. If you would like to restrict that feature to a certain font, you can specify it instead, such as:

    \DisableLigatures{encoding = T1, family = tt* }
  4. You may even suppress just the selected ligatures using the following command. Specify the letter that starts the ligature.

    \DisableLigatures[f]{encoding = *, family = * }

How it works...

Suppressing ligatures is one of the many features of the microtype package. Using the preceding interface, you can switch off some...