-
Notifications
You must be signed in to change notification settings - Fork 31
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
[Todo] Generate PDF in pandoc/ubuntu-latex
, missing package.
#30
Comments
I didn't spend any time on this when we (finally) converted it to markdown other than to make sure it was publishable as we now have on https://lpic2book.github.io/src/ - I included all that we had as scripts etc. for historical purposes but don't have the actual publishing pipeline setup requirements on hand, sorry. https://www.linuxquestions.org/questions/showthread.php?p=6252065 contains some references to virtual fonts and how someone got it (partially) working - but we could also look at https://github.com/orzih/mkdocs-with-pdf or https://github.com/zhaoterryy/mkdocs-pdf-export-plugin within a container if that deems more useful? |
Thank you for the information! Building the whole thing via mkdocs seems to make sense to me, since that is also used in the workflow to generate the HTML for github pages, if I saw that correctly. In my opinion, it is nice to have the document also downloadable as PDF or epub. Perhaps such a solution could even be integrated into the workflow to automatically generate the assets for new releases as well. By the way, thanks for publishing this book, it helps a lot in preparing for the LPIC exam! 🚀 |
We used to have an epub/pdf published in both mobile platform stores but without proper maintenance that seemed less good of an idea, hence publishing it in the open for the community to improve and use. If (when) I have some spare time I can also take a look - let's leave this one open for someone to pick up, labelling accordingly. |
pandoc/ubuntu-latex
, missing package.
Thit comment is a note (context: my laptop with hostname
installing packge
Yes, original reported build failure is reproducable. |
More text of the build failure:
And yes, now I also outside my comfort zone. |
Mmm, there is no But when I modify --- a/bin/pdf.sh
+++ b/bin/pdf.sh
@@ -2,10 +2,10 @@
cd docs &&
pandoc --pdf-engine=xelatex \
+ --verbose \
-V lang="en-us" -V babel-lang=english \
-V 'mainfont:DejaVuSerif.ttf' \
-V 'sansfont:DejaVuSans.ttf' \
-V 'monofont:DejaVuSansMono.ttf' \
-V 'mathfont:texgyredejavu-math.otf' \
- --include-before-body cover.tex \
--toc -s *.md -t pdf -o ../dist/lpic2.pdf the error presists ... |
It might a content problem, not a missing package problem. Anyway, there is now #32. |
FWIW #34 is also about creating a .pdf. |
If someone's up for DTP-ing ... https://github.com/orzih/mkdocs-with-pdf has some options for styling the PDF |
I am currently trying to create a reproducible environment for converting this book to PDF using Docker. For this I use the script provided in
./bin/pdf.sh
however I get this error message indicating a missing package or something:I am using the official
pandoc/ubuntu-latex
image. For testing purposes, I installedtexlive-full
(includingtexlive-fonts-*
) as well asfonts-dejavu-*
and some other packages inside of the container. But still no luck. Could you point out the packages needed to build this book as pdf?Epub works just fine.
The text was updated successfully, but these errors were encountered: