diff options
author | Benjamin Chausse <benjamin@chausse.xyz> | 2024-08-31 14:45:16 -0400 |
---|---|---|
committer | Benjamin Chausse <benjamin@chausse.xyz> | 2024-08-31 14:45:16 -0400 |
commit | 6d0e22dac8baab22f90289a43cdb371265028f1d (patch) | |
tree | 3470bc09620b2cb3ab7a2e098b819365014ea0f9 | |
parent | 1666bb7340646e33c4321d78384978067b565d72 (diff) |
Blank presetation using template
-rw-r--r-- | .gitignore | 308 | ||||
-rw-r--r-- | document.sty | 72 | ||||
-rw-r--r-- | main.tex | 79 | ||||
-rw-r--r-- | titlepage.sty | 69 |
4 files changed, 480 insertions, 48 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..719c9d7 --- /dev/null +++ b/.gitignore @@ -0,0 +1,308 @@ +# Swap +[._]*.s[a-v][a-z] +!*.svg # comment out if you don't need vector files +[._]*.sw[a-p] +[._]s[a-rt-v][a-z] +[._]ss[a-gi-z] +[._]sw[a-p] + +# Session +Session.vim +Sessionx.vim + +# Temporary +.netrwhist +*~ +# Auto-generated tag files +tags +# Persistent undo +[._]*.un~ + +## Core latex/pdflatex auxiliary files: +*.aux +*.lof +*.log +*.lot +*.fls +*.out +*.toc +*.fmt +*.fot +*.cb +*.cb2 +.*.lb + +## Intermediate documents: +*.dvi +*.xdv +*-converted-to.* +# these rules might exclude image files for figures etc. +# *.ps +# *.eps +# *.pdf + +## Generated if empty string is given at "Please type another file name for output:" +main.pdf + +## Bibliography auxiliary files (bibtex/biblatex/biber): +*.bbl +*.bcf +*.blg +*-blx.aux +*-blx.bib +*.run.xml + +## Build tool auxiliary files: +*.fdb_latexmk +*.synctex +*.synctex(busy) +*.synctex.gz +*.synctex.gz(busy) +*.pdfsync + +## Build tool directories for auxiliary files +# latexrun +latex.out/ + +## Auxiliary and intermediate files from other packages: +# algorithms +*.alg +*.loa + +# achemso +acs-*.bib + +# amsthm +*.thm + +# beamer +*.nav +*.pre +*.snm +*.vrb + +# changes +*.soc + +# comment +*.cut + +# cprotect +*.cpt + +# elsarticle (documentclass of Elsevier journals) +*.spl + +# endnotes +*.ent + +# fixme +*.lox + +# feynmf/feynmp +*.mf +*.mp +*.t[1-9] +*.t[1-9][0-9] +*.tfm + +#(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 +*.lzo +*.lzs + +# uncomment this for glossaries-extra (will ignore makeindex's style files!) +# *.ist + +# gnuplottex +*-gnuplottex-* + +# gregoriotex +*.gaux +*.glog +*.gtex + +# htlatex +*.4ct +*.4tc +*.idv +*.lg +*.trc +*.xref + +# hyperref +*.brf + +# knitr +*-concordance.tex +# TODO Uncomment the next line if you use knitr and want to ignore its generated tikz files +# *.tikz +*-tikzDictionary + +# listings +*.lol + +# luatexja-ruby +*.ltjruby + +# makeidx +*.idx +*.ilg +*.ind + +# minitoc +*.maf +*.mlf +*.mlt +*.mtc[0-9]* +*.slf[0-9]* +*.slt[0-9]* +*.stc[0-9]* + +# minted +_minted* +*.pyg + +# morewrites +*.mw + +# newpax +*.newpax + +# nomencl +*.nlg +*.nlo +*.nls + +# pax +*.pax + +# pdfpcnotes +*.pdfpc + +# sagetex +*.sagetex.sage +*.sagetex.py +*.sagetex.scmd + +# scrwfile +*.wrt + +# sympy +*.sout +*.sympy +sympy-plots-for-*.tex/ + +# pdfcomment +*.upa +*.upb + +# pythontex +*.pytxcode +pythontex-files-*/ + +# tcolorbox +*.listing + +# thmtools +*.loe + +# TikZ & PGF +*.dpth +*.md5 +*.auxlock + +# todonotes +*.tdo + +# vhistory +*.hst +*.ver + +# easy-todo +*.lod + +# xcolor +*.xcp + +# xmpincl +*.xmpi + +# xindy +*.xdy + +# xypic precompiled matrices and outlines +*.xyc +*.xyd + +# endfloat +*.ttt +*.fff + +# Latexian +TSWLatexianTemp* + +## Editors: +# WinEdt +*.bak +*.sav + +# Texpad +.texpadtmp + +# LyX +*.lyx~ + +# Kile +*.backup + +# gummi +.*.swp + +# KBibTeX +*~[0-9]* + +# TeXnicCenter +*.tps + +# auto folder when using emacs and auctex +./auto/* +*.el + +# expex forward references with \gathertags +*-tags.tex + +# standalone packages +*.sta + +# Makeindex log files +*.lpz + +# xwatermark package +*.xwm + +# REVTeX puts footnotes in the bibliography by default, unless the nofootinbib +# option is specified. Footnotes are the stored in a file with suffix Notes.bib. +# Uncomment the next line to have this generated file ignored. +#*Notes.bib diff --git a/document.sty b/document.sty new file mode 100644 index 0000000..511d030 --- /dev/null +++ b/document.sty @@ -0,0 +1,72 @@ +\ProvidesPackage{document} + + +%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~% +% Packages % +%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~% + +% Margin Setup according to University methodology: +\RequirePackage[top=2.5cm,bottom=2.5cm,inner=3cm,outer=2.5cm]{geometry} +% IEEE references & bibliography +\RequirePackage[style=ieee]{biblatex} +\RequirePackage[T1]{fontenc} % French compatibility +\RequirePackage[utf8]{inputenc} % Sensible text encoding +\RequirePackage[french]{babel} % French document environment +\RequirePackage{fancyhdr} % Footer customisation +\RequirePackage{booktabs} % Elegant tables +\RequirePackage{float} % Accurate positionning of figures +\usepackage{titlesec} % Font sizes for sections/subsection +\RequirePackage{amsmath} % Mathematics environments +\RequirePackage{amssymb} % Mathematical symbols +\RequirePackage{siunitx} % SI Units +\RequirePackage{setspace} % Line spacing + +%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~% +% Headers/Footers % +%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~% + +\renewcommand{\footrulewidth}{.5pt} % Line at the bottom +\cfoot{\thepage} % Centered page number (footer) + + +%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~% +% Sections % +%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~% + +% Font size for section (16) +\titleformat{\section} +{\normalfont\fontsize{16}{19}\bfseries}{\thesection}{1em}{} +% Font size for subsection (14) +\titleformat{\subsection} +{\normalfont\fontsize{14}{17}\bfseries}{\thesubsection}{1em}{} + + +%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~% +% Equations/Math % +%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~% + +% Number equation with section number (ex: First equation in section 3 is 3.1) +\numberwithin{equation}{section} +% Use french commas when writing numbers +\sisetup{locale=FR} + + +%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~% +% Line Spacing % +%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~% + +% Set 1.5 linespacing for the document +\onehalfspacing + + +%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~% +% Figures/Tables % +%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~% + +% Count within sections (third table of section 5 would be Table 5.3) +\counterwithin{figure}{section} +\counterwithin{table}{section} +% Separate section number from fig/table with a hyphen (5-3 instead of 5.3) +\renewcommand{\thefigure}{\thesection-\arabic{figure}} +\renewcommand{\thetable}{\thesection-\arabic{table}} + @@ -1,54 +1,37 @@ -\documentclass[a11paper]{article} - -\title{Notes LinUS} - +\documentclass[a11paper, 11pt]{article} + +\usepackage{document} +\usepackage{titlepage} +\usepackage[T1]{fontenc} +\usepackage[french]{babel} + +% \addbibresource{bibliography.bib} +\nofiles + +% \institution{Université de Sherbrooke} +% \faculty{Faculté de génie} +% \department{Département de génie électrique et de génie informatique} +\title{Titre du document} +\classnb{GEN420} +\class{Mathématiques des circuits logiques} +\author{ + \addtolength{\tabcolsep}{-0.4em} + \begin{tabular}{rcl} % Ajouter des auteurs au besoin + Prénom Nom & -- & CIP \\ + \end{tabular} +} +% \teacher{Benjamin Chausse} +% \location{Sherbrooke} +% \date{\today} \begin{document} +\maketitle +\newpage +% \tableofcontents +% \newpage -\section{Ce qu'on as} - -\subsection{Vision} -\begin{itemize} - \item Hub/Communaute d'entraide - \item Aide technique au autres groupes etudiants (hosting de site web) - \item Creation/distribution de connaissances techniques (wikis, guides, scripts, gabarits) - \item Hebergement de miroirs Linux (comme csclub.uwaterloo.ca) -\end{itemize} - -\section{ToDo} - -\begin{itemize} - \item Contacter Roberto - \begin{itemize} - \item Personnes interressees - \item les serveurs - \item vieux ordis - \item contactS Gulus (simon + John Doe) - \end{itemize} - \item Document \LaTeX de presentation - \begin{itemize} - \item Les buts du groupe - \item Nos attentes d'eux autres - \item Notre Timeline de projet - \item Ce qu'on a deja fait (TBD) - \item Personnes deja interresses (fourni par rob) - \item - \item - \item - \item - - \end{itemize} -\end{itemize} - -\section{Misc} -\begin{itemize} - \item nous avons deja un gabarit de rapport \LaTeX qui suit le - guide de redaction aux etudes sup. (il faudrait peut-etre ajouter - quelques sane defaults comme amsmath) - \item Nous avons un debut de guide sur comment utiliser \LaTeX. - On pourrait le complementer pour faire un guide plus complet. - \item -\end{itemize} +% \newpage +% \printbibliography[heading=bibintoc] \end{document} diff --git a/titlepage.sty b/titlepage.sty new file mode 100644 index 0000000..72caa5b --- /dev/null +++ b/titlepage.sty @@ -0,0 +1,69 @@ +\ProvidesPackage{titlepage}[ +Sherbrooke Engineering Title Page by Benjamin Chausse +] +\RequirePackage{setspace} +\RequirePackage{tabularx} +\RequirePackage[french]{babel} + +%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~% +% Plain Definitions % +%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~% +\newcommand*{\institution}[1]{\gdef\@institution{#1}} +\newcommand*{\faculty}[1]{\gdef\@faculty{#1}} +\newcommand*{\department}[1]{\gdef\@department{#1}} +\renewcommand*{\title}[1]{\gdef\@title{#1}} +\newcommand*{\class}[1]{\gdef\@class{#1}} +\newcommand*{\classnb}[1]{\gdef\@classnb{#1}} +\newcommand*{\presentation}[1]{\gdef\@presentation{#1}} +\newcommand*{\teacher}[1]{\gdef\@teacher{#1}} +\renewcommand*{\author}[1]{\gdef\@author{#1}} +\newcommand*{\location}[1]{\gdef\@location{#1}} + +%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~% +% Templated Definitions % +%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~% +\newcommand*{\@institution}{Université de Sherbrooke} +\newcommand*{\@faculty}{Faculté de génie} +\newcommand*{\@department}{Département de génie électrique et de génie informatique} +\renewcommand*{\@title}{Titre du document} +\newcommand*{\@class}{Mathématiques des circuits logiques} +\newcommand*{\@classnb}{GEN420} +\newcommand*{\@presentation}{Présenté à} +\newcommand*{\@teacher}{Prénom Nom} +\renewcommand*{\@author}{Prénom Nom -- CIP} +\newcommand*{\@location}{Sherbrooke} + +% Simple Macro +\newcommand{\usp}{\unskip\strut\par} + +%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~% +% Updated Title Page Template % +%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~% +\renewcommand*{\maketitle}{ +\begin{titlepage} + % \centering\LARGE\setstretch{.7} + \centering\normalsize + + {\MakeUppercase{\@institution}\usp} + {\@faculty\usp} + {\@department} + \vfill + + {\LARGE{\@title}} + \vfill + + {\@class\usp} + {\@classnb} + \vfill + + {\@presentation\usp} + {\@teacher} + \vfill + + {Présenté par\usp} + {\@author} + \vfill + + {\large \@location\ -- \@date\usp} +\end{titlepage} +} |