
Estoy intentando colocar un marco de código generado con listings
el paquete en medio de una página tanto horizontal como vertical. ¿Cómo puedo hacerlo?
Edito yo:
My code is this:
\documentclass[12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage{listings}
\begin{document}
\begin{lstlisting}[frame=single,title=1.1]
Code goes here!
\end{lstlisting}
\end{document}
Respuesta1
\documentclass[12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage{listings}
\begin{document}
\leavevmode\vfill
\begin{lstlisting}[frame=single,title=1.1]
Code goes here!
\end{lstlisting}
\vfill
\end{document}