让我从一张图片开始......
现在,是否可以仅将表格置于中央,并将流程图置于顶角?
这里有一个平均能量损失:
\documentclass[12pt,twoside]{beamer}
\usepackage[spanish,es-noquoting]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{multimedia}
\usepackage{forest}
\usepackage{float}
\usepackage{booktabs}
%\setbeamercovered{transparent}
\usepackage[flushleft]{threeparttable}
\usepackage{multicol}
\setbeamertemplate{frametitle}[default][center]
\setbeamersize{text margin left=2em,text margin right=2em}
\begin{document}
\begin{frame}[shrink=25]{Resultados - glioxal}
\begin{multicols}{2}
\vspace{-0.5cm}\centering{
\begin{threeparttable}
\caption{Reacción problema}\label{table:reaccion_central}
\begin{tabular}{lcc}
\toprule
\multicolumn{1}{c}{Compuesto} & \multicolumn{2}{c}{RM1} \\ \midrule
& $\Delta G^\circ_{\text{COSMO}}$ & $\Delta G^\circ_{\text{SS-COSMO}}$ \\ \cmidrule(lr){2-3}
CC$_{\text{ref}}$ & - & - \\
cis dihidro-dihidroxi & I need & to center \\
trans dihidro-dihidroxi & only & this table \\
& & \\
\end{tabular}
\end{threeparttable}
}\medbreak
\scalebox{0.6}{
\begin{forest}
for tree={
rounded corners, draw, align=center, top color=white, bottom color=blue!20,
edge+=->,
l sep'+=10pt,
},
[This
[is a forest]
[flow
[chart!]
]
]
\end{forest}
}
\end{multicols}
\end{frame}
\end{document}
答案1
你可以通过以下方式做你想做的事:
- 关闭
multicols
; - 把 放到
forest
表格前面(用\mbox{}\hfill
右对齐);以及 增加桌子的“升力”
\vspace{-2.5cm}
\documentclass[12pt,twoside]{beamer} \usepackage[spanish,es-noquoting]{babel} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{multimedia} \usepackage{forest} \usepackage{float} \usepackage{booktabs} %\setbeamercovered{transparent} \usepackage[flushleft]{threeparttable} \usepackage{multicol} \setbeamertemplate{frametitle}[default][center] \setbeamersize{text margin left=2em,text margin right=2em} \begin{document} \begin{frame}[shrink=25]{Resultados - glioxal} \mbox{}\hfill\scalebox{0.6}{ \begin{forest} for tree={ rounded corners, draw, align=center, top color=white, bottom color=blue!20, edge+=->, l sep'+=10pt, }, [This [is a forest] [flow [chart!] ] ] \end{forest} } %\begin{multicols}{2} \vspace{-2.5cm}\centering{ \begin{threeparttable} \caption{Reacción problema}\label{table:reaccion_central} \begin{tabular}{lcc} \toprule \multicolumn{1}{c}{Compuesto} & \multicolumn{2}{c}{RM1} \\ \midrule & $\Delta G^\circ_{\text{COSMO}}$ & $\Delta G^\circ_{\text{SS-COSMO}}$ \\ \cmidrule(lr){2-3} CC$_{\text{ref}}$ & - & - \\ cis dihidro-dihidroxi & I need & to center \\ trans dihidro-dihidroxi & only & this table \\ & & \\ \end{tabular} \end{threeparttable} }\medbreak %\end{multicols} \end{frame} \end{document}