Skip to content
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

Build PDF version #672

Open
wenkokke opened this issue Jun 9, 2022 · 9 comments
Open

Build PDF version #672

wenkokke opened this issue Jun 9, 2022 · 9 comments
Labels
build Relates to the build system. enhancement Suggests an improvement. help wanted pdf Issues with the PDF version.

Comments

@wenkokke
Copy link
Collaborator

wenkokke commented Jun 9, 2022

The current build script no longer builds the PDF. However, it should be easy to adapt the task that builds the EPUB into a task that generates one massive LaTeX file, using the old LaTeX template.

@wenkokke wenkokke added pdf Issues with the PDF version. enhancement Suggests an improvement. build Relates to the build system. labels Jun 9, 2022
@wenkokke wenkokke changed the title Build PDF using same path as EPUB Build PDF Jun 9, 2022
@wenkokke wenkokke changed the title Build PDF Build PDF version Jun 9, 2022
@anadon
Copy link
Contributor

anadon commented Jul 4, 2022

The solution here might also serve as a solution to #720

@dimpase
Copy link

dimpase commented Feb 28, 2023

If this is done, it should be easy to host the resulting pdf.

I'm actually surprised that the html build is not going this route - using htlatex as the last step, TeX->html.

@wenkokke
Copy link
Collaborator Author

There's no LaTeX in the book source, so what good would that do?

@dimpase
Copy link

dimpase commented Feb 28, 2023

Well, could you (in the past?) generate such a TeX file? (perhaps I don't understand what "old LaTeX template" is)

@wenkokke
Copy link
Collaborator Author

We compiled to LaTeX in the past, using a LaTeX template (a la Pandoc). However, the primary format of PLFA is HTML. LaTeX is secondary. Therefore, generating the HTML via htlatex would be suboptimal.

@dimpase
Copy link

dimpase commented Feb 28, 2023

TeX does a very good job of typesetting; besides, PDF may be used as (or converted to) an epub (which would alleviate the issue of epub breaking now and then)

@wenkokke
Copy link
Collaborator Author

wenkokke commented Feb 28, 2023

Please elaborate on the methods for converting PDFs to accessible EPUBs, and what the advantages are over compiling from HTML to EPUB (which is also HTML).

@dimpase
Copy link

dimpase commented Feb 28, 2023

I don't know much about accessible epubs.

But currently if your devices (e.g. they only do Google's Play Books stuff) won't take your epub, you're SOL. If a PDF was available, it would be helpful.
In particular as Google's Play Books accepts PDFs, and converts them to epubs (or one can just use a PDF reader).

@wenkokke
Copy link
Collaborator Author

wenkokke commented Feb 28, 2023

I don't know much about accessible epubs.

But currently if your devices (e.g. they only do Google's Play Books stuff) won't take your epub, you're SOL. If a PDF was available, it would be helpful. In particular as Google's Play Books accepts PDFs, and converts them to epubs (or one can just use a PDF reader).

Converting PDF to EPUB is a terribly lossy operation.

You're free to resurrect the code that once built the PDF version; it's still in the Git history. That is the purpose of this issue page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Relates to the build system. enhancement Suggests an improvement. help wanted pdf Issues with the PDF version.
Projects
None yet
Development

No branches or pull requests

3 participants