Skip to content
ImagineWorld

Getting Started with LaTeX

node_idnode-book_latex-beginner-s-guide_chapter-01-getting-started-with-latex
node_typechapter-node
schema_profileworld.chapter_node.v1
statusactive
entropyhigh
manifoldworld
domainimagineworld.net
authorityinforms
layercorpus
chapter_num1
chapter_titleGetting Started with LaTeX
governed_byCORPUS
constitutional_citationCONSTITUTION
local graph

You are familiar with word processing software: you type some text, and what you see on the screen is what you get on the page. In contrast, LaTeX is a typesetting system: you write plain text with markup commands, and LaTeX turns it into polished output. It produces high-quality prints and PDF files based on sophisticated algorithms for justification, hyphenation, text alignment, whitespace balancing, and figure placement. It comes with predefined formatting styles for headings, margins, and general page layout, which you can customize.

Now that you’re ready to move beyond those “what you see is what you get” word processors and start using a system designed for precision and consistency, you’re in the right place. Let’s take the first steps together.

This book will guide you along the way, helping you get the most out of LaTeX’s capabilities. First, we’ll look at its strengths and a few challenges before setting up the tools you’ll need.

In this chapter, we’ll get acquainted with LaTeX, what it is, and how to install and use it. Specifically, we’ll cover the following:

  • Getting the LaTeX idea
  • Installing and using LaTeX
  • Working with LaTeX online
  • Accessing documentation

By the end of this chapter, you’ll have LaTeX up and running, know how to edit and typeset a basic document, and understand where to find further documentation.

Let’s get started.

We’ll focus on the Windows operating system here, but you can also install LaTeX on macOS, Linux, and other systems.

A full installation typically requires around 8 GB of disk space on every system.

If you prefer not to install anything, you can use an online platform such as Overleaf, which runs entirely in your browser and requires a constant internet connection. We’ll cover Overleaf at the end of this chapter.

All code examples from this book are available for download on GitHub at https://github.com/PacktPublishing/LaTeX-Beginner-s-Guide-Third-Edition.

On the book’s website, https://latexguide.org, you can read, edit, and compile all the code examples directly in your browser—no installation required. All you need is a device with a modern web browser and JavaScript enabled, whether it’s a PC, laptop, tablet, or smartphone.

LaTeX is free and open source software for typesetting documents. It’s a document preparation system based on markup commands, where you describe the structure and formatting of your content using plain text commands.

It was initially written by Leslie Lamport in the 1980s and is built on top of the TeX typesetting engine by Donald Knuth, who started developing it in the late 1970s. It has a long history; you can read about it at https://tug.org/whatis.html. As Knuth derived the name from “tau epsilon chi”, abbreviating the Greek word “τέχνη” for art, craft, or technology, people commonly pronounce it like “Tech.” Some prefer saying “tek” as in “technology.” What it shouldn’t sound like is “teks.” For LaTeX, it’s similar; we pronounce it like “Lahtech” or “Laytech.”

Let’s look at how we can make the most out of LaTeX.

LaTeX is particularly well-suited for scientific and technical documents. LaTeX’s superior typesetting of mathematical formulas is legendary. If you’re a student or a scientist, LaTeX is by far the best choice. Even if you don’t need its scientific capabilities, LaTeX has much to offer—it produces outstanding, high-quality output and is incredibly stable. It handles large and complex documents with ease.

Some of LaTeX’s remarkable strengths are its cross-referencing capabilities, automatic numbering, and the generation of lists of contents, figures, and tables, indexes, glossaries, and bibliographies. It is multilingual with language-specific features and can use even advanced PDF features.

While it’s the perfect choice for students’ theses and advanced scientists’ publishing, LaTeX is incredibly flexible—there are templates for letters, CVs, presentations, bills, philosophy books, law texts, music scores, and even chess game notation. Hundreds of LaTeX developers and power users have written thousands of templates, styles, and valuable tools for every possible purpose. These are collected and categorized online on archive servers.

You can take advantage of LaTeX’s impressive high quality by starting with its default styles and relying on its built-in smart formatting. But you can customize nearly every aspect if you need something more tailored. The LaTeX community has developed a wide range of extensions covering almost every formatting requirement you might encounter.

