Skip to content

Instantly share code, notes, and snippets.

@nebil
Last active July 15, 2016 02:55
Show Gist options
  • Save nebil/c9387bf77856dd4ebe18 to your computer and use it in GitHub Desktop.
Save nebil/c9387bf77856dd4ebe18 to your computer and use it in GitHub Desktop.
📋 texplates – some useful LaTeX templates

texplates

Descripción

Para no inventar la rueda por enésima vez, esta carpeta almacenará mis plantillas de LaTeX.
Luego, estos archivos deben ser subidos a un gist de GitHub.

Contenido

Nombre Descripción
nebmode.sty La principal hoja de estilos.
homework.tex Para trabajos en general.
lecture.tex Para presentaciones.
titlepage.tex Para portadas en general.

Notas

El nombre de este archivo (.readme.md) empieza con un punto para que Ubuntu no lo muestre como un template.

Licencia

Creative Commons License
Estos documentos están bajo una licencia Creative Commons 4.0.

%% ==================== %%
%% author={Nebil Kawas} %%
%% ==================== %%
\documentclass[11pt]{article}
\usepackage{nebmode}
% enable these packages in 'nebmode'.
\usepackage[framemethod=TiKZ]{mdframed}
\mdfsetup{%
leftmargin=8em,
rightmargin=8em,
roundcorner=3pt,
outerlinewidth=1pt,
backgroundcolor=green!15,
}
\begin{document}
\metadata{Título}{Una breve descripción.}
\begin{mdframed}
\centering
\section*{Un pequeño título}
\end{mdframed}
\bigskip
\section{}
\label{sec:abc}
\section{}
\label{sec:xyz}
\end{document}
%% ==================== %%
%% author={Nebil Kawas} %%
%% ==================== %%
\documentclass[14pt]{beamer}
\usepackage{nebmode}
% enable these packages in 'nebmode'.
\usepackage{tgheros}
% theme and metadata.
\usetheme{default}
\usefonttheme{default}
\usecolortheme{wolverine}
\metadata{}{Una breve descripción.}
\title[]{Título}
\author[Nebil Kawas]{
Nebil Kawas García
\texorpdfstring{\\ [email protected]}{}}
\institute[PUC]{
Pontificia Universidad Católica de Chile \\
Escuela de Ingeniería}
\date[]{}
\begin{document}
\maketitle
\end{document}
%% ==================== %%
%% author={Nebil Kawas} %%
%% ==================== %%
%% ============================ %%
%% LAYOUT + LANGUAGE + ENCODING %%
%% ============================ %%
% PACKAGE NAME % THIS PACKAGE WAS DESIGNED TO PROVIDE... %
% ============ % ============================================================= %
% geometry % Flexible and complete interface to document dimensions. %
% fancyhdr % Extensive control of page headers and footers. %
% layout % Overview of the current document layout. %
% inputenc % Standard package for accepting input encodings. %
% fontenc % Standard package for selecting font encodings. %
% babel % Culturally-determined typographical rules, and %
% ----- % hyphenation patterns for a wide range of languages. %
\usepackage[letterpaper]{geometry}
% \geometry{%
% letterpaper,
% hmargin=1in,
% headheight=15pt,
% }
% \usepackage{fancyhdr}
% \pagestyle{fancy}
% \lhead{\textit{}}
% \rhead{\textit{}}
% \usepackage{layout}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[spanish,es-tabla]{babel}
%% ==================== %%
%% HANDPICKED TYPEFACES %%
%% ==================== %%
% PACKAGE NAME % THIS PACKAGE WAS DESIGNED TO PROVIDE... % 3L-KEYWORD %
% ============ % ================================================ % ========== %
% lmodern % Font family that enhances Computer Modern fonts. % lmr %
% tgcursor % Font family that extends URW Nimbus Mono L. % qcr %
% tgheros % Font family that extends URW Nimbus Sans L. % qhv %
% tgpagella % Font family that extends URW Palladio L. % qpl %
% tgschola % Font family that extends URW Schoolbook L. % qcs %
% tgtermes % Font family that extends URW Nimbus Roman. % qtm %
% droid % LaTeX support for the Droid font family. % fdr/fds %
% lato % LaTeX support for the Lato font family. % fla %
\usepackage{lmodern}
% \usepackage{tgcursor}
% \usepackage{tgheros}
% \usepackage{tgpagella}
% \usepackage{tgschola}
% \usepackage{tgtermes}
% \usepackage{droid}
% \usepackage[default]{lato}
% \renewcommand*{\familydefault}{\ttdefault} % enable for sans-serif document.
%% ====================== %%
%% MATHĒMATICA ET CAETERA %%
%% ====================== %%
% PACKAGE NAME % THIS PACKAGE WAS DESIGNED TO PROVIDE... %
% ============ % ============================================================= %
% amsmath % AMS mathematical facilities. %
% amsfonts % Extended set of fonts for use in mathematics. %
% mathtools % Mathematical tools to utilize with *amsmath*. %
% microtype % Subliminal refinements towards typographical perfection. %
% xcolor % Driver-independent color extensions. %
% caption % Many ways to customize the captions in floating environments. %
% array % Extended options for column formats, and %
% ----- % *programmable* format specifications in tabular environments. %
% enumitem % Control over the layout of the three basic list environments: %
% -------- % *enumerate*, *itemize*, *description*. %
% graphicx % Consistent inclusion of graphics. %
% hyperref % Extensive support for hypertext. %
% secsty % Control over sectional headers. %
% \usepackage{amsmath}
% \usepackage{amsfonts}
% \usepackage{mathtools}
\usepackage[stretch=25]{microtype} % default value = 20.
\usepackage{xcolor}
% \usepackage[hypcap]{caption}
% \usepackage{array}
% \usepackage{enumitem}
% \usepackage{graphicx}
% \graphicspath{ {./img/} }
\usepackage{hyperref}
\hypersetup{%
urlcolor=magenta!85!black,
linkcolor=blue!50!black,
colorlinks=true,
}
\usepackage{sectsty}
\allsectionsfont{\fontfamily{qpl}\selectfont} % 'URW Palladio L' for sections.
% \usepackage[framemethod=TiKZ]{mdframed}
% \mdfsetup{%
% leftmargin=8em,
% rightmargin=8em,
% roundcorner=3pt,
% outerlinewidth=1pt,
% backgroundcolor=green!15,
% }
%% ============ %%
%% LaTeX MACROS %%
%% ============ %%
\renewcommand*{\texttt}[1]{\textcolor{green!40!black}{\ttfamily #1}}
\newcommand*{\metadata}[2]{
\hypersetup{%
pdftitle={#1},
pdfsubject={#2},
pdfauthor={Nebil Kawas}, % if your name is not Nebil Kawas,
% you should probably change this.
}
}
%% ==================== %%
%% author={Nebil Kawas} %%
%% ==================== %%
\documentclass[11pt]{article}
\usepackage{nebmode}
% enable these packages in 'nebmode'.
\geometry{%
letterpaper,
hmargin=1in,
vmargin=1in,
headheight=15pt,
}
\usepackage{tgpagella}
\usepackage{array}
\begin{document}
\begin{titlepage}
\begin{flushleft}
\begin{Large}
\begin{scshape}
Pontificia Universidad Católica de Chile \\
Escuela de Ingeniería \\
Departamento de Ingeniería ... \\
ABC1234 -- Nombre del curso \\[50mm]
\end{scshape}
\end{Large}
\end{flushleft}
% title & subtitle.
\centering
\rule{120mm}{1mm} \\[5mm]
{\fontsize{36}{60}\selectfont \textit{Título}} \\[2mm]
{\fontsize{24}{60}\selectfont \textit{Subtítulo}} \\[2mm]
\rule{120mm}{1mm} \\[50mm]
% people.
\begin{flushright}
\begin{Large}
\begin{tabular}{r >{\hspace{2mm}} l}
\textbf{Profesor:} & \\
\textbf{Ayudante:} & \\[5mm]
\textbf{Grupo XY:} & \\
& \\
& \\
& \\
& \\[5mm]
\textbf{Fecha:} & XX/YY/ZZZZ \\
\end{tabular}
\end{Large}
\end{flushright}
\end{titlepage}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment