Bug 418697 - Cannot compile krita-doc as LaTeX PDF
Summary: Cannot compile krita-doc as LaTeX PDF
Status: RESOLVED UNMAINTAINED
Alias: None
Product: krita
Classification: Applications
Component: Documentation (other bugs)
Version First Reported In: git master (please specify the git hash!)
Platform: Compiled Sources Linux
: NOR minor
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-10 09:13 UTC by Andrej Dundovic
Modified: 2020-03-17 10:41 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrej Dundovic 2020-03-10 09:13:12 UTC
SUMMARY

It seems that latexpdf command in Makefile of docs-krita-org doesn't work, i.e., the build procedure breaks due to missing BoundingBox in some figures.


STEPS TO REPRODUCE
1. git clone git://anongit.kde.org/websites/docs-krita-org.git
(1.5 installed all needed TeX packages)
2. make latexpdf


OBSERVED RESULT

! LaTeX Error: Cannot determine size of graphic in freehand_brush_tool.svg (no BoundingBox).
! LaTeX Error: Cannot determine size of graphic in Introduction_to_animation_walkcycle_02.gif (no BoundingBox).
(...)
No output PDF file written.


EXPECTED RESULT

Generated PDF.


SOFTWARE/OS VERSIONS
TexLive: 2019-15 (installed from Fedora repos)
Comment 1 Halla Rempt 2020-03-17 10:10:10 UTC
Hi,


I don't think anyone has given this a try. A quick google shows a lot of hits where latex cannot figure out the size of an image for the weirdest of reasons, and hints that using a different version of latex might help, or different filenames. I think that we simply have to settle that we don't support sphinx's option to create pdf's using latex.
Comment 2 vanyossi 2020-03-17 10:29:52 UTC
I made the sphinx latex render possible on the first versions of the manual just before gitlab. the foundation is there to be used. However its been a long time since I built a pdf version of the manual so it may no t be working anymore. The things I remember doing to make it work:

- its easier if all svg are converted to png (latexImageMakefile deals with this)
- our latex build system uses xelatex instead of pdflatex

Afair "sphinx-build -b latex" should be the way to call it so it builds the pdf version. This creates a _build/latex subdiretory, cd to that directory and run make. The first thing it will do is transform all images from svg to pdf (uses imageMagick to do it), thenit will compile the pdf using xelatex (this ensures any language is supported).

I can't guarantee it will work since its been a while since I setup the latex build system for the manual.
Comment 3 Halla Rempt 2020-03-17 10:36:43 UTC
No... "sphinx-build -b latex" just shows the the options for sphinx-build, doesn't do anything.
Comment 4 Andrej Dundovic 2020-03-17 10:41:08 UTC
OK, I did not know this build option is not maintained, I thought maybe it is a specific bug related to my setup or something, but if nobody uses makes sense why it does not work. I can take a look and propose a patch.