josephwright / beamer

A LaTeX class for producing presentations and slides
Other
1.43k stars 143 forks source link

Strange looking vertical skip in headline of outer scheme `miniframes` #895

Open TamotsuTokazu opened 5 months ago

TamotsuTokazu commented 5 months ago

Issue

Consider the following simple test document using theme Dresden, which essentially uses miniframes for outer theme. When comparing the results compiled using beamer 3.36 vs 3.70, we can visually observe a difference between the headlines of the two versions. Personally speaking, there seems to be too much space for the 3.70, and the 3.36 one looks much better.

3.363.70

Cause

I'm not a professional in TeX, but I tried to investigate the issue myself and the following relevant code snippet:

https://github.com/josephwright/beamer/blob/c0d91f15165421646b5383546e6195187b7f97c9/base/themes/outer/beamerouterthememiniframes.sty#L103-L120

The snippet itself wasn't changed quite much throughout all the versions. However, after some experiments, I believe I'm able to say that it's the difference of \insertnavigation that causes the different appearances. More concretely:

Cure

I have also tested some possible patches. I'm not completely sure how and why this works, but they look good:

The difference between the two suggested changes is, indeed, really subtle. But since typesetting is an art in the details, we might still need to choose carefully between the two.

Acknowledgement

Thank you for your priceless effort in developing and maintaining this package.

TamotsuTokazu commented 4 months ago

Friendly reminder for anyone to take a look UwU

samcarter commented 4 months ago

@TamotsuTokazu Sorry for the late reply.

If I remember correctly, there was some problem with overlapping elements in a derived theme and the current position of elements was a compromise to minimise problems. I need to find the problematic example again to test your suggestion.