Como ya estoy preparando la tésis, hice una investigación por el web buscando que páginas podrían aportarme tips y esas cosas para estructurar bien mi tesis en LaTeX.
Aquí está el resultado. Primero se divide la tésis en varios archivos:
- tesis.tex
- portada.tex
- preámbulo.tex
- abstract.tex
- agradecimientos.tex
- capitulo_1.tex
- ...
- capitulo_n.tex
- apendices.tex
Cada archivo contiene lo siguiente, el código está comentado:
Código de tesis.tex
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Tesis de Adolfo De Unánue Tiscareño
% o Doctorado en Ciencias Físicas
% o ICN - PCF, UNAM
% o principal.tex
% o Ûltima modificación:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Instrucciones de compilación
%
% latex principal.tex
% bibtex capitulo_1
% bibtex capitulo_2
% ...
% bibtex capitulo_8
% bibtex apendices
% latex principal.tex
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Referencias
% Notas sobre NatBib:
% http://www.geocities.com/kijoo2000/bibtex_guide.pdf
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\input{preamble}
\begin{document}
\include{portada}
\include{abstract}
\include{agradecimientos}
\include{capitulo_1}
......
\include{capitulo_8}
\include{apendices}
\include{backmatter}
\end{document}
%%% Local Variables:
%%% mode: latex
%%% coding-system: iso-latin-1
%%% TeX-master: t
%%% End:
Código del preámbulo
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Tesis de Adolfo De Unánue Tiscareño
% o Doctorado en Ciencias Físicas
% o ICN - PCF, UNAM
% o preamble.tex
% o Ûltima modificación:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%% Paquetes Básicos
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[11pt]{book}
% Idioma español
\usepackage[latin1]{inputenc}
\usepackage[spanish]{babel}
% Paquete para el manejo de imagenes
\usepackage{graphicx}
% Paquete para colocar texto en las imagenes eps
\usepackage{psfrag}
% Paquete que imprime el formato de página
\usepackage{layout}
% Control sobre los apéndices
\usepackage{appendix}
% Permite colocar varias figuras y tablas en una figura y hacer referencia a
% ellas como fig 3(a) y fig 3(b)
\usepackage{subfigure}
% Paquete de geometría para facilidad en los márgenes
\usepackage[body={6.0in,8.2in},left=1.25in,right=1.25in]{geometry}
\usepackage{amsmath,amssymb} % AMS Math
\usepackage{rotating} % Sideways of figures & tables
% Natural BiB
\usepackage[sectionbib]{natbib}
% Referencias al final del capítulo
\usepackage{chapterbib}
\usepackage{fancyhdr} % Fancy Header and Footer
\usepackage{setspace} % Line spacing
\doublespacing
% Fuentes Times New Roman
\usepackage{txfonts}
% Paquete para mejorar el aspecto del código
% Maple, C, Java, Mathematica, Pascal, etc
\usepackage{fancyvrb}
\RecustomVerbatimEnvironment
{Verbatim}{Verbatim}
{frame=single, framesep=4mm, rulecolor=\color{red},
numbers=left, numbersep=2mm,
label=\fbox{\small\emph{ Codigo }},
commandchars=\\\{\}}
\renewcommand{\FancyVerbFormatLine}[1]{%
\makebox[0cm][l]{$>>$} \ \ \ #1}
% Elimina la indentacion de los parrafos
\parindent 0pt
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%% Comandos Definidos
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\HRule}{\rule{\linewidth}{1mm}}
\newcommand{\beq}{\begin{equation}}
\newcommand{\eeq}{\end{equation}}
\newcommand{\bea}{\begin{eqnarray}}
\newcommand{\eea}{\end{eqnarray}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%% Fancy Header
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Fancy Header Style Options
\pagestyle{fancy}
% Borra la configuración actual del footer
\fancyfoot{}
% Estilo de letra minúscula para los Capítulos
\renewcommand{\chaptermark}[1]{
\markboth{\chaptername\ \thechapter.\ #1}{}} %
\renewcommand{\sectionmark}[1]{
\markright{\thesection.\ #1}} %
% Paginación en bold, a la izquiera en pares,
% a la derecha en impares
\fancyhead[LE,RO]{\bfseries\thepage}
% Capítulo a la derecha en pares
\fancyhead[RE]{\bfseries\leftmark}
% Sección a la izquierda en impares
\fancyhead[LO]{\bfseries\rightmark}
\renewcommand{\headrulewidth}{0.3pt} % Width of head rule
% Limpia el encabezado en las páginas impares vacías
\makeatletter \def\cleardoublepage{
\clearpage\if@twoside \ifodd\c@page\else%
\hbox{}%
\thispagestyle{empty}% Aquí elimina el estilo del encabezado
\newpage%
\if@twocolumn\hbox{}\newpage\fi\fi\fi} \makeatother
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Imprime la fecha de reviisón y la etiqueta
% 'Draft Version' (From Josullvn, CS, CMU)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\reviewtimetoday}[2]{\special{
!userdict begin /bop-hook{gsave 20 710
translate 45 rotate 0.8 setgray
/Times-Roman findfont 12 scalefont setfont
0 0 moveto (#1) show 0 -12 moveto (#2) show grestore}def end}}
\reviewtimetoday{\today}{Draft Version}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\renewcommand{\thefootnote}{\fnsymbol{footnote}}
%%% Local Variables:
%%% mode: latex
%%% coding-system: iso-latin-1
%%% TeX-master: "tesis"
%%% End:
Código de portada.tex
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Tesis de Adolfo De Unánue Tiscareño
% o Doctorado en Ciencias Físicas
% o ICN - PCF, UNAM
% o abstract.tex
% o Ûltima modificación:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Página de Título
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{titlepage}
\setlength{\parindent}{0pt} \setlength{\parskip}{0pt}
\vspace*{\stretch{1}} \HRule
\begin{flushright}
\LARGE Candidatura al Grado de Doctor en Física \\ [5mm]
Adolfo Javier De Unánue Tiscareño \\end{flushright}
\HRule \vspace*{\stretch{2}}
\begin{center}
\Large \textsc{Semestre 2006 - 2 \Ciudad Universitaria, México}
\end{center}
\end{titlepage}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Página de Dedicatoria
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\thispagestyle{empty}
\newenvironment{dedication} {\cleardoublepage
\thispagestyle{empty}
\vspace*{\stretch{1}} \begin{center} \em} {\end{center}
\vspace*{\stretch{3}} \clearpage}
\begin{dedication}
Dedicatoria
\end{dedication}
% \cleardoublepage genera una página en blanca,
% para que el Abstract esté en una
% página impar
\thispagestyle{empty} \cleardoublepage
%%% Local Variables:
%%% mode: latex
%%% coding-system: iso-latin-1
%%% TeX-master: "tesis"
%%% End:
Codigo de abstract.tex
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Tesis de Adolfo De Unánue Tiscareño
% o Doctorado en Ciencias Físicas
% o ICN - PCF, UNAM
% o abstract.tex
% o Ûltima modificación:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\pagenumbering{roman} \setcounter{page}{1}
\chapter*{Abstract\markboth{Abstract}{Abstract}}
% Pone Abstract en los marcadorees pares e impares
% En dos idomas: Español e Inglés
\selectlanguage{spanish}
\begin{abstract}
Aquí va el resumen
\end{abstract}
\begin{otherlanguage}{english}
\begin{abstract}
Aqui va el resumen
\end{abstract}
%%% Local Variables:
%%% mode: latex
%%% coding-system: iso-latin-1
%%% TeX-master: "tesis"
%%% End:
Código de agradecimientos.tex
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Tesis de Adolfo De Unánue Tiscareño
% o Doctorado en Ciencias Físicas
% o ICN - PCF, UNAM
% o abstract.tex
% o Ûltima modificación:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%% Agradecimientos
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\chapter*{Agradecimientos
\markboth{Agradecimientos}{Agradecimientos}}
Aquí van los agradecimientos
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%% Listas y Contenido
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newpage \renewcommand{\contentsname}{Tabla de Contenidos}
% Nombre Original = Contents
% Ambiente con espaciado de 1.2 lineas
\begin{spacing}{1.2}
\tableofcontents%
\listoffigures%
\listoftables%
\cleardoublepage
\end{spacing}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%% Numeración Arabiga
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\pagenumbering{arabic} \setcounter{page}{1}
%%% Local Variables:
%%% mode: latex
%%% coding-system: iso-latin-1
%%% TeX-master: "tesis"
%%% End:
Codigo de un capitulo:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Tesis de Adolfo De Unánue Tiscareño
% o Doctorado en Ciencias Físicas
% o ICN - PCF, UNAM
% o abstract.tex
% o Ûltima modificación:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\chapter[Título corto del capítulo]
{Título Largo del Capítulo
\protect\footnote[2]{
Un tipo de pie de página como en las
\emph{revistas}, Vol. :111-111}
}
Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
tellus. Donec pretium posuere tellus. Proin quam nisl,
eget, convallis nec, purus. Cum sociis natoque penatibus
parturient montes, nascetur ridiculus mus. Nulla posuere.
dolor. Nullam tristique diam non turpis. Cras placerat
rutrum. Nam vestibulum accumsan nisl.
%% Citando...
% \citep{pellegrino1986}
% \citet{pellegrino1986}
% \citep[e.g.][p.p. 220]{coxeter}
% Resulta:
%Pellegrino 1986
%(Pellegrino, 1986)
%(e.g. Coxeter, 1989, p.p. 220)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%% Ejemplo de subfigure
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{figure}
\centering \subfigure[Bild a.]
{
\label{fig:sub:a}
\includegraphics[width=4cm]{bild_a.eps}
} \hspace{1cm} \subfigure[Bild b.]
{
\label{fig:sub:b}
\includegraphics[width=4cm]{bild_b.eps}
}
\caption{Bild a och b.}
\label{fig:sub} % caption for the whole figure
\end{figure}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%% Lo mismo pero con Subtablas
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{table}
\caption{Caption for total table}
\centering
\subtable[Caption for table 1]{
\begin{tabular}{ccc}
\end{tabular}
\label{tab:firsttable}
}
\qquad\qquad
\subtable[Caption for table 2]{
\begin{tabular}{ccc}
\end{tabular}
\label{tab:secondtable}
}
\end{table}
%Ejemplo de codigo
\begin{Verbatim}
Código de Maxima
\end{Verbatim}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%% Bibliografía
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Recuerda que la bibliografía está puesta
%% por capítulo
\newpage
\begin{spacing}{1.0}
\bibliographystyle{apalike} % *.bst = Archivos de Estilo
\addcontentsline{toc}{section}{Bibliografía}
% Le dice a la tabla de contenidos poner "Bibliografía"
\bibliography{libros,articulos}
% *.bib = Archivos BibTeX (2 en este caso)
\end{spacing}
%%% Local Variables:
%%% mode: latex
%%% coding-system: iso-latin-1
%%% TeX-master: "tesis"
%%% End:
Codigo de un apéndice:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Tesis de Adolfo De Unánue Tiscareño
% o Doctorado en Ciencias Físicas
% o ICN - PCF, UNAM
% o abstract.tex
% o Ûltima modificación:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\appendix
% Nos aseguramos que no haya numeracion
% despues de esta linea
\noappendicestocpagenum
%Agregamos una nueva entrada al TOC que diga Apendices
% (depende del idioma)
\addappheadtotoc
% Ajustamos los encabezados
\pagestyle{fancy}
\fancyhead[LO]{\leftmark}
\fancyhead[RE]{\emph{Appendix \thechapter}}
\renewcommand{\headrulewidth}{0.5pt}
% Más archivos!
\input{apendice_a}
\input{apendice_b}
%%% Local Variables:
%%% mode: latex
%%% coding-system: iso-latin-1
%%% TeX-master: "tesis"
%%% End:
Código del Backmatter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Tesis de Adolfo De Unánue Tiscareño
% o Doctorado en Ciencias Físicas
% o ICN - PCF, UNAM
% o abstract.tex
% o Ûltima modificación:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\backmatter
% Cita a todos los de los archivos .bib,
% sin importar sin son citados en el texto o no.
\nocite{*}
% Ajustamos los encabezados
\pagestyle{plain}
\addcontentsline{toc}{chapter}{Bibliografía}
\bibliographystyle{apalike} % .bst
\bibliography{bibtex1, bibtex2, bibtex3, bibtex4} % .bib
%%% Local Variables:
%%% mode: latex
%%% coding-system: iso-latin-1
%%% TeX-master: "tesis"
%%% End:
Solamente copien los bloques de codigo a sus respectivos archivos y empiecen!
Nota: Los archivos en los que me basé se pueden consultar haciendo clic en la etiqueta que dice Latex en la barra de la derecha.