Commit Graph

6675 Commits

Author SHA1 Message Date
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
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
Takeshi KOMIYA
c59734c9f4 Fix descriptions of make targets 2016-06-20 10:58:06 +09:00
jfbu
01f1696d9b Remove usage by sphinx.sty of latex package newfloat.sty 2016-06-19 16:22:49 +02: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
c7c07db86b Fix #2694: LaTeX error because of \sphinxstyleliteralintitle 2016-06-18 15:32:50 +02:00
jfbu
4be797ccd3 Merge branch 'stable' 2016-06-18 12:23:20 +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
jfbu
80a1ad5a5a Fix typo in CHANGES 2016-06-18 10:09:51 +02:00
Jean-François B
1daa065503 Merge pull request #2691 from jfbu/jfbu_enhancelatexcustomizability
Enhance latex text styling customizability
2016-06-18 10:08:42 +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
b3d8961ca8 Enhance latex text styling customizability 2016-06-17 19:48:52 +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
jfbu
d4cdfc148b Fix typo in CHANGES 2016-06-16 16:09:05 +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
jfbu
c2d417a032 Rename SphinxVerbatim to sphinxVerbatim for latex output 2016-06-15 18:34:00 +02:00
jfbu
2cec5a25b2 Merge branch 'stable'
Conflicts:
	sphinx/domains/cpp.py
	sphinx/texinputs/sphinx.sty
	tests/test_build_latex.py
2016-06-15 18:29:58 +02: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
bd342b8724 C++, add warnings for misleading uses of roles. 2016-06-14 15:20:21 +09:00
Jakob Lykke Andersen
2d20e337b3 C++, properly look up constructors.
Fixes sphinx-doc/sphinx#2666.
2016-06-14 15:17:45 +09:00
Rob Ruana
ff34d02beb Fix #2537: [Napoleon] Corrects minor formatting issue on example NumPy Attributes section 2016-06-12 14:55:39 -06: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
0405b9d62a Merge branch 'stable' 2016-06-12 21:45:26 +09:00
Takeshi KOMIYA
715969a6c3 Refactor sphinx.io.SphinxFileInput 2016-06-12 21:44:25 +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
Rob Ruana
8dde1eb02d Fix #2541: [Napoleon] Adds a blank line before parameter descriptions that start with a literal block 2016-06-11 23:55:55 -06: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
Rob Ruana
32a852c1f1 Update #2374: [Napoleon] clarifies documentation of napoleon_include_init_with_doc conf value 2016-06-11 18:28:48 -06:00
Rob Ruana
eb95eaf142 Update #2374: [Napoleon] clarifies documentation of napoleon_include_init_with_doc conf value 2016-06-11 16:12:26 -06:00
Takeshi KOMIYA
e41a6340da '%' is no needed after \sphinxAtStartFootnote 2016-06-12 00:43:29 +09:00
Takeshi KOMIYA
5f7b393d1c Add html5lib to tox.ini 2016-06-12 00:43:23 +09:00
Takeshi KOMIYA
88c026d0bd Merge branch 'stable' 2016-06-12 00:42:47 +09:00
Takeshi KOMIYA
3d5319e705 Use six in util/reindent.py 2016-06-12 00:27:59 +09:00
Jean-François B
8043f6406f Merge pull request #2652 from jfbu/jfbu_sphinxverbatim
latex: keep Verbatim under same name, use SphinxVerbatim for own
2016-06-11 17:20:01 +02: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