TikZ 节点和小页面之间的间距很奇怪。如何解决?

TikZ 节点和小页面之间的间距很奇怪。如何解决?

如示例所示,Ti 之间有额外的空间Z 节点/对象和仅包含一行文本的迷你页面。如何解决这个问题?我可能忽略了一些非常基本的东西。

\documentclass{article}

\usepackage[papersize={5.5in,8.5in},margin=0.6in]{geometry}
\usepackage{tikz}

\parindent0pt

\begin{document}

\noindent
\tikz{\node[draw]{This is some text};}%
\par
\begin{minipage}{\textwidth}
One line. Why extra space after node with one-line minipage?
\end{minipage}
\par

\bigskip

\noindent
\tikz{\node[draw]{This is some text};}%
\par
\begin{minipage}{\textwidth}
One line. And some more text to see just what is happening here if at all possible. One line. And some more text to see just what is happening here if at all possible.
\end{minipage}

\end{document}

TikZ/minipage 间距

相关内容