From 8ef720817dcba97645dc0d92cd688820e8860e41 Mon Sep 17 00:00:00 2001 From: raffitz Date: Sat, 12 Mar 2022 11:45:11 +0000 Subject: [PATCH] Add template --- .gitignore | 141 +++++++++++++++++++++++++++++++++++++++++++++++++++++ compile.sh | 15 ++++++ main.tex | 19 ++++++++ 3 files changed, 175 insertions(+) create mode 100644 .gitignore create mode 100755 compile.sh create mode 100644 main.tex diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d2c6a5e --- /dev/null +++ b/.gitignore @@ -0,0 +1,141 @@ +# ---> TeX +## Core latex/pdflatex auxiliary files: +*.aux +*.lof +*.log +*.lot +*.fls +*.out +*.toc + +## 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 + +#(e)ledmac/(e)ledpar +*.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 + +# gnuplottex +*-gnuplottex-* + +# hyperref +*.brf + +# knitr +*-concordance.tex +*.tikz +*-tikzDictionary + +# listings +*.lol + +# makeidx +*.idx +*.ilg +*.ind +*.ist + +# minitoc +*.maf +*.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/ + +# TikZ & PGF +*.dpth +*.md5 +*.auxlock + +# todonotes +*.tdo + +# xindy +*.xdy + +# WinEdt +*.bak +*.sav + +# Build directory +build +build/* diff --git a/compile.sh b/compile.sh new file mode 100755 index 0000000..78b68d5 --- /dev/null +++ b/compile.sh @@ -0,0 +1,15 @@ +#!/usr/bin/env bash + +DOCNAME=${1:-'main.tex'} +BUILDDIR=${2:-'build'} + +set -e + +if [[ ! -d "${BUILDDIR}/${BUILDDIR}" ]]; then + mkdir -p ${BUILDDIR}/${BUILDDIR} + mkdir -p ${BUILDDIR}/${BUILDDIR}/tikz + mkdir -p ${BUILDDIR}/tikz + mkdir -p tikz +fi + +xelatex -shell-escape -output-directory ${BUILDDIR} ${DOCNAME} diff --git a/main.tex b/main.tex new file mode 100644 index 0000000..f9f3101 --- /dev/null +++ b/main.tex @@ -0,0 +1,19 @@ +\documentclass[a4paper,11pt,titlepage]{article} + +\usepackage[utf8]{inputenc} +\usepackage[top=2.5cm, bottom=2.5cm, left=2.5cm, right=2.5cm]{geometry} +\usepackage{indentfirst} +\usepackage{hyperref} + +\title{Document Template} +\date{\today} +\author{Rafael Gonçalves\thanks{The template author need not be credited in further documents that were based on it}} + +\begin{document} +\maketitle + +% \section{Section} + +% Content + +\end{document}