-
Notifications
You must be signed in to change notification settings - Fork 27
Modular Publication Files #1036
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
StevenClontz
wants to merge
3
commits into
main
Choose a base branch
from
StevenClontz/20260514/modular-pub
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <publication xmlns:xi="http://www.w3.org/2001/XInclude"> | ||
| <!-- For the complete documentation of publication-file options, see --> --> | ||
| <!-- https://pretextbook.org/doc/guide/html/publisher-file-reference.html --> | ||
| <xi:include href="./includes/common-instructor.ptx"/> | ||
| <xi:include href="./includes/html-calculus.ptx"/> | ||
| <xi:include href="./includes/latex.ptx"/> | ||
| <xi:include href="./includes/numbering.ptx"/> | ||
| <!-- must be in actual file for CLI compatibility --> | ||
| <source> --> | ||
| <directories external="../../../assets" generated="../generated-assets" /> | ||
| <version include="instructor nonpreview instructor-nonpreview html"/> | ||
| </source> | ||
| </publication> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <publication xmlns:xi="http://www.w3.org/2001/XInclude"> | ||
| <!-- For the complete documentation of publication-file options, see --> --> | ||
| <!-- https://pretextbook.org/doc/guide/html/publisher-file-reference.html --> | ||
| <xi:include href="./includes/common.ptx"/> | ||
| <xi:include href="./includes/html-calculus.ptx"/> | ||
| <xi:include href="./includes/latex.ptx"/> | ||
| <xi:include href="./includes/numbering.ptx"/> | ||
| <!-- must be in actual file for CLI compatibility --> | ||
| <source> --> | ||
| <directories external="../../../assets" generated="../generated-assets" /> | ||
| <version include="main nonpreview html"/> | ||
| </source> | ||
| </publication> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| <common> | ||
| <!-- Level at which are html files generated (chapter/section/etc): --> | ||
| <chunking level="2" /> | ||
| <!-- Depth for table of contents. 0 means no TOC --> | ||
| <tableofcontents level="2" /> | ||
| <!-- Visibility of exercise components where they first appear. --> | ||
| <!-- There are four components (statement/hint/answer/solution) for each --> | ||
| <!-- of five exercise types (inline/divisional/worksheet/reading/ --> | ||
| <!-- project). Some examples: --> | ||
| <exercise-inline statement="yes" hint="yes" answer="no" solution="no" /> | ||
| <exercise-divisional statement="yes" hint="yes" /> | ||
| <exercise-project statement="yes" hint="yes" answer="no" solution="no" /> | ||
| <!-- Style of fill-in-the-blanks: --> | ||
| <fillin textstyle="underline" mathstyle="shade" /> | ||
| <!-- You can set a watermark: --> | ||
| <!-- <watermark scale="0.5">DRAFT</watermark> --> | ||
| </common> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| <common> | ||
| <!-- Level at which are html files generated (chapter/section/etc): --> | ||
| <chunking level="2" /> | ||
| <!-- Depth for table of contents. 0 means no TOC --> | ||
| <tableofcontents level="2" /> | ||
| <!-- Visibility of exercise components where they first appear. --> | ||
| <!-- There are four components (statement/hint/answer/solution) for each --> | ||
| <!-- of five exercise types (inline/divisional/worksheet/reading/ --> | ||
| <!-- project). Some examples: --> | ||
| <exercise-inline statement="yes" hint="yes" answer="no" solution="no" /> | ||
| <exercise-divisional statement="yes" hint="yes" /> | ||
| <exercise-project statement="yes" hint="yes" answer="no" solution="no" /> | ||
| <!-- Style of fill-in-the-blanks: --> | ||
| <fillin textstyle="underline" mathstyle="shade" /> | ||
| <!-- You can set a watermark: --> | ||
| <!-- <watermark scale="0.5">DRAFT</watermark> --> | ||
| </common> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| <html> | ||
| <platform host="web"/> | ||
| <!-- The host above could also be "runestone" --> | ||
|
|
||
| <!-- Whether to knowl a particular elements is set here --> | ||
| <!-- Lots of elements have this possibility; see the guide --> | ||
| <knowl | ||
| theorem="no" | ||
| proof="yes" | ||
| definition="no" | ||
| example="no" | ||
| example-solution="yes" | ||
| project="no" | ||
| task="no" | ||
| remark="no" | ||
| objectives="no" | ||
| outcomes="no" | ||
| figure="no" | ||
| table="no" | ||
| listing="no" | ||
| list="no" | ||
| exercise-inline="yes" | ||
| exercise-divisional="no" | ||
| exercise-worksheet="no" | ||
| exercise-readingquestion="no" | ||
| /> | ||
|
|
||
| <css theme="denver" palette="leaves"/> | ||
| <!-- Search can be default or none, or you can use a Google-cx number to use google's search | ||
| feature (but then variant should be set to none to avoid conflict) --> | ||
| <search variant="default" /> | ||
| <!-- Set the base URL of where the online version is hosted to have links in other formats --> | ||
| <baseurl href="https://library.tbil.org/2026/calculus/"/> | ||
| </html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| <html> | ||
| <platform host="web"/> | ||
| <!-- The host above could also be "runestone" --> | ||
|
|
||
| <!-- Whether to knowl a particular elements is set here --> | ||
| <!-- Lots of elements have this possibility; see the guide --> | ||
| <knowl | ||
| theorem="no" | ||
| proof="yes" | ||
| definition="no" | ||
| example="no" | ||
| example-solution="yes" | ||
| project="no" | ||
| task="no" | ||
| remark="no" | ||
| objectives="no" | ||
| outcomes="no" | ||
| figure="no" | ||
| table="no" | ||
| listing="no" | ||
| list="no" | ||
| exercise-inline="yes" | ||
| exercise-divisional="no" | ||
| exercise-worksheet="no" | ||
| exercise-readingquestion="no" | ||
| /> | ||
|
|
||
| <css theme="denver" palette="leaves"/> | ||
| <!-- Search can be default or none, or you can use a Google-cx number to use google's search | ||
| feature (but then variant should be set to none to avoid conflict) --> | ||
| <search variant="default" /> | ||
| <!-- Set the base URL of where the online version is hosted to have links in other formats --> | ||
| <baseurl href="https://library.tbil.org/2026/linear-algebra/"/> | ||
| </html> | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| <html> | ||
| <platform host="web"/> | ||
| <!-- The host above could also be "runestone" --> | ||
|
|
||
| <!-- Whether to knowl a particular elements is set here --> | ||
| <!-- Lots of elements have this possibility; see the guide --> | ||
| <knowl | ||
| theorem="no" | ||
| proof="yes" | ||
| definition="no" | ||
| example="no" | ||
| example-solution="yes" | ||
| project="no" | ||
| task="no" | ||
| remark="no" | ||
| objectives="no" | ||
| outcomes="no" | ||
| figure="no" | ||
| table="no" | ||
| listing="no" | ||
| list="no" | ||
| exercise-inline="yes" | ||
| exercise-divisional="no" | ||
| exercise-worksheet="no" | ||
| exercise-readingquestion="no" | ||
| /> | ||
|
|
||
| <css theme="denver" palette="leaves"/> | ||
| <!-- Search can be default or none, or you can use a Google-cx number to use google's search | ||
| feature (but then variant should be set to none to avoid conflict) --> | ||
| <search variant="default" /> | ||
| <!-- Set the base URL of where the online version is hosted to have links in other formats --> | ||
| <baseurl href="https://library.tbil.org/2026/precalculus/"/> | ||
| </html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| <latex print="no" sides="one" font-size="12" draft="no"> | ||
| <!-- LaTeX specific options: set @print="yes" to get pdf set up --> | ||
| <!-- for printing; set @sides="two" if the printing woudl be two- --> | ||
| <!-- sided. @pageref="yes/no" controls whether page number are --> | ||
| <!-- included in cross-references --> | ||
| <page> | ||
| <geometry>letterpaper,margin=1in</geometry> | ||
| </page> | ||
| <asymptote links="no" /> | ||
| </latex> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| <numbering> | ||
| <!-- the divisions element describes the numbering of divisions. --> | ||
| <!-- @part-structure should be "decorative" or "structural", --> | ||
| <!-- were the latter would restart numbering chapters within each --> | ||
| <!-- part (this only matters if your book has parts). --> | ||
| <!-- The attribute @chapter-start give the number of the first --> | ||
| <!-- chapter. @level says how deep (chapter->section->subsection)--> | ||
| <!-- numbering should appear. --> | ||
| <!-- For use with a book organized by part, you can set the --> | ||
| <!-- @part-structure to "decorative" or "structural" --> | ||
| <!-- <divisions part-structure="decorative" chapter-start="1" level="3"/> --> | ||
| <!-- The next elements say how the levels deep to break up the --> | ||
| <!-- numbering of the respective elements. Can't be more than the --> | ||
| <!-- @level on divisions above. --> | ||
| <blocks level="2" /> | ||
| <projects level="2" /> | ||
| <equations level="2" /> | ||
| <footnotes level="2" /> | ||
| </numbering> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| <source> | ||
| <!-- Set where external assets and generated assets will be --> | ||
| <!-- stored or created. Directories are relative to the main --> | ||
| <!-- source PreTeXt file --> | ||
| <directories external="../../../assets" generated="../generated-assets" /> | ||
| <!-- Set which marked elements are included in this version: --> | ||
| <!-- See | ||
| https://pretextbook.org/doc/guide/html/publication-file-source.html#publication-file-source-version --> | ||
| <!-- <version include="videos labs"/> --> | ||
| <version include="main nonpreview html"/> | ||
| </source> |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It does not seem to work with
<baseurl>in the included file, I could only get the right url on QR codes if I put this directly in the publication file.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
baseurl being included shouldn't be a problem because that's all core PreTeXt, and I think it's just the CLI that has a bug
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The CLI is grabbing the baseurl here. I confess that I didn't debug enough to verify that this is actually causing the observed problem, but I think that at least disproves your statement that baseurl is all core PreTeXt.