Skip to content

Commit f88b0e5

Browse files
committed
New: Add enough to get started with pdf build
1 parent 0ffedd2 commit f88b0e5

3 files changed

Lines changed: 25 additions & 5 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,5 @@ beta
1919
output
2020
published
2121
pdf
22+
GenFigs
23+
cli.log

README.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,20 @@ Building for Production on a Runestone Server
4545
3. Run `rsmanage build --ptx httlacs`
4646

4747

48+
Building a PDF
49+
--------------
50+
51+
1. clone this repo
52+
2. install pretext with ``pip install pretext``
53+
3. run ``pretext build --generate ALL pdf`` This will generate the needed assets and then try to build the pdf. You generally only need to include the ``--generate ALL`` the first time you build the pdf. After that you can just run ``pretext build pdf``
54+
55+
Note -- As of June 2023, the pdf build is not working. It builds the first few pages and then there is a latex error. We would love some help fixing this. For that it may be helpful to use the latex target and then manually run latex on the resulting latex source in the output/latex folder.
56+
57+
58+
4859
Building with runestone
4960
-----------------------
61+
5062
As mentioned above this method is deprecated, but will still work.
5163
Any updates to this book should be made in PreTeXt NOT RST.
5264

project.ptx

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,22 @@
1818
<publication>pretext/publication-rs-academy.xml</publication>
1919
<output-dir>published/httlacs</output-dir>
2020
</target>
21+
<target name="epub">
22+
<format>epub</format>
23+
<source>pretext/thinkcspy.ptx</source>
24+
<publication>pretext/publication-pub.xml</publication>
25+
<output-dir>published/epub</output-dir>
26+
</target>
2127
<target name="latex">
2228
<format>latex</format>
23-
<source>source/main.ptx</source>
24-
<publication>publication/publication.ptx</publication>
29+
<source>pretext/thinkcspy.ptx</source>
30+
<publication>pretext/publication-rs-for-all.xml</publication>
2531
<output-dir>output/latex</output-dir>
2632
</target>
27-
<target name="pdf" pdf-method="pdflatex">
33+
<target name="pdf" pdf-method="xelatex">
2834
<format>pdf</format>
29-
<source>source/main.ptx</source>
30-
<publication>publication/publication.ptx</publication>
35+
<source>pretext/thinkcspy.ptx</source>
36+
<publication>pretext/publication-rs-for-all.xml</publication>
3137
<output-dir>output/pdf</output-dir>
3238
</target>
3339
<target name="subset">

0 commit comments

Comments
 (0)