LaTeX is entirely open source, with freely readable code for everyone. This enables everybody to study and adjust everything, from the core of LaTeX to the latest extension packages. But what does this mean for you as a beginner? A vast, active, and supportive LaTeX community has many friendly, helpful people. Even if you cannot benefit from the open source code directly, they can read the source and assist you. Just join a LaTeX web forum and ask your questions there. Helpers will, if necessary, dig into LaTeX sources and, in all probability, find a solution for you, sometimes by recommending a suitable package, often providing a redefinition of a default command.

Today, we benefit from more than 40 years of ongoing development by the LaTeX community. The open source philosophy made huge progress possible, as every user is invited to study, improve, and extend the software. Chapter 15, Using Online Resources, will connect you with the online community.

A core idea behind LaTeX is that the author shouldn’t be distracted by formatting while writing. Instead of manually adjusting the appearance of text, you focus on the structure and meaning of your content. For example, you use a LaTeX command, marking it as a chapter heading rather than writing a chapter title in big, bold letters. You can let LaTeX apply the styling to the heading or define what the headings will look like in the document’s settings—just once for the whole document. LaTeX relies on style files called classes and packages, making it easy to design and consistently modify the entire document’s appearance and details.

LaTeX is available for nearly every major operating system, such as Windows, Linux, and macOS. It uses plain text files for documents and styles, which are readable and editable on all operating systems and versions. That means your documents are portable and LaTeX will produce the same output on each system. Several LaTeX software collections contain compiler engines, tools, and styles. We call them TeX distributions. We will focus on the TeX Live distribution since this one is available for Windows, Linux, and macOS. On the Mac, the customized TeX Live version is called MacTeX.

LaTeX doesn’t have its own graphical user interface, which is one reason it’s so portable. You can choose any text editor. However, there are many LaTeX-specific editors for every major operating system. Some, such as TeXworks, run on multiple systems, which is one of the reasons we will use it in our book. Another significant reason is that it’s simple and best suited for beginners.

LaTeX generates PDF output, which is ideal for sharing since it’s printable and readable on most computers and looks the same regardless of the operating system. Besides PDF, it supports DVI, PostScript, and HTML output, preparing the ground for distribution in print and online, such as on personal computers, electronic book readers such as the Kindle, and smartphones. To sum up, LaTeX is portable in three ways: your source files, its implementation, and the final output.

LaTeX documents are stored in a human-readable text format, not in some proprietary word processing format exclusive to a specific software vendor, which may even be different between versions of the same software.

Try opening a 20-year-old document written with a commercial word processor. Even if it can open the file, its visual appearance would be altered, the formatting may be off, or the display may be wrong. LaTeX promises that the document will always be readable and consistently produce the same output. Despite ongoing development, it maintains strong backward compatibility.

Word processor documents can carry viruses or malicious macros that can harm your computer system and data. Viruses do not infect LaTeX documents because they can hardly hide in a plain text file.

LaTeX can seem challenging at first, but this book will help you master it step by step, topic by topic.

Writing LaTeX looks like programming, but don’t be intimidated. You’ll quickly become familiar with the most commonly used commands, and text editors with auto-completion and syntax highlighting will support you. Some even offer you menus and dialog boxes to insert commands.

Worried it might take a long time to produce usable results? Don’t be; this book will give you a quick start with plenty of hands-on examples, so you’ll learn by doing and build confidence. Many more examples can be found on the internet. In Chapter 15, Using Online Resources, we will explore online resources. There are LaTeX help forums where you get answers to your questions. One of them has a section dedicated specifically to readers of this book and its companions: https://latex.org/books.

There are two main ways to start working with LaTeX:

  • The traditional approach is to install LaTeX on your own computer. It’s fairly simple, and we will walk through installing it on Windows in the Installing and using LaTeX section.
  • Another way is to use LaTeX entirely online in your browser. No installation is needed; you only need an internet-connected computer, tablet, or phone. We will explore this option in the Working with LaTeX online using Overleaf section at the end of this chapter.

We’ll begin by setting up LaTeX locally on our computer. If you like, you could skip this moment and jump ahead to the Working with LaTeX online using Overleaf section, then decide which approach you would like to take.

