Skip to content

Commit d1781a7

Browse files
committed
docs: Fixed paper size selection (GitHub #13439). Also set paper size to widespread A4 for dist.mak and CI.
1 parent 844926c commit d1781a7

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.github/workflows/docs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- name: Build HTML
2929
run: make -C docs html
3030
- name: Build PDF
31-
run: make -C docs latexpdf
31+
run: make -C docs PAPER=a4 latexpdf
3232
- uses: actions/upload-artifact@main
3333
with:
3434
name: mame-docs-${{ github.sha }}

dist.mak

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,6 @@ $(STAGEDIR)/docs/MAME.pdf: docs/build/latex/MAME.pdf | $(GEN_FOLDERS)
128128
$(call COPY,$<,$@)
129129

130130
docs/build/latex/MAME.pdf:
131-
$(MAKE) -C docs latexpdf
131+
$(MAKE) -C docs PAPER=a4 latexpdf
132132

133133
.PHONY: all clean

docs/Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ PAPER =
88
BUILDDIR = build
99

1010
# Internal variables.
11-
PAPEROPT_a4 = -D latex_paper_size=a4
12-
PAPEROPT_letter = -D latex_paper_size=letter
11+
PAPEROPT_a4 = -D latex_elements.papersize=a4paper
12+
PAPEROPT_letter = -D latex_elements.papersize=letterpaper
1313
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source
1414
# the i18n builder cannot share the environment and doctrees with the others
1515
I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source

0 commit comments

Comments
 (0)