From 1e36c1afadaddf7e42f182f1983ad0d1309909ef Mon Sep 17 00:00:00 2001 From: William Desportes Date: Mon, 3 Oct 2022 19:15:39 +0200 Subject: [PATCH] Apply preferences --- src/lib.rs | 54 ++++++++++++++++++++---------------------------------- 1 file changed, 20 insertions(+), 34 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 98d7d83..d9d9cf2 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,42 +1,28 @@ use convert_case::{Case, Casing}; use pulldown_cmark::{Event, Parser, Tag}; -pub const LATEX_HEADER: &str = r#"\documentclass{scrartcl} -\usepackage{graphicx} +pub const LATEX_HEADER: &str = r#"\documentclass[a4paper,10pt,twoside=no]{scrartcl} \usepackage{hyperref} -\usepackage{listings} -\usepackage{xcolor} -\definecolor{colKeys}{rgb}{0,0.5,0} -\definecolor{colIdentifier}{rgb}{0,0,0} -\definecolor{colComments}{rgb}{0,0.5,1} -\definecolor{colString}{rgb}{0.6,0.1,0.1} -\definecolor{colBackground}{rgb}{0.95,0.95,1} -\lstset{%configuration de listings - float=hbp,% - basicstyle=\ttfamily\small,% - % - identifierstyle=\color{colIdentifier}, % - keywordstyle=\color{colKeys}, % - stringstyle=\color{colString}, % - commentstyle=\color{colComments}\textit, % - % - backgroundcolor=\color{colBackground},% - % - columns=flexible, % - tabsize=2, % - frame=trbl, % - %frameround=tttt,% - extendedchars=true, % - showspaces=false, % - showstringspaces=false, % - numbers=left, % - numberstyle=\tiny, % - breaklines=true, % - breakautoindent=true, % - captionpos=b,% - xrightmargin=0.2cm, % - xleftmargin=0.2cm +\usepackage[utf8]{inputenc} +\usepackage[T1]{fontenc} +\usepackage{lmodern} +\usepackage{authblk} + +\title{phpMyAdmin report} +\author{William Desportes\thanks{williamdes@wdes.fr}} + +\hypersetup{ + hidelinks = true } + +\makeatletter +\AtBeginDocument{ + \hypersetup{ + pdftitle = {\@title}, + pdfauthor = {\@author} + } +} +\makeatother \begin{document} "#;