8000 Latex reduce left margins by jfbu · Pull Request #8657 · scipy/scipy · GitHub
[go: up one dir, main page]

Skip to content

Latex reduce left margins #8657

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

Merged
merged 2 commits into from
Apr 8, 2018
Merged

Latex reduce left margins #8657

merged 2 commits into from
Apr 8, 2018

Conversation

jfbu
Copy link
Contributor
@jfbu jfbu commented Apr 2, 2018

This builds upon #8654 (else reduced left margin reveals another bug of LaTeX package expdlist, as explained here).

The goal is to get deeply nested lists less likely to overflow in right margin. We only reduce slightly from 60pt to 50pt the indentation, except for top level descriptions (whose items are labeled Parameters etc...) which is set with 15pt indentation.

Additionally, only those items are in bold italic; the parameters are in bold, not italic.

Relates to #8655 (see screenshots there for worst-case scenarii)

jfbu added 2 commits April 2, 2018 12:52
The way the line is broken in case of a long item label is buggy and
this shows in case of nested description lists.

We fix this, but the we then need a hack around Sphinx automatically
inserted ``\leavevmode`` which would again cause an extra blank line
after the long term label.

This suppresses about 2500 extra blank lines in PDF output...

closes scipy#8652
@pv pv merged commit c881fde into scipy:master Apr 8, 2018
@pv pv added this to the 1.1.0 milestone Apr 8, 2018
@jfbu jfbu deleted the latex_reduce_left_margins branch April 9, 2018 07:58
StrahinjaLukic pushed a commit to StrahinjaLukic/scipy that referenced this pull request Apr 14, 2018
DOC: fix LaTeX package expdlist bug causing blank lines in PDF

The way the line is broken in case of a long item label is buggy and
this shows in case of nested description lists.

We fix this, but the we then need a hack around Sphinx automatically
inserted ``\leavevmode`` which would again cause an extra blank line
after the long term label.
jfbu added a commit to jfbu/matplotlib that referenced this pull request Nov 30, 2019
Already sphinx>=1.8.1 is a requirement, and 'maxlistdepth' is available
since Sphinx 1.5.

This commit also suppresses usage of LaTeX expdlist package as it breaks
PDF builds with recent LaTeX (2019 at least). The April 2018 code at
scipy/scipy#8657 which patched expdlist for
other reasons appears to fix also this issue and could be added here.

Also, this commit sets up XITS as main document font: usage of XITS
achieves that the section documenting Mathtext does not report missing
glyphs during the LaTeX build. Probably STIX2 would work too. (with
DejaVu Serif, there were 134 unique Unicode glyphs needed by the PDF
build and reported missing from the font).

XITS font is available in LaTeX distributions of recent years.

This commit was tested with Sphinx v1.8.5 and Sphinx v2.2.1.
(and using current TeXLive TeX distribution)
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.

2 participants
0