%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Short Three-Column Newsletter
% LaTeX Template
% Version 1.0 (11/9/13)
%
% Original author:
% Frits Wenneker (http://www.howtotex.com) 
% With extensive modifications by:
% Vel (vel@latextemplates.com)
% 
% This template has been downloaded from:
% http://www.LaTeXTemplates.com
%
% License:
% CC BY-NC-SA 3.0 (http://creativecommons.org/licenses/by-nc-sa/3.0/)
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%----------------------------------------------------------------------------------------
%	PACKAGES AND DOCUMENT CONFIGURATIONS
%----------------------------------------------------------------------------------------

\documentclass[10pt,a4paper]{article} % Paper type (a4paper, usletter or legal) and font size (10, 11 or 12)


%-------------------début activation des packages ------------------------------
\usepackage{charter} % Charter font for main content

\frenchspacing % Reduces space after periods to make text more compact for a three-column layout
\usepackage[french]{babel}
\usepackage{graphicx} % Required for including images
\usepackage{amssymb,amsmath} % Math packages
\usepackage{multicol} % Required for the three-column layout of the document
\usepackage{url} % Clickable links
\usepackage{enumitem} % Reduces the amount of space within and between lists with [noitemsep,nolistsep]
\usepackage{marvosym} % Required for the use of symbols
\usepackage{wrapfig} % Allows wrapping text around figures
\usepackage[T1]{fontenc} % Use 8-bit encoding that has 256 glyphs
\usepackage{datetime} % Required for defining a custom date style
\newdateformat{mydate}{\monthname[\THEMONTH] \THEYEAR} % Set a custom date format
\usepackage[pdfpagemode=FullScreen, colorlinks=false]{hyperref} % Link colors and PDF behavior in Acrobat
\usepackage{fancyhdr} % Required to define custom headers/footers
\usepackage{lipsum}% for auto generating text
\usepackage{afterpage}
\usepackage{xcolor}
\usepackage{titlesec} % Formater facilement les titres
\usepackage{relsize}
\usepackage{setspace}
\usepackage{pdfpages}
\usepackage{framed} % faire des couleurs de fond
\usepackage{tcolorbox}
\usepackage{titletoc}
\usepackage{transparent}
\usepackage{setspace}
\usepackage{subfig}
\usepackage{helvet}
%-------------------Bibliographie BibLateX ------------------------------
\usepackage[backend=bibtex,style=nature,natbib=true]{biblatex}

\AtEveryBibitem{

\clearfield{issn}

\clearfield{doi}


\ifentrytype{online}{}{

\clearfield{url}

}

}

\usepackage[nottoc, notlof, notlot]{tocbibind}

\def\bibfont{\tiny}

\addbibresource{BibBGBXX.bib}

%\addbibresource{BibBGB11.bib}
%\addbibresource{BibBGB12.bib}
%\addbibresource{BibBGB13.bib}
%\addbibresource{BibBGB14.bib}
%\addbibresource{BibBGB21.bib}
%\addbibresource{BibBGB22.bib}
%\addbibresource{BibBGB23.bib}
%\addbibresource{BibBGB24.bib}


%-------------------Fin activation des packages ------------------------------


%-------------------début réglage du format de la page----------------------------


\setlength\topmargin{-48pt} % Top margin
\setlength\headheight{0pt} % Header height
\setlength\textwidth{7.0in} % Text width
\setlength\textheight{9.8in} % Text height
\setlength\oddsidemargin{-30pt} % Left margin
\setlength\evensidemargin{-30pt} % Left margin (even pages) - only relevant with 'twoside' article option

%-------------------fin réglage du format de la page----------------------------


%-------------------début réglage des couleurs----------------------------

\definecolor{bleu_clair}{RGB}{102,153,204}
\definecolor{bleu_fonce}{RGB}{0,51,102}
\definecolor{bleu_moyen}{RGB}{0,102,153}
\definecolor{vert_fonce}{RGB}{51,102,102}
\definecolor{vert_moyen}{RGB}{102,153,153}
\definecolor{rouge_vif}{RGB}{204,0,0}
\definecolor{rouge_clair}{RGB}{255,204,204}
\definecolor{bleu_minuit}{RGB}{0,51,102}
\definecolor{bleu_nuit}{RGB}{15, 5, 107}
\definecolor{auburn}{RGB}{157,62,12}
\definecolor{enhanced}{RGB}{225,77,22}
\definecolor{blanccreme}{RGB}{253,241,184}
\definecolor{bleuberlin}{RGB}{34,66,124}
\definecolor{bleuciel}{RGB}{115, 194, 251}
\definecolor{orangebrule}{RGB}{204, 85, 0}
\definecolor{ardoise}{RGB}{90, 94, 107}
\definecolor{ambre}{RGB}{240, 195, 0}
\definecolor{jaune}{RGB}{191,189,36}
\definecolor{rouge}{RGB}{204,0,0}
\definecolor{vert}{RGB}{34, 120, 15}
\definecolor{vert_Cdeux}{RGB}{155,200,64}
\definecolor{rose_Ctrois}{RGB}{220,79,118}
\definecolor{violet_fonce}{RGB}{15,0,255}
\definecolor{violet_clair}{RGB}{90,44,255}
\definecolor{vert_feuille}{RGB}{102,193,153}
\definecolor{bleu_marine_BGB}{HTML}{1d2542}
\definecolor{bleu_moyen_BGB}{HTML}{3f90aa}
\definecolor{bleu_clair_BGB}{HTML}{1cbdff}
\definecolor{vert_BGB}{HTML}{b2b56a}
\definecolor{rouge_BGB}{HTML}{d8988e}
\definecolor{bleu_fond}{RGB}{63,144,170}

%-------------------fin réglage des couleurs----------------------------


%-----------------------------------------------------------
% Define separators
\newcommand{\HorRule}[1]{\noindent\rule{\linewidth}{#1}} % Creates a horizontal rule
\newcommand{\SepRule}{\noindent	% Creates a shorter separator rule
\begin{center}
\rule{250pt}{1pt} % Page width and rule width
\end{center}
}
%-----------------------------------------------------------

%-----------------------------------------------------------
% Define title and article styles


%\newcommand{\JournalIssue}[1]{ % Date and issue number at the top of the newsletter
%\hfill \textsc{\mydate \today, No #1} % Right-aligned date and issue number
%\par \normalsize \normalfont}

\newcommand{\NewsAuthor}[1]{ \vspace{1em} % Author name under the item title
\hfill par \textsc{#1} \vspace{0em} % Right-aligned author name in small caps with space after it
\par \normalfont}	



%----------------------------------------------------------------------------

%                        Réglage Titres avec Titlesec

%----------------------------------------------------------------------------

%\titleformat{<command>}[<shape>]{<format>}{<label>}{<sep>}{<before-code>}[<after-code>]
%
%where [<shape>] and [<after-code>] are optional parameters, and:
%
%    <command> is the sectioning command to be redefined: \part, \chapter, \section, \subsection, \subsubsection, \paragraph or \subparagraph.
%    <shape> is sectioning paragraph shape; possible values are: hang, block, display, runin, leftmargin, rightmargin, drop, wrap and frame.
%    <format> is the format to be applied to the title, label, and text; for example \normalfont\Large\bfseries
%    <label> specify sectioning label.
%    <sep> is the horizontal separation between label and title body and it must be a length and not be empty.
%    <before-code> is code preceding the title body.
%    <after-code> is code following the title body.
%
%and
%
% \titlespacing{<command>}{<left>}{<before-sep>}{<after-sep>}
%
%where:
%
%    <left> increases the left margin.
%    <before-sep> is the vertical space before the title.
%    <after-sep> is the separation between title and non-sectioning text.
%
%The starred version of this command (\titlespacing*) kills the indentation of the paragraph following the title. 


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% debut title-section et bibliography%%%%

\colorlet{shadecolor}{black!10}

%%%% type un : deux lignes vertes dessus/dessous %%%%
\titleformat{\section}{\normalfont\Huge\sc\bfseries\color{bleu_marine_BGB}}{Dossier \arabic{section} }{0.5em}{}[]

%%%% type deux : fond coloré %%%%
%\titleformat{\section}[block]{\normalfont\begin{shaded}\large\bfseries}{ \Roman{section}.}{2em}{}[\end{shaded*}]

%%%% type deux : fond coloré - ligne en dessous %%%%
%\titleformat{\section}[block]{\Huge\newpage\s\bfseries}{\Roman{section}.}{2em}{}[\vspace{10em}\color{vert_fonce}]
%\titlespacing{\section}{0pt}{20em}{0pt}
%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% debut title-subsection %%%%

\colorlet{shadecolor}{bleu_moyen!10}

\titleformat{\subsection}[block]{\center\huge\usefont{T1}{fvs}{b}{n}}{}{0em}{}[]
\titlespacing{\subsection}{0pt}{0em}{0em}
%



%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%ù debut title-subsubsection %%%%


\titleformat{\subsubsection}[block]{\color{bleu_moyen!100}\sc\huge}{}{0em}{}[]
\titlespacing{\subsection}{0em}{0em}{0.5em}
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%ù debut title-paragraph %%%%


\titleformat{\paragraph}[block]{\color{bleu_moyen!100}\bf}{}{Oem}{}[]
\titlespacing{\paragraph}{0pt}{0em}{0em}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%debut title-subparagraph %%%%

\titleformat{\subparagraph}[block]{\bf}{}{0em}{}[]
\titlespacing{\subparagraph}{0pt}{0em}{0em}
%




%--------------------réglage titre entete et pieds de page--------------
% Header and footer

\pagestyle{fancy} % Enables the custom headers/footers for all pages following this

\fancyhead[]{} % entête vide

\fancyfoot[L]{\footnotesize BGB Highlights} %Pied de page gauche (L pour Left)
\fancyfoot[C]{\textsc{\mydate \today, No 2}} %Pied de page centre (C pour Center) - jour et numéro d'issue
\fancyfoot[R]{\footnotesize ~ Page \thepage} %  Pied de page droit (C pour Center)

\renewcommand{\headrulewidth}{0.0pt} % No horizontal rule for the header
\renewcommand{\footrulewidth}{0.4pt} % Horizontal rule separating the footer from the document
%-----------------------------------------------------------
\newcommand{\bgimg}[1]{
\AddToShipoutPicture
	{   \put(0,-0.25)
		{\transparent{0.8}\includegraphics[width=1\paperwidth, height=1\paperheight]{#1} 
		}
	}
}


%----------------------Table des matières------------------

 \setcounter{tocdepth}{2}
 

 
%----------------------------------------------------------------------------------------
%	TITLE
%----------------------------------------------------------------------------------------


\begin{document}

\includepdf[pages=1]{PageTitreBGB.pdf}

\pagecolor{bleu_fond}


\newpage
\thispagestyle{empty}
\mbox{}
\clearpage


\input{EditoBGB.tex}
\newpage

\thispagestyle{empty}
\mbox{}
\newpage

 \renewcommand{\contentsname}{{ \begin{tcolorbox}[colback=bleu_clair_BGB!40,%gray background
                 colframe=bleu_clair_BGB!40,% black frame colour
                 opacityfill=1,
                 width=18cm,% Use 5cm total width,
                 arc=0mm, auto outer arc,] \textcolor{bleu_marine_BGB}{\bold SOMMAIRE}\end{tcolorbox}}} 


% \pagecolor{white}
{\Large \tableofcontents}

\newpage
\pagecolor{bleu_clair_BGB!10}
\thispagestyle{empty}
\mbox{}
\clearpage

\newpage

\input{chapter1.tex}

\newpage
\thispagestyle{empty}
\mbox{}
\clearpage

\ClearShipoutPicture



\input{RevueBGBXX.tex}

\newpage

\input{RevueBGBXX.tex}


\newpage


\input{RevueBGBXX.tex}


\newpage

\pagecolor{vert_BGB!10}
\input{chapter2.tex}
\newpage
\thispagestyle{empty}
\mbox{}

\clearpage

\ClearShipoutPicture

\input{RevueBGBXX.tex}


\newpage


\input{RevueBGBXX.tex}

\newpage

\input{RevueBGBXX.tex}

\newpage



\pagecolor{rouge_BGB!10}
\input{chapter3.tex}

\newpage
\ClearShipoutPicture
\thispagestyle{empty}
\mbox{}

\clearpage



\input{RevueBGBXX.tex}

\newpage
\input{RevueBGBXX.tex}

\newpage
\input{RevueBGBXX.tex}

\newpage




\includepdf[pages=1]{Dernierepage.pdf}


\end{document} 
