我需要在文本和图像之间设置垂直线。paracol
包跨页拆分。我不想出现这种情况。
\documentclass[a5paper]{scrbook}
\usepackage{adjustbox}
\usepackage{tikz}
\begin{document}
\begin{adjustbox}{valign=t,minipage={.45\textwidth}}
\[
a=b
\]
\end{adjustbox}
\begin{adjustbox}{valign=t,minipage={.45\textwidth}}
\begin{tikzpicture}
\draw [thick,red] (0,0) rectangle (2,1);
\end{tikzpicture}
\end{adjustbox}
\end{document}
multicol
文本和图像对齐不正确。
\documentclass[a5paper]{scrbook}
%
\usepackage{tikz}
\usepackage{multicol}
\setlength\columnseprule{.4pt}
\begin{document}
\begin{multicols}{2}
\[
a=b
\]
\columnbreak
\begin{tikzpicture}
\draw [thick,red] (0,0) rectangle (2,1);
\end{tikzpicture}
\end{multicols}
\end{document}
答案1
\documentclass[a5paper]{scrbook}
%
\usepackage{tikz}
\usepackage{multicol}
\setlength\columnseprule{.4pt}
\begin{document}
\begin{multicols}{2}
First line
\vfill
\[
a=b
\]
\vfill
Last
\columnbreak
\begin{tikzpicture}
\draw [thick,red] (0,0) rectangle (2,5);
\end{tikzpicture}
\end{multicols}
\end{document}