From c56de915f2e9fc6ae2eb0697f9bd82d725306396 Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Sun, 13 Apr 2014 15:59:52 +0200 Subject: Add report template --- report/style/pascience-defaults.tex | 14 ++++++++++++++ report/style/pascience-listings.tex | 19 +++++++++++++++++++ report/style/pascience-numbering.tex | 19 +++++++++++++++++++ report/style/pascience-pages.tex | 19 +++++++++++++++++++ report/style/pascience-texts.tex | 25 +++++++++++++++++++++++++ report/style/pascience-titles.tex | 33 +++++++++++++++++++++++++++++++++ report/style/pascience-toc.tex | 5 +++++ 7 files changed, 134 insertions(+) create mode 100644 report/style/pascience-defaults.tex create mode 100644 report/style/pascience-listings.tex create mode 100644 report/style/pascience-numbering.tex create mode 100644 report/style/pascience-pages.tex create mode 100644 report/style/pascience-texts.tex create mode 100644 report/style/pascience-titles.tex create mode 100644 report/style/pascience-toc.tex (limited to 'report/style') diff --git a/report/style/pascience-defaults.tex b/report/style/pascience-defaults.tex new file mode 100644 index 0000000..7caa84a --- /dev/null +++ b/report/style/pascience-defaults.tex @@ -0,0 +1,14 @@ +%%%%%%%%%%%%%%%%%%%% +%% DEFAULTS PACKAGES +%%%%%%%%%%%%%%%%%%%% + +% Default document class and paper format +\documentclass[12pt,a4paper]{memoir} + +% Common and usefull packages +\usepackage[utf8]{inputenc} +\usepackage[T1]{fontenc} +\usepackage{microtype} +\usepackage[dvips]{graphicx} +\usepackage{xcolor} +\usepackage{times} diff --git a/report/style/pascience-listings.tex b/report/style/pascience-listings.tex new file mode 100644 index 0000000..3df3cbe --- /dev/null +++ b/report/style/pascience-listings.tex @@ -0,0 +1,19 @@ +%%%%%%%%%%%%%%%%%%%% +%% CODE LISTINGS +%%%%%%%%%%%%%%%%%%%% + +\usepackage{listings} + +\lstset{ + breaklines=true, + frame=leftline, + %frame=bottomline, + basicstyle=\small, + %numbers=left, + numberstyle=\tiny, + tabsize=2, + showstringspaces=false, + keywordstyle=\color[rgb]{0,0,1}, + commentstyle=\color[rgb]{0.133,0.545,0.133}, + stringstyle=\color[rgb]{0.627,0.126,0.941}, +} diff --git a/report/style/pascience-numbering.tex b/report/style/pascience-numbering.tex new file mode 100644 index 0000000..74d8c76 --- /dev/null +++ b/report/style/pascience-numbering.tex @@ -0,0 +1,19 @@ +%%%%%%%%%%%%%%%%%%%% +%% PAGE NUMBERING +%%%%%%%%%%%%%%%%%%%% + +%\pagestyle{companion}\nouppercaseheads +%\pagestyle{headings} +%\pagestyle{Ruled} +\pagestyle{plain} +\makepagestyle{plain} + +% PDF +\makeevenfoot{plain}{}{\thepage}{} +\makeoddfoot{plain}{}{\thepage}{} +% PRINT +%\makeevenfoot{plain}{\thepage}{}{} +%\makeoddfoot{plain}{}{}{\thepage} + +\makeevenhead{plain}{}{}{} +\makeoddhead{plain}{}{}{} diff --git a/report/style/pascience-pages.tex b/report/style/pascience-pages.tex new file mode 100644 index 0000000..ce0903d --- /dev/null +++ b/report/style/pascience-pages.tex @@ -0,0 +1,19 @@ +%%%%%%%%%%%%%%%%%%%% +%% PAGE LAYOUT +%%%%%%%%%%%%%%%%%%%% + +\usepackage{geometry} +\geometry{ + %total={210mm,297mm}, + % PDF VIEW + left=25mm,right=25mm, + top=25mm,bottom=25mm, + bindingoffset=0mm, + % PRINT + %left=22.5mm,right=22.5mm, + %top=22.5mm,bottom=22.5mm, + %bindingoffset=10mm, +} + +\widowpenalties 1 10000 +\raggedbottom diff --git a/report/style/pascience-texts.tex b/report/style/pascience-texts.tex new file mode 100644 index 0000000..fae2cf0 --- /dev/null +++ b/report/style/pascience-texts.tex @@ -0,0 +1,25 @@ +%%%%%%%%%%%%%%%%%%%% +%% TEXT STYLE +%%%%%%%%%%%%%%%%%%%% + +% Font +\renewcommand{\familydefault}{\sfdefault} + +% Colors +\definecolor{gray75}{gray}{0.75} +\definecolor{gray25}{gray}{0.25} + +% Spacing +\OnehalfSpacing +%\linespread{1.3} +\setlength{\parskip}{4pt} + +% Links +\usepackage[ + breaklinks=true,colorlinks=true, + % PDF VIEW + %linkcolor=blue,urlcolor=blue,citecolor=blue, + % PRINT + linkcolor=black,urlcolor=black,citecolor=black, + bookmarks=true,bookmarksopenlevel=, +]{hyperref} diff --git a/report/style/pascience-titles.tex b/report/style/pascience-titles.tex new file mode 100644 index 0000000..85245d2 --- /dev/null +++ b/report/style/pascience-titles.tex @@ -0,0 +1,33 @@ +%%%%%%%%%%%%%%%%%%%% +%% TITLE STYLE +%%%%%%%%%%%%%%%%%%%% + +% Chapters +\usepackage{calc} +\newif\ifNoChapNumber +\makeatletter +\makechapterstyle{VZ34}{ + \renewcommand\chapternamenum{} + \renewcommand\printchaptername{} + \renewcommand\printchapternum{} + \renewcommand\chapnumfont{\Huge\bfseries\sffamily} + \renewcommand\chaptitlefont{\Huge\bfseries\sffamily\raggedright} + \renewcommand\printchaptertitle[1]{% + \def\arraystretch{2}\begin{tabular}[2]{ + @{}p {0.8cm}! + {\textcolor{gray75}{\vrule width 2pt}\quad} + p{\textwidth-1cm-2em-4\tabcolsep} + } + \ifNoChapNumber\chapnumfont \# \else\chapnumfont \thechapter\fi + & \chaptitlefont ##1 + \end{tabular} + \NoChapNumberfalse + } + \renewcommand\printchapternonum{\NoChapNumbertrue} +} +\chapterstyle{VZ34} + +% Sections, Subsections, Subsubsections +%\setsecheadstyle{\Large\bfseries\sffamily\raggedright} +%\setsubsecheadstyle{\large\bfseries\sffamily\raggedright} +%\setsubsubsecheadstyle{\bfseries\sffamily\raggedright} diff --git a/report/style/pascience-toc.tex b/report/style/pascience-toc.tex new file mode 100644 index 0000000..d461dd5 --- /dev/null +++ b/report/style/pascience-toc.tex @@ -0,0 +1,5 @@ +%%%%%%%%%%%%%%%%%%%% +%% TABLE OF CONTENT +%%%%%%%%%%%%%%%%%%%% + +\maxtocdepth{subsection} % chapters, sections, and subsections are in the Table of Contents -- cgit v1.2.3