This repository has been archived on 2026-08-30. You can view files and clone it, but cannot push or open issues or pull requests.
Ravenous-LaTeX/Misc/Setup.tex

86 lines
3.4 KiB
TeX

\usepackage{silence} % A way to supress warnings
\usepackage[utf8]{inputenc} % "Resolves" input encoding
\usepackage[T1]{fontenc} % "Resolves" font encoding
\usepackage{geometry} % Base geometry package
% \usepackage{mathtools} % Tools for mathmode manipulations
\usepackage{graphicx} % Base graphic package
\usepackage{wrapfig} % Wrap figures in text
\usepackage{parskip} % Change paragraph spacing
\usepackage{hyphenat} % Hyphenation
\usepackage{transparent} % Have transparent graphics (as in alpha)
\usepackage{forloop} % For loop for macros
\usepackage[french]{babel} % Grammar rules
\usepackage[explicit,compact]{titlesec} % Title and sections
\usepackage{amssymb} % Symbol library
\usepackage{xfrac} % Have 1/2 fractions on single characters
\usepackage{pdflscape} % PDF in landscape
\usepackage{epstopdf} % Auto resize graphics
\usepackage{multicol} % Have multiple columns per page
\usepackage[table]{xcolor} % Color package
\usepackage[most]{tcolorbox} % Table with color/colorboxes
\tcbuselibrary{skins} % Adds skins to tcolobox
\usepackage[normalem]{ulem} % Replaces \cancel with \sout
\usepackage{tabularray} % Greatest tables so far
\UseTblrLibrary{amsmath,booktabs,counter,diagbox,nameref,varwidth,zref}
\usepackage{longtable} % Table that span multiple pages
% \usepackage{tabularx} % Have auto resizable tables
\usepackage{tkz-graph} % Great tkz graphs !
\usepackage{etoolbox} % gives \ifblank, \ifdefstring, etc.
\usepackage{wasysym}
% TODO: delete later
\usepackage{lipsum}
\usepackage{fontawesome5} % Symbol font
% \usepackage{makecell} % Linebreak in cells
% How our graphics behave
\epstopdfDeclareGraphicsRule{.pdf}{png}{.png}{convert #1 \OutputFile}
\DeclareGraphicsExtensions{.png,.pdf,.svg}
% How our glossaries behave
\usepackage[nopostdot, style=super, nonumberlist, toc]{glossaries}
\glsenablehyper
\setglossarystyle{altlistgroup}
% How to have pictures in paragraphs
\usepackage{picinpar}
% How our images behave
\graphicspath{ {./Images/} }
% Configure the document and margins
\titleformat{\chapter}[hang] {\bfseries\huge}{\filright\huge\thechapter.}{1ex}{\huge\filright #1}
\titlespacing{\chapter}{0pt}{-10pt}{*2}
\newcounter{ct}
\geometry{
a4paper,
left=25mm,
top=20mm,
right=20mm,
bottom=25mm,
}
% All glossaries and definition
\input{Misc/Definitions.tex}
% All macros
\input{Misc/Shortcuts.tex}
% Mutes the overfull/underfull box
% \overfullrule=10mm
% \WarningsOff[tabularx]
\hbadness=99999
\vbadness=99999
\usepackage{lmodern} % Changes font for a microtype font
\usepackage{microtype} % Adds microtype features (reduces overflow by 50%)
\usepackage[hidelinks]{hyperref} % Adds the \nameref command % Best practice says: load last
% Featureless format for longtables
\UseTblrLibrary{varwidth}
\DefTblrTemplate{contfoot-text}{default}{}
\DefTblrTemplate{conthead-text}{default}{}
\DefTblrTemplate{conthead}{default}{}
\DefTblrTemplate{caption}{default}{}%\vspace{-1em}}
\DefTblrTemplate{capcont}{default}{}