\begin{verbatim} \documentclass{article} \usepackage{tikz}

\begin{document} \begin{tikzpicture} \node[rectangle, draw=black, line width=1pt, align=center] (A) at (0,0) {value1:int \ value2:double}; \draw (A.north) -- (A.south); \end{tikzpicture} \end{document} \end{verbatim}

TikZ 矩形结点文本分行并添加直线 - 使用 align=center 居中对齐

原文地址: https://www.cveoy.top/t/topic/p44H 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录