May 21, 2023

Advantages of a wall of text

 

Most tutorials about writing are explaining to the reader, that a wall of text is an antipattern which should be avoided for any costs. in contrast, a well structured and image enhanced text is prefered because it makes reading much easier for the audience.
In this blog post the opposite perspective should be explained. The starting point is the assumption that avoiding a wall of text is a trivial case. Creating a well structured text which is easy to read can be realized with a power point presentation. According to the self definition a powerpoint presentation contains only of keyterms plus visual gimmicks like tables and images but doesn't provide prose text. in addition each slide has a title and can be grasp in a short amount of time.
Or let me explain it the other way around. All the existing powerpoint presentations including LaTeX generated beamer presentation are avoiding a wall of text. There is no shortage in easy to read documents but there is a difference between a presentation and a prose text The working thesis is, that so called longer text aka a paper has to be a wall of text, otherwise it is not a paper but something else. In addition, a novel which is a fictional text is also a wall of text because in the other way it is a comic book or a movie which is a different category.
It is simply unfair to argue, that a 500 pages long fictional book is a wall of a text, because such a layout pattern is the self-understanding of a book. It is not possible to write a text which has many thousands words but do not format it as a wall of text.
Rejecting a wall of text is equal to rejecting the idea of a book in general. With this judgment in mind all the newspapers, academic papers and books have to be dismissed because they are containing of endless amount of text and only non books are allowed. This would include power point presentations, comic strips, dialogues between people and TV shows. In these case there is no longer text available.
The term typography in the core sense means usually to format a longer amount of text.

May 19, 2023

Wall of text, or: the beauty of LaTeX

In the existing debate around MS Word vs LaTeX one important aspect is missing. Everybody knows that LaTeX document are looking all the same, but the open question is why should somebody prefer such a style. To answer this question we have to provide the requirements which is fulfilled by LaTeX with ease. The challenge is to create a text intensive document which is unreadable and basically a wall of text. Such a requirement sounds a bit paradox because it is seldom formulated in this explicit manner, but let us assume that this is the task for a typographer.
The typographer isn't asked to create a power point presentation which contains of pictures on every page plus the important keypoints, but the task is to create homogeneous endless document without any iimages and without any subsections. Now it is possible to discuss how to do so in detail.
The first Lorem ipsum document was created with Libreoffice writer, the document can be read easily: there is a picture, different subsections, there is enough space between the paragraphs and there are also keypoints which makes it easy to grasp the content. In one word, the libreoffice example fulfills the criteria of an accessible document.
The example in the right place was created of course with the LaTeX software. All the reader style elements like the picture and the bullet points were removed and only a long sequence of paragraph is visible. Such kind of text-only layout can be realized great with LaTeX. The document fulfills the requirements easily and its shape is for sure unreadable. In theory, text walls can be created with Libreoffice too. But the LaTeX internal algorithms are designed for this purpose much better. The spaces between the words are more dense which makes the page look as a single block.
The document on the right side looks very scientific. The only way to improve the style is by reducing the font size from 10pt down to 9pt and add some esoteric mathematical equations. In other words, creating a wall of text is the meaning of LaTeX.


May 18, 2023

The meaning of LaTeX

