GeneralAlign vertical text

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
Dr.Wackelzahn
Posts: 7
Joined: Sun Oct 26, 2008 9:53 am

Align vertical text

Post by Dr.Wackelzahn »

Hi there,
although I'm solving more and more problems I still face some of them. One out of it is the follwoing:

Within a tizkpicture I'd like to write a line vertically using \node like this:

Code: Select all

\begin{tikzpicture}
    \draw (-0.1cm,0cm) -- (-0.1cm,10cm);          % Y-Achse (Ordinate)
     \node[rotate=90, left] at (x,y) {Textl}; 
\end{tikzpicture}
But I'd like to have the rotated text centered along the line.

But how?

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Align vertical text

Post by localghost »

To me it seems that you want to create something like a diagram, perhaps with plot inside. In this case you may take a look at pgfplots.


Best regards
Thorsten¹
Post Reply