Graphics, Figures & TablesVertical Text

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
mikey
Posts: 7
Joined: Tue Feb 16, 2010 9:02 pm

Vertical Text

Post by mikey »

Hi there,

Could anyone tell me if it's possible to create vertical text in LaTeX like:
Attachments
Vertical Text
Vertical Text
NsetsofMsets.png (4.23 KiB) Viewed 2005 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

php1ic
Posts: 192
Joined: Wed Jan 28, 2009 8:17 pm

Vertical Text

Post by php1ic »

Use the sideways environment provided by the rotating package

Code: Select all

\documentclass[a4paper]{article}

\usepackage{rotating}

\begin{document}

\begin{equation}
A=\{\begin{sideways}\{1,2,3,4,\dots\}\end{sideways}\}
\end{equation}

\end{document}
The dvi will not show the text rotated, you must convert to ps/pdf
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Vertical Text

Post by localghost »

Code: Select all

\documentclass[11pt,a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{rotating}

\begin{document}
  \[
    A=\{
        \rotatebox{90}{\{1,2,3,4,5,\dots\}},
        \rotatebox{90}{\{2,4,6,8,10,\dots\}},
        \ldots
      \}
  \]
\end{document}

Best regards
Thorsten
Post Reply