Skip to content

Commit

Permalink
Preparing files.
Browse files Browse the repository at this point in the history
  • Loading branch information
EricMarcon committed Dec 21, 2017
1 parent e26bd0f commit fdeeafd
Show file tree
Hide file tree
Showing 9 changed files with 38 additions and 24,544 deletions.
50 changes: 31 additions & 19 deletions EcoFoG.sty
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
\NeedsTeXFormat{LaTeX2e}

\ProvidesPackage{EcoFoG}[2016/12/09 Modèle de rapport EcoFoG, v.1.10]
\ProvidesPackage{EcoFoG}[2017/10/30 Modèle de rapport EcoFoG, v.1.11]


% Based on memoir, style companion
Expand Down Expand Up @@ -32,28 +32,26 @@
\setlist[enumerate]{noitemsep,nolistsep}

% Allow more space between words to avoid overfull boxes
\tolerance=500 % default 200
\tolerance=500 % default 200

\RequirePackage{marginfix} % Adjust margin paragraphs vertical position
\RequirePackage{marginfix} % Adjust margin paragraphs vertical position

% International fonts
\RequirePackage[utf8]{inputenc}
\RequirePackage[T1]{fontenc}
\RequirePackage{lmodern}
\RequirePackage{microtype} % Letter spacing
\RequirePackage{microtype} % Letter spacing

\RequirePackage[french, english]{babel} % http://en.wikibooks.org/wiki/LaTeX/Internationalization#French
\RequirePackage{lettrine} % Lettrine
\RequirePackage{siunitx} % units, e.g. \SI{5}{\kilo\meter}
\RequirePackage{nth} % English numbers, e.g. \nth{1} yields 1st (French: \ieme{} is included in babel)
\RequirePackage{lettrine} % Lettrine
\RequirePackage{siunitx} % units, e.g. \SI{5}{\kilo\meter}
\RequirePackage{nth} % English numbers, e.g. \nth{1} yields 1st (French: \ieme{} is included in babel)


% Bibliography
\RequirePackage[
backend=biber,
backend=bibtex,
hyperref=true,
% doi=false,
% url=false,
isbn=false,
backref=true,
bibstyle=authoryear-ibid,
Expand Down Expand Up @@ -120,11 +118,11 @@
\RequirePackage{graphicx}
\graphicspath{{graphics/}}
\RequirePackage{epstopdf}
\RequirePackage{needspace} % Full-width figures
\RequirePackage[config, font=scriptsize]{caption,subfig} % Subfigures
\RequirePackage{needspace} % Full-width figures
\RequirePackage[config, font=scriptsize]{caption,subfig} % Subfigures

% Tables
\RequirePackage{multirow} % Merge table lines
\RequirePackage{multirow} % Merge table lines

% Text blocks
\RequirePackage[absolute,overlay]{textpos}
Expand All @@ -139,9 +137,13 @@
% Internal hyperlinks
\RequirePackage{hyperref}
\hypersetup{
pdfborder={0 0 0} % No borders around internal hyperlinks
pdfborder={0 0 0} % No borders around internal hyperlinks
}
\RequirePackage{memhfixc} % Necessary for memoir + hyperref
\RequirePackage{memhfixc} % Necessary for memoir + hyperref

% PDF pages insertion
\RequirePackage{pdfpages}



%%% PAGE LAYOUT
Expand Down Expand Up @@ -253,9 +255,7 @@
\setmarginnotes{0.1in}{0.1in}{0.1in}
\setulmarginsandblock{1.5in}{1in}{*}
\checkandfixthelayout
\makeatletter
\ch@ngetext
\makeatletter
\clearpage
\setlength{\widthw}{\textwidth+\marginparsep+\marginparwidth}
\footnotesatfoot
Expand All @@ -270,9 +270,7 @@
\setsidecaps{0.2in}{1.8in}
\setulmarginsandblock{1.5in}{1in}{*}
\checkandfixthelayout
\makeatletter
\ch@ngetext
\makeatletter
\clearpage
\setlength{\widthw}{\textwidth+\marginparsep+\marginparwidth}
\footnotesinmargin
Expand Down Expand Up @@ -342,6 +340,20 @@
\newpage
}

% Clear page and open an even one (\clearpage opens an odd one)
\newcommand{\evenpage}{
\clearpage
\strictpagecheck % slower but efficient detection of odd/even pages
\checkoddpage
\ifoddpage
\thispagestyle{empty}
~\\ % Print a character or the page will not exist
\newpage
\else
% do nothing
\fi
}


% code command
\newcommand{\code}[1]{\begingroup \ttfamily #1\endgroup}
Expand Down
4 changes: 2 additions & 2 deletions Mesures_de_la_Biodiversite.Rnw
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

%%% BIBLIOGRAPHY FILE
%%%------------------------------------------------------------------------------
\addbibresource{library.bib}
\addbibresource{../library.bib}

%%% THE DOCUMENT
%%%-------------------------------------------------------------------------------
Expand Down Expand Up @@ -53,7 +53,7 @@ par(mar=c(0,0,0,0))


\selectlanguage{english}
\sisetup{locale = EN}
\sisetup{locale = UK}

%%%------------------------------------------------------------------------------
\frontmatter
Expand Down
2 changes: 1 addition & 1 deletion Neutre.Rnw
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ data(Paracou618)

\LargeMargins
\selectlanguage{english}
\sisetup{locale = EN}
\sisetup{locale = UK}
\chapter[Mesures neutres de la diversité alpha ou gamma]{Mesures neutres de la diversité $\alpha$ ou $\gamma$}
\label{chap:MesuresNeutres}

Expand Down
2 changes: 1 addition & 1 deletion Notations.Rnw
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ par(mar=c(0,0,0,0))

\LargeMargins
\selectlanguage{english}
\sisetup{locale = EN}
\sisetup{locale = UK}
\LargeMargins
\chapter{Notations}

Expand Down
2 changes: 1 addition & 1 deletion Notions.Rnw
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ par(mar=c(0,0,0,0))

\LargeMargins
\selectlanguage{english}
\sisetup{locale = EN}
\sisetup{locale = UK}
\chapter{Notions de Diversité}

\lettrine{L}{e terme} \foreignlanguage{english}{\emph{biodiversity}} est attribué \autocite{Meine2006} à Walter Rosen, un membre du \emph{National Research Council} américain, qui a commencé à contracter les termes \foreignlanguage{english}{\emph{biological diversity}} pendant la préparation d'un colloque dont les actes seront publiés sous le titre \foreignlanguage{english}{\og Biodiversity\fg{}} \autocite{Wilson1988}.
Expand Down
2 changes: 1 addition & 1 deletion Phylodiversite.Rnw
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ data(Paracou618)

\LargeMargins
\selectlanguage{english}
\sisetup{locale = EN}
\sisetup{locale = UK}
\chapter{Cadre}

\begin{Essentiel}
Expand Down
2 changes: 1 addition & 1 deletion Spatial.Rnw
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ data(Paracou618)

\LargeMargins
\selectlanguage{english}
\sisetup{locale = EN}
\sisetup{locale = UK}
\chapter[Cadre]{Cadre}


Expand Down
Loading

0 comments on commit fdeeafd

Please sign in to comment.