Skip to content

Commit 00bbcb3

Browse files
authored
Merge pull request #30 from wiseodd/typst-slides
Add Tuoying Typst style
2 parents b693534 + 9ac11de commit 00bbcb3

3 files changed

Lines changed: 413 additions & 520 deletions

File tree

pub_ready_plots/styles.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ class Layout(Enum):
2222
POSTER_LANDSCAPE = "poster-landscape"
2323
POSTER_PORTRAIT = "poster-portrait"
2424
SLIDES_169 = "slides-169"
25+
TUOYING_169 = "tuoying-169"
2526

2627

2728
@dataclass
@@ -141,6 +142,7 @@ class Style:
141142
tick_size=1,
142143
tick_width=1,
143144
),
145+
# Beamer slides
144146
Layout.SLIDES_169: Style(
145147
text_width=5.5129,
146148
col_width=5.5129,
@@ -152,4 +154,16 @@ class Style:
152154
tick_size=1,
153155
tick_width=0.5,
154156
),
157+
# Typst Tuoying slides
158+
Layout.TUOYING_169: Style(
159+
text_width=11.693,
160+
col_width=11.693,
161+
text_height=6.577,
162+
font_name=FONT_NAME_ARIAL,
163+
footnote_size=18,
164+
script_size=16,
165+
linewidth=3,
166+
tick_size=3,
167+
tick_width=2,
168+
),
155169
}

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ authors = [{ name = "Agustinus Kristiadi", email = "agustinus@kristia.de" }]
66
classifiers = [
77
"License :: OSI Approved :: MIT License",
88
"Operating System :: OS Independent",
9-
"Programming Language :: Python :: 3.9",
9+
"Programming Language :: Python :: 3.11",
1010
]
11-
requires-python = ">=3.9"
12-
dependencies = ["matplotlib>=3.9.0"]
11+
requires-python = ">=3.11"
12+
dependencies = ["matplotlib>=3.10", "numpy>=2.3", "pandas>=2.3"]
1313
readme = "README.md"
1414
license = { text = "MIT" }
1515

0 commit comments

Comments
 (0)