Has anyone been able to create PDF output with Documenter.jl on MacOS?
I have used way too much time trying to get this to work with no success. The Documenter.jl documentation is quite short and I have no idea what could be causing my PDF not to compile.
The documentation states:
The following is required to build the documentation:
- You need
pdflatex
andlatexmk
commands to be installed and available to Documenter. - You need the minted LaTeX package and its backend source highlighter Pygments installed.
- You need the DejaVu Sans and DejaVu Sans Mono fonts installed.
I have all of this installed:
eetureijonen@Eetus-MacBook-Air Fonts % cd /Users/eetureijonen/Library/Fonts
eetureijonen@Eetus-MacBook-Air Fonts % ls
Baumans-Regular.ttf DejaVuSansMono-BoldOblique.ttf
DejaVuMathTeXGyre.ttf DejaVuSansMono-Oblique.ttf
DejaVuSans-Bold.ttf DejaVuSansMono.ttf
DejaVuSans-BoldOblique.ttf DejaVuSerif-Bold.ttf
DejaVuSans-ExtraLight.ttf DejaVuSerif-BoldItalic.ttf
DejaVuSans-Oblique.ttf DejaVuSerif-Italic.ttf
DejaVuSans.ttf DejaVuSerif.ttf
DejaVuSansCondensed-Bold.ttf DejaVuSerifCondensed-Bold.ttf
DejaVuSansCondensed-BoldOblique.ttf DejaVuSerifCondensed-BoldItalic.ttf
DejaVuSansCondensed-Oblique.ttf DejaVuSerifCondensed-Italic.ttf
DejaVuSansCondensed.ttf DejaVuSerifCondensed.ttf
DejaVuSansMono-Bold.ttf
eetureijonen@Eetus-MacBook-Air Fonts % pdflatex --version
pdfTeX 3.141592653-2.6-1.40.26 (TeX Live 2024)
kpathsea version 6.4.0
Copyright 2024 Han The Thanh (pdfTeX) et al.
There is NO warranty. Redistribution of this software is
covered by the terms of both the pdfTeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the pdfTeX source.
Primary author of pdfTeX: Han The Thanh (pdfTeX) et al.
Compiled with libpng 1.6.43; using libpng 1.6.43
Compiled with zlib 1.3.1; using zlib 1.3.1
Compiled with xpdf version 4.04
eetureijonen@Eetus-MacBook-Air Fonts % latexmk --version
Latexmk, John Collins, 27 Dec. 2024. Version 4.86a
eetureijonen@Eetus-MacBook-Air Fonts % latexminted --version
latexminted 0.3.2
Python executable for the LaTeX minted package
Libraries: latex2pydata 0.4.1, latexrestricted 0.6.2, pygments 2.19.1
Repository: https://github.com/gpoore/minted
CTAN: https://ctan.org/pkg/minted
PyPI: https://pypi.org/project/latexminted
eetureijonen@Eetus-MacBook-Air Fonts % pygmentize -V
Pygments version 2.19.1, (c) 2006-2024 by Georg Brandl, Matthäus Chajdas and contributors.
Here’s the output when trying to compile the PDF:
julia> include("make.jl")
[ Info: SetupBuildDirectory: setting up build directory.
[ Info: Doctest: running doctests.
[ Info: ExpandTemplates: expanding markdown templates.
[ Info: CrossReferences: building cross-references.
[ Info: CheckDocument: running document checks.
[ Info: Populate: populating indices.
[ Info: RenderDocument: rendering document.
[ Info: LaTeXWriter: creating the LaTeX file.
[ Info: LaTeXWriter: using latexmk to compile tex.
Rc files read:
NONE
Latexmk: This is Latexmk, John Collins, 27 Dec. 2024. Version 4.86a.
No existing .aux file, so I'll make a simple one, and require run of *latex.
Latexmk: applying rule 'lualatex'...
Rule 'lualatex': Reasons for rerun
Category 'other':
Rerun of 'lualatex' forced or previously required:
Reason or flag: 'Initial setup'
------------
Run number 1 of rule 'lualatex'
------------
------------
Running 'lualatex -interaction=batchmode -halt-on-error -shell-escape -recorder "Gogeta.jl.tex"'
------------
This is LuaHBTeX, Version 1.18.0 (TeX Live 2024)
system commands enabled.
luaotfload | db : Reload initiated (formats: otf,ttf,ttc); reason: Font "DejaVu" not found.Latexmk: Getting log file 'Gogeta.jl.log'
Latexmk: Examining 'Gogeta.jl.fls'
Latexmk: Examining 'Gogeta.jl.log'
Latexmk: Missing input file 'Gogeta.jl.toc' (or dependence on it) from following:
No file Gogeta.jl.toc.
Latexmk: applying rule 'lualatex'...
Rule 'lualatex': Reasons for rerun
Changed files or newly in use/created:
Gogeta.jl.aux
------------
Run number 2 of rule 'lualatex'
------------
------------
Running 'lualatex -interaction=batchmode -halt-on-error -shell-escape -recorder "Gogeta.jl.tex"'
------------
This is LuaHBTeX, Version 1.18.0 (TeX Live 2024)
system commands enabled.
luaotfload | db : Reload initiated (formats: otf,ttf,ttc); reason: Font "DejaVu" not found.Latexmk: Getting log file 'Gogeta.jl.log'
Latexmk: Examining 'Gogeta.jl.fls'
Latexmk: Examining 'Gogeta.jl.log'
Latexmk: Missing input file 'Gogeta.jl.toc' (or dependence on it) from following:
No file Gogeta.jl.toc.
Latexmk: applying rule 'lualatex'...
Rule 'lualatex': Reasons for rerun
Changed files or newly in use/created:
Gogeta.jl.out
------------
Run number 3 of rule 'lualatex'
------------
------------
Running 'lualatex -interaction=batchmode -halt-on-error -shell-escape -recorder "Gogeta.jl.tex"'
------------
This is LuaHBTeX, Version 1.18.0 (TeX Live 2024)
system commands enabled.
luaotfload | db : Reload initiated (formats: otf,ttf,ttc); reason: Font "DejaVu" not found.Latexmk: Getting log file 'Gogeta.jl.log'
Latexmk: Examining 'Gogeta.jl.fls'
Latexmk: Examining 'Gogeta.jl.log'
Latexmk: Missing input file 'Gogeta.jl.toc' (or dependence on it) from following:
No file Gogeta.jl.toc.
Failure to make 'Gogeta.jl.pdf'
Latexmk: Errors, in force_mode: so I tried finishing targets
Collected error summary (may duplicate other messages):
lualatex: Command for 'lualatex' gave return code 1
Refer to 'Gogeta.jl.log' and/or above output for details
┌ Error: LaTeXWriter: failed to compile tex with latexmk. Logs and partial output can be found in /var/folders/7x/qp8nvcn56wx184x6331z3wqr0000gn/T/jl_bkVRRZ
│ exception =
│ failed process: Process(`latexmk -f -interaction=batchmode -halt-on-error -view=none -lualatex -shell-escape Gogeta.jl.tex`, ProcessExited(12)) [12]
│
└ @ Documenter.LaTeXWriter ~/.julia/packages/Documenter/Bs999/src/latex/LaTeXWriter.jl:188
ERROR: LoadError: Compiling the .tex file failed. See logs for more information.
One error seems to be that the fonts are not found but I don’t understand how this can be the case or how it can be fixed as I have the fonts installed.