Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make section page width relative to linewidth #384

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ghlecl
Copy link

@ghlecl ghlecl commented Jan 9, 2022

Because the minipage width of the section page was hard coded to 22em, the proportions did not look quite right (at least to me) when using, for instance, "aspectratio=169" in a presentation. Making the size of the minipage a fraction of the linewidth preserves the proportions and looks better to me. This PR only proposes that change. What follows is simply my calculations, so someone can spot a mistake and correct me if there is one.

I looked into the beamer.cls file and found that the slide width for the 4:3 aspect ratio is 12.8cm. Beamer uses the geometry package to set the left and right horizontal margins to 1cm. Thus, the linewidth is 10.8cm.

The default font size is 11pt. Using TeX's definition of a point (i.e. ~0.035146cm) and the fact that an em is equal to the font size in pt, converting 22em in cm gave me ~8.505cm which translates to 0.787\linewidth based on the measurements above.

Because the minipage width of the section page was hard coded to 22em, the proportions did not look quite right (at least to me) when using, for instance, "aspectratio=169" in a presentation.  Making the size of the minipage a fraction of the linewidth preserves the proportions and looks better to me.  This PR only proposes that change.  What follows is simply my calculations, so someone can spot a mistake and correct me if there is one.

I looked into the beamer.cls file and found that the slide width for the 4:3 aspect ratio is 12.8cm.  Beamer uses the geometry package to set the left and right horizontal margins to 1cm.  Thus, the linewidth is 10.8cm.

The default font size is 11pt.  Using TeX's definition of a point (i.e. ~0.035146cm) and the fact that an em is equal to the font size in pt, converting 22em in cm gave me ~8.505cm which translates to 0.787\linewidth based on the measurements above.
jolars added a commit to jolars/moloch that referenced this pull request Jan 12, 2024
This is simply a carbon copy of matze#384. Thanks @ghlecl.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant