Skip to content

Instantly share code, notes, and snippets.

@aaossa
Last active July 8, 2016 23:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aaossa/77695f1ea545da9bf3f7 to your computer and use it in GitHub Desktop.
Save aaossa/77695f1ea545da9bf3f7 to your computer and use it in GitHub Desktop.
Template Tareas en LaTeX
## Core latex/pdflatex auxiliary files:
*.aux
*.lof
*.log
*.lot
*.fls
*.out
*.toc
*.fmt
*.fot
*.cb
*.cb2
## Intermediate documents:
*.dvi
*-converted-to.*
# these rules might exclude image files for figures etc.
# *.ps
# *.eps
# *.pdf
## Bibliography auxiliary files (bibtex/biblatex/biber):
*.bbl
*.bcf
*.blg
*-blx.aux
*-blx.bib
*.brf
*.run.xml
## Build tool auxiliary files:
*.fdb_latexmk
*.synctex
*.synctex.gz
*.synctex.gz(busy)
*.pdfsync
## Auxiliary and intermediate files from other packages:
# algorithms
*.alg
*.loa
# achemso
acs-*.bib
# amsthm
*.thm
# beamer
*.nav
*.snm
*.vrb
# cprotect
*.cpt
# fixme
*.lox
#(r)(e)ledmac/(r)(e)ledpar
*.end
*.?end
*.[1-9]
*.[1-9][0-9]
*.[1-9][0-9][0-9]
*.[1-9]R
*.[1-9][0-9]R
*.[1-9][0-9][0-9]R
*.eledsec[1-9]
*.eledsec[1-9]R
*.eledsec[1-9][0-9]
*.eledsec[1-9][0-9]R
*.eledsec[1-9][0-9][0-9]
*.eledsec[1-9][0-9][0-9]R
# glossaries
*.acn
*.acr
*.glg
*.glo
*.gls
*.glsdefs
# gnuplottex
*-gnuplottex-*
# hyperref
*.brf
# knitr
*-concordance.tex
# TODO Comment the next line if you want to keep your tikz graphics files
*.tikz
*-tikzDictionary
# listings
*.lol
# makeidx
*.idx
*.ilg
*.ind
*.ist
# minitoc
*.maf
*.mlf
*.mlt
*.mtc
*.mtc[0-9]
*.mtc[1-9][0-9]
# minted
_minted*
*.pyg
# morewrites
*.mw
# mylatexformat
*.fmt
# nomencl
*.nlo
# sagetex
*.sagetex.sage
*.sagetex.py
*.sagetex.scmd
# sympy
*.sout
*.sympy
sympy-plots-for-*.tex/
# pdfcomment
*.upa
*.upb
# pythontex
*.pytxcode
pythontex-files-*/
# thmtools
*.loe
# TikZ & PGF
*.dpth
*.md5
*.auxlock
# todonotes
*.tdo
# easy-todo
*.lod
# xindy
*.xdy
# xypic precompiled matrices
*.xyc
# endfloat
*.ttt
*.fff
# Latexian
TSWLatexianTemp*
## Editors:
# WinEdt
*.bak
*.sav
# Texpad
.texpadtmp
# Kile
*.backup
# KBibTeX
*~[0-9]*

Template tareas en LaTeX

Este template está pensado para alumnos de la Escuela de Ingeniería de la Pontificia Universidad Católica de Chile. Cualquier persona puede usarlo y modificarlo según su necesidad

Actualmente las preguntas quedan en hojas separadas. Espero pronto poder cubrir el caso en que se prefieran las preguntas en una misma hoja.

\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage{amsmath,amsthm,amssymb,amsfonts,mathrsfs,latexsym,stmaryrd}
\usepackage{color}
\usepackage{fullpage}
\usepackage{graphicx}
\usepackage{textpos}
% Usando nuevos comandos para las variables
\newcommand{\departamentoinsert}{}
\newcommand{\departamento}[1]{\renewcommand{\departamentoinsert}{#1}}
\newcommand{\nombrealumnoinsert}{}
\newcommand{\nombrealumno}[1]{\renewcommand{\nombrealumnoinsert}{#1}}
\newcommand{\nombreprofesorinsert}{}
\newcommand{\nombreprofesor}[1]{\renewcommand{\nombreprofesorinsert}{#1}}
\newcommand{\ramonombreinsert}{}
\newcommand{\ramonombre}[1]{\renewcommand{\ramonombreinsert}{#1}}
\newcommand{\ramosiglainsert}{}
\newcommand{\ramosigla}[1]{\renewcommand{\ramosiglainsert}{#1}}
% Pregunta (en hojas separadas)
\newenvironment{seccion}[1][seccion]
{
% Nueva pagina
\pagebreak
% Reinicio de conteo de paginas
\setcounter{page}{1}
% Logo UC
\vspace*{-2.0cm}
\includegraphics[width=2cm]{uc.png}
\vspace*{-1.9cm}
% Datos administrativos
\hspace*{2.1cm}
\begin{tabular}{l}
\sc Pontificia Universidad Católica de Chile \\
\sc Escuela de Ingeniería \\
\sc Departamento de \departamentoinsert \\
\sc 2$^{\circ}$ semestre 2016
\end{tabular}
\bigskip
% Datos curso, profesor y alumno
\vspace*{5mm}
\begin{center}
{\large \ramosiglainsert --- \ramonombreinsert} \\
\vspace{3mm}
{\large Profesor: \nombreprofesorinsert} \\
{\large Alumno: \nombrealumnoinsert} \\
\vspace{3mm}
{\LARGE \bf #1 } \\
\vspace{2mm}
\rule{\textwidth}{0.05mm}
\end{center}
}{}
\documentclass[letter]{article}
% Packages
\usepackage{Style}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{enumerate}
\usepackage{indentfirst}
\usepackage[shortlabels]{enumitem}
\usepackage{titlesec}
% Definicion de variables
\departamento{DEPARTAMENTO}
\nombrealumno{ALUMNO}
\nombreprofesor{PROFESOR}
\ramonombre{NOMBRE RAMO}
\ramosigla{XXX0000}
% Alineacion de parrafos
\renewcommand\thesection{\Alph{section}}
\titleformat{\section}
{\normalfont\Large\bfseries}
{\makebox[\mylen][l]{\thesection.}}
{0pt}
{}
\begin{document}
% Seccion 1
\begin{seccion}[Pregunta 1]
% Contenido
Hola soy \textbf{\nombrealumnoinsert} y mi función cuadrática favortita es $x^2 + 1$
\end{seccion}
% Seccion 2
\begin{seccion}[Pregunta 2]
% Contenido
Hola soy \textbf{\nombrealumnoinsert} y mi función cuadrática favortita es $x^2 + 1$
\end{seccion}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment