Book Image

LaTeX Cookbook - Second Edition

By : Stefan Kottwitz
Book Image

LaTeX Cookbook - Second Edition

By: Stefan Kottwitz

Overview of this book

The second edition of LaTeX Cookbook offers improved and additional examples especially for users in science and academia, with a focus on new packages for creating graphics with LaTeX. This edition also features an additional chapter on ChatGPT use to improve content, streamline code, and automate tasks, thereby saving time. This book is a practical guide to utilizing the capabilities of modern document classes and exploring the functionalities of the newest LaTeX packages. Starting with familiar document types like articles, books, letters, posters, leaflets, and presentations, it contains detailed tutorials for refining text design, adjusting fonts, managing images, creating tables, and optimizing PDFs. It also covers elements such as the bibliography, glossary, and index. You’ll learn to create graphics directly within LaTeX, including diagrams and plots, and explore LaTeX’s application across various fields like mathematics, physics, chemistry, and computer science. The book’s website offers online compilable code, an example gallery, and supplementary information related to the book, including the author’s LaTeX forum, where you can get personal support. By the end of this book, you’ll have the skills to optimize productivity through practical demonstrations of effective LaTeX usage in diverse scenarios.
Table of Contents (16 chapters)

Getting started with ChatGPT

In this book, we will use ChatGPT version 3.5. This chatbot is available for free and is trained on data up to January 2022. Newer versions are subscription-based paid services.

This version is sufficient for our purposes here, as LaTeX has a history spanning over 30 years and was well established by 2022, ensuring a substantial amount of available data.

With GPT-3.5, the maximum combined limit for input and output is 4,096 tokens. A token means a unit of text usually equivalent to a word, a subword, or a single character, so we may estimate about 3,000 words on average.

How to do it...

To get started, all you need is a web browser. Follow these steps:

  1. Open the ChatGPT website at https://chat.openai.com.
  2. If you don’t have an account, click on Sign up. Once your account is created, click on Log in.
  3. You can use a Google or Gmail account, a Microsoft account, or an Apple ID for a quick sign-up. Alternatively, enter your email...