I was wondering if anyone knows how to tell Beamer to divide the table of contents in the headline in columns if there are too many sections, else leave it in one column.
I found this thread very useful
However, with this code, the ToC will always show up in two columns, which is not always esthetically pleasing (when there are only 2 sections, for example).
I am working on a customized template for my institution, which is why I need to make it as versatile as possible.
I was thinking of something along the lines of keeping the default \insertsectionnavigation if the height of the table of contents is smaller than or equal to the height of the headline, else divide. But I am having trouble turning this into proper code.
Thank you for your help.