I have and article document in latex. In this document, I have set \lhead in the header of doc. But as my doc is about many themes, I was wondering if I could change \lhead contain dynamically?

  • 1
    You should use the proper mark interface instead of setting the headers by hand.
    – Johannes_B
    May 3 '17 at 14:02
  • @Johannes_B please explain a bit more how to do this.
    – dmx
    May 3 '17 at 14:04
  • Use \lhead{\leftmark} (or rather the modern form which is described in the fancyhdr manual, but that i forgot now).
    – Johannes_B
    May 3 '17 at 16:05

Browse other questions tagged or ask your own question.