![如果文本很长,如何让节点插入新行?](https://linux22.com/image/414473/%E5%A6%82%E6%9E%9C%E6%96%87%E6%9C%AC%E5%BE%88%E9%95%BF%EF%BC%8C%E5%A6%82%E4%BD%95%E8%AE%A9%E8%8A%82%E7%82%B9%E6%8F%92%E5%85%A5%E6%96%B0%E8%A1%8C%EF%BC%9F.png)
我正在使用以下代码设计封面
\documentclass[letterpaper, parskip]{scrbook}
\usepackage{tikz}
\usetikzlibrary{calc,shadows}
\usepackage{lmodern}
\begin{document}
\thispagestyle{empty}
\begin{tikzpicture}
[ overlay,
remember picture,
mynode/.style={left,fill=yellow!10,general shadow={shadow scale=1, shadow xshift=-0.8ex, shadow yshift=-0.8ex,
opacity=1, fill=gray!50}},
]
\fill[red!30!gray] (current page.south west) rectangle (current page.north east);
\node[mynode] at ($(current page.north east)+(-2,-4)$) {\fontsize{25}{30}\selectfont \textbf{Probability, Mathematical Statistics, and Stochastic Processes}};
\node[above right] at ($(current page.south west)+(3.5,5)$) {\includegraphics[scale=1]{cover_files/figure-latex/unnamed-chunk-1-1.pdf}};
\node[mynode] at ($(current page.north east)+(-0.8, -27)$) {\fontsize{15}{18}\selectfont converted from \texttt{www.randomservices.org} to PDF by Lê Anh Dũng};
\end{tikzpicture}
\clearpage
\end{document}
因为标题是Probability, Mathematical Statistics, Stochastic Processes
,对于第一个节点来说太长了。我有一个问题
您能帮我将第一个节点延伸到第二行吗?非常感谢您的帮助!
答案1
text width=7cm
您可以通过向节点命令添加选项来修复节点内的文本宽度。