如何使用 paracol 使图像(图形、tikzs 等)垂直居中?

如何使用 paracol 使图像(图形、tikzs 等)垂直居中?

我想让图像垂直居中,而不仅仅是水平居中(通过使用\centering)。我该怎么做?

在此处输入图片描述

就像下面的图片一样,我想让 tikz 位于红色框中,而不是位于右栏的顶部。

我尝试使用 minipage,但是它非常糟糕。

梅威瑟:

\documentclass{article}
\usepackage{geometry}
\geometry{
  paperwidth=21.590cm, 
  paperheight=28.787cm,
  top=21.2mm, 
  bottom=21.2mm, 
  left=1.91cm, 
  right=1.91cm, 
  headheight=1.81cm, 
  headsep=3.3mm, 
  footskip=4.71mm
}
\usepackage[most]{tcolorbox}
\tcbuselibrary{breakable}
\usepackage{paracol}
\columnratio{0.67}
\usepackage{tikz}
\begin{document}

\begin{paracol}{2}
\begin{tcolorbox}[
    blanker,breakable,
    borderline west={1.5pt}{3mm}{teal},
    left=6mm,
    toprule=.3em,
    bottomrule=.3em,
    title=Title,
    bottomtitle=.75\baselineskip,
    coltitle=teal,
    fonttitle=\bfseries]
  Here are questions. Right is a tikzpicture. Here are questions. Right is a tikzpicture. Here are questions. Right is a tikzpicture. Here are questions. Right is a tikzpicture. Here are questions. Right is a tikzpicture. Here are questions. Right is a tikzpicture. Here are questions. Right is a tikzpicture. Here are questions. Right is a tikzpicture. Here are questions. Right is a tikzpicture. Here are questions. Right is a tikzpicture. Here are questions. Right is a tikzpicture. Here are questions. Right is a tikzpicture. Here are questions. Right is a tikzpicture. Here are questions. Right is a tikzpicture. Here are questions. Right is a tikzpicture. Here are questions. Right is a tikzpicture. Here are questions. Right is a tikzpicture. Here are questions. Right is a tikzpicture. Here are questions. Right is a tikzpicture. Here are questions. Right is a tikzpicture. 
\end{tcolorbox}
\switchcolumn
\centering
\begin{tikzpicture}
    \draw [thick] (0,0) circle (1);
    \draw [thick,densely dotted] (0,-1)--(-3,-1);
    \draw [|<-,thick,>=stealth] (-2.7,-1)--(-2.7,0);
    \draw [->|,thick,>=stealth] (-2.7,0.5)--(-2.7,1.5);
    \node at (-2.7,0.25) {$H$};
    \draw [thick] (-2.5,1.5) arc (-180:-90:2.5);
    \shade[ball color=blue!80!red!50] (-2.4,1.4) circle (0.1);
\end{tikzpicture}
\end{paracol}
\end{document}

相关内容