Apply preferences
This commit is contained in:
parent
e21c9a7619
commit
1e36c1afad
54
src/lib.rs
54
src/lib.rs
|
@ -1,42 +1,28 @@
|
||||||
use convert_case::{Case, Casing};
|
use convert_case::{Case, Casing};
|
||||||
use pulldown_cmark::{Event, Parser, Tag};
|
use pulldown_cmark::{Event, Parser, Tag};
|
||||||
|
|
||||||
pub const LATEX_HEADER: &str = r#"\documentclass{scrartcl}
|
pub const LATEX_HEADER: &str = r#"\documentclass[a4paper,10pt,twoside=no]{scrartcl}
|
||||||
\usepackage{graphicx}
|
|
||||||
\usepackage{hyperref}
|
\usepackage{hyperref}
|
||||||
\usepackage{listings}
|
\usepackage[utf8]{inputenc}
|
||||||
\usepackage{xcolor}
|
\usepackage[T1]{fontenc}
|
||||||
\definecolor{colKeys}{rgb}{0,0.5,0}
|
\usepackage{lmodern}
|
||||||
\definecolor{colIdentifier}{rgb}{0,0,0}
|
\usepackage{authblk}
|
||||||
\definecolor{colComments}{rgb}{0,0.5,1}
|
|
||||||
\definecolor{colString}{rgb}{0.6,0.1,0.1}
|
\title{phpMyAdmin report}
|
||||||
\definecolor{colBackground}{rgb}{0.95,0.95,1}
|
\author{William Desportes\thanks{williamdes@wdes.fr}}
|
||||||
\lstset{%configuration de listings
|
|
||||||
float=hbp,%
|
\hypersetup{
|
||||||
basicstyle=\ttfamily\small,%
|
hidelinks = true
|
||||||
%
|
|
||||||
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
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
\makeatletter
|
||||||
|
\AtBeginDocument{
|
||||||
|
\hypersetup{
|
||||||
|
pdftitle = {\@title},
|
||||||
|
pdfauthor = {\@author}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
\makeatother
|
||||||
\begin{document}
|
\begin{document}
|
||||||
"#;
|
"#;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue