-
Notifications
You must be signed in to change notification settings - Fork 483
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
[LaTexWriter] Better spacing between section number and title #1785
Conversation
I guess that can be useful to have since the manual is so large. Maybe we just need to improve the spacing for sections in the manual. @inkydragon Would you know how to do that? |
Documenter.jl/src/Writers/LaTeXWriter.jl Lines 248 to 249 in d2ed9b8
Maybe inc But these style adjustments are julia manual related, not universal, right? It seems like I need to update this pr JuliaLang/julia#43698. |
I think Julia manual is the biggest user of generating pdf docs. Also a bit of extra spacing will not hurt other projects -so I think we should just do it universally. And we should revert my change to TOC depth here- and increase spacing for sections. |
Do we not need something like this to increase the spacing between the section number and section title?
|
Yes, and —— Figure 9.2, memman With: \setlength{\cftsectionnumwidth}{3.0em \@plus \p@} Left: julia#master(dacf9d6) + Documenter.jl#v0.27.15 VS Right with patch PDF building Tips:
% listings
-\usepackage{listings, minted}
+\usepackage{listings}
+\usepackage[draft=true]{minted} This turns off the highlighting of the code and can greatly speed up the compilation process.
|
Thanks to your really nice comments in the code, I had indeed found that diagram, which is the most useful documentation! @inkydragon Does this PR look good? I am using 4.0em to give it a bit more spacing. |
It would be nice to add the PDF building tips to Documenter's docs. |
4.0em VSVS 3.0em
LGTM.
Yes, however, it looks like only julia's manual is slow to compile, so perhaps the PDF building tips should be added to julia's project documentation. Documenter.jl might need to include a test that has multiple levels of chapters & sections, like julia's manual. |
I installed |
tectonic -X compile --keep-logs -Z shell-escape TheJuliaLanguage.tex And if you want code highlighting, you need install
|
With the tectonic command, I get:
|
@mortenpi @fredrikekre Can I go ahead and tag a new release to get these pdf improvements into julia? |
Missing fonts
|
Appreciate it. Now:
I have |
Deleting temporary files and folder |
Thank you - that worked. |
No description provided.