Let’s start by installing the LaTeX distribution TeX Live. It’s available for Windows, Linux, macOS (as MacTeX), and other Unix-like operating systems. TeX Live is actively developed and well-maintained, making it a reliable choice across platforms.

Another excellent and user-friendly TeX distribution for Windows is MiKTeX. It’s easy to install, like a common Windows application. You can download it from https://miktex.org. Visit https://latexguide.org/distributions for a detailed, up-to-date comparison.

You can install TeX Live in one of two ways: in single-user mode only for your account, or system-wide for all users on a computer. The latter is called admin mode. It requires running the installation as an administrator: either log in with an administrator account or right-click on the Install program and choose Run as administrator.

If you are the only person using your computer, a single-user installation is recommended.

Let’s start by visiting the TeX Live home page and reviewing the available installation options. To do this, open the TeX Live home page using https://tug.org/texlive/:

Figure 1.1 – TeX Live home page

Figure 1.1 – TeX Live home page

Feel free to explore the home page in more detail to study the information offered there, though, in this book, we’ll focus on two types of installation:

  • Installing TeX Live online using the net installer wizard; this method requires a constant internet connection for typically about two hours or longer
  • Installing TeX Live offline; this way starts with a considerable download, but then we can continue without having the internet available, with less risk of interruption

Before starting the installation, let’s have a look at LaTeX files and packaging conventions with different granularity:

  • A LaTeX class file defines the overall structure and layout of a document, such as sectioning behavior, default fonts, margins, and more. Class files have the .cls filename extension.
  • A package, also called a style file, is a single LaTeX file with some macros to add specific features or provide a particular look and document style. Its filename extension is .sty.
  • A bundle is a set of related files with a similar purpose, such as classes, packages, and support files.
  • A collection is a more extensive set of packages for a field of interest. That can be, for example, an extensive set of math and natural science packages, music packages, or graphics-related packages.
  • A scheme is a LaTeX installation of a specific size. It can be minimal (the smallest necessary to work), basic (commonly needed stuff), or full (everything available).

With this understanding, we can now install LaTeX. The easiest option is to install everything fully; that’s the full scheme. This ensures that all packages are available from the start, so you won’t encounter missing features later.

Let’s check out two installation methods on a Windows PC. The first installs TeX Live over the internet, requiring a good internet connection. If you don’t have a good internet connection, go to the next section, Installing TeX Live offline.

Installing TeX Live using the net installer wizard

Section titled “Installing TeX Live using the net installer wizard”

We will download the TeX Live net installer and install the complete TeX Live distribution on our computer. To do this, follow these steps:

  1. Click on download, as seen in Figure 1.1, or go to https://tug.org/texlive/acquire-netinstall.html:

Figure 1.2 – Installation instructions

Figure 1.2 – Installation instructions

  1. Download the executable installer program, install-tl-windows.exe, and run the program.
  2. Confirm the installation mode (Single-user or Administrator), click Next, and then Install.
  3. The net installer will automatically detect your operating system language. You can change the language of the graphical user interface (GUI) by clicking on GUI language in the menu of the window that opens, as we can see in Figure 1.3:

Figure 1.3 – TeX Live Installer

Figure 1.3 – TeX Live Installer

  1. You can change the installation root: the location of all TeX Live installed files on your hard drive. That default installation usually works well, though you can click on Advanced to adjust specific options, as you can see here in Figure 1.4:

Figure 1.4 – TeX Live Installer advanced options

Figure 1.4 – TeX Live Installer advanced options

  1. You can change the Scheme setting (options include full, medium, and small) and customize the number of software collections, such as installed formats, fonts, styles, graphics packages, editor, language support, and more. As the recommended options are already the most significant parts of the installation, unchecking some collections won’t save much space. The full scheme is recommended so that you won’t miss anything later.
  2. Click on Install to proceed. Now, there’s no input needed for a long time, and you can sit back while thousands of TeX packages are downloaded and installed:

Figure 1.5 – Installation progress

Figure 1.5 – Installation progress

  1. Finally, you will get a welcome message. Click Close to finish the installation.

You have completed the setup of TeX Live. Your Start menu now contains a TeX Live 2025 folder containing six programs:

Figure 1.6 – TeX Live in the Windows Start menu

Figure 1.6 – TeX Live in the Windows Start menu

