How to rotate text in LaTeX?
In this tutorial, you will learn how to rotate a letter or text in LaTeX.
Rotate letter or text with \rotatebox
You can use the \rotatebox[origin=<position>]{<angle>}{<text>} command provided by the graphicx package. In the [origin=<option>] you can use the t, c, and b options to set the position of the <text>.
\documentclass{article}
\usepackage{graphicx}
\begin{document}
A \rotatebox{90}{TEXT} B\\[4pt]
A \rotatebox[origin=t]{270}{B} C
A \rotatebox[origin=c]{270}{B} C
A \rotatebox[origin=b]{270}{B} C
\end{document}Output:

Rotate letters or text with rotating package
You can also use the rotating package to rotate the text. This package provides a turn environment, with this environment you can rotate your text in LaTeX.
\documentclass{article}
\usepackage{rotating}
\begin{document}
\begin{turn}{90}
TEXT
\end{turn}
\begin{turn}{180}
This is a sentence.
\end{turn}
\end{document}
Output:

Leave a Reply