{
  "name": "LaTeX header and footer problems and the documented fix (fancyhdr)",
  "description": "Symptoms commonly met when setting a LaTeX header or footer with fancyhdr, with the cause and the command or option that the fancyhdr manual v5.2 or Overleaf documentation gives as the fix.",
  "page": "https://casrai.org/guides/latex-header-footer",
  "publisher": "CASRAI",
  "license": "https://creativecommons.org/licenses/by/4.0/",
  "dateModified": "2026-11-16T22:04:08Z",
  "temporalCoverage": "2025/2026",
  "spatialCoverage": null,
  "columns": [
    {
      "name": "Symptom",
      "unit": "",
      "description": ""
    },
    {
      "name": "Cause",
      "unit": "",
      "description": ""
    },
    {
      "name": "Documented fix",
      "unit": "",
      "description": ""
    },
    {
      "name": "Source",
      "unit": "",
      "description": ""
    }
  ],
  "rows": [
    {
      "Symptom": "Warning: \\headheight is too small (12.0pt)",
      "Cause": "fancyhdr no longer changes \\headheight since v4.0",
      "Documented fix": "\\setlength{\\headheight}{14pt} and \\addtolength{\\topmargin}{-2pt}",
      "Source": "fancyhdr manual v5.2"
    },
    {
      "Symptom": "Rule thickness does not change",
      "Cause": "\\headrulewidth and \\footrulewidth are macros, not lengths",
      "Documented fix": "\\renewcommand{\\headrulewidth}{2pt}",
      "Source": "Overleaf; fancyhdr manual v5.2"
    },
    {
      "Symptom": "Even/odd (E, O) fields ignored",
      "Cause": "Document is one-sided",
      "Documented fix": "\\documentclass[twoside]{article}",
      "Source": "Overleaf"
    },
    {
      "Symptom": "Title page shows only a page number",
      "Cause": "\\maketitle issues \\thispagestyle{plain}",
      "Documented fix": "\\thispagestyle{fancy} after \\maketitle",
      "Source": "fancyhdr manual v5.2"
    },
    {
      "Symptom": "Header titles shown in capitals",
      "Cause": "Mark text is shown in capitals",
      "Documented fix": "\\nouppercase{\\leftmark}",
      "Source": "fancyhdr manual v5.2"
    },
    {
      "Symptom": "Header rule not wanted",
      "Cause": "The rule is drawn by the \\headrule macro",
      "Documented fix": "\\renewcommand{\\headrule}{}",
      "Source": "fancyhdr manual v5.2"
    }
  ],
  "sources": [
    {
      "title": "The fancyhdr package v5.2 (CTAN)",
      "url": "https://ctan.org/pkg/fancyhdr",
      "accessed": "2026-11-14"
    },
    {
      "title": "Overleaf: Headers and footers",
      "url": "https://www.overleaf.com/learn/latex/Headers_and_footers",
      "accessed": "2026-11-14"
    }
  ]
}