Skip to content

Commit 75fa7ba

Browse files
authored
Templates (#1086)
* fix worksheet publication template typo * fix default slideshow output filename in slideshow template * add commented journal name option to article template * update tests to reflect new template output filename
1 parent 7c7e11b commit 75fa7ba

File tree

10 files changed

+26
-11
lines changed

10 files changed

+26
-11
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ Instructions: Add a subsection under `[Unreleased]` for additions, fixes, change
99

1010
## [Unreleased]
1111

12+
### Fixed
13+
14+
- Bug that sometimes prevented `pretext view` from working due to permissions on mac.
15+
- Typos in template publication files.
16+
- Default output filename for the slideshow template is now `index.html` so `pretext view` will open directly to the slideshow.
17+
1218
## [2.30.2] - 2025-11-11
1319

1420
Includes updates to core through commit: [ad3ef3f](https://github.com/PreTeXtBook/pretext/commit/ad3ef3fb102bf393b9fe33ecb242848e5ca6b0df)

templates/article/publication/publication.ptx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,13 @@
44
<source>
55
<directories external="../assets" generated="../generated-assets"/>
66
</source>
7+
8+
<common>
9+
<!-- When writing an article for a specific journal, you can -->
10+
<!-- specify the name of the journal to get appropriate latex. -->
11+
<!-- See the guide for a list of valid names:
12+
https://pretextbook.org/doc/guide/html/appendix-journals.html#appendix-journals -->
13+
14+
<!--<journal name="ams" /> -->
15+
</common>
716
</publication>

templates/book/publication/publication.ptx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
<!-- <watermark scale="0.5">DRAFT</watermark> -->
3535

3636
<!-- Mermaid diagram themes -->
37-
<!-- <mermaid theme="default" /> -->
37+
<!-- <mermaid theme="default" /> -->
3838

3939
<!-- QR code image: set path to an image to put in center of QR codes -->
4040
<!-- <qrcode image="image.png" /> -->
@@ -92,7 +92,7 @@
9292
font-size="10"
9393
draft="no"
9494
latex-style="dyslexic-font"
95-
>
95+
>
9696
-->
9797

9898
<!-- Control text justification and bottom page behavior. Add content intended for \geometry{} inside the <geometry> element. -->
@@ -109,7 +109,7 @@
109109
<!-- Covers: provide paths to pdfs for front and back covers: -->
110110
<!--<cover front="cover-front.pdf" back="cover-back.pdf" />-->
111111
<!-- Set @formatted to "no" to remove formatting on worksheets: -->
112-
<!--<worksheets formatted="yes" />-->
112+
<!--<worksheet formatted="yes" />-->
113113
</latex>
114114

115115
<html>

templates/course/publication/publication-syllabus.ptx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
<!-- Covers: provide paths to pdfs for front and back covers: -->
106106
<!--<cover front="cover-front.pdf" back="cover-back.pdf" />-->
107107
<!-- Set @formatted to "no" to remove formatting on worksheets: -->
108-
<!--<worksheets formatted="yes" />-->
108+
<!--<worksheet formatted="yes" />-->
109109
</latex>
110110

111111
<html embed-button="yes">

templates/course/publication/publication.ptx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
<!-- Covers: provide paths to pdfs for front and back covers: -->
106106
<!--<cover front="cover-front.pdf" back="cover-back.pdf" />-->
107107
<!-- Set @formatted to "no" to remove formatting on worksheets: -->
108-
<!--<worksheets formatted="yes" />-->
108+
<!--<worksheet formatted="yes" />-->
109109
</latex>
110110

111111
<html embed-button="yes">

templates/course/publication/publication_scorm_syllabus.ptx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
<!-- Covers: provide paths to pdfs for front and back covers: -->
106106
<!--<cover front="cover-front.pdf" back="cover-back.pdf" />-->
107107
<!-- Set @formatted to "no" to remove formatting on worksheets: -->
108-
<!--<worksheets formatted="yes" />-->
108+
<!--<worksheet formatted="yes" />-->
109109
</latex>
110110

111111
<html>

templates/course/publication/publication_standalone.ptx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
<!-- Covers: provide paths to pdfs for front and back covers: -->
106106
<!--<cover front="cover-front.pdf" back="cover-back.pdf" />-->
107107
<!-- Set @formatted to "no" to remove formatting on worksheets: -->
108-
<!--<worksheets formatted="yes" />-->
108+
<!--<worksheet formatted="yes" />-->
109109
</latex>
110110

111111
<html>

templates/demo/publication/publication.ptx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
<!-- <watermark scale="0.5">DRAFT</watermark> -->
3535

3636
<!-- Mermaid diagram themes -->
37-
<!-- <mermaid theme="default" /> -->
37+
<!-- <mermaid theme="default" /> -->
3838

3939
<!-- QR code image: set path to an image to put in center of QR codes -->
4040
<!-- <qrcode image="image.png" /> -->
@@ -105,7 +105,7 @@
105105
<!-- Covers: provide paths to pdfs for front and back covers: -->
106106
<!--<covers front="cover-front.pdf" back="cover-back.pdf" />-->
107107
<!-- Set @formatted to "no" to remove formatting on worksheets: -->
108-
<!--<worksheets formatted="yes" />-->
108+
<!--<worksheet formatted="yes" />-->
109109
</latex>
110110

111111
<html>

templates/slideshow/project.ptx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<target
66
name="slides"
77
format="revealjs"
8-
output-filename="slides.html"
8+
output-filename="index.html"
99
/>
1010
</targets>
1111
</project>

tests/test_cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ def test_slideshow(tmp_path: Path, script_runner: ScriptRunner) -> None:
321321
assert script_runner.run(
322322
[PTX_CMD, "-v", "debug", "build", "slides"], cwd=tmp_path
323323
).success
324-
assert (tmp_path / "output" / "slides" / "slides.html").exists()
324+
assert (tmp_path / "output" / "slides" / "index.html").exists()
325325

326326

327327
def test_deploy(tmp_path: Path, script_runner: ScriptRunner) -> None:

0 commit comments

Comments
 (0)