LyX is a document processor that allows us to create professional-looking documents without worrying about formatting details. LyX uses LaTeX, a powerful typesetting system, to produce high-quality output for print or digital publication. With LyX, we can focus on the content and structure of our documents while LyX takes care of the layout and appearance.
LyX is compatible with many operating systems and supports multiple languages.
In this tutorial, we’ll cover the installation of LyX on Linux, macOS, and Windows.
2. Linux Installation
Installing LyX on Linux is quite simple, as package management systems can install both a complete LaTeX environment and LyX with a single command. However, knowing which packages to install is not so obvious.
2.1. DEB-Based Distributions
LyX has a wide range of recommended and suggested packages, as shown by synaptic on Linux Mint 21:
$ sudo apt install lyx fonts-lyx texlive-full
Let’s look at them in detail:
- font-lyx → these fonts are required for displaying mathematical symbols in LyX
- texlive-full → it provides a complete TeX system and includes many of the suggested and recommended LyX packages
Thanks to automatic package dependencies, we have everything we need to get started.
2.2. RPM-Based Distributions
Unlike the LyX DEB package of Linux Mint 21, the LyX RPM package of Fedora 38 uses more dependencies to provide a more complete environment, as shown by dnfdragora:
sudo dnf install lyx texlive-scheme-full
In this case, we didn’t include font-lyx because it’s already a dependency of lyx. Also, the texlive-scheme-full is the equivalent of the texlive-full DEB package seen earlier.
3. macOS Installation
3.1. Python Installation
First, we must carefully read the information provided by the installer and, depending on our version of macOS, strictly follow its instructions. In particular, we refer to what we have underlined in red:
3.2. MacTeX Installation
Installing MacTeX doesn’t require any special attention. We just have to follow the installation wizard:
3.3. LyX Installation
Once we open the LyX installer, we need to drag its icon and drop it on the Applications folder icon:
Fortunately, this is a fairly simple problem to work around. Let’s click on Show in Finder, then right-click on the LyX icon and select Open while holding down the Ctrl key. As a result, a new screen will open, which, unlike the previous one, still allows us to launch LyX:
We only need to do this selective Gatekeeper deactivation once. More information on this issue can be found in the official LyX documentation.
4. Windows Installation
In the following, we’ll use Windows 11. As with other operating systems, we need to install a complete TeX environment first, and then LyX.
4.1. TeX Live Installation
From the official Installing TeX Live over the Internet page, we have to click on install-tl-windows.exe. Unfortunately, Microsoft Defender SmartScreen will block us. It’s not a big deal, as it’s enough to click Show more and then Keep anyway:
Before starting the actual installation, we can check the advanced options, which should look like as below. The important thing is to leave everything selected (full scheme). It might also be helpful to make a note of the TeX Live installation folder, as the LyX installer will ask us for it:
4.2. LyX Installation
Let’s download the appropriate Windows installer for our case, typically the 64-bit version, from the official download page. Again, Windows will give us a warning that we can safely ignore:
In this article, we’ve looked at how to install LyX on Linux, macOS, and Windows. In general, a complete LaTeX environment needs to be installed first, and then LyX.
Although the installation is conceptually simple, this tutorial has highlighted some details that we need to be aware of.