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

Mimicking keys and menu items


Technical documentation and software manuals often require to tell the reader about keyboard shortcuts, how to use the program menu, or in which directory files can be located. This recipe helps with writing such explanations.

How to do it...

We will use the menukeys package and try out its main commands. Follow these steps:

  1. Start a short document and load the menukeys package in it:

    \documentclass[parskip=full]{scrartcl}
    \usepackage{menukeys}
    \begin{document}
    \section*{Running \TeX works}
  2. In the body text, use the \menu command for menu entries, the \keys command for keyboard combinations, and the \directory command for a path, as follows:

    In the main menu, click \menu{Typeset > pdfLaTeX}
    for choosing the \TeX\ compiler. Then press \keys{\cmd + T}
    for typesetting. Click \menu{Window > Show > Fonts} for seeing
    the fonts used by the document.
    
    Press \keys{\shift + \cmd + F} for full screen.
    
    The program is installed in
    \directory{/Applications/TeX/TeXworks...