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
Make PDF great again #5729
Make PDF great again #5729
Conversation
Exclude processing algorithms to reduce size of the user manual
Hi @SrNetoChan
Another "concern" is the exclusion of processing_algs resulting in warnings but also missing urls in gui and expression chapters. These two chapters have a lot of connection with the algs. |
It probably has to be with strange characters. @havatv had a bunch of callbacks in here: https://github.com/qgis/QGIS-Documentation/blob/release_3.10/conf.py#L237 And I needed to add the Pi character. Not sure if we are doing it the right way, it feels strange to me that we need to do this, maybe I should try tex2pdf too, to see wish works best. Can you share those prompt error messages?
That is strange. Maybe it has something to do with the first errors. I confess I haven't tried with any other language. How did you run the command? make pdf?
I started by removing the processing algorithm because of some issues in the taudem algorithms, but then it was also a question o space. With the algorithms the PDF has more 400 pages, going up to 1100 in total. The 2.18 PDFs didn't have the algorithms. Bear in mind that, in the PDFs, links to other documents (like the training manual) will also be broken. I spent a morning trying to create a conditional TOC that would move the processing algorithms to another document just for latex, keeping the user manual small, but having the algorithms available as an extra. Afterall, they are useful both for the user manual as for the python cookbook. But I have failed miserably. the We could move the processing algorithms to another document even in HTML, or simply include it all in the user's manual PDF. Whatever you guys prefer. |
I tried creating the pt_PT PDFs and I got a bunch of errors. I had to install |
@SrNetoChan just try it out. That is what I do. Note though that to make this work you will need a lot more to do:
But feel free to just merge, but please let 'make site' not (yet) build pdf. If we have everything automated I'm ok to do that, but now it is easier (for me) to just run make site on one of my little home servers. |
@rduivenvoorde @havatv @DelazJ my idea was just to allow people to create their own PDFs. I don't want to go back to build the PDFs for them. Should we include the processing algorithms or not? I don't think people will print it, so having a 1100 pages PDF is not a problem to me. Wouldn't be bad if we detached the algorithms as a different doc though. |
Making (reasonably) up-to-date PDFs available on docs.qgis.org would be a great service to users. I have been a user of these PDFs for years.
I agree about printing - a large number of pages is not a problem. And having the processing algs in the user manual PDF is convenient for searching.
This is also a possibility, but I would prefer having them in the user manual. And thank you for digging into this! |
@havatv in that case I will remove the algorithms exclusion and merge this PR. After that, I will see how building PDFs in other languages work. |
I have added make PDF to Travis, to ensure that the PDF build is not compromised by the introduction of some strange character. But then I realized that this will make travis checks to take much longer. Should I remove it? |
For travis, I think html generation for review is more important than pdf.
Fully agree. I'm not sure that there are so many people other than contributors that have ever built the docs. Now that we have a how-to, we should try to provide at least English pdf (until we find a clean way to generate all the others). |
and display our logo in front page
I removed the PDF tests. I don't know enough of Travis for it. |
Great work!
I also tested
Got a lot of error messages, and the "compile" stopped with
And after doing q some times I ended up with
Installing texlive-lang-french helped! :-) One error that could be causing problems:
Adding
to preamble in latex_element of conf.py did the trick, but I am not sure if it is the correct medicine. The problem comes from the following po file:
(translated by https://www.transifex.com/user/profile/rduivenvoorde/ in March 2020). Should be:
I became a member of the French transiflex team today, and changed "fi" to "fi". So the suggested conf.py update should no longer be necessary. |
Goal:
Facilitate the creation of PDFs for the main documents:
User manual
PyQGIS Cookbook
Training manual
Ticket(s): #