
내 테이블 안에 \downarrow(또는 임의의 화살표)를 그리고 싶습니다. 표는 아래 표와 같습니다.
그리고 나는 더욱 이렇게 되고 싶습니다.
그리고 이것은 내가 가지고 있는 코드입니다:
$\rotatebox[origin=c]{90}{}%
\left\Downarrow
\begin{tabular}{lrr}
\toprule
{} & Aantal Zetels & Aantal Zetels \\
Strategie & Vrouwen & Mannen \\
\midrule
a & 10 & 0\\
b & 4 & 6 \\
a & 8 & 2\\
b & 5 & 5 \\
a & 7 & 3 \\
b & 6 & 4 \\
\bottomrule
\end{tabular}
\right.
\rotatebox[origin=c]{90}{}$
누구든지 나를 도와줄 수 있나요?
답변1
귀하의 질문에 태그가 지정되었으므로tikz-pgf\tikzmark
, 해결책이 괜찮을 것 같습니다 . 화살표가 올바른 위치에 표시되도록 하려면 LaTeX를 두 번 실행해야 합니다.
\documentclass{article}
\usepackage{booktabs,tikz}
\newcommand\tikzmark[1]{\tikz[remember picture] \node (#1) {};}
\begin{document}
\begin{tabular}{lrr}
\toprule
& Aantal Zetels & Aantal Zetels \\
Strategie & Vrouwen & Mannen \\
\midrule
a \tikzmark{a} & 10 & 0 \\
b & 4 & 6 \\
a & 8 & 2 \\
b & 5 & 5 \\
a & 7 & 3 \\
b \tikzmark{b} & 6 & 4 \\
\bottomrule
\end{tabular}
\tikz[remember picture,overlay] \draw[->] (a.center -| b.center) -- (b.center);
\end{document}
답변2
다음을 갖춘 솔루션 pstricks
:
\documentclass[a4paper, x11names]{article}
\usepackage{array, rotating, booktabs}
\usepackage{pst-node}
\usepackage{auto-pst-pdf}
\begin{document}
\begin{postscript}%
\begin{tabular}{lcrr}
\toprule
& & Aantal Zetels & Aantal Zetels \\
\multicolumn{2}{l}{ Strategie} & Vrouwen & Mannen \\
\midrule
a & \pnode{B} & 10 & 0 \\
b & & 4 & 6 \\
a & & 8 & 2 \\
b & & 5 & 5 \\
a & & 7 & 3 \\
b & \Rnode{E} & 6 & 4 \\
\bottomrule
\ncline[arrows=->, arrowinset=0.12, offset=-6pt]{B}{E}
\end{tabular}
\end{postscript}
\end{document}