Let’s briefly look at each of the programs:

  • DVIOUT DVI viewer: This is a viewer program for the classic LaTeX output format DVI (today, most people choose PDF output, so you probably won’t need this).
  • TeX Live command-line: Use this if you would like to run other TeX Live programs at the command line.
  • TeX Live documentation: This opens the TeX Live manual in your web browser.
  • TeX Live Manager: This is your tool for package management (for example, for installing and updating LaTeX packages).
  • TeXworks editor: This is an editor that was developed to create LaTeX documents comfortably. We will make extensive use of TeXworks in this book.
  • Uninstall TeX Live: Use this before you install a new TeX Live version from scratch, or if you would like to install MiKTeX instead.

Now, we will go through the offline installation of TeX Live.

Every year, the TeX user group creates a TeX software collection DVD. You can request a copy here: https://tug.org/dvd.

You can also download it yourself. We will now download an ISO image of TeX Live with a size of about 6 GB. After extraction, we can burn it on a DVD and run the installation from there. To do this, follow these steps:

  1. Visit the download area at https://tug.org/texlive/acquire-iso.html.
  2. Download the texlive.iso file. If possible, use a download manager, especially if your internet connection is not stable.
  3. Either burn the ISO file on a DVD using burning software that supports the ISO format, or extract it to your hard disk drive. For example, the free program 7-Zip can extract ISO files.
  4. Among the extracted files or on your DVD, you will find the install-tl and install-tl-advanced installer batch files. Choose one, start it, and go through the installation similar to the online installation. More information is available at https://tug.org/texlive/quickinstall.html.

Installing TeX offline was just like the first installation. Still, you’ve got all the data this time, and you won’t need an internet connection during the installation or for another installation. This download approach is especially recommended if it’s foreseeable that you will install TeX Live on another computer later, or if you would like to give it to friends or colleagues.

As TeX also runs on other operating systems, let’s take a brief look at the other systems.

Installing TeX Live on other operating systems

Section titled “Installing TeX Live on other operating systems”

TeX also runs on a lot of systems other than Windows. Here’s a quick glance:

  • macOS:You can download a customized version of TeX Live at https://tug.org/mactex. Download the huge MacTeX.pkg file and double-click on it to install. It will print very straightforward instructions. MacTeX includes TeXShop, an editor very similar to TeXworks. The latter can be separately installed.
  • Ubuntu Linux: Use the Software Center to install TeX Live packages, or run sudo apt-get install texlive-full to get everything.
  • Debian Linux: Use the Synaptic tool to install TeX Live packages, or run apt-get install texlive-full (via sudo or as root user) to get everything.
  • Red Hat, CentOS, and Fedora Linux: Use the Red Hat package manager, or yum via Command Prompt, such as yum install texlive-scheme-full, or DNF: sudo dnf install texlive-scheme-full.
  • Others: Visit https://tug.org/texlive/quickinstall.html and follow the instructions.

If you want the latest version of TeX Live, consider downloading and installing the most current version from the official website instead of the version from the operating system’s repositories, as mentioned in the last point.

In the next section, we’ll look at how to update your installation and add new packages.

Updating TeX Live and installing new packages

Section titled “Updating TeX Live and installing new packages”

The LaTeX developers regularly release updates, both for new features and for bug fixes. It’s a good idea to update your system from time to time.

To do this, open the Start menu, go to the TeX Live folder, and launch the TeX Live Manager, which is also referred to as tlmgr for short, and also called TeX Live Shell. This application is used for both updating and installing additional packages.

Take a look at the following screenshot so we can talk about how to use the TeX Live Manager:

Figure 1.7 – The TeX Live Manager

Figure 1.7 – The TeX Live Manager

The first section in the TeX Live Manager shows the Repository section. A repository is a server that hosts a TeX Live software archive. If the default repository is unavailable or is too slow in your area, you can click on Options to choose another repository from a list.

Click on File | Load repository to synchronize LaTeX with the latest software status.

The PACKAGE LIST section lets you search packages by name or filter the view to see all available packages or only those installed, not installed, or updatable. In the middle of Figure 1.7, you can see an option to adjust the granularity to see all the packages, all collections and schemes, or only schemes.

