
¿Cómo puedo producir esto en látex? Mi pregunta es sobre el marco para ponerlo dentro, figura, algoritmo, tabular. ¿Y cómo puedo separarlo con esta línea vertical?
Respuesta1
¿Es esto lo que quieres?
% 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}