I want to achieve a dictionary header for the subsections of a page (not for the whole section).

Imagine the header should looks like this:

subsectionname 1.1 - subsectionname 1.2                         SECTIONNAME 1

How can i achieve this?

  • Doing this is some not-so-stable way is easy. But getting this right reliably correct might be hard. I'll test some things. Also this will take a lot of space if you really want to include the section and subsection titles, which might not be what you want.
    – Skillmon
    Dec 28 '19 at 16:45
  • The problem is detecting whether the current subsection starts at the top of the page or whether some of the previous subsection carries over. Also it might be that a subsection doesn't start at the top of the page, but still is the only subsection which's content is on this page, because everything else on this page is from the section.
    – Skillmon
    Dec 28 '19 at 16:51
  • Thank you very much for your reply. So it is very difficult to achieve this? Sad :(. I really would like to have a header like this.
    – swap
    Dec 28 '19 at 18:21
  • At least I can't think of a reliable automatic way, that doesn't mean that there is none, only that I can't think of one...
    – Skillmon
    Dec 28 '19 at 18:41
  • I have got an idea. What do you think about reading the .toc file into memory with LuaLateX to generate the appropriate headers from the information.
    – swap
    Dec 28 '19 at 18:52

Your Answer

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

Browse other questions tagged or ask your own question.