1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234
| %% LyX 2.0.6 created this file. For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[11pt,oneside,french,intoc,bibliography=totoc,index=totoc,BCOR10mm,captions=tableheading,titlepage,fleqn]{scrbook}
\usepackage{lmodern}
\renewcommand{\sfdefault}{lmss}
\renewcommand{\ttdefault}{lmtt}
\renewcommand{\familydefault}{\sfdefault}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage[a4paper]{geometry}
\geometry{verbose,tmargin=3cm,bmargin=3cm,lmargin=3cm,rmargin=3cm,headheight=1cm,headsep=1cm,footskip=1cm}
\usepackage{fancyhdr}
\pagestyle{fancy}
\setcounter{secnumdepth}{3}
\setlength{\parskip}{\medskipamount}
\setlength{\parindent}{0pt}
\usepackage{babel}
\makeatletter
\addto\extrasfrench{%
\providecommand{\og}{\leavevmode\flqq~}%
\providecommand{\fg}{\ifdim\lastskip>\z@\unskip\fi~\frqq}%
}
\makeatother
\usepackage{array}
\usepackage{float}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{nomencl}
\usepackage{lipsum}
\usepackage{lmodern}
% the following is useful when we have the old nomencl.sty package
\providecommand{\printnomenclature}{\printglossary}
\providecommand{\makenomenclature}{\makeglossary}
\makenomenclature
\usepackage[unicode=true,pdfusetitle,
bookmarks=true,bookmarksnumbered=true,bookmarksopen=true,bookmarksopenlevel=1,
breaklinks=false,pdfborder={0 0 0},backref=false,colorlinks=false]
{hyperref}
\hypersetup{
pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false}
\usepackage{breakurl}
\makeatletter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
%% Because html converters don't know tabularnewline
\providecommand{\tabularnewline}{\\}
\@ifundefined{date}{}{\date{}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
\AtBeginDocument
{
\renewcommand{\ref}[1]{\mbox{\autoref{#1}}}
}
\def\refnamechanges
{
\renewcommand*{\equationautorefname}[1]{}
\renewcommand{\sectionautorefname}{sec.\negthinspace}
\renewcommand{\subsectionautorefname}{sec.\negthinspace}
\renewcommand{\subsubsectionautorefname}{sec.\negthinspace}
\renewcommand{\figureautorefname}{Fig.\negthinspace}
\renewcommand{\tableautorefname}{Tab.\negthinspace}
}
\@ifpackageloaded{babel}{\addto\extrasfrench{\refnamechanges}}{\refnamechanges}%
% in case somebody want to have the label "Equation"
\renewcommand{\eqref}[1]{Equation~(\negthinspace\autoref{#1})}
% that links to image floats jumps to the
% beginning of the float and not to its caption
\usepackage[figure]{hypcap}
% the pages of the TOC is numbered roman
% and a pdf-bookmark for the TOC is added
\let\myTOC\tableofcontents
\renewcommand\tableofcontents
{
\frontmatter
\pdfbookmark[1]{\contentsname}{}
\myTOC
\mainmatter
}
% makes caption labels bold
% for more info about these settings, see
% http://mirrors.ctan.org/macros/latex/contrib/koma-script/doc/scrguien.pdf
\setkomafont{captionlabel}{\bfseries}
\setcapindent{1em}
% enables calculations
\usepackage{calc}
% fancy page header/footer settings
% for more information see section 9 of
% ftp://www.ctan.org/pub/tex-archive/macros/latex2e/contrib/fancyhdr/fancyhdr.pdf
%\renewcommand{\chaptermark}[1]{\markboth{#1}{#1}}
\renewcommand{\chaptermark}[1]{\markboth{\thechapter{}. #1}{}}
%\renewcommand{\chaptermark}[1]{\noindent\markboth{#1}{}}%
\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}
% increases the bottom float placement fraction
\renewcommand{\bottomfraction}{0.5}
% avoids that floats are placed above its sections
\let\mySection\section\renewcommand{\section}{\suppressfloats[t]\mySection}
\usepackage{titlesec}
\usepackage{etoolbox}
\usepackage{lipsum}
%\setcounter{secnumdepth}{5} % numérotation 1.1.1.1.1
\renewcommand\thesection{\arabic{section}}
\def\thickhrule{\leavevmode \leaders \hrule height 1ex \hfill \kern \z@}
\def\position{\centering}
%% Note the difference between the commands the one is
%% make and the other one is makes
\renewcommand{\@makechapterhead}[1]{%
\vspace*{1\p@}%
{\parindent \z@ \position \reset@font
{\Huge \thechapter }
\par\nobreak
\vspace*{1\p@}%
\interlinepenalty\@M
\thickhrule
\par\nobreak
\vspace*{1\p@}%
{\Huge \bfseries #1\par\nobreak}
\par\nobreak
\vspace*{1\p@}%
\thickhrule
\vskip 10\p@
\vskip 25\p@
}}
%% This uses makes
\def\@makeschapterhead#1{%
\vspace*{1\p@}%
{\parindent \z@ \position \reset@font
{\Huge \scshape \vphantom{\thechapter}}
\par\nobreak
\vspace*{1\p@}%
\interlinepenalty\@M
\thickhrule
\par\nobreak
\vspace*{1\p@}%
{\Huge \bfseries #1\par\nobreak}
\par\nobreak
\vspace*{1\p@}%
\thickhrule
\vskip 25\p@
}}
% this length controls tha hanging indent for titles
% change the value according to your needs
\newlength\titleindent
\setlength\titleindent{1.5cm}
\pretocmd{\paragraph}{\stepcounter{subsection}}{}{}
\pretocmd{\subparagraph}{\stepcounter{subsubsection}}{}{}
%%%%%%%%%%%%%%%%%%%%%
% Numérotation des titres en marge de gauche
% Tailles caractères disponibles : \tiny, \scriptsize, \footnotesize, \small, \normalsize, \large, \Large, \LARGE, \huge, \Huge.
%\titleformat{\chapter}
% {\normalfont\Huge\bfseries}{\llap{\parbox[t]{\titleindent}{\thechapter\hfill}}}{0pt}{\bfseries}
\titleformat{\section}
{\normalfont\LARGE\bfseries}{\llap{\parbox[t]{\titleindent}{\thechapter.\thesection\hfill}}}{0em}{}
\titleformat{\subsection}
{\normalfont\Large\bfseries}{\llap{\parbox[t]{\titleindent}{\thechapter.\thesubsection\hfill}}}{0em}{\bfseries}
\titleformat{\subsubsection}
{\normalfont\large\bfseries}{\llap{\parbox[t]{\titleindent}{\thechapter.\thesubsubsection}}}{0em}{\bfseries}
%%%%%%%%%%%%%%%%%%%%%
% Numérotation des équations en marge de droite
\makeatletter
\let\mytagform@=\tagform@
\def\tagform@#1{\maketag@@@{\bfseries(\ignorespaces#1\unskip\@@italiccorr)}\hspace{-40pt}}
\renewcommand{\eqref}[1]{\textup{\mytagform@{\ref{#1}}}}
\makeatother
% cadres pour graphiques
\let\myimage\includegraphics
\renewcommand\includegraphics[2][]{\smallbreak\noindent\framebox[\textwidth]{\myimage[#1]{#2}}\smallbreak}
% mise en évidence : en gras à la place d'italique
\renewcommand\emph{\textbf}
% ITEMIZE
\usepackage{enumitem}
\frenchbsetup{StandardLists=true}
\renewenvironment{itemize}%
{
\begin{list}
{--}
{
\setlength{\labelwidth}{15pt}
\setlength{\leftmargin}{12pt}
%\setlength{\itemsep}{\parsep}
\setlength{\itemsep}{-1pt}
\setlength{\topsep}{5pt}
}
}
{
\end{list}
}
\begin{document}
\pagestyle{fancy}
\lhead{}
\rhead{}
\cfoot[]{\thepage}
\chead[]{\textbf{\leftmark}}
\chapter{mon premier titre}
\lipsum\lipsum
\chapter{mon deuxième titre}
\lipsum\lipsum
\end{document} |
Partager