The lower section shows the matching packages when a filter is selected, with a short description and the version number. You can choose packages here. Then, you can click on Install marked if you would like to install the selected packages or click on Remove marked to uninstall them.

An easy way is just to click on Update all. If the Update tlmgr button is enabled and clickable, then there’s a TeX Live Manager update available, and you can click the Update tlmgr button to update the tool itself.

The update procedure applies only to the current TeX Live version. A new TeX Live version is released every year, usually in March. It would be best to uninstall the current TeX Live version for a yearly upgrade and then install the new version from scratch. You can check the planned release schedule and estimated dates at https://tug.org/texlive.

Now that we’ve set everything up, it’s time to start writing with LaTeX.

We’ve installed TeX and an editor; now, let’s jump in at the deep end by writing our first LaTeX document using the TeXworks editor.

Mac users, please use the Cmd key when you see the Ctrl key here.

Our first goal is to create a simple document that prints just one sentence. We want to use it to understand the basic structure of a LaTeX document. Follow these steps:

  1. Launch the TeXworks editor by clicking on the desktop icon or by opening it in the Start menu. In Figure 1.8, you can see the editor with the menu, buttons, and toolbar.
  2. Click the New button (or press Ctrl + N) or choose File | New in the menu.
  3. Enter the following lines:
    \documentclass{article}
    \begin{document}
    This is our first document.
    \end{document}
  4. Click on the Save button (or press Ctrl + S) to save the document. Then, choose a location to store your LaTeX documents, ideally in their own folder.
  5. Make sure that in the drop-down field in the TeXworks toolbar, pdfLaTeX is selected (this should be the default anyway):

Figure 1.8 – The TeXworks editor

Figure 1.8 – The TeXworks editor

  1. Click the Typeset button or press Ctrl + T.
  2. The output window will automatically open. Have a look at it:

Figure 1.9 – The PDF output in the TeXworks editor

Figure 1.9 – The PDF output in the TeXworks editor

That covers the first few moments in the life of a LaTeX document. You’ll edit, typeset, check the output, and edit again. Just remember to save your work frequently. Luckily, typesetting a document automatically saves it.

Unlike traditional word processors, LaTeX doesn’t show formatting changes immediately, but you’re always just one click away from seeing the final result.

If you’re comfortable with complex software and prefer a feature-rich, powerful editor, take a look at the following LaTeX editors. Visit their websites to find screenshots and to read about their features:

All of these editors are free and open source. You can find more options at https://latexguide.org/editors.

Online editors work on any device with an internet connection. Let’s closely examine an online editor and compiler in the next section.

It is recommended that you install LaTeX on your computer, but it can take up about 8 GB on your hard drive and about 2 hours or more to do so.

How about simply using LaTeX in your internet browser? Here comes Overleaf. It’s a purely online LaTeX service that mathematicians enthusiastic about TeX started in 2011. You can access it through this link: https://www.overleaf.com.

In this section about Overleaf, we will do the following:

  • Check the Overleaf requirements
  • Look at the benefits of Overleaf
  • Evaluate possible caveats
  • Use the Overleaf editor
  • Try out Writefull

Let’s go online now.

To use Overleaf, you only need an internet browser, such as Firefox, Chrome, Opera, Edge, or Safari. You don’t need any local software such as a LaTeX compiler, editor, or PDF viewer.

It is free for basic usage, and that includes a lot. It provides a complete TeX Live with unlimited projects, a feature-rich editor, real-time collaboration with another user, and hundreds of ready-to-use templates. However, bigger documents may time out due to limited computing resources. In particular, a free account is very limited in compiling time.

An advanced personal or professional subscription costs money and provides advanced features, such as the following:

  • More collaborators per project
  • Support for larger documents requiring more compiling time
  • Document history (navigate back and forth between revisions)
  • Advanced bibliography management (Mendeley, Zotero, and Papers)
  • Built-in symbol palette
  • GitHub and Dropbox integration
  • Priority access to personal support

The advanced features go beyond regular LaTeX functionality. You might be eligible for full access through your institution; many universities and research organizations partner with Overleaf to offer premium plans to their members.

