I'm trying to remove the line of the header. Doing some searches, the best answer was \renewcommand{\headrulewidth}{0pt} but when I add the package fancyhdr I get an error saying that the footruleskip command is already defined.

I'm using \pagestyle{myheadings} to remove the Chapter title from the header.

\titleformat{\section}{\bfseries}{\thesection\space }{12pt}{}

the template that Im using https://github.com/guylhermetabosa/TCC/tree/master/modelo-tcc-abntex2 TCC.tex is the main file enter image description here

  • 1
    abntex2 uses memoir under the hood and it uses its own mechanism for headers and footers and is incompatible with fancyhdr. – Johannes_B Jun 4 '15 at 14:25

The repository shown seems to be a university template. Documented code is in a language i don't speak, but doing the regular algorithm of making a minimal working example, it boils down to /textual which is the mainmatter in abntex2. The pagestyle is set to abntheadings along with
\makeheadrule{abntheadings}{\textwidth}{\normalrulethickness}. We can see, that the key is to make the width of that line equal to zero point, i.e. having an invisible rule.

\chapter{lambada leguan}

As this is a university template adhering to the ABNT, it might not be a good idea to redefine their layout of pages. memoir internally uses normalrulethickness in various occasions, so redefining it might lead to unexpected outcome.

EDIT: Instead of changing the \normalrulethickness, it is possible to modify the abntheadings style: \makeheadrule{abntheadings}{\textwidth}{0pt} in the preamble, by doing so only the abntex2 heading is changed. (Guilherme Z. Santos)

  • Care to elaborate/explain? This isn't a very good answer at the moment IMHO. – Paul Gessler Jun 4 '15 at 15:00
  • @PaulGessler Because i don't understand any of the stuff that is going on in that template. There is a lot of crazy stuff going on, but it all boils down to setting the normalrulethickness. – Johannes_B Jun 4 '15 at 15:01
  • @Johannes_B that comment is already more of an explanation than the answer gave... why not just put it in the answer? – Paul Gessler Jun 4 '15 at 15:03
  • Give me a moment @paul :-) – Johannes_B Jun 4 '15 at 15:05
  • 1
    @ItaloPessoa -- if the university can't or won't accept the output from using this template/document class without the kinds of adjustments they're requesting, then it is not an appropriate tool for the job. this should be taken up with the university authorities. i'm not suggesting that you should undertake this, but if you could make clear to someone with "connections" that it is causing unnecessary difficulties unrelated to reporting your research, then maybe someone else in the future could benefit. (and good luck. i hope everything else goes well.) – barbara beeton Jun 5 '15 at 11:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.