docs: Fixed paper size selection (GitHub #13439). Also set paper size to widespread A4 for dist.mak and CI.

This commit is contained in:
Vas Crabb 2025-03-08 23:26:00 +11:00
parent 844926cc2f
commit d1781a7d1f
3 changed files with 4 additions and 4 deletions

View File

@ -28,7 +28,7 @@ jobs:
- name: Build HTML
run: make -C docs html
- name: Build PDF
run: make -C docs latexpdf
run: make -C docs PAPER=a4 latexpdf
- uses: actions/upload-artifact@main
with:
name: mame-docs-${{ github.sha }}

View File

@ -128,6 +128,6 @@ $(STAGEDIR)/docs/MAME.pdf: docs/build/latex/MAME.pdf | $(GEN_FOLDERS)
$(call COPY,$<,$@)
docs/build/latex/MAME.pdf:
$(MAKE) -C docs latexpdf
$(MAKE) -C docs PAPER=a4 latexpdf
.PHONY: all clean

View File

@ -8,8 +8,8 @@ PAPER =
BUILDDIR = build
# Internal variables.
PAPEROPT_a4 = -D latex_paper_size=a4
PAPEROPT_letter = -D latex_paper_size=letter
PAPEROPT_a4 = -D latex_elements.papersize=a4paper
PAPEROPT_letter = -D latex_elements.papersize=letterpaper
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source
# the i18n builder cannot share the environment and doctrees with the others
I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source