Commit Graph
6736 Commits
Author SHA1 Message Date
jfbu dba3d66d22 Update CHANGES for PR #2638 2016-06-10 19:02:00 +02:00
Jean-François B e17aadf944 Merge pull request #2638 from jfbu/latex_fixpdfframes
Fix #2635. To avoid pdf viewer issue, draw code frames latest.
2016-06-10 18:58:13 +02:00
jfbu 4a0b28397b Fix #777 (part Ia): Latex output "too deeply nested"
Allow code-blocks at maximal nesting depth of lists/quotes in LaTeX
(which by default is 6), by patching fancyvrb's original Verbatim way of
checking list depth which resulted in a loss of 1 possible level.

Memo 1: latex can have by default a maximum of 4 nested enumerated
lists, 4 nested labeled lists, and in total 6 nested lists. This
includes quoted blocks as they use the `\list` macro.

Memo 2: fancyvrb's rationale for using the \@list... macros (in its
\FV@ListNesting) is to set vertical positioning. To set a Verbatim at
level N it uses vertical parameters for list level N+1, hence can't work
at max level. But in Sphinx, this happens inside a \vbox for framing,
hence the vertical positioning set by fancyvrb turns out to be inoperant
anyhow. The execution of \@list<level> also sets the \leftmargin, but
fancyvrb resets it to zero later (#1=\z@ in \FV@ListNesting). To sum up,
fancyvrb's \FV@ListNesting does nothing but has the after effect to
raise an error if the code-block is at level equal to max - 1.

The effect of this commit is to make inoperant fancyvrb's check of
nesting depth, hence now the code-block can appear at maximal depth.

This is second commit improving in Sphinx the maximal depth for
code-blocks in nested lists or quote blocks. It used to be 4 (with
LaTeX's defaults for lists), it is now at 6 (or at the max depth
allowed by the document class).
2016-06-10 14:21:12 +02:00
jfbu e94d853bd8 Fix CHANGES 2016-06-10 09:48:14 +02:00
jfbu e3bd7daf49 Merge branch 'latex_avoidtoodeeplynestedI' into stable (ref #777)
This is \list --> \trivlist replacement in Sphinx wrapper of original
Verbatim from package fancyvrb. This gains one level for allowed
location of a code-block in nested lists/quotes.
2016-06-10 09:44:09 +02:00
Takeshi KOMIYA 8a85935c63 Update CHANGES for PR#2647 2016-06-10 12:55:19 +09:00
Takeshi KOMIYA 09c25443ff Merge pull request #2647 from JojoBoulix/patch-1
Remove all memory addresses from autodoc
2016-06-10 12:52:23 +09:00
Takeshi KOMIYA 1bf48bf0a3 Merge pull request #2648 from jfbu/jfbu_addlinkstotutorial
Convert text into links at bottom of tutorial.rst and top of config.rst
2016-06-10 12:50:14 +09:00
jfbu 7d3bddd4e3 Convert text into links at bottom of tutorial.rst and top of config.rst 2016-06-09 15:34:59 +02:00
JojoBoulix 2eeaceed08 Remove all memory addresses from autodoc
Change `object_desription()` to remove all hexadecimal addresses, not only those at the end of the string.

The `repr()` of some objects is generated by taking the `repr()` of one object and then adding stuff to it. Therefore, memory addresses like `<object foo at 0xabcdef>` do not need to occur at the end of the string.
2016-06-09 09:11:48 +02:00
jfbu b2be59441e Fix #777 (part I): Latex output "too deeply nested"
Use \trivlist in Sphinx Verbatim.
2016-06-09 08:23:03 +02:00
Takeshi KOMIYA b3e82fadc4 Fix #2646: latex crashes if math contains twice empty lines 2016-06-09 12:00:07 +09:00
Takeshi KOMIYA 54e0db9cbe Fix #2351: latex crashes if enumerated lists are placed on footnotes 2016-06-09 11:30:15 +09:00
Takeshi KOMIYA 8ad8803263 Increment ENV_VERSION (ref: #2631) 2016-06-08 22:32:11 +09:00
jfbu e3232958e0 Fix #2632 (again).
This is a better way as it also handles the case of warning directive as
first in item of a labeled list.
2016-06-08 11:11:42 +02:00
jfbu 951e258fe9 Fix #2632 (cont.). Allow code-block in warning in quoted block.
Move \@newlistfalse from 18eb553b to earlier location, else LaTeX's \par
will created obsecure "missing item error" if Verbatim code-block is
enclosed in warning notice, and warning notice is in quote block ...
2016-06-08 09:04:53 +02:00
jfbu a266dd3aa9 Update CHANGES for PR #2627 2016-06-08 08:28:40 +02:00
Jean-François B a51681b327 Merge pull request #2627 from jfbu/latex_inlinecodeusestraightquotes
LaTeX use straight quotes also in inline code
2016-06-08 08:27:26 +02:00
jfbu b8017b0d01 Replace a \xdef by a \gdef in sphinx.sty 2016-06-08 08:25:05 +02:00
jfbu e9fb82f51b Update CHANGES for PR #2641 2016-06-08 08:23:50 +02:00
Jean-François B 5ba32933ae Merge pull request #2641 from jfbu/latex_fixcodeblockinwarning
Fix #2640: 1.4.2 LaTeX crashes if code-block inside warning directive
2016-06-08 08:22:52 +02:00
jfbu 6abbcb34e2 Update CHANGES for PR #2626 2016-06-08 08:21:02 +02:00
Jean-François B f689186e58 Merge pull request #2626 from jfbu/latex_fixopenany
Fix #2622: Latex produces empty pages after title and table of contents
2016-06-08 08:20:10 +02:00
jfbu cea3474ccc Fix #2640: 1.4.2 LaTeX crashes if code-block inside warning directive
The subtle cause of the bug was that original Verbatim environment was
used inside a minipage environment, and fancyvrb's code for checking
when \end{Verbatim} is reached does not work if \@currenvir is minipage.
2016-06-07 22:56:13 +02:00
jfbu d4a9997a48 Fix a \begin{\minipage} typo in sphinx.sty from 1.4.2 (ref: 68becb1) 2016-06-07 20:39:28 +02:00
jfbu af7d561ce4 Fix #2635. To avoid pdf viewer issue, draw code frames latest.
As latest Sphinx controls Verbatim up to finest details, it got possible
to arrange for framing to be drawn _after_ the code lines. This provides
work-around for issue with some pdf viewer at some resolutions on some
devices.
2016-06-07 12:44:40 +02:00
Takeshi KOMIYA 5c42bb0172 Merge pull request #2636 from tk0miya/rescue_old_styled_indices
Fix #2633: Sphinx crashes with old styled indices
2016-06-07 13:32:54 +09:00
Takeshi KOMIYA 8040c35942 Merge pull request #2628 from jfbu/latex_builtinthemesinSphinxDoc
Display correctly the Builtin themes in the PDF build of Sphinx doc
2016-06-07 11:32:37 +09:00
Takeshi KOMIYA 76b9992384 Fix #2633: Sphinx crashes with old styled indices 2016-06-07 11:02:07 +09:00
jfbu 18eb553b26 Fix #2632: Warning directives fail in quote environment latex build 2016-06-06 23:46:58 +02:00
jfbu b5261d560c Fix #2630: Latex sphinx.sty Notice Enviroment formatting problem 2016-06-06 23:11:52 +02:00
jfbu 9af0583f22 Fix #2622 (done): correctly obey openany option
Clean sphinxmanual.cls of superfluous unneeded code. And also avoid
skipping blank pages if openany for bibliography and index.
2016-06-06 18:37:52 +02:00
jfbu aa31bae17a Fix #2622 (cont.): obey openany option
This cleans up comments from sphinxmanual.cls.

Memo: the logic behind the earlier sphinxmanual.cls is obscure, besides
the fact that it didn't work correctly if conf.py used openany option.
The parent commit corrected the implementation, but not the logic.

Were it not for the log message about added blank page, there would be
no need to patch \tableofcontents, because by default it will use
\chapter* which does the right thing. Similarly after the end of
abstract, a \chapter or \part (or \tableofcontents, once abstract is
properly handled by LaTeX writer (*)), currently one seems to be
contrived to use raw directive and the abstract is then after
\tableofcontents) will do the right thing in case of openany. Also the
\maketitle wrongly ended with \cleardoublepage, which was corrected in parent
commit, but better would be that it does nothing. Indeed it is not
logical for \maketitle, abstract or \tableofcontents to worry about what
comes next. Anything which comes next should be a \part or \chapter
which will do the right thing.

(*) currently one seems to be contrived to use raw directive and the
abstract is then after \tableofcontents) will do the right thing in case
of openany.
2016-06-06 17:47:14 +02:00
jfbu f38665b58c Display correctly the Builtin themes in the PDF build of Sphinx doc
Add longtable as class, which will allow pagebreaks in pdf output.
2016-06-06 14:42:58 +02:00
jfbu 82758b13ba LaTeX use straight quotes also in inline code
Was already the case in code-blocks, but not for ``'inline'`` mark-up.
2016-06-06 14:06:13 +02:00
jfbu 78589b05ab Fix #2622: Latex produces empty pages after title and table of contents
The 'openany' option was not correctly obeyed.
2016-06-06 11:11:43 +02:00
Takeshi KOMIYA 20a7f3b0ca Merge pull request #2623 from jfbu/latex_noifthen
LaTeX: remove use of \ifthenelse macro from sphinx.sty
2016-06-06 11:01:03 +09:00
jfbu ff8d4709d8 LaTeX: remove use of \ifthenelse macro from sphinx.sty
Simpler \ifdefined is already available without package.
2016-06-05 21:34:25 +02:00
Takeshi KOMIYA cb26ec4d4c Update release-checklist 2016-06-05 17:27:13 +09:00
Takeshi KOMIYA 20779ab2a2 Update release-checklist 2016-06-05 17:26:31 +09:00
Takeshi KOMIYA cb486ab3a0 Bump version 2016-06-05 17:17:05 +09:00
Takeshi KOMIYA 8b5ee35a7c Bump version v1.4.3 2016-06-05 17:09:12 +09:00
Takeshi KOMIYA d6c6b7bb3e Merge pull request #2615 from tk0miya/figure-in-table
Fix #2593: latex crashes if any figures in the table
2016-06-05 14:21:51 +09:00
jfbu d8912c166a Fix #2593 (cont.): delay to begin document storage of original \caption 2016-06-05 14:21:21 +09:00
jfbu 96e30b0d0e Fix #2593 (continued): allow figure captions in LaTeX tabulary tables 2016-06-05 14:21:21 +09:00
Takeshi KOMIYA bb6bb7ded6 Fix #2593: latex crashes if any figures in the table 2016-06-05 14:21:21 +09:00
Takeshi KOMIYA bb360d8984 Merge pull request #2619 from jfbu/latex_alwaysamstext
LaTeX: load amstext in sphinx.sty even if not using amsmath
2016-06-05 09:13:52 +09:00
jfbu 0753a4a378 Revert "Update documentation for 'amsmath' key in latex_elements"
This reverts commit c5824bd1cd.
2016-06-04 18:39:25 +02:00
jfbu c5824bd1cd Update documentation for 'amsmath' key in latex_elements 2016-06-04 14:48:37 +02:00
jfbu 401302df48 LaTeX: load amstext in sphinx.sty even if not using amsmath
Needed in particular for:

- use of \iffirstchoice@ at commit 9d82cad (PR #2297)

- use of \text at commit 488ee52 addressing issue #2501
2016-06-04 10:23:12 +02:00