# How to not display chapter number in section number (titlesec)

I'm using titlesec to manipulate title and section and other. Here is what I'm using:

\titleformat{\chapter}
[frame]
{\normalfont}
{\filright \footnotesize \enspace LP \thechapter \enspace}
{6pt}
{\Large \bfseries \filcenter }

\titleformat{\section}%
[hang]
{\Large\bfseries\color{bleu}}
{\thesection}
{1em}
{}

But in my PDF the section are numbered as 1.1 then 1.2 etc... I would like to suppress the chapter number and only have 1 section 1; 2 section 2 etc...

How can I do that while keeping the rest?

• What about cross-references to the sections? Should they also appear as only 1, 2, ...? This may be misleading to the user since you'll have duplicate section numbers across chapters? – Werner Jun 1 '14 at 13:01
• actually, every chapter is completly independant without any cross-references. That's why I don't think it's necessary to keep them. – sailx Jun 1 '14 at 13:02

By default, the section numbering would be done on a per-chapter basis with the chapter number included in the representation. In LaTeX terms, this is done using

\renewcommand{\thesection}{\thechapter.\arabic{section}}

In the above construction, \thesection is the way the section number is presented, and includes \thechapter (the way the chapter number is presented). So to remove the chapter from the section number, add

\renewcommand{\thesection}{\arabic{section}}