Commit Graph

7033 Commits

Author SHA1 Message Date
jfbu
830ffc7738 latex, load float package before wrapfig package
This should not change anything for Sphinx produced documents without
extra custom use of float package by user, and is recommended by wrapfig
doc for good functioning.
2016-06-25 18:26:25 +02:00
Matthias Geier
71dd8bfbf9 HTML: Add sourcelink_suffix to globalcontext 2016-06-25 16:46:25 +02:00
Matthias Geier
71e1aaf377 searchtools: Add .txt only if suffix isn't already .txt 2016-06-25 15:39:25 +02:00
Jean-François B
2273be9c37 Merge pull request #2711 from jfbu/latex_allowpx2
latex, allow image dimensions using px unit (96px=1in)
2016-06-25 13:00:23 +02:00
jfbu
fc2202fd2a latex, replace `'pixelsize' by more precise 'pxunit'` name 2016-06-25 10:32:48 +02:00
Takeshi KOMIYA
7a81169e4c Fix warning in CHANGES 2016-06-25 10:31:30 +09:00
jfbu
f6b0ae903d latex, allow image dimensions using px unit (96px=1in)
New key ``'pixelsize'`` in ``latex_elements`` dictionary.
2016-06-24 20:36:35 +02: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
Jakob Lykke Andersen
4be597bb34 C++, fix role mismatch warnings for templateParam 2016-06-24 09:15:31 +02:00
Takeshi KOMIYA
ce1b9e3192 Fix flake8 violation 2016-06-24 14:51:25 +09:00
Takeshi KOMIYA
cc9f21ce19 Merge pull request #2599 from tk0miya/show_warnings_as_yellow
#2597: Show warning messages as yellow
2016-06-24 14:35:15 +09:00
Takeshi KOMIYA
51937f8089 #2597: Show warning messages as darkred 2016-06-24 14:23:19 +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
Rob Ruana
2b60fc2027 Fixes #2688: [Napoleon] Updates to Napoleon documentation to fix intersphinx links and demonstrate PEP 484 type annotations 2016-06-23 15:25:46 -04:00
Takeshi KOMIYA
1e979091f2 Fix #2705: toctree generates empty bullet_list if `:titlesonly:` specified 2016-06-23 11:56:49 +09:00
jfbu
5bd76815ff Added an item about sphinxVerbatim to doc/latex.rst 2016-06-22 22:30:58 +02:00
jfbu
4919406f94 Fix a comment in sphinx.sty 2016-06-22 19:26:11 +02:00
jfbu
3bce72f49b Update a comment in latex.py 2016-06-22 19:12:08 +02:00
jfbu
77ea9daf43 Fix comments in sphinx.sty after merge of 'stable' 2016-06-22 18:56:02 +02:00
jfbu
9002966085 Merge branch 'stable' 2016-06-22 18:42:13 +02: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
jfbu
a4296a04d1 A bit of refactoring of latex entries in CHANGES for 1.5 2016-06-22 16:15:05 +02:00
Jean-François B
3e99ec91a2 Merge pull request #2704 from jfbu/jfbu_verbatim20
latex: customizable literal blocks
2016-06-22 16:14:26 +02:00
jfbu
f1cc694af7 latex: customizable literal blocks
- new dimensions ``\sphinxverbatimsep`` and ``\sphinxverbatimborder``
  configure the frame width and its separation from contents,

- new ``\ifsphinxverbatimwithframe`` and ``\ifsphinxverbatimwrapslines``
  to customize behaviour of sphinxVerbatim or define wrapper
  environments, such as sphinxVerbatimNoFrame and sphinxVerbatimintable,

- the latter is used in table cells, in place of OriginalVerbatim, thus
  allowing to handle captions for code-blocks in tables (issue #2706).

On this occasion, a bit of refactoring in sphinx Verbatim code,
particularly the caption is typeset in advance to its insertion in
non-breakable from code location (this avoids using the amstext
``\iffirstchoice@`` conditional), and the sphinxVerbatim is usable
without any optional argument (but currently option is always present
and contains at least ``commandchars=\\\{\}`` to activate syntax
highlighting).
2016-06-22 15:57:03 +02:00
Jean-François B
188e669ee1 Merge pull request #2708 from jfbu/jfbu_fixtabularcolspecs
Fix #2707: (latex) the column width is badly computed for tabular
2016-06-22 09:54:44 +02:00
jfbu
4ab9854483 Update CHANGES for PR#2708 2016-06-22 09:36:10 +02:00
Jean-François B
49dd55ed1b Merge pull request #2701 from jfbu/jfbu_restoreUsageOfOriginalVerbatim
latex #2698: restore usage of OriginalVerbatim name for ``<1.5`` compat
2016-06-22 09:20:02 +02:00
jfbu
c88193e3df fix flake8 violation 2016-06-21 23:25:06 +02:00
jfbu
8e45f54d07 Fix #2707: output more compact `*{N}{p{...}}` notation 2016-06-21 23:19:56 +02:00
jfbu
303f163b0a Fix #2707: (latex) the column width is badly computed for tabular
MEMO: the used formula is correct as long as package array is loaded.
Package array (which modifies how the width of vertical rules is counted
in the total width of the tabular) is a dependency of packages tabulary,
and eqparbox, and possibly others which are currently loaded by
sphinx.sty. Even if usage of package tabulary is dropped in future
version of sphinx.sty, there would still remain the dependency on array
via eqparbox, and the formula configured in latex.py will remain
correct.
2016-06-21 23:02:43 +02:00
jfbu
65653db479 latex #2698: restore usage of OriginalVerbatim name for `<1.5` compat 2016-06-20 11:49:08 +02:00
Jean-François B
452c8b162c Merge pull request #2685 from jfbu/jfbu_customizablenotices
latex: fully customizable notices/admonitions
2016-06-20 09:44:43 +02:00
jfbu
12ade10d55 New latex.rst for extended documentation of LaTeX's customizing. 2016-06-20 09:23:41 +02:00
jfbu
e5db9da45d latex: fully customizable notices/admonitions
The refactoring maintains backwards compatibility for the non-customized
usage: but macros such as ``\py@noticesstart@note`` have been removed
and any customization by extension or user will be without effect.
However the ``notice`` environment is still used, hence customization or
modified usage of it will work as before.

The LaTeX writer now uses ``sphinxadmonition``. Currently it is a
wrapper of ``notice`` environment. At some future release ``>1.5`` of
Sphinx it is planned to remove definition of ``notice`` environment, and
rename it directly to ``sphinxadmonition``. In the transition period
both will work, but at end of transition period extensions using only
``notice`` will stop working and those using ``sphinxadmonition`` will
require at least Sphinx ``1.5``.
2016-06-20 09:06:28 +02:00
Jean-François B
033ef35273 Merge pull request #2660 from jfbu/jfbu_removenewfloatdependency
Remove use of latex package newfloat
2016-06-20 07:54:44 +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
Takeshi KOMIYA
c59734c9f4 Fix descriptions of make targets 2016-06-20 10:58:06 +09:00
jfbu
3650663bb3 Fix #2679: (latex) load package float for 'H' value of 'figure_align' 2016-06-19 20:57:38 +02:00
jfbu
01f1696d9b Remove usage by sphinx.sty of latex package newfloat.sty 2016-06-19 16:22:49 +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
50dbfec05b Remove commented-out lines in latex.py used for review of #2691
Functionality is now at bottom of sphinx.sty. For case of
``\sphinxstylesidebarsubtitle`` from b3d8961, there should probably be a
``\par`` before the ``\smallskip`` but current code is exact transfer of
original from latex.py to sphinx.sty.
2016-06-19 14:35:47 +02:00
jfbu
beeeb56c27 latex `\noindent` for non-inline images, not only if top level 2016-06-19 11:04:45 +02:00
jfbu
c7c07db86b Fix #2694: LaTeX error because of \sphinxstyleliteralintitle 2016-06-18 15:32:50 +02:00