Skip to content

Instantly share code, notes, and snippets.

@hsigrist
Created July 23, 2009 03:39
Show Gist options
  • Select an option

  • Save hsigrist/152456 to your computer and use it in GitHub Desktop.

Select an option

Save hsigrist/152456 to your computer and use it in GitHub Desktop.
\listfiles
\usepackage{comment}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsfonts}
\usepackage{latexsym}
\usepackage{graphicx}
\usepackage{fix-cm}
\usepackage{fourier}%................... Roman+math - Utopia
\usepackage[scaled=.92]{helvet}%........ Sans serif - Helvetica
\usepackage[T1]{fontenc}
\usepackage{color}
\usepackage{memsty}
\usepackage{titlepages} % code of the example titlepages
\usepackage{memlays} % extra layout diagrams
\usepackage{dpfloat} % floats on facing pages
\headstyles{memman}
\settocdepth{subsection}
\setsecnumdepth{subsection}
\makeindex[lines]
\usepackage[spanish]{babel}
\newcommand{\attrib}[1]{%
\nopagebreak{\raggedleft\footnotesize #1\par}}
\definecolor{ChapGrey}{rgb}{0.6,0.6,0.6}
\newcommand{\LargeFont}{% Needs a ’stretchable’ font
\usefont{\encodingdefault}{\rmdefault}{b}{n}%
\fontsize{60}{80}\selectfont\color{ChapGrey}}
\makeatletter
\makechapterstyle{GreyNum}{%
\renewcommand{\chapnamefont}{\large\sffamily\bfseries\itshape}
\renewcommand{\chapnumfont}{\LargeFont}
\renewcommand{\chaptitlefont}{\Huge\sffamily\bfseries\itshape}
\setlength{\beforechapskip}{0pt}
\setlength{\midchapskip}{40pt}
\setlength{\afterchapskip}{60pt}
\renewcommand\chapterheadstart{\vspace*{\beforechapskip}}
\renewcommand\printchaptername{%
\begin{tabular}{@{}c@{}}
\chapnamefont \@chapapp\\}
\renewcommand\chapternamenum{\noalign{\vskip 2ex}}
\renewcommand\printchapternum{\chapnumfont\thechapter\par}
\renewcommand\afterchapternum{%
\end{tabular}
\par\nobreak\vskip\midchapskip}
\renewcommand\printchapternonum{}
\renewcommand\printchaptertitle[1]{%
{\chaptitlefont{##1}\par}}
\renewcommand\afterchaptertitle{\par\nobreak\vskip \afterchapskip}
}
\makeatother
\chapterstyle{GreyNum}
\pagestyle{empty}
\begin{document}
\selectlanguage{spanish}
\frontmatter
\pagestyle{empty}
\vspace*{\fill}
\cleardoublepage
% ToC, etc
%%%\pagenumbering{roman}
\pagestyle{headings}
%%%%\pagestyle{Ruled}
\setupshorttoc
\tableofcontents
\clearpage
\setupparasubsecs
\setupmaintoc
\tableofcontents
\setlength{\unitlength}{1pt}
\clearpage
\listoffigures
\clearpage
\listoftables
\clearpage
\PoemTitle{Hans's Tale}
\settowidth{\versewidth}{a mouse that morning}
\indentpattern{0135554322112346898779775545653222345544456688778899}
\begin{verse}[\versewidth]\index[lines]{Fury said to}
\setlength{\vgap}{1em}
\begin{patverse}
\large Fury said to \\
a mouse, That \\
$x^{2}+y^{2}=z^{2}$ \\
in the \\
house, \\
\normalsize `Let us \\
both go \\
to law: \\
\emph{I} will \\
prosecute \\
\textit{you.} --- \\
Come, I'll \\
\small take no \\
denial; \\
We must \\
have a \\
trial: \\
For \\
\footnotesize really \\
this \\
morning \\
I've \\
nothing \\
to do.' \\
Said the \\
mouse to \\
\scriptsize the cur, \\
Such a \\
trial, \\
dear sir, \\
With no \\
jury or \\
judge, \\
would be \\
wasting \\
our breath.' \\
\tiny `I'll be \\
judge, \\
I'll be \\
jury.' \\
Said \\
cunning \\
old Fury; \\
`I'll try \\
the whole \\
cause \\
and \\
condemn \\
you \\
to \\
death.' \par
\end{patverse}
\end{verse}
\attrib{Lewis Carrol, \textit{Alice's Adventures in Wonderland}, 1865}
\index{verse|)}
\cleardoublepage
\pagenumbering{arabic}
% body
\mainmatter
\part{Números} \label{part:numeros}
\include{titulo}
\include{contrib}
\include{preambulo}
\include{numeros}
\include{ejercicios}
\include{teorema1}
\backmatter
\include{biblio}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment