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

Latex template visual improvements #171

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

PJBrs
Copy link
Contributor

@PJBrs PJBrs commented Aug 24, 2024

These are five patches that together improve the quality of the latex character template and that bring the information on the latex character character sheet at the same level as the fillable sheets (except the proficiencies, but neither form if perfect at this point).

The first patch creates still more room in for equipment by putting weight and carrying capacity on one line instead of two.

The second patch improves portrait handling by better resizing pictures and keeping space for text as well.

The third patch lists all classes and levels on the character sheet, instead of only the primary class and level, just as the fillable sheet.

The fourth patch adds spell components information to the spell sheets, just as the fillable sheets.

The fifth patch introduces overflow spell pages, just as the fillable sheets.

These patches hinge on a recent change in the MSavage latex character sheet that introduces automatic font downsizing to prevent text box overflow. With all this, the latex character sheet is at feature parity with the fillable forms, barring proficiencies. I do have a separate branch for improving how proficiencies are dealt with on both the latex and fillable forms.

The equipment box on the MSavage latex template still
quite easily overflows. Previously, this was in part
due to the fact that weight and carrying capacity both
occupied a single line in the equipment box. This patch
puts weigt and carrying capacity on a single line by
displaying it in a smaller font size and by rounding
weight to whole numbers instead of two decimals.
This patch prevents the portrait picture in the MSavage
latex template to overflow the appearance box. It centers the
portrait if it doesn't fill the width of the appearance box.
And it keeps compatibility of having both text and an image
in the portrait box.
Previously, the MSavage latex template did not scale font
size in order to fit text inside specific spaces, which meant
that the levels and classes of a multiclass character would
overflow the text space for level and class.

With the current template, we can list all classes and levels.
Best tested with the sorcerer_ranger.py example.
The fillable forms list requirements for every spell.
For the latex template, this is a little bit harder
because you need to escape the dollar sign $ for
valuable components. This patch does exactly that.
The fillable pdf format has overflow sheets for when
the number of spells exceeds the number of spells
for one spell page. This patch implements such
overflow sheets for the latex character sheets.
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