krono / swathesis

An unofficial LaTeX class for writing theses at the Software Architecture Group, Hasso-Plattner-Institut, University of Potsdam, Germany.
LaTeX Project Public License v1.3c
21 stars 18 forks source link

Proposal: Style PDF bookmarks to chapters in bold #62

Closed LinqLover closed 2 months ago

LinqLover commented 3 months ago

image

\usepackage{bookmark}
\makeatletter
\bookmarksetup{
    open,
    addtohook={%
        \ifnum\bookmarkget{level}=0 %
            \if@mainmatter
                \bookmarksetup{bold}%
            \fi
        \fi
    },
}
\makeatother

If this is relevant, I can send a patch. Otherwise, sorry for the noise. :)

krono commented 3 months ago

No need to be sorry. I think this is somewhat nice, but a tad too specific for my taste. bookmark is loaded at the right place in swa-document already , so probably a prper \AfterPackage or \BeforeBeginEnvrionemnt{document} is in order to not disturb hyperref and friends.

Maybe i should add something to customize swathesis properli (viz lstlang0.sty of listings…)

LinqLover commented 2 months ago

I'm not sure whether this was advice on how to refactor my personal solution or a request for creating a pull request :sweat_smile:

krono commented 2 months ago

na just rambling