我正在写一篇科学的双栏论文,我想添加一个位于两栏之间的宽特征。幸运的是,在阅读了这里的一些文章后,我能够做到这一点,但使用[H]
或将其强制到特定位置似乎相当困难[ht!]
。它到了最底部,我无法像我希望的那样转到下一页的顶部。当我删除一些不需要的文本时,它会上升,但会删除一些我没有碰过的东西。看看我写的代码。
\begin{figure}[ht!]
\onecolumn
\begin{tabular}{|llll|}
\hline
\begin{tikzpicture}
\node (is-root) {is} [sibling distance=1.5cm]
child {node {X}}
child {node {precise }};
\path (is-root) +(0,-2.5\tikzleveldistance)
node {\textit{}};
\end{tikzpicture}
&
\begin{tikzpicture}
\node (is-root) {is} [sibling distance=2cm]
child {node {X}}
child {node {and}[sibling distance=1.5cm]
child {node {exact}}
child {node {accurate}}
};
\path (is-root) +(0,-2.5\tikzleveldistance)
node {\textit{}};
\end{tikzpicture}
& $\Longrightarrow$ %could not apply baseline
&
\begin{tikzpicture}
\node (is-root) {if} [sibling distance=4cm]
child {node {is} [sibling distance=2cm]
child {node {X}}
child {node {precise }
}}
child {node {is} [sibling distance=2cm]
child {node {X} }
child {node {and}[sibling distance=1.5cm]
child {node {exact}}
child {node {accurate}}
}};
;
\path (is-root) +(0,-2.5\tikzleveldistance)
node {\textit{}};
\end{tikzpicture} \\ \hline
\end{tabular}
\caption{An example of the reconstructing sentences in out system}
\label{normalization}
\end{figure}
\twocolumn
忘记箭头吧,我无法将它与树垂直对齐。我试图让变量 X 成为基线,因为它写在所有树中,但我做不到。主要的问题是,当我清理上面的一些文本时,删除的文本去了哪里?如果问题
\onecolumn
和
\twocolumn
那我该怎么办呢?
答案1
您可以使用strip
环境 fromcuted
来代替figure*
环境。以下是代码:
\documentclass{article}
\usepackage{cuted, caption, makecell}
\usepackage{tikz}
\usepackage{lipsum} \usepackage[showframe, twocolumn, columnsep=1.5em]{geometry}
\begin{document}
\lipsum[1]
\begin{strip}
\setlength\tabcolsep{3pt}
\centering
\begin{tabular}{|ll@{\raisebox{14.6ex}{$ =⇒ $}\enspace}l|}
\hline
\begin{tikzpicture}
\node (is-root) {is} [sibling distance=1.5cm]
child {node {X}}
child {node {precise }};
\path (is-root) +(0,-2.5\tikzleveldistance)
node {\textit{}};
\end{tikzpicture}
&
\begin{tikzpicture}
\node (is-root) {is} [sibling distance=2cm]
child {node {X}}
child {node {and}[sibling distance=1.5cm]
child {node {exact}}
child {node {accurate}}
};
\path (is-root) +(0,-2.5\tikzleveldistance)
node {\textit{}};
\end{tikzpicture}
&
\begin{tikzpicture}
\node (is-root) {if} [sibling distance=4cm]
child {node {is} [sibling distance=2cm]
child {node {X}}
child {node {precise }
}}
child {node {is} [sibling distance=2cm]
child {node {X} }
child {node {and}[sibling distance=1.5cm]
child {node {exact}}
child {node {accurate}}
}};
;
\path (is-root) +(0,-2.5\tikzleveldistance)
node {\textit{}};
\end{tikzpicture} \\ \hline
\end{tabular}
\captionof{figure}{An example of the reconstructing sentences in out system}
\label{normalization}
\end{strip}
\lipsum[2-6]
\end{document}
你也可以使用figure*
环境。在这种情况下,你有一个浮动元素,它将被放置在页面的顶部,通常是下一个:
\lipsum[1]
\begin{figure*}
\setlength\tabcolsep{3pt}
\centering
\begin{tabular}{|ll@{\raisebox{14.6ex}{$ =⇒ $}\enspace}l|}
\hline
\begin{tikzpicture}
\node (is-root) {is} [sibling distance=1.5cm]
child {node {X}}
child {node {precise }};
\path (is-root) +(0,-2.5\tikzleveldistance)
node {\textit{}};
\end{tikzpicture}
&
\begin{tikzpicture}
\node (is-root) {is} [sibling distance=2cm]
child {node {X}}
child {node {and}[sibling distance=1.5cm]
child {node {exact}}
child {node {accurate}}
};
\path (is-root) +(0,-2.5\tikzleveldistance)
node {\textit{}};
\end{tikzpicture}
&
\begin{tikzpicture}
\node (is-root) {if} [sibling distance=4cm]
child {node {is} [sibling distance=2cm]
child {node {X}}
child {node {precise }
}}
child {node {is} [sibling distance=2cm]
child {node {X} }
child {node {and}[sibling distance=1.5cm]
child {node {exact}}
child {node {accurate}}
}};
;
\path (is-root) +(0,-2.5\tikzleveldistance)
node {\textit{}};
\end{tikzpicture} \\ \hline
\end{tabular}
\caption{An example of the reconstructing sentences in out system}
\label{normalization}
\end{figure*}
\lipsum[2-12]