
我怎麼才能用乳膠生產這個。我的問題是關於將其放入其中的框架,圖形,演算法,表格?我如何用這條垂直線將它分開
答案1
這是你想要的嗎?
% arara: pdflatex
\documentclass{article}
\usepackage{algpseudocode}
\begin{document}
\begin{table}
\begin{tabular}{c|c}
\begin{minipage}{5cm}
\begin{algorithmic}[1]
\Procedure{Euclid}{$a,b$}
\State $r\gets a\bmod b$
\While{$r\not=0$}
\State $a\gets b$
\State $b\gets r$
\State $r\gets a\bmod b$
\EndWhile
\State \textbf{return} $b$\Comment{The gcd is b}
\EndProcedure
\end{algorithmic}
\end{minipage}
&
\begin{minipage}{5cm}
\begin{algorithmic}[1]
\Procedure{Euclid}{$a,b$}
\State $r\gets a\bmod b$
\While{$r\not=0$}
\State $a\gets b$
\State $b\gets r$
\State $r\gets a\bmod b$
\EndWhile
\State \textbf{return} $b$\Comment{The gcd is b}
\EndProcedure
\end{algorithmic}
\end{minipage}
\end{tabular}
\end{table}
\end{document}