Style
authorThomas Pietrzak <thomas.pietrzak@gmail.com>
Thu, 11 Apr 2019 14:23:13 +0000 (16:23 +0200)
committerThomas Pietrzak <thomas.pietrzak@gmail.com>
Thu, 11 Apr 2019 14:23:13 +0000 (16:23 +0200)
mystyle.sty
plain-withurls.bst

index 838aa7fbf4c387bdb592de6046f23297a24f66b0..788603989bea6b5596245f2b8de1501487eee302 100644 (file)
@@ -11,6 +11,7 @@
 \setlength{\epigraphrule}{0pt}
 \setlength{\epigraphwidth}{.5\textwidth}
 \usepackage{xspace}
+\usepackage{parskip}
 
 %\usepackage[french]{babel}
 %\usepackage{icomma}
   {0em}
   {}
 
-\titleformat{\subsubsection} {\color{subsubsectioncolor}\normalfont\it\sffamily} {\textbf{\thesubsubsection}\hspace{2mm}}{0em}{}
-\titleformat{name=\subsubsection,numberless} {\color{subsubsectioncolor}\normalfont\it} {}{0em}{}
+\titleformat{\subsubsection}
+  {\color{subsubsectioncolor}\normalfont\it\sffamily}
+  {\textbf{\thesubsubsection}\hspace{2mm}}
+  {0em}
+  {}
+\titleformat{name=\subsubsection,numberless}
+  {\color{subsubsectioncolor}\normalfont\it}
+  {}
+  {0em}
+  {}
+
+\titlespacing\section{0pt}{10pt plus 4pt minus 2pt}{0pt plus 2pt minus 2pt}
+\titlespacing\subsection{0pt}{10pt plus 4pt minus 2pt}{0pt plus 2pt minus 2pt}
+\titlespacing\subsubsection{0pt}{10pt plus 4pt minus 2pt}{0pt plus 2pt minus 2pt}
+
 
 % espaces de justification
 \tolerance=2000
 \usepackage{mdframed}
 
 \newtheorem{@definition}{Definition}[chapter]
-\newenvironment{definition}{\begin{mdframed}[backgroundcolor=gray90, linewidth=0pt]\begin{@definition}\upshape}{\end{@definition}\end{mdframed}}
+\newenvironment{definition}{\vspace{3mm}\begin{mdframed}[backgroundcolor=gray90, linewidth=0pt]\begin{@definition}\upshape}{\end{@definition}\end{mdframed}}
 \makeatletter
 \renewcommand{\the@definition}{\arabic{@definition}}
 \@addtoreset{@definition}{chapter}
 \newenvironment{idee}{\begin{mdframed}[backgroundcolor=ideecolor, linewidth=0pt]\upshape}{\end{mdframed}}
 
 \newcommand{\myquote}[2]{
+  \vspace{3mm}
   \begin{mdframed}[backgroundcolor=gray90, linewidth=0pt]
-  \upshape {#1}\\
-  \raggedleft-- \it #2
+  \begin{minipage}{\textwidth}
+    \upshape {#1}
+  \end{minipage}
+  \begin{minipage}{\textwidth}
+    \raggedleft-- \it #2
+  \end{minipage}
   \end{mdframed}
 }
 
 
 \usepackage{enumitem}
 \usepackage{pifont}
-\setitemize[0]{label=\ding{110}, font=\footnotesize \color{bulletcolor}, itemsep=-2pt}
+\setitemize[0]{label=\ding{110}, font=\footnotesize \color{bulletcolor}, parsep=2pt,labelsep=5pt, itemindent=0pt, labelwidth=5pt}
 \setenumerate[0]{\color{bulletcolor}}
 
 
index af153181e9f0adc67f1ba04fbf4d75e087d856a3..f1a597d410b7b19d7e347e0513cd41210cbf060b 100644 (file)
@@ -595,10 +595,14 @@ FUNCTION {book}
   new.block
 
   % NICOLAS
-  url empty$
-    { format.btitle }
-    { "\href{" url * "}{" * format.btitle * "}" * }
-  if$
+  doi empty$
+    { url empty$
+        { format.btitle }
+        { "\href{" url * "}{" * format.btitle * "}" * }
+      if$
+    }
+    { "\href{http://dx.doi.org/" doi * "}{" * format.btitle * "}" * }
+    if$
   "title" output.check
   %format.btitle "title" output.check
 
@@ -769,7 +773,15 @@ FUNCTION {mastersthesis}
 { output.bibitem
   format.authors "author" output.check
   new.block
-  format.title "title" output.check
+
+  % TOM
+  url empty$
+    { format.title }
+    { "\href{" url * "}{" * format.title * "}" * }
+  if$
+  "title" output.check
+  %format.title "title" output.check
+
   new.block
   "Master's thesis" format.thesis.type output.nonnull
   school "school" output.check
@@ -798,7 +810,15 @@ FUNCTION {phdthesis}
 { output.bibitem
   format.authors "author" output.check
   new.block
-  format.btitle "title" output.check
+
+  % TOM
+  url empty$
+    { format.btitle }
+    { "\href{" url * "}{" * format.btitle * "}" * }
+  if$
+  "title" output.check
+  %format.btitle "title" output.check
+
   new.block
   "PhD thesis" format.thesis.type output.nonnull
   school "school" output.check