Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ Instructions: Add a subsection under `[Unreleased]` for additions, fixes, change

## [Unreleased]

### Fixed

- Bug that sometimes prevented `pretext view` from working due to permissions on mac.
- Typos in template publication files.
- Default output filename for the slideshow template is now `index.html` so `pretext view` will open directly to the slideshow.

## [2.30.2] - 2025-11-11

Includes updates to core through commit: [ad3ef3f](https://github.com/PreTeXtBook/pretext/commit/ad3ef3fb102bf393b9fe33ecb242848e5ca6b0df)
Expand Down
9 changes: 9 additions & 0 deletions templates/article/publication/publication.ptx
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,13 @@
<source>
<directories external="../assets" generated="../generated-assets"/>
</source>

<common>
<!-- When writing an article for a specific journal, you can -->
<!-- specify the name of the journal to get appropriate latex. -->
<!-- See the guide for a list of valid names:
https://pretextbook.org/doc/guide/html/appendix-journals.html#appendix-journals -->

<!--<journal name="ams" /> -->
</common>
</publication>
6 changes: 3 additions & 3 deletions templates/book/publication/publication.ptx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<!-- <watermark scale="0.5">DRAFT</watermark> -->

<!-- Mermaid diagram themes -->
<!-- <mermaid theme="default" /> -->
<!-- <mermaid theme="default" /> -->

<!-- QR code image: set path to an image to put in center of QR codes -->
<!-- <qrcode image="image.png" /> -->
Expand Down Expand Up @@ -92,7 +92,7 @@
font-size="10"
draft="no"
latex-style="dyslexic-font"
>
>
-->

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

<html>
Expand Down
2 changes: 1 addition & 1 deletion templates/course/publication/publication-syllabus.ptx
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
<!-- Covers: provide paths to pdfs for front and back covers: -->
<!--<cover front="cover-front.pdf" back="cover-back.pdf" />-->
<!-- Set @formatted to "no" to remove formatting on worksheets: -->
<!--<worksheets formatted="yes" />-->
<!--<worksheet formatted="yes" />-->
</latex>

<html embed-button="yes">
Expand Down
2 changes: 1 addition & 1 deletion templates/course/publication/publication.ptx
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
<!-- Covers: provide paths to pdfs for front and back covers: -->
<!--<cover front="cover-front.pdf" back="cover-back.pdf" />-->
<!-- Set @formatted to "no" to remove formatting on worksheets: -->
<!--<worksheets formatted="yes" />-->
<!--<worksheet formatted="yes" />-->
</latex>

<html embed-button="yes">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
<!-- Covers: provide paths to pdfs for front and back covers: -->
<!--<cover front="cover-front.pdf" back="cover-back.pdf" />-->
<!-- Set @formatted to "no" to remove formatting on worksheets: -->
<!--<worksheets formatted="yes" />-->
<!--<worksheet formatted="yes" />-->
</latex>

<html>
Expand Down
2 changes: 1 addition & 1 deletion templates/course/publication/publication_standalone.ptx
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
<!-- Covers: provide paths to pdfs for front and back covers: -->
<!--<cover front="cover-front.pdf" back="cover-back.pdf" />-->
<!-- Set @formatted to "no" to remove formatting on worksheets: -->
<!--<worksheets formatted="yes" />-->
<!--<worksheet formatted="yes" />-->
</latex>

<html>
Expand Down
4 changes: 2 additions & 2 deletions templates/demo/publication/publication.ptx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<!-- <watermark scale="0.5">DRAFT</watermark> -->

<!-- Mermaid diagram themes -->
<!-- <mermaid theme="default" /> -->
<!-- <mermaid theme="default" /> -->

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

<html>
Expand Down
2 changes: 1 addition & 1 deletion templates/slideshow/project.ptx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<target
name="slides"
format="revealjs"
output-filename="slides.html"
output-filename="index.html"
/>
</targets>
</project>
2 changes: 1 addition & 1 deletion tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ def test_slideshow(tmp_path: Path, script_runner: ScriptRunner) -> None:
assert script_runner.run(
[PTX_CMD, "-v", "debug", "build", "slides"], cwd=tmp_path
).success
assert (tmp_path / "output" / "slides" / "slides.html").exists()
assert (tmp_path / "output" / "slides" / "index.html").exists()


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