LibreOffice Writer Versus LaTeX
Different Means to a Similar End
ByLibreOffice Writer and LaTeX both have their strengths and weaknesses, but at the end of the day they both produce high quality results.
Whenever I write about LibreOffice Writer -- or, previously, about OpenOffice.org -- I get comments praising LaTeX as a superior alternative. For years, I dismissed these comments as irrelevant. Too be honest, I never felt competent to assess them, having never worked with LaTeX. Recently, though, I began to compare the two applications, looking at the precision, their use of styles, their ability to write formulas, their extensibility, and the ease with which they are learned. Advocates of both applications may be surprised by my conclusions.
LaTeX (Figure 1) is a text-based markup language, which does formatting through tags and then exports to readable output. Loosely speaking, it is comparable to raw HTML, but with far more options that allow for professional text layout. Released in the early 1980s, for years LaTeX was the premier text-formatting application for Unix and its derivatives. It continues to be widely used in academia and the sciences, especially for mathematical formulas. Like many other pieces of free software, LaTeX has obtained a cult-like status, and professors who supervise graduate work tell me that students frequently become more immersed in the intricacies of LaTeX than in their research. Although IDEs like LyX and Kile exist, LaTeX continues to be used primarily in text editors.
By contrast, LibreOffice Writer (Figure 2) is a desktop office suite. Writer is generally described as a word processor, but, more accurately, it is desktop publishing application, with tools that far outclass MS Word, to which it is usually compared. Years ago, I heard that Writer’s sophistication is due to the fact that when StarWriter, LibreOffice’s first ancestor, was written, the developers were told that they would have to use what they created for documentation, so they made sure they had all the tools they needed. Regardless of whether that story is true, Writer is sufficiently advanced that a number of technical publishers use it exclusively, because an author’s files, once edited, can be used for printing hard copies. Despite the perception of other word processors, in many ways Writer is actually an application that can be compared meaningfully to LaTeX. Much the same output can be obtained from both applications, although sometimes in different ways.
Precision
Margins, the separation of footers and headers from the text's main body, line spacing, font size, and countless other formatting choices come down to measurement. In absolute terms, LaTeX has an edge: It compiles measurements within any number of decimal places. By contrast, settings in recent versions of LibreOffice Writer stop at one or two decimal places, depending on the field. You can add more, but Writer rounds them off when you close the setting window. That would seem a clear victory -- at least, until you realize that Writer accepts settings up to .1 points, or 1/720 of an inch, far more than the average use is likely to detect. For all practical purposes, both LaTeX and Writer have all the precision that a typographer could want. After all, in predigital days, publishers working on physical presses made do with far less precision.
Styles
In desktop programs, styles are a group of formatting choices, such as font, font size, margins, and line spacing. Instead of applying each choice as needed, users can create a style and apply the choices as a group. If a choice is changed in the style, every place where the style is used is automatically updated. Styles are the main way in which word processors differ from a typewriter. In fact, a popular introduction to digital design is Robin Williams’ The PC Is Not a Typewriter. For document design, styles are an essential feature for anyone interested in convenience and efficiency.
However, most word processors have only paragraph and character styles. One of the things that makes Writer different from word processors is that it also has styles for pages, text frames, and lists, and it is slowly developing table styles as well. Moreover, in Writer, paragraph styles are essential for navigation as well as creating cross references and tables of content.
Unless I am missing something, styles are one of the few formatting concepts that LaTeX generally lacks, with the exception of page styles. But LaTeX does have document types from which many layout choices are defined or edited, as well as tags for specific parts of a document, such as /address and /salutation in a letter. Ordinary paragraphs can also be designated with /bgroup at the start and /egroup at the end, and formatted together. Once formatted, existing files can be used as a template for other documents, just as they can in Writer, offering much of the same convenience as styles do.
Formulas
Mathematical formulas can be created in a subsystem of LibreOffice and imported into Writer. LibreOffice formulas have the advantage of being created visually. However, the formula subsystem works best with a limited set of layouts. These layouts can be modified, but moving a symbol is awkward and imprecise. More importantly, the visual display is deceptive, since it does not display the result accurately, and it does not support drag and drop. Nor does the formula subsystem resemble any other part of LibreOffice.
All these limitations make a poor showing compared to writing formulas in LaTeX. In LaTeX, writing formulas is a matter of arranging symbols in the correct order. Working with formulas in LaTeX can be hard, but at least input and editing is no harder than creating any other kind of document, and integration with text is straightforward. As a result, building a formula in LaTeX is less fiddly than in LibreOffice.
Extensions
Like the Vim text editor, LaTeX is an early example of how allowing extensions builds both high-end features and a loyal community. LaTeX today is generally installed with dozens -- if not hundreds -- of add-ons, or packages as they are called. In the unlikely event that you need a functionality that is not already installed, you only need to track down the package you need from CTAN and place it in a sub-directory of texmf/tex/latex named for the package.
LibreOffice Writer extensions are equally diverse. They comprise the majority of the extensions found on the LibreOffice website. In the past, Writer extensions have included advanced typographical features that have seen been integrated into the main application thanks to the use of the HarfBuzz text shaper. If you download and unarchive an extension, you can install it from Tool | Extension Manager and then restart LibreOffice
Ease of Learning
LaTeX is complicated because of its large number of options, not because it is difficult to use. Using Kile can be helpful in learning LaTeX because it includes a display of dozens of tags, but, even then, you probably will need to look them up. For many users, it may not be immediately obvious, for example, that /flushleft aligns a line with the left margin, or that /closing is the tag where you might add your signature in a letter. You will probably take a while to recognize a sufficient number of tags to become proficient in LaTeX.
As a desktop application, LibreOffice Writer is far easier to learn your way around. Although more than a word processor, Writer closely resembles MS Word resulting in basic competence not taking long. If any piece of functionality's name is new, it is usually similar enough that you can readily transfer your existing knowledge. This transference is likely the main reason why LibreOffice is used more often than LaTeX these days.
The Verdict
You will notice that I have not said much about individual formatting options such font weight or kerning. The reason is simple: The differences between LaTeX’s and LibreOffice’s formatting capacities are too few to be worth mentioning. Yes, in one area, LaTeX or LibreOffice may have an advantage, but in another, it may be the one that is lacking.
Contrary to the advocates on both sides, neither LaTeX or LibreOffice has a significant advantage over the other. While LaTeX users tend to dismiss LibreOffice as just another word processor, LibreOffice users are prone to exaggerate the complexity of LaTeX. In the hands of someone who has taken the time to learn both, there is almost nothing to choose between regarding their output. Each is capable of producing high quality results when used by an expert.
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
News
-
Red Hat Adds New Deployment Option for Enterprise Linux Platforms
Red Hat has re-imagined enterprise Linux for an AI future with Image Mode.
-
OSJH and LPI Release 2024 Open Source Pros Job Survey Results
See what open source professionals look for in a new role.
-
Proton 9.0-1 Released to Improve Gaming with Steam
The latest release of Proton 9 adds several improvements and fixes an issue that has been problematic for Linux users.
-
So Long Neofetch and Thanks for the Info
Today is a day that every Linux user who enjoys bragging about their system(s) will mourn, as Neofetch has come to an end.
-
Ubuntu 24.04 Comes with a “Flaw"
If you're thinking you might want to upgrade from your current Ubuntu release to the latest, there's something you might want to consider before doing so.
-
Canonical Releases Ubuntu 24.04
After a brief pause because of the XZ vulnerability, Ubuntu 24.04 is now available for install.
-
Linux Servers Targeted by Akira Ransomware
A group of bad actors who have already extorted $42 million have their sights set on the Linux platform.
-
TUXEDO Computers Unveils Linux Laptop Featuring AMD Ryzen CPU
This latest release is the first laptop to include the new CPU from Ryzen and Linux preinstalled.
-
XZ Gets the All-Clear
The back door xz vulnerability has been officially reverted for Fedora 40 and versions 38 and 39 were never affected.
-
Canonical Collaborates with Qualcomm on New Venture
This new joint effort is geared toward bringing Ubuntu and Ubuntu Core to Qualcomm-powered devices.