The LaTeX community is using a certain sort of typographic style for creating academic journals and books. This style is codified in the TeX engine itself and it is explained in online forums how to use the software. The open question until now was the reason why this style is applied.
The assumption is, that even the LaTeX community itself doesn't know why they are formatting pdf documents in a certain way. The only thing what is for sure is, that a LaTeX generated paper looks very different from a Word generated document. There is a single working thesis available why LaTeX documents are looking all the same. In a single sentence it is about creating long winded text which creates a typographic dessert.
Let us describe the situation from a birds eye perspective and ignore the LaTeX ecosystem including the underlying algorithms. Suppose the idea is to format the text in the most boring fashion. The text should look like monoculture in agriculture. There is no structure available but all the textlines, characters and paragraphs are looking the same. That means, the size is the same, the textline width is the same and very important there are no images and subsections. It is a simply an endless amount of characters without any orientation. The reader won't see a starting point and he hardly find any lighthouse. Of course, such a text is unreadable, it has much in common how newspapers were looking until the 1970s. During that period it was technically not possible to use pictures and even tables were not available. Instead, the article in a newspaper was a long homogeneous text block.
With this requirement in mind the text logical step is to investigate different options how to create such a document with a computer. One option is the MS Word program the much better alternative is the LaTeX engine. Both programs are able to create an image free, justified text without any subsections. The reader will loose the orientation for sure but there is only an endless amount of text in a tiny font. There is no visible structure because a single paragraph occupies multiple pages. In other words, such a text is the opposite of an easy to read document.
The surprising situation is, that such an antipattern in typography is exactly the same what LaTeX is trying to archive. The goal is, that the text is hard to read. The internal algorithms in TeX which are equal to typography are trying to emphasize a situation in which the reader is lost in the text. The goal is not to provide waypoints and a structure but the opposite is the case. That means, everything looks the same. The meaning of a text isn't provided by its visual appetence but only by the words itself. Without reading the text, a fictional book and a non fictional academic text are looking the same. if the text was written mirrored it is impossible to guess what is written in the book.
LaTeX is working with some sophisticated algorithm for paragraph justification, and adjusting the white spaces. These algorithms have a simple purpose. They are reducing any visible structure. The goal is, that every line looks the same, and that the resulting text is hard to read. The eye has no visible anchor points. There are no subsections, there are no images and at the end of a line there is no white space. In contrast, the text will look like an endless ocean of characters which are forming words never seen before.
There is a possible explanation available why this unusual formatting structure makes sense. The reason is, that a book is different from a comic book and it is different from a Television show. A book is by definition equal to text. Typography is not about increasing the amount of pictures in a book but it is about making the text look like a dessert. A book has to confuse the reader by presenting him endless amount of pages which are looking all the same.
 
There is no need to utilize LaTeX for the purpose to create long winded documents. MS Word can fulfill the same purpose with some modifications. The only thing what the author has to do is to reduze the font size, format the text fully justified, removes all the images and removes all the white space and subsections from the text. The result will a bit different from the very homogeneous LaTeX rendering but it comes close to the expectations. Typography isn't a subjective decision but it's the art of creating hard to read text.

Why LaTeX is great

 

Many attempts were made in the past to compare the LaTeX engine with possible alternatives like MS Word. In most cases, LaTeX advocates are promising, that their typesetting software has a higher typographic quality. This kind of judgment is subjective because it hides the criteria why a certain layout is better.
The underlying reason why LaTeX is the superior rendering engine is its ability to create long winded text. Hard to read text without any images and sections is generated with the TeX engine easily. Here is an example:

The only thing what is sure is, that such a text is the opposite of accessible typography. It doesn't of any pictures and all the text lines are looking the same. LaTeX makes it easy to create such typography. To emphasize the situation, I have reduced the line spacing to 0.95 that means the vertical space between the lines is lower than normal which makes the text even harder to grasp.
To understand the content the reader has to go through the text line by line. It is much harder than watching Television or reading a comic but the task of acquiring the knowledge from the text is hard work. This makes the layout perfect for a scientific paper. The only thing what is missing in the document are some footnotes and non english vocabulary which will increase the reading difficulty further. In other words, academic publishing is mostly about creating in accessible content.

May 04, 2023

LaTeX revisted

 LaTeX is known as the standard tool for academic publication and lots of online forums and external software is available in the ecosystem. The main problem is, that the promise of LaTeX isn't matching to the reality and the following blog posts explains in detail what the problem is with LateX.

Let us start with the main claim of the TeX ecosystem. The self understanding is, that the output quality of LaTeX exceeds possible alternative programs especially MS-Word. The interesting situation is, that the measurement how to judge about MS Word vs. LaTeX is not given. To make the situation more realistic let us take a closer look at a pdf file generated with LaTeX.

The surprising situation is, that such a latex pdf file doesn't contain of PDF tags, also the file isn't working with the default Postscript fonts which are times, helvetica and so on. And last but not least, it is impossible to convert a pdflatex file back into the HTML format or read it aloud with the Jaws screenreader. In abstract words, the latex created pdf file has no accessibility at all. And there is a reason for this unusual behavior.

At first it should be mentioned, that this problem can't be fixed by simply adding a certain parameter or adding a new latex package. But it has to do with the self understanding of LateX that all the pdf documents are not accessible. The reason is, that LaTeX is some sort of advanced printer driver. Its main purpose is to generate a bitmap picture like a TIFF image which has a well defined size and a well defined position of each pixel. It is not possible to zoom, to scale or to convert the image into another format but the image is static.

This kind of behavior can be explained with the origin of LaTeX. Ine late 1970s LaTeX was a pro-processor for offset printing devices. These machines need an image as input and the objective is to print this image in a high amount of copies. This makes LateX a great tool for creating newspapers and printed journals but at the same time it is a poor choice for creating office documents or HTML pages.

Office documents and HTML files are operating with different assumptions about the reality. They are not assume a fixed size A4 paper in the target output but the assumption is, that each user prefers a different size. The same HTML file gets rendered to a smartphone display, can be printed on US Letter page or gets rendered on a desktop screen. Such kind of flexibility is not available with LateX.

The LaTeX community ignores the problem. The users are assuming that there is not need to read aloud a latex file in jaws, and they are assuming that every pdf file gets printed. This assumption was working fine in the 1980s but it produces a reality gap in the 2020s. Most internet traffic isn't generated by desktop users but smartphones are the preferred display devices. In addition it is very important that a pdf document can be converted into other formats like HTML because the user likes to render the information by its own.

The only thing what LaTeX can do really well is to provide a static image which contains of justified text. It looks like it was scanned from a book created in the 1960s and the LateX community assumes that this format is the only valid layout.

LaTeX-free text editing

 

The LaTeX typesetting system was used in the past for creating all sorts of academic texts. The advantage was that it allows to separate the content from the layout and has a high output quality of the PDF document. A lot of external software was created around the TeX ecosystem which are Lyx, Texstudio and open source fonts which can simplify the text creation workflow especially for larger documents.

Apart from LaTeX there some alternatives available. Especially the markdown format has the potential to replace existing Latex workflow with a thinner alternative. The screenshot shows how a textfile is edited. To make the section visible, the gedit program was improved with a outline plugin which allows to jump to each section in the text. Combined with the internal spell checking feature, this will emulate the standard Lyx editor very well. Even if the document format is not LaTeX, the workflow shares many similarities. It is very easy to create longer documents.

April 11, 2023

LaTeX and the Knuth plass algorithm

 In the past many attempts were made to compare LaTeX with MS Word. On the first look the comparison is a subjective one, that means person1 likes MS word while person2 not. To judge on a more rational basis, it has to be defined first what the goal in typography is. The hidden goal is to create justified text which is the opposite of left alignment.

If the goal is only to provide left-align text the output of LaTeX and MS Word is the same. At the end of each line there is a white gap which is fluctuating. Such a text can be read easily and it also easy going to program a software to format such a text. Nearly all word processors are able to do so. In contrast, if the objective is to produce fully justified text, a certain word processor will come to its limit.

The goal in typography in general and in LaTeX in detail is to realize a certain sort of formatting which is known as difficult to realize. For the same task "produce justified paragraph" it is possible to judge about different programs like MS Word, LaTeX, indesign and so on. LaTeX is known for its strength in this single use case.

In contrast, possible alternatives over LaTeX like MS Word, Libreoffice, the fpdf2 library or an ascii text editor are not able to produce high quality justified text. These programs were programmed to typeset only left aligned text. In other words, if the idea is to write a LaTeX replacement from scratch, then the software needs the feature to produce justified text with ease.

