IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Mise en forme Discussion :

Gros espace avant et entre \item


Sujet :

Mise en forme

  1. #1
    Nouveau membre du Club
    Homme Profil pro
    Étudiant
    Inscrit en
    Septembre 2017
    Messages
    68
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Belgique

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Électronique et micro-électronique

    Informations forums :
    Inscription : Septembre 2017
    Messages : 68
    Points : 37
    Points
    37
    Par défaut Gros espace avant et entre \item
    Bonjour,

    J'ai un problème depuis un bon moment que je n'arrive pas à résoudre: les espaces avant et dans les item sont énormes. C'est quand l'itemize vient avant une section ou se trouve dans la même page (quand je fais \newpage et les sépare il y a plus de souci). J'ai beau essayé toutes les méthodes,sans succès. Je me dis que ça doit venir de mon préambule ou quelque chose comme ça.

    Quelqu'un sait m'aider?

    Voici mon préambule:

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    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
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
    301
    302
    303
    304
    305
    306
    307
    308
    309
    310
    311
    312
    313
    314
    315
    316
    317
    318
    319
    320
    321
    322
    323
    324
    325
    326
    327
    328
    329
    330
    331
    332
    333
    334
    335
    336
    337
    338
    339
    340
    341
    342
    343
    344
    345
    346
    347
    348
    349
    350
    351
    352
    353
    354
    355
    356
    357
    358
    359
    360
    361
    362
    363
    364
    365
    366
    367
    368
    369
    370
    371
    372
    373
    374
    375
    376
    377
    378
    379
    380
    381
    382
    383
    384
    385
    386
     
     
    \documentclass[twoside]{report}
     
    \usepackage[utf8]{inputenc} 
    \usepackage{supertabular}
    \usepackage {inputenc} 
    \usepackage [french]{babel}
    \DeclareTextSymbol{\degre}{T1}{6}
    \DeclareTextSymbol{\degre}{OT1}{23}
    \usepackage{amsmath}
    \usepackage {amsmath}
    \usepackage{tikz}
    \usepackage[pdftex=true,colorlinks=true,linkcolor=blue,urlcolor=black] {hyperref}
    %\usepackage[usenames, dvipsnames]{xcolor}
    \usepackage {tabularx} 
    \usepackage{longtable}
    %========================================================================
    \usepackage{tikzpagenodes}
    \usepackage{xifthen}
    \usetikzlibrary{calc}
     
    \def\myyshifttop{0}
    \def\mypagetop{0}
    \newcommand{\topmarginpar}[2][]{% tikz options of node, content
      \begin{tikzpicture}[remember picture, overlay]
        % reset position on new page
        \ifthenelse{\thepage=\mypagetop}{}{\xdef\myyshifttop{0}\xdef\mypagetop{\thepage}}
        % a big path with many actions
        \path let
        % patch for bug in tikzpagenodes with even pages
        \p1=(current page marginpar area.north west),
        \p2=(current page marginpar area.north east)
        in \pgfextra{
          \pgfmathsetmacro{\xw}{\x1<\x2?\x1:\x2}
          \pgfmathsetmacro{\yw}{\y1<\y2?\y1:\y2}
          \edef\coord{\xw pt,\yw pt}
        }
        % draw topmarginpar
        node[below right, yshift=\myyshifttop, text width=\marginparwidth-8pt, inner sep=2pt, #1]
        (tempnode) at (\coord) {#2}
        % next position
        let \p1=(\coord), \p2=(tempnode.south west) in \pgfextra{
          \pgfmathsetmacro{\diffy}{(\y2-\y1)}
          \xdef\myyshifttop{\diffy}
        };
      \end{tikzpicture}%
    }
     
    \def\myyshiftbot{0}
    \def\mypagebot{0}
    \newcommand{\botmarginpar}[2][]{% tikz options of node, content
      \begin{tikzpicture}[remember picture, overlay]
        % reset position on new page
        \ifthenelse{\thepage=\mypagebot}{}{\xdef\myyshiftbot{0}\xdef\mypagebot{\thepage}}
        % a big path with many actions
        \path let
        % patch for bug in tikzpagenodes with even pages
        \p1=(current page marginpar area.south west),
        \p2=(current page marginpar area.south east)
        in \pgfextra{
          \pgfmathsetmacro{\xw}{\x1<\x2?\x1:\x2}
          \pgfmathsetmacro{\yw}{\y1<\y2?\y1:\y2}
          \edef\coord{\xw pt,\yw pt}
        }
        % draw botmarginpar
        node[above right, yshift=\myyshiftbot, text width=\marginparwidth-8pt, inner sep=2pt, #1]
        (tempnode) at (\coord) {#2}
        % next position
        let \p1=(\coord), \p2=(tempnode.north west) in \pgfextra{
          \pgfmathsetmacro{\diffy}{(\y2-\y1)}
          \xdef\myyshiftbot{\diffy}
        };
      \end{tikzpicture}%
    }
     
    \usepackage{lipsum}
    %========================================================================
     
    \usepackage{graphicx}
    \usepackage{longtable}
    \usepackage{caption}
     
    \usepackage{float}
    \usepackage{ragged2e}
    \captionsetup{format=plain}
    \captionsetup[margincap]{name=Fig.,
    	indention=0pt,justification=RaggedRight}
     
    \usepackage[ tikz ]{ bclogo}
    \usepackage{tikzsymbols} 
    \usepackage{circuitikz}
    \usepackage{tikz}
     
    \usepackage{marginnote}
    \usepackage{captdef}
     
    %========================================================================
    \usepackage{lmodern}
    \usepackage{graphicx}
    \usepackage{titlesec}
    \usepackage{microtype}
    \usepackage{titlesec} 
    \definecolor{myblue}{RGB}{0,0,122}
     
    \titleformat{\chapter}[display]
    %\titleformat{\section}[display]
    {\normalfont\bfseries\color{myblue}}
    {\filleft\hspace*{-60pt}%
    	\rotatebox[origin=c]{90}{%
    		\normalfont\color{black}\Large%
    		\textls[180]{\textsc{\chaptertitlename}}%
    	}\hspace{10pt}%
    	{\setlength\fboxsep{0pt}%
    		\colorbox{myblue}{\parbox[c][3cm][c]{2.5cm}{%
    				\centering\color{white}\fontsize{80}{90}\selectfont\thechapter}%
    	}}%
    }
    {10pt}
    {\titlerule[2.5pt]\vskip3pt\titlerule\vskip4pt\LARGE\sffamily}
    %\titlespacing*{\chapter}{-20pt}{-100pt}{40pt}
     
    \titleformat{\section}
    {\normalfont\sffamily\Large\bfseries\color{myblue}}
    {\thesection}{1em}{}
     
    \titleformat{\subsection}
    {\normalfont\sffamily\Large\bfseries\color{myblue}}
    {\thesection}{1em}{}
    \titleformat{\subsubsection}
    {\normalfont\sffamily\Large\bfseries\color{myblue}}
    {\thesection}{1em}{}
     
    \titlespacing{\chapter}{7pt}{\parskip}{\parskip}
    \titlespacing{\section}{1pt}{\parskip}{\parskip}
    \titlespacing{\subsection}{0pt}{\parskip}{-\parskip}
    \titlespacing{\subsubsection}{0pt}{\parskip}{-\parskip}
     
     
    %========================================================================
     
    \setlength{\parindent}{0em}
    \setlength{\parskip}{1em}
    %\renewcommand{\baselinestretch}{1.5}
     
     
     
    %========================================================================
    \usepackage{lettrine}
    %========================================================================
    \usepackage{todonotes}
     
    %========================================================================
    \usepackage{multicol}
    \usepackage{wrapfig}
    \usepackage{varwidth}
     
    %========================================================================
    \usepackage[many,most]{tcolorbox}
    \usetikzlibrary{calc}
    \tcbset{mystyle/.style={
    		breakable,
    		enhanced,
    		outer arc=0pt,
    		arc=0pt,
    		colframe=myblue,
    		colback=myblue!20,
    		attach boxed title to top left,
    		boxed title style={
    			colback=myblue,
    			outer arc=0pt,
    			arc=0pt,
    			top=3pt,
    			bottom=3pt,
    		},
    		fonttitle=\sffamily
    	}
    }
     
    \newtcolorbox[auto counter,number within=section]{Conclusion}[1][]{
    	mystyle,
    	title=Conclusion~\thetcbcounter,
    	overlay unbroken and first={
    		\path
    		let
    		\p1=(title.north east),
    		\p2=(frame.north east)
    		in
    		node[anchor=west,font=\sffamily,color=myblue,text width=\x2-\x1] 
    		at (title.east) {#1};
    	}
    }
    \newtcolorbox[auto counter,number within=section]{assumption}[1][]{
    	mystyle,
    	colback=white,
    	rightrule=0pt,
    	toprule=0pt,
    	title=Exemple~\thetcbcounter,
    	overlay unbroken and first={
    		\path
    		let
    		\p1=(title.north east),
    		\p2=(frame.north east)
    		in
    		node[anchor=west,font=\sffamily,color=myblue,text width=\x2-\x1] 
    		at (title.east) {#1};
    	}
    }
     
     
    %========================================================================
    \usepackage[shortlabels]{enumitem}
    \setlist[enumerate]{noitemsep}
    %========================================================================
    \usepackage{eso-pic}
    %\usepackage{xcolor}
    %\usepackage[table]{xcolor}
     
    %========================================================================
    \makeatletter
    \newcommand\At@Page@Upper@Right[1]{%
    	\put(\LenToUnit{\paperwidth},\LenToUnit{\paperheight}){#1}%
    }
    \newcommand\AtPageLowerRight[1]{\At@Page@Upper@Right{%
    		\put(0,\LenToUnit{-\paperheight}){\llap{#1}}}}
    \makeatother
     
    %======================================================================
     
    \usepackage{listings}
     
    %=======================================================================
     
    %MATLAB
    \lstset{
    	upquote=true,
    	columns=flexible,
    	basicstyle=\ttfamily,
    	language=HTML,
    	keywordstyle=\color{black}, %blue
    	commentstyle=\color{gray},
    	breaklines,
    	breakindent=1.5em,
    	xleftmargin=2em,
    	xrightmargin=2em,
    	frame=single,
    	rulecolor=\color{orange},
    	backgroundcolor=\color{orange!5},
    }
    \lstset{language=Matlab, backgroundcolor=\color[gray]{0.9}, keywordstyle=\color{black}, linewidth=\linewidth, xleftmargin=1.6cm, xrightmargin=2cm,breaklines=true, basicstyle=\footnotesize}
    \lstset{framexleftmargin=5mm, frame=shadowbox, rulesepcolor=\color{blue}}
    \lstset{postbreak=\space, breakindent=5pt, breaklines}	
    %Légende, étiquette et liste des listings
    \lstset{frame=lines,caption={Programme principale},label=lst:Matlab,captionpos=b}
    %\lstset{frame=lines,caption={Fonction f},label=lst:Matlab,captionpos=b}
    \renewcommand{\lstlistingname}{Code}
    \definecolor{mygreen}{RGB}{28,172,0} % color values Red, Green, Blue
    \definecolor{mylilas}{RGB}{170,55,241}
    \definecolor{mymauve}{RGB}{188,103,242}
     
    %========================================================================
    \lstset{language=Matlab,%
    	%basicstyle=\color{red},
    	breaklines=true,%
    	morecomment=[l]\#,%
    	morestring=[s]{"}{"},%
    	morekeywords={matlab2tikz},
    	keywordstyle=\color{black},%
    	morekeywords=[2]{1}, keywordstyle=[2]{\color{black}},
    	identifierstyle=\color{black},%
    	stringstyle=\color{mylilas},
    	commentstyle=\color{mygreen},%
    	showstringspaces=false,%without this there will be a symbol in the places where there is a space
    	numbers=left,%
    	numberstyle={\tiny \color{black}},% size of the numbers
    	numbersep=9pt, % this defines how far the numbers are from the text
    	emph=[1]{for,end,break,global,function,return,while,if,else,true,elseif,using,import,Float64,Array,const},emphstyle=[1]\color{blue}, %some words to emphasise %red
    	%emph=[2]{word1,word2}, emphstyle=[2]{style},
    	emph=[2]{all,on,@pyimport},emphstyle=[2]\color{mymauve},
    }
    %========================================================================
    %\usepackage[
    %a5paper,   
    %left=20mm, 
    %right=57mm,
    %marginparwidth=43mm,
    %includemp,
    %]{geometry}
    %========================================================================
    \usepackage{appendix}
    \usepackage {makeidx} 
    \usepackage{enumitem}
    \usepackage{verbatim}
    \usepackage{shortvrb}
    \usepackage{moreverb}\usepackage{verbatim}
    \usepackage{shortvrb}
    \usepackage{moreverb}
    %======================================================================
    \usepackage{mdwlist}										% Define enumerate*, & itemize* to create COMPACT listings
     
     
    %=======================================================================
    %\usepackage[framemethod=tikz]{mdframed}
     
    \usetikzlibrary{calc}
     
     
    \newcounter{myRemarque}
    \newcommand\pointeranchor{}
    \newcommand\boxanchor{}
    \newlength\boxvshift
    \newlength\uppertrianglecorner
     
    \newcommand\tikzmark[1]{%
    	\tikz[remember picture,overlay]\node[inner xsep=0pt,outer sep=0pt] (#1) {};}
     
    \newcommand\Remarque[2][c]{%
    	\stepcounter{myRemarque}%
    	\tikzmark{\themyRemarque}%
    	\if#1b\relax
    	\renewcommand\pointeranchor{mybox\themyRemarque.south east}%
    	\renewcommand\boxanchor{south east}%
    	\setlength\boxvshift{-10pt}%
    	\setlength\uppertrianglecorner{13pt}%
    	\else
    	\if#1t\relax
    	\renewcommand\pointeranchor{mybox\themyRemarque.north east}%
    	\renewcommand\boxanchor{north east}%
    	\setlength\boxvshift{10pt}%
    	\setlength\uppertrianglecorner{-7pt}%
    	\else
    	\if#1c\relax
    	\renewcommand\pointeranchor{mybox\themyRemarque.east}%
    	\renewcommand\boxanchor{east}%
    	\setlength\boxvshift{0pt}%
    	\setlength\uppertrianglecorner{3pt}%
    	\fi\fi\fi%
    	\begin{tikzpicture}[remember picture,overlay]
    	\node[draw=myblue,anchor=\boxanchor,xshift=-0.5\marginparsep,yshift=\boxvshift]   
    	(mybox\themyRemarque)
    	at ([yshift=3pt]current page text area.west|-\themyRemarque) 
    	{\parbox{\marginparwidth}{\vskip10pt\RaggedRight\small#2}};
    	\node[fill=white,font=\color{myblue}\sffamily,anchor=west,xshift=7pt]
    	at (mybox\themyRemarque.north west) {\ Remarque!\ };
    	\fill[myblue]
    	([yshift=\uppertrianglecorner]\pointeranchor) --
    	([yshift=\uppertrianglecorner-3pt,xshift=3pt]\pointeranchor) --
    	([yshift=\uppertrianglecorner-6pt]\pointeranchor) -- cycle;
    	\end{tikzpicture}%
    }
     
    \newcommand\Test{Nulla malesuada porttitor diam. Donec felis erat, congue non, volutpat at, tincidunt tristique, libero. Vivamus viverra fermentum felis. Donec nonummy pellentesque ante. Phasellus adipiscing
    	semper elit.}
     
    %=======================================================================
     
    \usepackage[left=20mm,headsep=1\baselineskip,textwidth=130mm,marginparsep=5mm,marginparwidth=55mm,textheight=52\baselineskip,headheight=1\baselineskip,bottom=7em]{geometry}
    %=======================================================================
    \titlespacing*{\section}{0pt}{0.1\baselineskip}{\baselineskip}
     
    %=======================================================================
    \usepackage{amsmath}
    \usepackage{empheq}
    %\usepackage[most]{tcolorbox}
     
    \tcbset{highlight math style={enhanced,
    		colframe=red!60!black,colback=yellow!50!white,arc=4pt,boxrule=1pt,
    }}
     
    \newtcbox{\mybox}[1][]{nobeforeafter,math upper,tcbox raise base,
    	enhanced,frame hidden,boxrule=0pt,interior style={top color=green!10!white,
    		bottom color=green!10!white,middle color=green!50!yellow},
    	fuzzy halo=1pt with green,drop large lifted shadow,#1}
     
    %=======================================================
    \usepackage[final]{pdfpages}
    %=======================================================
    \usepackage{cleveref}
    %=======================================================
    \usepackage{subcaption}
    %=======================================================
    \titleformat{\subsection}
    {\normalfont\sffamily\Large\bfseries\color{myblue}}
    {\thesubsection}{1em}{}
     
    %==========================================================

  2. #2
    Invité
    Invité(e)
    Par défaut
    Bonjour,

    Peut-on avoir un ECM (là j’ai même pas testé le code).

Discussions similaires

  1. Espacement entre items de menu
    Par nathan0412 dans le forum Mise en page CSS
    Réponses: 2
    Dernier message: 22/12/2014, 00h56
  2. Espace entre item d'une listview
    Par diaboloche dans le forum Windows Forms
    Réponses: 2
    Dernier message: 20/02/2007, 18h01
  3. Boutons IE vs Firefox: espaces avant/après le texte
    Par dasdeb dans le forum Balisage (X)HTML et validation W3C
    Réponses: 2
    Dernier message: 07/09/2005, 19h29
  4. [CSS] espace avant affichage menu
    Par calimero82 dans le forum Mise en page CSS
    Réponses: 4
    Dernier message: 25/05/2005, 09h36
  5. probleme d'espace non voulu entre 2 bloc
    Par piff62 dans le forum Balisage (X)HTML et validation W3C
    Réponses: 5
    Dernier message: 12/04/2005, 16h07

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo