Commit Graph

6583 Commits

Author SHA1 Message Date
Takeshi KOMIYA
0859b338d8 LaTeX writer: Integerate width_to_latex_length() and latex_image_length() (ref: #2714) 2016-06-26 11:30:02 +09:00
jfbu
45ddb6387c Add a missing word in CHANGES and fix minor other issues there 2016-06-24 19:18:56 +02:00
jfbu
84ed2c394a Merge branch 'jfbu_fixspaceafterinlineliteral' into stable 2016-06-24 15:33:58 +02:00
jfbu
b6daf6be56 fix latex, since 1.4.4 inline literal text is followed by spurious space
ref: a51681b use of ``\scantokens`` has a quirk with adding a space in
some cases which we fix by inserting a ``\relax`` at the end of the
argument.
2016-06-24 15:26:50 +02:00
Takeshi KOMIYA
211fd352ae Fix #2579: Could not refer a label including both spaces and colons via sphinx.ext.intersphinx
This fixes only the case the label including both spaces and colons as
ad-hoc. There is still a bug if a label having spaces, colons and
numbers like "foo bar:baz 1234".

Note: To support the case, we have to improve the inventory format.
2016-06-24 21:11:31 +09:00
Jakob Lykke Andersen
fab5911004 C, neutralize xrefs to fundamental types.
TypedFields generate xrefs to whatever it gets.
See sphinx-doc/sphinx#2439.
2016-06-24 09:37:20 +02:00
Takeshi KOMIYA
ce1b9e3192 Fix flake8 violation 2016-06-24 14:51:25 +09:00
Takeshi KOMIYA
bf692e2f34 Fix #2700: HtmlHelp builder has hard coded index.html 2016-06-24 12:35:44 +09:00
Takeshi KOMIYA
04723c1175 Fix #2479: sphinx.ext.viewcode uses python2 highlighter by default 2016-06-24 11:35:15 +09:00
Takeshi KOMIYA
1e979091f2 Fix #2705: toctree generates empty bullet_list if `:titlesonly:` specified 2016-06-23 11:56:49 +09:00
jfbu
8feb92dd2d Update CHANGES for PR #2672 2016-06-22 18:33:43 +02:00
Jean-François B
0802e5499a Merge pull request #2672 from jfbu/jfbu_fixincludegraphics
Fix #2671: image directive may lead to inconsistent spacing in pdf
2016-06-22 18:25:46 +02:00
Jean-François B
58100c2856 Merge pull request #2697 from jfbu/jfbu_reusefloatpackage
Fix #2679: (latex) load package float for 'H' value of 'figure_align'
2016-06-20 07:51:28 +02:00
Takeshi KOMIYA
2fc30b001a Merge pull request #2696 from mitya57/stable
Fix LocalTimeZone.utcoffset return value when SOURCE_DATE_EPOCH is set
2016-06-20 11:30:18 +09:00
jfbu
3650663bb3 Fix #2679: (latex) load package float for 'H' value of 'figure_align' 2016-06-19 20:57:38 +02:00
Dmitry Shachnev
0b2a4e9073 Fix LocalTimeZone.utcoffset return value when SOURCE_DATE_EPOCH is set
Subclasses of tzinfo should follow the parent class and return offset either
as None (when unknown) or as timedelta.

Otherwise datetime.fromtimestamp() will raise a TypeError:
tzinfo.utcoffset() must return None or timedelta, not 'int'.
2016-06-19 16:40:42 +03:00
jfbu
beeeb56c27 latex `\noindent` for non-inline images, not only if top level 2016-06-19 11:04:45 +02:00
jfbu
6929d546c8 Hard-wrap some long lines in CHANGES
Seems longer lines are more frequent since 1.4. I hard-wrapped at 80
chars the ones I committed which sometimes exceeded 100 chars. Other
long lines remain (one has 108 chars).
2016-06-18 12:22:18 +02:00
Jean-François B
a358f309da Merge pull request #2664 from jfbu/jfbu_safertestforundefined
latex: let sphinx.sty use own \spx@ifundefined for some tests.

the first commit is more aggressive, I leave it in commit history in case it could be useful in future.
2016-06-18 11:57:17 +02:00
Takeshi KOMIYA
7586297d6d Fix #2684: sphinx.ext.intersphinx crashes with six-1.4.1 2016-06-18 10:27:32 +09:00
jfbu
664e24cf86 Fix #2671: image directive may lead to inconsistent spacing in pdf 2016-06-17 10:08:31 +02:00
jfbu
44bd987314 latex: let sphinx.sty use own \spx@ifundefined for some tests 2016-06-16 18:35:01 +02:00
jfbu
b78d9fec2f latex: let sphinx.sty use own \spx@ifundefined safer test 2016-06-16 18:34:09 +02:00
Jakob Lykke Andersen
65dddfcd69 C++, fix parsing of function types in other types.
Let all kinds of function parameters be allowed to have a name.
Fixes michaeljones/breathe#267.
2016-06-16 10:54:16 +09:00
Jean-François B
4cf78e608e Merge pull request #2675 from jfbu/jfbu_macroswithprefix
Fix #2629. Add new config option latex_keep_old_macro_names
2016-06-15 09:31:47 +02:00
jfbu
f16ce14954 Make sphinxShadowBox customizable via three lengths with public names 2016-06-15 08:54:52 +02:00
jfbu
5510653d6e Fix #2629. Add new config option `latex_keep_old_macro_names`
The cause of the issue was a clash about ``\titleref`` macro being already
defined in memoir class context. To avoid similar problems, this makes
the text styling macros

  ``\strong``, ``\code``, ``\bfcode``, ``\email``, ``\tablecontinued``,
  ``\titleref``, ``\menuselection``, ``\accelerator``, ``\crossref``,
  ``\termref``, ``\optional``,

also available with ``\sphinx`` prefix, with a conf.py boolean option to
let sphinx.sty only define ``\sphinx``-prefixed macros. As default value
is False, backwards compatibility is maintained.

On this occasion, some internal non-public macros have been renamed with
prefix ``\spx@``. The command

    find . -name '*.sty' -exec grep -l \\\\spx@ {} \;

has been executed in TeXLive 2015 and 2016 installations to check no
package defines macros starting with ``\spx@``.

Some internal macros having public names (because they are written by
latex.py into the body of the latex document) have been renamed to have
``\sphinx`` prefix. The macros in sphinx.sty starting with \py@, or \DU,
or \PYG have not been modified. Similarly ``\release``, ``\version``,
``\releasename``, etc... have not been renamed.
2016-06-15 08:53:24 +02:00
jfbu
8608387585 Fix #2676: (latex) Error with verbatim text in captions
Was caused by PR#2627 due to fragile ``\@noligs`` added to ``\code``.
2016-06-14 10:06:11 +02:00
Jakob Lykke Andersen
c0df9205e6 C++, skip adding already used old-style ids.
See michaeljones/breathe#266.
2016-06-14 15:55:01 +09:00
Jakob Lykke Andersen
2d20e337b3 C++, properly look up constructors.
Fixes sphinx-doc/sphinx#2666.
2016-06-14 15:17:45 +09:00
Jakob Lykke Andersen
49957210d5 C++, fix missing scope info on some declarations.
See sphinx-doc/sphinx#2607
2016-06-13 00:06:11 +09:00
Takeshi KOMIYA
ecd2ca10d5 Bump version 2016-06-12 21:43:21 +09:00
Takeshi KOMIYA
93b3860597 Bump to 1.4.4 final 2016-06-12 21:37:52 +09:00
Takeshi KOMIYA
b054a79e63 Merge pull request #2659 from tk0miya/build_pdf_on_travisci
Enable to build PDF docs on Ubuntu precise
2016-06-12 11:53:06 +09:00
Takeshi KOMIYA
bc4148983d Sphinx now bundles needspace.sty 2016-06-12 11:33:43 +09:00
Takeshi KOMIYA
3d5319e705 Use six in util/reindent.py 2016-06-12 00:27:59 +09:00
Takeshi KOMIYA
80921b2ab8 Fix flake8 violation under tests/ 2016-06-12 00:02:11 +09:00
Takeshi KOMIYA
2483122c2f Fix flake8 violation (utils/reindent.py) 2016-06-12 00:02:11 +09:00
Takeshi KOMIYA
7ab5bed4be Remove ez_setup.py from flake8-exclude list 2016-06-12 00:02:11 +09:00
jfbu
a62292cd3a Update CHANGES for PR #2651 2016-06-11 16:54:22 +02:00
Jean-François B
7fd7d29b2a Merge pull request #2651 from jfbu/latex_avoidtoodeeplynestedI
Fix #777 (part Ia): Latex output "too deeply nested"
2016-06-11 16:46:57 +02:00
Takeshi KOMIYA
fec2a36db7 Use \c@chapter instead of \thechapter to check what sectioning unit is used
In ubuntu precise, the old condition; \thechapter is defined or not
misdetects the sectioning unit. And then, it causes build error.
2016-06-11 22:50:34 +09:00
Takeshi KOMIYA
d7dd00a898 Failed to build PDF with framed.sty 0.95
The framed.sty which ubuntu precise bundles does not uses \OuterFrameSep macro yet.
2016-06-11 22:50:31 +09:00
Takeshi KOMIYA
8fa890c5fd Install TeXLive for testing on Travis CI 2016-06-11 15:16:24 +09:00
Takeshi KOMIYA
66884fc6a5 Install graphviz for testing on Travis CI 2016-06-11 15:06:07 +09:00
Takeshi KOMIYA
fc3bfbca5c Fix #2639: Sphinx now bundles iftex.sty 2016-06-11 14:39:45 +09:00
jfbu
518dad93e3 Fix mark-up in CHANGES 2016-06-10 22:27:11 +02:00
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