Let us go a step backward. The most advanced challenge in typography is to produced justified text. Such a goal was hard to realize for metal based typography before the advent of the computer and it is also hard for modern software programs. In contrast, left justified text are much easier to realize. All what the software has to do is to put the characters next to each other with the same white space between the words. Writing a computer program or a library which is able to do so is an easy task.

In other words, the self understanding of LaTeX is to master the hardest topic within typography. And comparing LaTeX with other programs makes only sense for this single problem. So it is not about putting glyphs to a sheet of paper in general but in the context of a certain arrangement.

The interesting situation is, that 9/10 people will agree that LaTeX capabilities in creating justified paragraph is better than the Word ability to do so. Because this task can be measured on an objective basis. Such a benchmark doesn't explain why it is important to format text in this way. It is mostly a non practical challenge with the attempt to investigate if a certain book printer or a typesetting software is mastering the complicated problems.

It should be mentioned that programs like MS Word, Webbrowsers and text editors are never claiming that they can master this problem. For example the MS Word software has the left-aligned paragraph as the default setting for every new document. In contrast, the LaTeX software is using justified text as default. This is a hint what the self understanding of the program is. In other words, LaTeX assumes, that a book or a journal should be typesetted only in justified mode and no alternative is allowed.

April 10, 2023

The Knuth plass algorithm

 Over the decades the LaTeX community has become an ideology. The idea is, that LaTeX is superior over MS Word and the user is advised only how to format documents within LaTeX. There are endless amount of definitions available what LaTeX is about. But a more technical explanation is missing.

The main difference between LaTeX and possible alternatives like Lowriter and MS Word is, that LaTeX has the builtin Knuth plass algorithm.[1][2] Implementing the algorithm from scratch is very difficult.[3] Most of the TeX related source code is devoted to this single problem.

Suppose, MS Word is adding a simple button in the settings menu which enables the algorithm for a Word document. The resulting justification and the distribution of content over multiple pages would work with the same principle used within LaTeX. Then, the visual layout would be improved and the difference between MS Word and LaTeX would be smaller. All the other features in LaTeX like separation between content and layout and a robust file format are available in MS Word too. For example, Word has a built in draft editor which allows to enter the text without any formatting and Word stores documents in an open XML format which is superior over the .tex format used in LaTeX.

The difference between MS Word and TeX can be reduced to the mentioned line breaking / page layout algorithm. The idea behind the algorithm is that the boxes on the screen are positioned more elegant. Elegant means, that the word space is equal over different lines and the pictures are located at the correct position.

The surprising situation is, that even within the LaTeX community the Knuth plass algorithm is ignored or it is discussed only seldom. The amount of papers about the subject is small. There are fewer than 100 papers published from the early 1980s about this algorithm. So it is some sort of expert knowledge not available for the masses. The interesting situation is, that apart from the algorithm, the TeX ecosystem has to offer nothing. Or at least, nothing which is more advanced than what is available in MS Word today. Word can export documents into a pdf file with a simple mouse click, it can format a document with the "Latin Modern Roman" font and its ability to insert mathematical equation is excellent. The only real weakness in Word is the calculation of white vertical and horizontal spaces which results into a low quality typesetting. Even untrained users will see on the first look if a two column text was formatted with MS Word or with LaTeX. That means, the Knuth-Plass algorithm is producing a visible difference.

The question is not how to indoctrinate happy MS Word users to switch to LaTeX but it is the other way around. The idea is to explain in simple words how the TeX internal line breaking algorithm works so that it can be integrated into mainstream applications like MS Word, fpdf2, Libreoffice and so on.

References
[1] Knuth, Donald E., and Michael F. Plass. "Breaking paragraphs into lines." Software: Practice and Experience 11.11 (1981): 1119-1184.
[2] Plass, Michael Frederick. Optimal pagination techniques for automatic typesetting systems. Stanford University, 1981.
[3] Verna, Didier E. "ETAP: Experimental Typesetting Algorithms Platform." ELS 2022: 15th European Lisp Symposium. 2022.