
Como posso produzir isso em látex. Minha dúvida é sobre o framework para colocar dentro,figura,algoritmo,tabular? E como posso separá-lo com esta linha vertical
Responder1
É isso que voce quer?
% 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}