我们如何在 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}