# Remove chapter and part text from LaTeX documents

When using the \part and \chapter tags in LaTeX you will typically end up with parts and chapters that say “part” and “chapter” before the name you have written. Putting these lines in your preamble will remove this:

\renewcommand{\partname}{}
\renewcommand{\chaptername}{}
\renewcommand{\thechapter}{}
\renewcommand{\thesection}{}


### alexarje

Alexander Refsum Jensenius is a music researcher and research musician living in Oslo, Norway.

## 3 thoughts on “Remove chapter and part text from LaTeX documents”

1. Sanne says:

2. Other interesting commands:

or:

\usepackage{titlesec}
\newcommand{\bigrule}{\titlerule[0.5mm]}
\titleformat{\chapter}[display]
{\bfseries\Huge}
{
\vspace{-1.125in} %\titlerule \filleft \Large \chaptertitlename\ \Large\thechapter
}{0mm}
{\filleft \Large\thechapter. }[\vspace{0.5mm} \bigrule]

3. Aron says:

Can you add what each line does?

Also I get strange errors when I added another language with babel. Or I think that was the cause because after I changed language those texts are back like “Chapter” etc. The numbers are gone but the text are placed wrong as if the numbers was still there so it looks like shit.