Let’s look at what you can gain when using Overleaf, compared to using a traditional LaTeX system locally on your computer. With Overleaf, you can do the following:

  • Work from any device, such as a PC, laptop, tablet, or smartphone
  • Use it on a locked-down work computer where you can’t install software yourself
  • Access your projects from anywhere (be it a private, work, or library computer) once you log in with your password
  • If you invite somebody to work with you, both of you can edit and instantly see each other’s changes, making collaboration easy
  • Have an automatic real-time preview of the PDF result while you type
  • Track changes with a built-in version history
  • Annotate LaTeX source code with comments and replies to comments
  • Work with the latest LaTeX system without installing an update

However, there are some trade-offs with Overleaf. Let’s take a look at those next.

It’s worth noting a few limitations:

  • You’ll need a constant internet connection.
  • As your documents are stored online, you have to trust Overleaf with data security and privacy. See https://www.overleaf.com/legal.
  • You’re tied to Overleaf’s platform; until it updates its LaTeX version, it could lag slightly behind the official TeX Live.
  • The performance depends on their servers and your network connection, not just on your own computer’s performance.
  • Overleaf could be unavailable due to maintenance or a technical incident affecting its services. In this case, visit https://status.overleaf.com for current information.

Now, let’s take a closer look at how Overleaf works.

We want to create our own space on Overleaf in two steps. Then, we will start our first LaTeX project:

  1. Register for the service. Either click on Register on the Overleaf home page or go to https://www.overleaf.com/register. Enter your email address and choose a password.
  2. Log in to Overleaf. Either click on Login on the front page or go to https://www.overleaf.com/login:

Figure 1.10 – Creating a new project

Figure 1.10 – Creating a new project

Why do we need to register?

To be reachable via an email address is basically to comply with data protection law. If you forget your password, you can ask Overleaf to send a password reset link to your email address. In general, by using your email address, you can prove your identity and ownership of your data if you ever need to.

  1. Click the New Project button. A drop-down list will appear, where you can choose to have a blank project or one based on a template, such as a book, presentation, CV, or thesis template. For now, we just choose Blank Project.
  2. Overleaf asks you for a name; choose one. That’s it! This is what you have now:

Figure 1.11 – A new project

Figure 1.11 – A new project

It’s not entirely blank as it contains a small code frame, so you get a quick start, and you can begin filling in your text.

The preview on the right side will be refreshed whenever you click the Recompile button or press Ctrl + Enter. You can enable automatic typesetting if you open the Recompile menu and choose Auto Compile in the drop-down menu, which is switched on in Figure 1.12.

The document refreshes frequently and automatically while you are typing:

Figure 1.12 – Compiling settings

Figure 1.12 – Compiling settings

Since Overleaf is so different from classic LaTeX editors, let’s have a closer look at it.

To quickly see a more complex document in action and to understand what you can expect from Overleaf, let’s open the Masters/Doctoral Thesis template from https://www.latextemplates.com/template/masters-doctoral-thesis. Once you are there, simply click the Open in Overleaf button. Then, Overleaf creates a project for you.

Figure 1.13 – Projects in the Overleaf editor

Figure 1.13 – Projects in the Overleaf editor

In Figure 1.13, on the very left, you can see your folder structure and files. Next to it, there will be the LaTeX source code. On the very right, you will see the output in a PDF preview, as in Figure 1.11.

In its most basic form, you write your code on the left, click the Recompile button, and see the result on the right, as we previously did in our example.

While you are working, Overleaf keeps track of the history. You can label versions to check them later. Clicking on the History button at the top shows you the versions:

Figure 1.14 – Document history in Overleaf

Figure 1.14 – Document history in Overleaf

Click a version on the right to switch to it.

Without looking at too many screenshots, this is what you can do if you click on the Menu button in the top-left corner:

  • Let Overleaf count the words in your document, excluding code syntax such as commands and environments
  • Synchronize with Dropbox or GitHub
  • Choose the compiler (pdfLaTeX, classic LaTeX, XeLaTeX, or LuaLaTeX, for advanced users)
  • Set a TeX Live version if you want to compile an old file with an old TeX Live version or switch to a newer one
  • Select a main .tex document if your project consists of several documents
  • Choose a visual style editor theme for the code markup and background, changing colors between light, pastel, dark, and others
  • Choose the editor font (such as Consolas or Lucida) and the font size
  • (De)activate spell-checking, auto-completion, auto-closing of brackets, and code-checking

The integrated spell-checker of Overleaf marks issues with a wavy line. Just right-click on it to get replacement suggestions, as shown in the following screenshot:

Figure 1.15 – Spell-checking in Overleaf

Figure 1.15 – Spell-checking in Overleaf

Apropos spell-checking, there’s more.

Grammar and language feedback with Writefull

Section titled “Grammar and language feedback with Writefull”

The Writefull Overleaf extension checks grammar and provides phrasing suggestions for your text. It’s designed for scientific writing, and it’s trained on millions of research journal articles. It can correct typos, grammar mistakes, vocabulary issues, punctuation, and more.

Let’s see it in action on our previous thesis template example:

Figure 1.16 – Grammar checking with Writefull

Figure 1.16 – Grammar checking with Writefull

While the spell-checker doesn’t complain, the trained AI of the Writefull extension shows 129 potential issues and gives suggestions to the words underlined in red:

  • though may be replaced by although
  • doesn't may be replaced by does not, in formal writing

After headers (in the previous figure), there should be an Oxford comma, that is, a comma before the word and at the end of a list.

You can take it easy as I do in this book, not so formal, but your thesis or research articles and any scientific writing may benefit from these suggestions.

The Writefull extension was initially available for the Chrome browser. However, it was announced that other web browsers, such as Firefox, will be supported in the future. The basic version is free, and there is a premium version that you can read about on their website.

At the time of finishing this edition of the book, Writefull has been integrated into Overleaf itself. The full information is available at https://docs.overleaf.com/integrations-and-add-ons/ai-features/writefull.

You probably noticed the text highlighted in yellow and the speech bubble symbols in the previous screenshot. When you click the Review button, the review bar expands, and the comments will be shown:

Figure 1.17 – Reviewing and commenting with Overleaf

Figure 1.17 – Reviewing and commenting with Overleaf

You can mark text snippets, click on Add comment, write what you think, and also reply to other people’s comments. That helps both in your own writing and in collaborating with colleagues or an editor.

This and the previously mentioned features should provide a good insight into current cloud LaTeX services.

The entire set of the LaTeX Beginner’s Guide code examples can be opened in Overleaf simultaneously, with a single click. Visit https://latexguide.org/code to get the entire package and have your own project with all book examples included, ready to edit and compile.

The next section will provide you with a way to access additional supporting documentation and references while working with this book.

LaTeX offers hundreds of classes and packages, far more than any book could cover in full. Fortunately, most packages provide well-written documentation that you can easily access and read. As you work through this book, you’ll find many useful packages. If you explore their documentation alongside the examples in the chapters, you’ll be well on your way to becoming a skilled LaTeX user.

In the following chapters, you will learn about many LaTeX packages that provide additional capabilities. So, let’s see how to access package documentation.

Once you’ve installed LaTeX, you can open a package manual directly on your computer after you have installed LaTeX:

  • On a Windows PC: Open the Start menu, select the TeX Live folder, and click on TeX Live command-line. Alternatively, launch the Windows cmd (Command prompt) app.
  • On a Mac or any Linux computer: Open the Terminal app.

Next, type texdoc packagename and press Enter. For example, typing texdoc geometry opens the PDF manual for the geometry package.

If you did not install LaTeX, you could obtain the documentation online. In your browser, open https://texdoc.org/pkg/packagename. That is just a template URL, so if you want the geometry package, you should type https://texdoc.org/pkg/geometry. That’s an easy method for Overleaf users who don’t have a locally installed documentation.

Throughout this book, you’ll often see references to package manuals or documentation. Always remember that you can review documentation using the texdoc command or by visiting https://texdoc.org, as described earlier.

Finally, there’s a lot of LaTeX-related documentation available online, including tutorials, guides, and reference materials. We will discuss these further in Chapter 15, Using Online Resources.

In this chapter, we explored the key benefits of LaTeX; soon, it will be our turn to use its virtues to achieve high-quality results. Furthermore, we covered installing, editing, and using LaTeX, both locally on your computer and online in the browser.

Now that you’ve got a functional and tested LaTeX setup in place, you’re ready to write your own LaTeX documents. In the next chapter, we will talk about formatting text in detail.