Hello World in Tex

Published on 30 September 2020 (Updated: 30 September 2020)

Hello World in Tex

In this article, we tackle Hello World in Tex.

How to Implement the Solution

At any rate, let’s dive right into Hello World in Tex:

%&pdftex

Hello, World!
\end

It is much simpler in Tex due to the fact the Tex is a markup language.

%&pdftex

This first line is a declaring line used to explain that the desired output of this tex file is a pdf.

Hello, World!

This is the body better known as what will be displayed. You could replace that text with anything to have it show up.

\end

Finally, this is saying the document has ended by declaring(\) an end.

How to run the Solution

There are many options for running Tex files both online and offline. This said my personal favorite option is running it online through Overleaf. They even cover the other options including themselves on their website here.