![TikZ 中的简单垂直文本](https://linux22.com/image/288398/TikZ%20%E4%B8%AD%E7%9A%84%E7%AE%80%E5%8D%95%E5%9E%82%E7%9B%B4%E6%96%87%E6%9C%AC.png)
我们如何在 TikZ 中垂直书写这个标题 - 类似于垂直文本(不在表格中)?:
T
T I
H T
I I M L
S S Y E
答案1
所有功劳归于大卫·卡莱尔和 Torbjørn T.
\documentclass{article}
\usepackage{tikz}
\makeatletter
\protected\def\vvv#1{\leavevmode\bgroup\vbox\bgroup\xvvv#1\relax}
\def\xvvv{\afterassignment\xxvvv\let\tmp= }
\def\xxvvv{%
\ifx\tmp\@sptoken\egroup\ \vbox\bgroup\let\next\xvvv
\else\ifx\tmp\relax\egroup\egroup\let\next\relax
\else
%\hbox{\tmp}%original
\hbox to 1.1em{\hfill\tmp\hfill}% centred
\let\next\xvvv\fi\fi
\next}
\makeatother
\begin{document}
\begin{tikzpicture}
\node at (0,0) {\vvv{THIS IS MY TITLE}};
\end{tikzpicture}
\end{document}