Skip to content

Commit c7ec526

Browse files
committed
Update default PDF margins (fixes #396)
1 parent 527216e commit c7ec526

5 files changed

Lines changed: 238 additions & 5 deletions

File tree

.gitignore

Lines changed: 218 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,221 @@ ads.txt
77
build_ebook.log
88
temp_ebook.md
99
ebook/*.pdf
10-
ebook/*.epub
10+
ebook/*.epub
11+
12+
# Byte-compiled / optimized / DLL files
13+
__pycache__/
14+
*.py[codz]
15+
*$py.class
16+
17+
# C extensions
18+
*.so
19+
20+
# Distribution / packaging
21+
.Python
22+
build/
23+
develop-eggs/
24+
dist/
25+
downloads/
26+
eggs/
27+
.eggs/
28+
lib/
29+
lib64/
30+
parts/
31+
sdist/
32+
var/
33+
wheels/
34+
share/python-wheels/
35+
*.egg-info/
36+
.installed.cfg
37+
*.egg
38+
MANIFEST
39+
40+
# PyInstaller
41+
# Usually these files are written by a python script from a template
42+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
43+
*.manifest
44+
*.spec
45+
46+
# Installer logs
47+
pip-log.txt
48+
pip-delete-this-directory.txt
49+
50+
# Unit test / coverage reports
51+
htmlcov/
52+
.tox/
53+
.nox/
54+
.coverage
55+
.coverage.*
56+
.cache
57+
nosetests.xml
58+
coverage.xml
59+
*.cover
60+
*.py.cover
61+
.hypothesis/
62+
.pytest_cache/
63+
cover/
64+
65+
# Translations
66+
*.mo
67+
*.pot
68+
69+
# Django stuff:
70+
*.log
71+
local_settings.py
72+
db.sqlite3
73+
db.sqlite3-journal
74+
75+
# Flask stuff:
76+
instance/
77+
.webassets-cache
78+
79+
# Scrapy stuff:
80+
.scrapy
81+
82+
# Sphinx documentation
83+
docs/_build/
84+
85+
# PyBuilder
86+
.pybuilder/
87+
target/
88+
89+
# Jupyter Notebook
90+
.ipynb_checkpoints
91+
92+
# IPython
93+
profile_default/
94+
ipython_config.py
95+
96+
# pyenv
97+
# For a library or package, you might want to ignore these files since the code is
98+
# intended to run in multiple environments; otherwise, check them in:
99+
# .python-version
100+
101+
# pipenv
102+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
103+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
104+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
105+
# install all needed dependencies.
106+
# Pipfile.lock
107+
108+
# UV
109+
# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
110+
# This is especially recommended for binary packages to ensure reproducibility, and is more
111+
# commonly ignored for libraries.
112+
# uv.lock
113+
114+
# poetry
115+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
116+
# This is especially recommended for binary packages to ensure reproducibility, and is more
117+
# commonly ignored for libraries.
118+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
119+
# poetry.lock
120+
# poetry.toml
121+
122+
# pdm
123+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
124+
# pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
125+
# https://pdm-project.org/en/latest/usage/project/#working-with-version-control
126+
# pdm.lock
127+
# pdm.toml
128+
.pdm-python
129+
.pdm-build/
130+
131+
# pixi
132+
# Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
133+
# pixi.lock
134+
# Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
135+
# in the .venv directory. It is recommended not to include this directory in version control.
136+
.pixi
137+
138+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
139+
__pypackages__/
140+
141+
# Celery stuff
142+
celerybeat-schedule
143+
celerybeat.pid
144+
145+
# Redis
146+
*.rdb
147+
*.aof
148+
*.pid
149+
150+
# RabbitMQ
151+
mnesia/
152+
rabbitmq/
153+
rabbitmq-data/
154+
155+
# ActiveMQ
156+
activemq-data/
157+
158+
# SageMath parsed files
159+
*.sage.py
160+
161+
# Environments
162+
.env
163+
.envrc
164+
.venv
165+
env/
166+
venv/
167+
ENV/
168+
env.bak/
169+
venv.bak/
170+
171+
# Spyder project settings
172+
.spyderproject
173+
.spyproject
174+
175+
# Rope project settings
176+
.ropeproject
177+
178+
# mkdocs documentation
179+
/site
180+
181+
# mypy
182+
.mypy_cache/
183+
.dmypy.json
184+
dmypy.json
185+
186+
# Pyre type checker
187+
.pyre/
188+
189+
# pytype static type analyzer
190+
.pytype/
191+
192+
# Cython debug symbols
193+
cython_debug/
194+
195+
# PyCharm
196+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
197+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
198+
# and can be added to the global gitignore or merged into this file. For a more nuclear
199+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
200+
# .idea/
201+
202+
# Abstra
203+
# Abstra is an AI-powered process automation framework.
204+
# Ignore directories containing user credentials, local state, and settings.
205+
# Learn more at https://abstra.io/docs
206+
.abstra/
207+
208+
# Visual Studio Code
209+
# Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
210+
# that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
211+
# and can be added to the global gitignore or merged into this file. However, if you prefer,
212+
# you could uncomment the following to ignore the entire vscode folder
213+
# .vscode/
214+
215+
# Ruff stuff:
216+
.ruff_cache/
217+
218+
# PyPI configuration file
219+
.pypirc
220+
221+
# Marimo
222+
marimo/_static/
223+
marimo/_lsp/
224+
__marimo__/
225+
226+
# Streamlit
227+
.streamlit/secrets.toml

.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.13

make_parser.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,28 +9,28 @@ def make_parser() -> argparse.ArgumentParser:
99
"--geometry:left",
1010
type=str,
1111
required=False,
12-
default="",
12+
default="2.5cm",
1313
help="Specify left margin space as a string. Example: 2cm.",
1414
)
1515
parser.add_argument(
1616
"--geometry:right",
1717
type=str,
1818
required=False,
19-
default="",
19+
default="2.5cm",
2020
help="Specify right margin space as a string. Example: 2cm.",
2121
)
2222
parser.add_argument(
2323
"--geometry:top",
2424
type=str,
2525
required=False,
26-
default="",
26+
default="2.5cm",
2727
help="Specify top margin space as a string. Example: 2cm.",
2828
)
2929
parser.add_argument(
3030
"--geometry:bottom",
3131
type=str,
3232
required=False,
33-
default="",
33+
default="2.5cm",
3434
help="Specify bottom margin space as a string. Example: 2cm.",
3535
)
3636

pyproject.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[project]
2+
name = "vulkantutorial"
3+
version = "0.1.0"
4+
description = "Add your description here"
5+
readme = "README.md"
6+
requires-python = "~=3.13.0"
7+
dependencies = []

uv.lock

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)