Make section page width relative to linewidth #384
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.