hardware-init-review/packages.tex

84 lines
2.3 KiB
TeX
Raw Normal View History

2024-07-24 17:00:17 +02:00
% -*- coding: utf-8 -*-
2024-08-22 15:38:22 +02:00
% Copyright (C) 2024 Adrien 'neox' Bourmault <neox@gnu.org>
%
% Permission is granted to copy, distribute and/or modify this document
% under the terms of the GNU Free Documentation License, Version 1.3
% or any later version published by the Free Software Foundation;
% with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
% A copy of the license is included in the section entitled "GNU
% Free Documentation License".
2024-07-24 17:00:17 +02:00
\documentclass[french, 11pt]{report}
2024-08-26 19:19:02 +02:00
\usepackage{silence}
2024-08-25 11:54:54 +02:00
\usepackage[utf8]{inputenc}
\usepackage{url}
\usepackage{float}
\usepackage{fontspec}
\usepackage[hidelinks]{hyperref}
\usepackage{setspace}
\usepackage[style=numeric]{biblatex}
\usepackage{tocloft}
\usepackage{titlesec}
\usepackage[T1]{fontenc}
\usepackage[english]{babel}
\usepackage{graphicx}
\usepackage{listing}
\usepackage{minted}
\usepackage{xcolor}
\usepackage{chngcntr}
\usepackage{changepage}
\usepackage{array}
\usepackage{tikz}
\usetikzlibrary{automata, positioning}
\usepackage[a4paper, portrait, margin=1.45cm]{geometry}
2024-07-24 17:00:17 +02:00
% Set parameters
2024-08-27 14:14:41 +02:00
% No warnings
2024-08-26 19:19:02 +02:00
\WarningsOff
2024-08-27 14:14:41 +02:00
% No message for text justification
\hbadness=10000
% Start at page 0
2024-07-24 17:00:17 +02:00
\setcounter{page}{0}
2024-08-27 14:14:41 +02:00
% Link every toc element
2024-07-24 17:00:17 +02:00
\hypersetup{linktoc=all}
2024-08-27 14:14:41 +02:00
% Enhance footnotes
2024-07-24 17:00:17 +02:00
\addtolength{\skip\footins}{0.6pc}
\renewcommand*\footnoterule{} %Footnode separator line
2024-08-27 13:27:07 +02:00
%\def\siecle#1{\textsc{\romannumeral #1}\textsuperscript{e}~siècle}
2024-07-24 17:00:17 +02:00
2024-08-27 14:14:41 +02:00
% Place dots on sections in toc
2024-07-24 17:00:17 +02:00
\renewcommand{\cftsecleader}{\cftdotfill{\cftdotsep}} %places dots on sections lines as well
2024-08-27 14:14:41 +02:00
% Tweak auto-tabulations
2024-07-24 17:00:17 +02:00
\cftsetindents{section}{0pt}{4em}
\cftsetindents{subsection}{10pt}{4em}
\cftsetindents{subsubsection}{20pt}{4em}
\cftsetindents{paragraph}{30pt}{4em}
\cftsetindents{subparagraph}{40pt}{4em}
\def\cftdotsep{1}
\cftsetpnumwidth{1em}
2024-08-27 14:14:41 +02:00
\setlength\parindent{0pt}
2024-07-24 17:00:17 +02:00
2024-08-27 14:14:41 +02:00
% Defaults space before chapters
2024-07-24 17:00:17 +02:00
\renewcommand{\cftchapafterpnum}{\vspace{\cftbeforechapskip}}
2024-08-27 14:14:41 +02:00
% Sans-serif, of course
\renewcommand{\familydefault}{\sfdefault}
2024-08-21 21:27:29 +02:00
2024-08-27 14:14:41 +02:00
% Configure listings
2024-08-21 21:27:29 +02:00
\usemintedstyle{solarized-light}
\definecolor{bg}{HTML}{FAF9F6}
\definecolor{linenumcolor}{rgb}{0.6, 0.6, 0.6} % Light gray color
%\renewcommand{\theFancyVerbLine}{\textcolor{linenumcolor}{\arabic{FancyVerbLine}}}
\setminted{
linenos,
numbersep=5pt,
bgcolor=bg
}