Skip to content

Publish PDF - #1139

Merged
fricklerhandwerk merged 2 commits into
NixOS:masterfrom
holzingk:holzingk/publish-pdf
May 30, 2025
Merged

fricklerhandwerk merged 2 commits into
NixOS:masterfrom
holzingk:holzingk/publish-pdf

Conversation

@holzingk

@holzingk holzingk commented May 6, 2025

Copy link
Copy Markdown
Contributor

I had to update pinned nixpkgs, as it did not build with TexLive 2022.

Some content annotations are not transformed very well in LaTex output. For example, there is a
bug in sphinx-design which prints dropdowns just as subsections without any visual highlighting. In general it is readable and better typeset compared to the PDF obtained by printing to PDF.

Also, there is now full texlive which is quite a huge dependency.

@holzingk
holzingk requested a review from a team as a code owner May 6, 2025 19:17
@holzingk
holzingk force-pushed the holzingk/publish-pdf branch from 413dc98 to 5a510be Compare May 6, 2025 19:21
Comment thread default.nix Outdated
pkgs.perl
nativeBuildInputs = [
nix-dev-python-pkgs
pkgs.texlive.combined.scheme-full

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed downloading multiple gigabyte for a single pdf on each ci run is too slow.
https://github.com/rgri/tex2nix/ could help to cut it down.

holzingk added 2 commits May 28, 2025 09:04
I had to update pinned nixpkgs, as it did not build with TexLive 2022.

Some content annotations are not transformed very well in LaTex output. For example, there is a [bug](executablebooks/sphinx-design#107) in sphinx-design which prints dropdowns just as subsections without any visual highlighting. In general it is readable and better typeset compared to the PDF obtained by printing to PDF.

Also, there is now full texlive which is quite a huge dependency.
@holzingk
holzingk force-pushed the holzingk/publish-pdf branch from 5a510be to 0c4fae9 Compare May 28, 2025 07:18
@holzingk

Copy link
Copy Markdown
Contributor Author

Rebased on current master and now using tex2nix to obtain a minified texlive distribution. Thanks @Mic92 for the great tool.

@fricklerhandwerk fricklerhandwerk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pretty cool! Thanks a lot @holzingk

@fricklerhandwerk
fricklerhandwerk merged commit edb7ab2 into NixOS:master May 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants