|
|
@ -0,0 +1,167 @@ |
|
|
|
% comments |
|
|
|
% Preamble |
|
|
|
\documentclass[twoside]{article} %document's style |
|
|
|
\usepackage{blindtext} %dummy text |
|
|
|
\usepackage[utf8]{inputenc} %keyboard |
|
|
|
\usepackage{amsmath} %math symbols |
|
|
|
\usepackage{graphicx} %images and figures |
|
|
|
\usepackage[spanish]{babel} %env translation |
|
|
|
\usepackage{caption} % subfigures |
|
|
|
\usepackage{subcaption} %subfigures |
|
|
|
\usepackage{booktabs} %fancy tables |
|
|
|
\usepackage[left=2cm, right=2cm, top=2cm, bottom=2cm]{geometry}%page limits |
|
|
|
\usepackage{fancyhdr} |
|
|
|
|
|
|
|
|
|
|
|
\title{My \LaTeX{} Example project} |
|
|
|
\author{Gerardo Marx} |
|
|
|
|
|
|
|
%Body |
|
|
|
\begin{document} |
|
|
|
\pagestyle{fancy} |
|
|
|
\fancyhead{} |
|
|
|
\fancyhead[RO,LE]{\textbf{My headers}} |
|
|
|
\fancyfoot{} |
|
|
|
\fancyfoot[CO,RE]{\thepage} |
|
|
|
\maketitle |
|
|
|
\tableofcontents |
|
|
|
|
|
|
|
\section{List} |
|
|
|
|
|
|
|
\subsection{Type Itemize} |
|
|
|
\begin{itemize} |
|
|
|
\item Primer punto |
|
|
|
\item Segundo punto |
|
|
|
\item Tercer punto |
|
|
|
\end{itemize} |
|
|
|
|
|
|
|
\subsection{Type enumerate} |
|
|
|
|
|
|
|
\begin{enumerate} |
|
|
|
\item Primer punto |
|
|
|
\item Segundo punto |
|
|
|
\item Tercer punto |
|
|
|
\end{enumerate} |
|
|
|
|
|
|
|
\subsection{Nested Lists} |
|
|
|
\begin{enumerate} |
|
|
|
\item Primer punto |
|
|
|
\begin{enumerate} |
|
|
|
\item Sub punto |
|
|
|
\item Sub punto |
|
|
|
\item Sub punto |
|
|
|
|
|
|
|
\end{enumerate} |
|
|
|
\item Segundo punto |
|
|
|
\item Tercer punto |
|
|
|
\end{enumerate} |
|
|
|
|
|
|
|
\blindtext{1} |
|
|
|
\section{Equations} |
|
|
|
\blindtext{1} |
|
|
|
|
|
|
|
\subsection{Inline Equations} |
|
|
|
Some text to refer here $E=mc^2$, and the text continues again here ... |
|
|
|
|
|
|
|
\blindtext{1} |
|
|
|
\subsection{Enumerated equations} |
|
|
|
Some text here to refer, next Equation \eqref{eq:fourier}: |
|
|
|
|
|
|
|
\begin{equation} |
|
|
|
\label{eq:fourier-cos} |
|
|
|
f(x)=\int_{0}^{\infty}f(x)\cos(\omega t)dt |
|
|
|
\end{equation} |
|
|
|
|
|
|
|
|
|
|
|
\begin{equation} |
|
|
|
\label{eq:fourier} |
|
|
|
f(x)=\int_{0}^{\infty}f(x)\sin(\omega t)dt |
|
|
|
\end{equation} |
|
|
|
|
|
|
|
\begin{equation*} |
|
|
|
\label{eq:example} |
|
|
|
\frac{1}{\sqrt{2}+\frac{1}{\sqrt{2}}+} |
|
|
|
\end{equation*} |
|
|
|
|
|
|
|
\begin{equation} |
|
|
|
\label{eq:matrix} |
|
|
|
\begin{bmatrix} |
|
|
|
a_1 & b_8 & c_9\\ |
|
|
|
d_{10} & e & f\\ |
|
|
|
g & h & i |
|
|
|
\end{bmatrix} |
|
|
|
\end{equation} |
|
|
|
\section{Graphics} |
|
|
|
\blindtext{1} |
|
|
|
|
|
|
|
\begin{figure}[htb!] |
|
|
|
\centering |
|
|
|
\caption{Pie de la figura} |
|
|
|
\includegraphics[width=3.5in]{lion-latex} |
|
|
|
\end{figure} |
|
|
|
|
|
|
|
\subsection{Sub-Figures} |
|
|
|
The Fig.~\ref{fig:eg-captions}, next in the sub-figure \ref{fig:eg-captions-b} |
|
|
|
|
|
|
|
\begin{figure}[htb] |
|
|
|
\centering |
|
|
|
\begin{subfigure}[t]{0.45\textwidth} |
|
|
|
\centering |
|
|
|
\includegraphics[width=\textwidth]{example-image-a} |
|
|
|
\caption{Image A} |
|
|
|
\label{fig:eg-captions-a} |
|
|
|
\end{subfigure} |
|
|
|
\hfill |
|
|
|
\begin{subfigure}[t]{0.45\textwidth} |
|
|
|
\centering |
|
|
|
\includegraphics[width=\textwidth]{example-image-b} |
|
|
|
\caption{Image B} |
|
|
|
\label{fig:eg-captions-b} |
|
|
|
\end{subfigure} |
|
|
|
\caption{Complete caption} |
|
|
|
\label{fig:eg-captions} |
|
|
|
\end{figure} |
|
|
|
\section{Tables and Headers} |
|
|
|
\subsection{Tabular} |
|
|
|
\begin{tabular}{c|cc} |
|
|
|
Col 1 & Col 2 & Col 3\\\hline |
|
|
|
data & res & note \\ |
|
|
|
data & res & note \\ |
|
|
|
data & res & note \\ |
|
|
|
data & res & note \\ |
|
|
|
\end{tabular} |
|
|
|
|
|
|
|
\subsection{Table} |
|
|
|
In the Table \ref{tb:table-example} |
|
|
|
\begin{table}[htb] |
|
|
|
\centering |
|
|
|
\caption{\sc{My Basic Table Example.}} |
|
|
|
\label{tb:table-example} |
|
|
|
\begin{tabular}{c|cc} |
|
|
|
Col 1 & Col 2 & Col 3\\\toprule |
|
|
|
data & res & note \\ |
|
|
|
data & res & note \\ |
|
|
|
data & res & note \\\midrule |
|
|
|
data & res & note \\ |
|
|
|
\bottomrule |
|
|
|
\end{tabular} |
|
|
|
\end{table} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\section{Results} |
|
|
|
\blindtext{1} |
|
|
|
\section{Conclusions} |
|
|
|
\blindtext{1} |
|
|
|
|
|
|
|
\end{document} |
|
|
|
%%% Local Variables: |
|
|
|
%%% mode: latex |
|
|
|
%%% TeX-master: t |
|
|
|
%%% End: |