modifications to allow compilation of PDF manual #45512
Labels
No Label
Meta
Good First Issue
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
Eevee & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds, Tests & Devices
Module
Python API
Module
Rendering & Cycles
Module
Sculpt, Paint & Texture
Module
User Interface
Module
VFX & Video
Priority
High
Priority
Low
Priority
Normal
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Information from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
7 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-manual#45512
Loading…
Reference in New Issue
Block a user
No description provided.
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?
Currently, the PDF manual cannot be created without modifying the sources. This modification changes the sources to allow latex to work on it. The html manual remains unchanged. Below is a list of changes.
There are 12 gifs in use and all are animated. Those gifs are included in the .tex file, but if you ignore the errors due to those files, the PDF can be compiled.
I am using the following commands to compile the PDF.
sphinx-build -b latex ./manual ./latex
cd latex
pdflatex -interaction nonstopmode blender_manual.tex # 3 times
The tarball of the modified repository and the compiled PDF is available here:
https://www.dropbox.com/sh/rvt5nld2f7fj1p3/AACf14A4q8ESltKvl79vywgWa/blender_manual.pdf?dl=0
blender_docs.tar.gz
svn_status.txt
PDF.diff
Changed status to: 'Open'
Added subscriber: @guoci
Added subscriber: @Blendify
Added subscriber: @ideasman42
Thanks for looking into this.
Are you interested to have commit access to the manual to help maintain this?
Details below:
I've committed changes to svn based on your edits:
_dot_
in the names were redundant so replaced with-
.-interaction nonstopmode
as you suggested.There are some remaining issues though, so I wouldnt consider the PDF quite finished/complete yet.
P241: "make pdf" output
I will like to have commit access and will look into the issues you have mentioned.
Added subscriber: @HorusIceRaven
in the PDF if they link to videos on YouTube would be an asset to the visualization.
Added subscriber: @MarcoArdito
yes, in my old wiki-to-pdf manual, I did something like that. It was a horrible hackish php script though... the result was not so great... but I hosted also translated versions, here: https://archive.org/details/BlenderWikiPDFManual
I just grabbed the video url using a regexp and then inserted a link instead, pointing to the url.
Thanks so much for bringing pdf manual to blender users...!
blender_manual.pdf
I updated the PDF after resolving the issues. Modified the generated tex file only, so nothing to commit. Link to pdf:
https://www.dropbox.com/sh/rvt5nld2f7fj1p3/AADMgOuj57J7N4XfCjsgV50ba
@guoci, manually updating the PDF isn't really an option long term.
Can you note what you changed in the TEX file, so there is a possibility to automate it?
@ideasman42
Please see the attached script.
sphinx_tex_pdf.py
Added subscriber: @Sergey
Added subscribers: @teo-3, @pink.vertex
I tested rst2pdf. It did not succeed for the full documentation.
The output of the first chapter looks like this.
It includes bookmarks.
@teo-3 Guo Ci
Maybe parts of it can be done via sphinx extension ?
pdf_modifications.py
@pink.vertex
I used sphinx with pdflatex to generate the pdf, not rst2pdf. You can see the generated pdf in the link below.
https://www.dropbox.com/sh/rvt5nld2f7fj1p3/AADMgOuj57J7N4XfCjsgV50ba?dl=0
@guoci
I know. It was just a test to see wether rst2pdf would work out of the box and wether the result would look better.
Modified the .tex file generation via sphinx extension and pdflatex exits without errors now (someone else might test this). I did not deal with the unicode characters.
Only intended to build without errors. There might be some things missing now in the final result because they don't work with latex, like figures in figures (i.e.
modifiers/simulate/particle_instance.rst
)pdf_modifications_only_translator.py
It turns out replacing the unicode characters in the extension is rather easy.
Add the package in
conf.py
Tables with images get screwed. Some who knows latex better than me might fix this.
Removed subscriber: @Blendify
Did anyone look into having images show in tables?
As far as I can see this is a show-stopper, since we have this reasonably often.
We could always remove, but having images side-by-side is quite reasonable thing to do.
If theres no solution for that, we can consider PDF generation incomplete ~ (report to sphinx developers, and only look into it again if they resolve the problem).
Also, if theres fixes to existing PDF generation, please provide a diff instead of code-snippets. eg:
svn diff > pdf.patch
, they can be attached or linked to.@ideasman42
I used the script attached to modify the sphinx generated .tex file before compiling with pdflatex. The images in tables do show up in the pdf.
sphinx_tex_pdf.py
manual_pdf.diff
make pdf
still exits with an error . Howeverdoes not.
Also in the log file
blender_manual.log
there are no more errors. Just warnings about floats too large and undefined references.So the makefile might need some fix?
I removed the entries from the
index.rst
file because these are already defined in the subfolder below which caused duplication in the .tex file.This extension currently splits rows in image tables with figures into two rows, where the first row contains the images, second one contains the captions.
Does not look that good and might be improved by using a latex package like subfig or subcaptions. Did not look into that, yet.
Added subscriber: @Blendify
Can someone please write an updated patch and give instructions on how to build the PDF version.
Thanks
@ideasman42 image tables seem to work now. see https://media.readthedocs.org/pdf/blender-manual/latest/blender-manual.pdf
Removed subscriber: @ideasman42
Changed status from 'Open' to: 'Resolved'
Images are done. We are just wait for sphinx's PDF compiler to mature