UP | HOME |

El poema de El centón de un enano con LaTeX

LaTeX maqueta de forma impresionante. Cambiando el tamaño a din A5 en esta referencia, conseguimos algo tan bonito como esto:

poema-el-centon-de-un-enano.png

Código fuente TeX.

Versión en pdf.

Referencias

Código

\documentclass[a5paper, 12pt]{article}
\usepackage[utf8]{inputenc}     % Linux
\usepackage[spanish,es-tabla,es-nodecimaldot,es-noshorthands]{babel} % Spanish titles
\usepackage[T1]{fontenc}        % To deal with non ascii characters
\usepackage[svgnames]{xcolor}
\definecolor{background}{RGB}{239,234,210}
\usepackage{pgfornament}
\usepackage{background}
\usepackage[a5paper]{geometry}
\usepackage{eso-pic}

\backgroundsetup{
scale=1,
opacity=1,
angle=0,
color=black,
contents={%
\begin{tikzpicture}[every node/.style={inner sep=0pt}]
    \node[anchor=north west](CNW)
    at (current page.north west) {\pgfornament[width=2.5cm]{63}};
    \node[anchor=north east](CNE)
    at (current page.north east) {\pgfornament[width=2.5cm,symmetry=v]{63}};
    \node[anchor=south west](CSW)
    at (current page.south west) {\pgfornament[width=2.5cm,symmetry=h]{63}};
    \node[anchor=south east](CSE)
    at (current page.south east) {\pgfornament[width=2.5cm,symmetry=c]{63}};
\end{tikzpicture}%
}
}

\begin{document}
\pagecolor{background}
\pagenumbering{gobble}

\vspace{2cm}

\begin{center}
    \pgfornament[width=1cm]{65}\\ 

    \vspace{.3cm}
        \textsc{\Large El centón de un enano}
    \pgfornament[width = 5cm]{88}
\end{center}

\vspace{1cm}

\begin{center}
    El centón de un enano\\
    acoge mis dispersas notas.\\
    Sentado a hombros de gigantes,\\
    ahora ya mi memoria flaquea, \\
    mi ignorancia aumenta, \\
    en temor de Dios\\
    empequeñezco.\\
    Pecador contrito,\\ 
    mi gracia verdadera \\
    Emilio Torres Manzanera.\\
    \pgfornament[width=17pt]{1}\\
\end{center}

\vfill
\begin{center}
        \textit{Ad maiórem Dei glóriam}.
\end{center}
\end{document}