Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upliteral_block and its caption has been separated by pagebreak in LaTeX output #2262
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
I attatched sample project to reproduce the problem. |
tk0miya
added
the
latex
label
Jan 23, 2016
stevepiercy
referenced this issue
Jan 24, 2016
Closed
Sphinx 1.3.5: Could not parse literal_block as "language" #2264
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
andreacassioli
commented
Jan 28, 2016
|
Hi, |
added a commit
to jfbu/sphinx
that referenced
this issue
Feb 5, 2016
added a commit
to jfbu/sphinx
that referenced
this issue
Feb 5, 2016
jfbu
referenced this issue
Feb 5, 2016
Merged
LaTeX captions of literal blocks now glued to framed verbatim #2297
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
jfbu
Feb 5, 2016
Contributor
Here are some images to illustrate the effect of the PR #2297 on the provided test files
After removing one item, no change, after removing two items, one gets

To check that caption counter is not increased too many times, here is with the test file extended to include a second literal-block:
|
Here are some images to illustrate the effect of the PR #2297 on the provided test files After removing one item, no change, after removing two items, one gets To check that caption counter is not increased too many times, here is with the test file extended to include a second literal-block: |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
jfbu
Feb 5, 2016
Contributor
If one suppresses two \item's from the produced test.tex file, and then adds
\vskip .56298cmimmediately after the itemize environment,
the frame starts like in the second picture of last comment (with SPHINXOPTS = moved to next page). But with a slightly bigger skip
\vskip .56299cmit starts like in the first picture, the whole thing inclusive of caption being moved to next page. This shows the PR does fix the page break problems, however I don't know enough of sphinx's latex builder yet to ascertain if other areas may be impacted (other than direct insertion by user of a framed environment, which was already impacted by earlier sphinx.sty and latex.py).
|
If one suppresses two \vskip .56298cmimmediately after the itemize environment, \vskip .56299cmit starts like in the first picture, the whole thing inclusive of caption being moved to next page. This shows the PR does fix the page break problems, however I don't know enough of sphinx's latex builder yet to ascertain if other areas may be impacted (other than direct insertion by user of a framed environment, which was already impacted by earlier |


tk0miya commentedJan 23, 2016
Now, with sphinx-1.3.4, literal_block and its caption has been separated by pagebreak.
