|
| 1 | +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 2 | +% Cheatsheet template - ACM UPM |
| 3 | +% |
| 4 | +% Original by Michelle Cristina de Sousa Baltazar |
| 5 | +% |
| 6 | +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 7 | + |
| 8 | +\documentclass{article} |
| 9 | +\usepackage[landscape]{geometry} |
| 10 | +\usepackage{url} |
| 11 | +\usepackage{multicol} |
| 12 | +\usepackage{amsmath} |
| 13 | +\usepackage{amsfonts} |
| 14 | +\usepackage{tikz} |
| 15 | +\usepackage{amsmath,amssymb} |
| 16 | +\usepackage{colortbl} |
| 17 | +\usepackage{xcolor} |
| 18 | +\usepackage{mathtools} |
| 19 | +\usepackage{amsmath,amssymb} |
| 20 | +\usepackage{enumitem} |
| 21 | +\usepackage[spanish]{babel} |
| 22 | +\usepackage[utf8]{inputenc} |
| 23 | +\usepackage{titling} |
| 24 | + |
| 25 | + |
| 26 | +% Parámetros sin tocar de la plantilla original |
| 27 | +\advance\topmargin-.8in |
| 28 | +\advance\textheight3in |
| 29 | +\advance\textwidth3in |
| 30 | +\advance\oddsidemargin-1.5in |
| 31 | +\advance\evensidemargin-1.5in |
| 32 | +\parindent0pt |
| 33 | +\parskip2pt |
| 34 | + |
| 35 | +\tikzstyle{mybox} = [draw=black, fill=white, very thick, |
| 36 | +rectangle, rounded corners, inner sep=10pt, inner ysep=10pt] |
| 37 | +\tikzstyle{fancytitle} =[fill=black, text=white, font=\bfseries] |
| 38 | + |
| 39 | + |
| 40 | +\title{Cheatsheet - Template} |
| 41 | +\author{ACM UPM} |
| 42 | + |
| 43 | +\begin{document} |
| 44 | + |
| 45 | +\begin{center} |
| 46 | + {\huge{\textbf{\thetitle}}}\\ % del paquete titling |
| 47 | + {\large \theauthor} % del paquete titling |
| 48 | +\end{center} |
| 49 | + |
| 50 | +\begin{multicols*}{3} % Divide la hoja en 3 columnas |
| 51 | + |
| 52 | + \begin{tikzpicture} % Crea una caja |
| 53 | + \node [mybox] (box){% |
| 54 | + % Al dividirse en 3, tomamos algo menos de un tercio de la página |
| 55 | + \begin{minipage}{0.3\textwidth} |
| 56 | + Contenido de la caja. |
| 57 | + |
| 58 | + Al ir rellenando las cajas se distribuirán en las 3 columnas creadas. |
| 59 | + \end{minipage} |
| 60 | + }; |
| 61 | + % Título de la caja |
| 62 | + \node[fancytitle, right=10pt] at (box.north west) {Título de la caja}; |
| 63 | + \end{tikzpicture} |
| 64 | + |
| 65 | + \begin{tikzpicture} |
| 66 | + \node [mybox] (box){% |
| 67 | + \begin{minipage}{0.3\textwidth} % Contenido |
| 68 | + \end{minipage} |
| 69 | + }; |
| 70 | + \node[fancytitle, right=10pt] at (box.north west) {}; % Título |
| 71 | + \end{tikzpicture} |
| 72 | + |
| 73 | +\end{multicols*} |
| 74 | +\end{document} |
0 commit comments