%% #+TITLE: El poema de /El centón de un enano/ con LaTeX 
%% #+AUTHOR: Emilio Torres Manzanera
%% #+PROPERTY: header-args  :exports code  :eval no 
%% # Created from poema-el-centon-de-un-enano.tex
% 
% 
%% LaTeX maqueta de forma impresionante. Cambiando el tamaño a din A5 en  [[https://www.reddit.com/r/LaTeX/comments/gx1kni/first_attempt_to_typeset_some_poetry_in_latex/][esta referencia]], conseguimos algo tan bonito como esto:
% 
%% #+ATTR_HTML: :class center no-border
%% #+ATTR_HTML: :width 40% :height
%% [[./graphics/poema-el-centon-de-un-enano.png]]
%% 
%% [[file:./poema-el-centon-de-un-enano.tex][Código fuente TeX]].
%%
%% [[file:./poema-el-centon-de-un-enano.pdf][Versión en pdf]].
% 
%% ** Referencias

%% - [[https://www.ctan.org/pkg/pgfornament][pgfornament – Drawing of Vectorian ornaments with PGF/TikZ]].
%% - [[https://www.reddit.com/r/LaTeX/comments/gx1kni/first_attempt_to_typeset_some_poetry_in_latex/][First attempt to typeset some poetry in LaTeX]].
%% ** 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}

%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% End:
