子图分组图形行中的多个 Tikz 树
如何将多个 Tikz 树放入子图分组的图行中?正如提供的屏幕截图所示,每个图形/树都放在单独的行中。我猜树的宽度是>线宽的 50%,但我不知道可以调节 tikz 树图的宽度...
\usepackage{subfigure}
\usepackage{tikz}
\usepackage{tikz-qtree}
\usetikzlibrary{trees}
\begin{figure}[H]
\subfigure[s1]{
\begin{minipage}[c][1\width]{0.5\textwidth}%
\begin{tikzpicture}
\Tree[.{root} ]
\end{tikzpicture}
\centering{}
\end{minipage}}\qquad
\subfigure[s2]{
\begin{minipage}[c][1\width]{0.5\textwidth}%
\centering{}
\begin{tikzpicture}[ ]
\Tree[.{another root} ]
\end{tikzpicture}
\end{minipage}}
\caption{the caption}
\end{figure}
编辑:请求将此主题移至 tex.stackexchange.com - 抱歉,走错页面了;)
How to put multiple Tikz trees in a subfigure-grouped figure row? As the provided screenshot indicates, every figure/ tree is put in a separate row. I guess that the tree width is > 50% of the line width, but I don't know one can regulate the width of a tikz tree figure...
\usepackage{subfigure}
\usepackage{tikz}
\usepackage{tikz-qtree}
\usetikzlibrary{trees}
\begin{figure}[H]
\subfigure[s1]{
\begin{minipage}[c][1\width]{0.5\textwidth}%
\begin{tikzpicture}
\Tree[.{root} ]
\end{tikzpicture}
\centering{}
\end{minipage}}\qquad
\subfigure[s2]{
\begin{minipage}[c][1\width]{0.5\textwidth}%
\centering{}
\begin{tikzpicture}[ ]
\Tree[.{another root} ]
\end{tikzpicture}
\end{minipage}}
\caption{the caption}
\end{figure}
EDIT: request to move this topic to tex.stackexchange.com - sorry, was on the wrong page ;)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
删除行之间的空白行
就可以了......
Removing the blank line between the lines
does the trick...