mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-05-07 02:03:55 -05:00
How to compile the book? #329
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @BravoBaldo on GitHub (Feb 6, 2025).
I haven't been able to recompile the book for at least a week.
It would be appropriate to indicate which sw to install.
It seems that Quarto is no longer enough.
Furthermore, the .tex files are called even when compiling only the HTML part.
@profvjreddi commented on GitHub (Feb 6, 2025):
Hi, yea, we have had to upgrade the compiler and use LuaTex, etc., cause of redrawing the images in this so that everything is more self-contained cause when we tried to render images to the PDF, etc., the resolution of the original image was becoming an issue. So, we are trying to streamline everything. Apologies for the headache, we also faced that.
Rscript install_packages.R.I will try to add a build instruction file.
@profvjreddi commented on GitHub (Feb 9, 2025):
Hi @BravoBaldo please see https://github.com/harvard-edge/cs249r_book?tab=readme-ov-file#-want-to-build-the-book-locally
I hope these instructions work for you. Let me know.
@profvjreddi commented on GitHub (Feb 12, 2025):
Ah, sorry I actually meant to share this detailed link for you -- https://github.com/harvard-edge/cs249r_book/blob/dev/BUILD.md
@BravoBaldo commented on GitHub (Feb 12, 2025):
On a fresh installation of Windows:
with
quarto render --to htmlthere are 2 types of warningsIn the end, however, the html is produced
with
quarto render --to pdf:No PDF produced
@profvjreddi commented on GitHub (Feb 12, 2025):
Could you please make sure
tlmgr install listingssays that the package is installed?Are you using MiKTeX on Windows?
If using MiKTeX, could you make sure "Install missing packages on the fly" is enabled:
Open MiKTeX Console.
Go to Settings → General.
Set "Install missing packages on the fly" to "Yes".
Then try rendering again.
I don't build on windows, but these are pretty standard.
@profvjreddi commented on GitHub (Feb 12, 2025):
As for the warnings, I myself haven't quite figured out how to get rid of them. They are coming from Inkscape, which is needed to render tikz drawings.
@profvjreddi commented on GitHub (Feb 16, 2025):
@BravoBaldo did this help you with building on Windows?
@BravoBaldo commented on GitHub (Feb 17, 2025):
The answer to your question is no, it does not affect the build.
OmegaT parser complains!
In any case these are the only places where there are single backslashes.
I'm continuing to investigate Windows.
I discovered that the font warnings are for the Helvetica font that was specifically required.
The other warnings will take some time.
Baldo
@profvjreddi commented on GitHub (Feb 17, 2025):
OK, keep me posted.
Yes, we started using Helvetica fonts for the figures, so that's something new.
I do have a version that builds on Windows and you can see the Quarto yml workflow file for it here - https://github.com/harvard-edge/cs249r_book/blob/dev/.github/workflows/quarto-build.yml - it builds for both Linux and Windows, but that version passes the build check.
It looks like OmegaT is some translator. I haven't used it before. If you think its useful to put into the build flow, we can look into that to see if the changes we are making are compliant with that workflow you are using for translating.
Can you take a look at the
ymlfile above and let me know if it helps you. Sorry for this headache, but as I continue to improve the book, we are just having to use more tools to bring the book closer to publishing shape. Thank you for your patience 🙏