子图分组图形行中的多个 Tikz 树

发布于 2024-12-27 06:31:42 字数 729 浏览 4 评论 0原文

如何将多个 Tikz 树放入子图分组的图行中?正如提供的屏幕截图所示,每个图形/树都放在单独的行中。我猜树的宽度是>线宽的 50%,但我不知道可以调节 tikz 树图的宽度...

enter image此处描述

\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...

enter image description here

\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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

长安忆 2025-01-03 06:31:42

删除行之间的空白行

\end{minipage}}\qquad

\subfigure[s2]{

就可以了......

Removing the blank line between the lines

\end{minipage}}\qquad

\subfigure[s2]{

does the trick...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文