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

feat: enable configuration options for PDF title and file name #67

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

tang-mm
Copy link

@tang-mm tang-mm commented Jan 27, 2025

  • Have you followed the guidelines for contributing?
  • Have you signed the CLA?
  • Have you successfully run tox?

Description

The current latex template defined the $PROJECT value as the PDF document title, so it was not possible to pass a new title from the configuration file.

This PR changed the default title to \thetitle in Latex and leverages the Sphinx latex_documents configuration variable to overwrite default values:

  • if thelatex_documents variable is not defined, the default title and output filename are the same as before
  • if the variable is defined (as provided in example/conf.py), new values are used

Usage and documentation link are added to the example configuration file.

Copy link

codecov bot commented Jan 27, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 24.48%. Comparing base (5a4416e) to head (b0f7714).
Report is 43 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##              main      #67       +/-   ##
============================================
- Coverage   100.00%   24.48%   -75.52%     
============================================
  Files            1        3        +2     
  Lines           10       98       +88     
  Branches         2       16       +14     
============================================
+ Hits            10       24       +14     
- Misses           0       74       +74     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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