Takeshi KOMIYA
6686ebf158
Optimized tests: Add test-warnings
2016-07-14 23:12:57 +09:00
Takeshi KOMIYA
d1a427c51e
Merge branch 'stable'
2016-07-08 01:09:28 +09:00
Takeshi KOMIYA
7eca745b5c
Fix #2667 : latex crashes if resized images appeared in section title
2016-07-05 14:33:44 +09:00
Takeshi KOMIYA
efd74a9e14
latex, replace `pt
by TeX equivalent
bp
if found in
width
or
height
` attribute of an image (ref: #2714 )
2016-06-26 12:03:55 +09:00
Takeshi KOMIYA
51937f8089
#2597 : Show warning messages as darkred
2016-06-24 14:23:19 +09:00
jfbu
9002966085
Merge branch 'stable'
2016-06-22 18:42:13 +02:00
jfbu
01f1696d9b
Remove usage by sphinx.sty of latex package newfloat.sty
2016-06-19 16:22:49 +02:00
jfbu
beeeb56c27
latex `\noindent
` for non-inline images, not only if top level
2016-06-19 11:04:45 +02:00
jfbu
664e24cf86
Fix #2671 : image directive may lead to inconsistent spacing in pdf
2016-06-17 10:08:31 +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
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
Takeshi KOMIYA
e41a6340da
'%' is no needed after \sphinxAtStartFootnote
2016-06-12 00:43:29 +09:00
Takeshi KOMIYA
88c026d0bd
Merge branch 'stable'
2016-06-12 00:42:47 +09:00
Takeshi KOMIYA
80921b2ab8
Fix flake8 violation under tests/
2016-06-12 00:02:11 +09:00
Takeshi KOMIYA
f6ebd372d4
Merge branch 'stable'
2016-06-05 17:24:41 +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
1b939042df
Make testcases robust
2016-06-03 00:30:39 +09:00
Takeshi KOMIYA
24beece2a3
Fix combination of figure directive options; width, figwidth and align (ref: #2595 )
2016-05-30 13:13:38 +09:00
Takeshi KOMIYA
e3be266be3
Merge branch 'stable'
2016-05-28 17:29:43 +09:00
Takeshi KOMIYA
b74b9cb585
Fix #2383 : The generated footnote by latex_show_urls
overflows lines
2016-05-28 14:46:13 +09:00
Takeshi KOMIYA
5cdf7a9a33
Adjust spacing in numref
role (ref: #2382 )
2016-05-28 13:23:37 +09:00
Takeshi KOMIYA
c64a23f3c6
Add testcase for #2382
2016-05-28 12:57:46 +09:00
Takeshi KOMIYA
771e715f50
`:maxdepth:
option of toctree affects
secnumdepth
` (ref: #2547 )
2016-05-26 23:23:07 +09:00
Takeshi KOMIYA
885653a35d
Fix the caption of figure is always put on center even if `:align:
` was specified
2016-05-04 01:27:54 +09:00
Takeshi KOMIYA
4789ef899f
Fix #2492 : Figure directive with :figwidth: generates incorrect Latex-code
2016-05-04 01:27:31 +09:00
Takeshi KOMIYA
ad738a0978
Fix #2309 : Could not refer "indirect hyperlink targets" by ref-role
2016-04-24 13:57:32 +09:00
Takeshi KOMIYA
c289a35c1b
Fix #2397 : Setup shorthandoff for turkish documents
2016-04-16 18:28:15 +09:00
Takeshi KOMIYA
150ce21fb3
Fix broken testcase caused by translation
2016-03-29 12:40:42 +09:00
Takeshi KOMIYA
0d807a62cc
Remove duplicated testcase for latex builder
...
test_numref_on_bable_disabled and test_numref_with_language_el are mainly
used for testing babel (not for numref). But now we added enough testcases
for babel.
2016-03-29 12:21:58 +09:00
Takeshi KOMIYA
0211e19ae6
Fix #2337 : Use `\url{URL}
macro instead of
\href{URL}{URL}
` in LaTeX writer
2016-03-04 15:45:28 +09:00
Takeshi KOMIYA
4899214238
Merge branch 'stable'
2016-03-03 23:18:53 +09:00
Takeshi KOMIYA
da94ca5699
Merge branch '2327_toplevel_sectioning'
2016-03-03 20:41:17 +09:00
Takeshi KOMIYA
3939c4d684
Merge branch '2229_suppress_warnings'
2016-03-03 20:40:38 +09:00
Takeshi KOMIYA
92934ebe79
Add `\sphinxAtStartFootnote
` macro
2016-03-03 00:19:48 +09:00
Takeshi KOMIYA
d91fd33de5
Rename `\internalreference
to
\crossref
`
2016-03-02 22:58:17 +09:00
Takeshi KOMIYA
6efdd07d94
#2351 : Fix footnote spacing
2016-03-02 12:22:05 +09:00
Takeshi KOMIYA
110c2b0dbc
Fix #2327 : Add latex_toplevel_sectioning
to switch the top level sectioning of LaTeX document.
2016-03-02 11:18:08 +09:00
Takeshi KOMIYA
a682ab2e57
Define `\internalreference
` macro to redefine the style of references
2016-02-25 22:07:18 +09:00
Takeshi KOMIYA
2441c647d2
Fix #2229 : no warning is given for unknown options
2016-02-23 12:23:06 +09:00
Takeshi KOMIYA
d38b3ff2a0
Merge branch 'stable'
2016-02-20 21:19:51 +09:00
Takeshi KOMIYA
f6af2af9a4
Don't show option-role warnings in 1.3.x too
2016-02-20 19:43:39 +09:00
Georg Brandl
6101cb4ab6
fix tests
2016-02-19 09:25:48 +01:00
Georg Brandl
c1b7b6f369
The default highlight language is now Python 3.
...
References: #2279 .
This means that source code is highlighted as Python 3 (which is mostly
a superset of Python 2), and no parsing is attempted to distinguish
valid code.
2016-02-14 09:21:35 +01:00
Takeshi KOMIYA
9273140ee2
Override figure directive to apply :name: option to the figure itself
2016-02-14 14:49:20 +09:00
shimizukawa
980653f277
Merge with stable
...
Conflicts:
sphinx/environment.py
sphinx/ext/autodoc.py
sphinx/writers/latex.py
2016-02-09 23:19:49 +09:00
Takeshi KOMIYA
9ba7cc815c
Fix #2292 : Some footnotes disappear from LaTeX output
2016-02-08 11:24:07 +09:00
Takeshi KOMIYA
9b958b6dcc
Fix #2291 : pdflatex "Counter too large" error from footnotes inside tables of contents
2016-02-07 20:04:28 +09:00
Takeshi KOMIYA
9b21115146
Fix #2265 : babel is used in spite of disabling it on `latex_elements
`
2016-01-27 19:38:57 +09:00
shimizukawa
b1a23817fc
Merge with 'stable'
2016-01-24 13:47:51 +09:00
Takeshi KOMIYA
43c77a2838
Fix TOC is not shown when no `:maxdepth:
` for toctrees (ref: #771 )
2016-01-21 11:32:25 +09:00
Takeshi KOMIYA
92e4b0cac6
Merge branch 'stable'
2016-01-18 18:46:30 +09:00
Takeshi KOMIYA
0329edc510
Fix #1565 : Show warning if Pygments throws an ErrorToken
2016-01-18 15:31:44 +09:00
Takeshi KOMIYA
121fc4a326
Fix #1030 : Make page reference names for latex_show_pagerefs translatable
2016-01-16 23:59:13 +09:00
Takeshi KOMIYA
350d8aade0
Fix broken LaTeX code is generated if unknown language is given
2016-01-16 23:59:13 +09:00
Hong Xu
875e6a503b
Run LaTeX in testing: don't skip the test unless all latexes do not exist
...
Until now when one of the 3 latexes (pdflatex, xelatex, lualatex) does
not exist, the test was skipped. This commit changes the behavior to
"unless none of the 3 latexes exists, don't skip the test".
2016-01-15 11:39:17 -08:00
Hong Xu
afcc7f4626
Move the testing code which spawns pdflatex to a function
...
There are currently two locations in the testing code running the same
code to spawn pdflatex. This commit puts these code into one single
function to reduce redundancy.
2016-01-15 01:48:49 -08:00
Georg Brandl
4f72bdb722
Merge branch 'stable'
2016-01-14 22:54:08 +01:00
Georg Brandl
46d7e8558e
Obligatory copyright update.
2016-01-14 22:54:04 +01:00
Takeshi KOMIYA
3f998a0096
Fix line numbers was not shown on warnings of indecies
2016-01-13 11:37:07 +09:00
Takeshi KOMIYA
4c8b575dcc
Fix filenames were not shown on warnings of citations
2016-01-13 00:37:28 +09:00
Takeshi KOMIYA
6dc7ca0234
Fix line numbers were not shown on warnings in LaTeX and texinfo builder
2016-01-13 00:36:51 +09:00
shimizukawa
f824539119
merge with stable
2016-01-13 00:13:35 +09:00
shimizukawa
d33b32323f
95 chars in line. It was warned by make check
.
2016-01-12 23:53:45 +09:00
Takeshi KOMIYA
ca896755a9
Fix #2229 , any-role and `-W
` option are conflicted
2016-01-12 13:35:52 +09:00
Takeshi KOMIYA
bba3f388e9
Fix #2229 : No warning is given for unknown options
2016-01-11 23:31:28 +09:00
Takeshi KOMIYA
e4b9eb51f6
Merge branch 'stable'
2016-01-11 00:27:26 +09:00
shimizukawa
e5860fd75c
Merge with '87998df9cbef2380345d436121e6bca43345d2bd' on stable
...
Conflicts:
tests/test_build_latex.py
2016-01-10 10:21:27 +09:00
André Klitzing
62c49763f8
Fix broken TOC of PDFs if section includes an image
...
If someone adds an image to a section it will be added to the sidebar
TOC of a PDF, too. A PDF viewer will show the "width and height"
data instead of an image. So we need to filter out images for this with
the optional "short title" of latex sections.
2016-01-08 10:15:39 +01:00
Takeshi KOMIYA
e03dc8d27e
Fix #2072 : Footnotes in chapter-titles do not appear in PDF output
2016-01-06 11:13:30 +09:00
Takeshi KOMIYA
26e29de904
Fix broken testcase; Split test-toctree-maxdepth from test-tocdepth
2016-01-06 09:54:48 +09:00
Takeshi KOMIYA
b0a5a1339e
Fix #771 : latex output doesn't set tocdepth
2016-01-06 01:34:29 +09:00
Takeshi KOMIYA
d0576cd012
Fix #1408 : Check latex_logo validity before copying
2016-01-05 16:48:22 +09:00
Hong Xu
01c381363e
Run xelatex and lualatex as well in latex tests.
2016-01-02 17:58:41 +09:00
Takeshi KOMIYA
b0f376fdb8
Fix #2201 : wrong table caption for tables with over 30 rows
2016-01-01 19:31:36 +09:00
Takeshi KOMIYA
584f05154b
Fix #2206 : Sphinx latex doc build failed if footnotes in caption of figure
...
At same time, refactored around pending footnotes (tables, terms and
figures). They are all controled as ``pending_footnotes``.
2016-01-01 19:07:43 +09:00
Takeshi KOMIYA
0719611d54
Fix #2071 : Same footnote in more than two section titles => LaTeX/PDF Bug
2015-12-25 10:43:41 +09:00
Takeshi KOMIYA
02f013aba5
Fix TestApp.cleanup_trees was obsoleted
2015-12-24 10:57:03 +09:00
Takeshi KOMIYA
9f96bbaf35
Move testcases for footnotes to roots/test-footnote
2015-12-19 16:45:23 +09:00
Takeshi KOMIYA
5983d02787
Fix #1237 footnotes not working in definition list in LaTeX
2015-12-19 16:45:23 +09:00
Takeshi KOMIYA
9fec96d327
Refactor latex_show_urls processor to Transform class
2015-12-19 16:44:45 +09:00
Takeshi KOMIYA
885b997a25
Add testcases for latex_show_urls
2015-12-19 16:40:10 +09:00
Hong Xu
0084004cfd
Add testing cases for the "latex_show_urls" option
2015-12-11 15:06:14 -08:00
Takaaki AOKI
07ed539ad3
modify test strings to be found after build_latex
2015-12-10 00:13:37 +09:00
Takeshi KOMIYA
8648bdeec1
Fix #2094 rubric with reference not working in Latex
2015-12-03 14:48:00 +09:00
Takeshi KOMIYA
c8837338d3
Fix section and table titles with reference cause latex build error
2015-12-03 11:39:25 +09:00
Takeshi KOMIYA
32b483d5bc
Fix #2134 figure caption with reference causes latex build error
2015-12-03 10:33:29 +09:00
Takeshi KOMIYA
f4c5a2e136
Fix #2140 : footnotes in caption of table has broken in LaTeX
2015-11-29 21:55:36 +09:00
Takeshi KOMIYA
12396a71d9
Fix #2140 : footnotes in table has broken in LaTeX
2015-11-29 21:47:55 +09:00
Takeshi KOMIYA
20d992cdf5
Close #1990 : Use caption of toctree to title of \tableofcontents in LaTeX
2015-08-21 14:15:30 +09:00
shimizukawa
65fb5a664d
fix test: numfig test depends ja translation.
2015-03-09 22:33:41 +09:00
shimizukawa
297e436aac
fix testcases for windows that introduced at 3d62e353a5
2015-03-08 21:59:43 +09:00
Takeshi KOMIYA
3d62e353a5
Update testcases for changing prefix of captions
2015-03-08 08:30:16 +09:00
Takeshi KOMIYA
9f06027836
#1719 Add prefix to linkname of :numref: on LaTeX mode
2015-03-03 01:16:06 +09:00
Takeshi KOMIYA
1ee7f5a163
#1719 Use numfig_format for prefix of captions in LaTeX builder
2015-03-03 01:16:02 +09:00
Georg Brandl
a23903d8d5
Merge branch 'stable'
2015-01-03 21:41:14 +01:00
Georg Brandl
567d52f199
all: update copyright
2015-01-03 21:36:32 +01:00
tk0miya
0f1d8433e7
Fix #1607 : Sphinx crashes on building latexpdf with "howto" class
2014-11-24 12:13:17 +09:00
tk0miya
88103c112a
Fix #1603 :numref: doesn't work correctly when label contain underscore
...
If label contains underscore, the underscores are replaced with hyphens on normalization.
:numref: confuses the normalization with explicit notation.
This fix uses `target` variable insted of labelid to check the role is explicit or not.
2014-10-27 11:02:54 +09:00
tk0miya
8270575a9c
Update testcases for :numref:
2014-10-02 11:17:34 +09:00
tk0miya
7e59c5385e
Merge with default
2014-09-28 21:56:20 +09:00
tk0miya
16529c5604
Add options argument to Sphinx.add_latex_package()
2014-09-28 21:10:26 +09:00
Takayuki Shimizukawa
39c843106f
fix testing on Windows.
2014-09-28 21:00:51 +09:00
tk0miya
c04ad2908e
Add new API: Sphinx.add_latex_package()
...
Sphinx.add_latex_package() allows sphinx extensions to add latex packages.
It helps creating extensions for latex (for example, latex-theming)
2014-09-27 12:47:27 +09:00
Georg Brandl
b637f0a728
No need to insist on fresh builds with test_build_*
2014-09-21 18:41:08 +02:00
Georg Brandl
d47a7587f9
Complete test suite overhaul.
...
* rename a few test modules to make the names more consistent
* do not copy/use Sphinx from build/ (unnecessary without 2to3)
* use a temporary dir for *all* test projects, the source tree
will stay pristine that way (default is tests/build)
* speed up tests by ~3x by splitting up test projects and avoiding
rebuilds
2014-09-21 17:17:02 +02:00
Takayuki Shimizukawa
1e58062692
remove 'six' name except importing line.
2014-04-30 21:30:46 +09:00
Takayuki Shimizukawa
68290a266c
introduce the six module and reduce sphinx.util.pycompat implementation. refs #1350 .
2014-04-29 11:46:47 +09:00
Georg Brandl
ac92719ac3
Update copyright year.
2014-03-01 08:18:23 +01:00
Georg Brandl
e030031321
Update copyright year.
2014-03-01 08:18:16 +01:00
Dmitry Shachnev
ce2185ce27
Modernize the code now that Python 2.5 is no longer supported
...
- Use print function instead of print statement;
- Use new exception handling;
- Use in operator instead of has_key();
- Do not use tuple arguments in functions;
- Other miscellaneous improvements.
This is based on output of `futurize --stage1`, with some
manual corrections.
2014-01-19 14:17:10 +04:00
Takayuki Shimizukawa
53810ae607
fix: test_build_latex and test_build_texinfo raise SkipTest if command missing. Closes #1184 .
2013-09-23 09:57:36 +09:00
Takayuki Shimizukawa
9d3bac3b8e
Fix: Citation target missing cause AssertionError. Closes #1160
2013-05-02 10:37:12 +09:00
Georg Brandl
1af3e3ea71
tests: replace "from util import *" by explicit imports
2013-04-01 11:39:32 +02:00
Georg Brandl
21f0ca8197
Closes #896 : use SkipTest in build_latex test if latex is not installed
2013-04-01 11:26:21 +02:00
Georg Brandl
151856819c
Copyright update.
2013-01-01 22:13:15 +01:00
Takayuki Shimizukawa
48128c7b9b
* fix test for Windows: test failed by test-code problem depends on os.sep.
2012-05-02 12:05:41 +09:00
Georg Brandl
9d5215c1c9
Fix #728 : escape root dir when putting it into a regex in latex/texinfo tests.
2011-09-21 09:15:11 +02:00
Georg Brandl
bf767d5222
#454 : Add more index markup capabilities: marking see/seealso entries, and main entries for a given key.
2011-01-07 19:00:29 +01:00
Georg Brandl
17efae5622
merge with 1.0
2011-01-04 11:29:09 +01:00
Georg Brandl
0e1db6ad90
New year update.
2011-01-04 10:00:51 +01:00
Georg Brandl
3b64ec2a2e
Now that the expected warnings are regexes, diffing them with the actual output makes no sense anymore.
2010-07-27 19:07:51 +02:00
Georg Brandl
dd4f973221
merge with 0.6
2010-06-03 17:25:16 +02:00
Daniel Neuhäuser
98b6073a7e
Fixed warnings in python3
2010-06-20 22:39:38 +02:00
Georg Brandl
ed6562960c
Remove "group" identifier from get_index() entries; let the template figure that out.
2010-02-20 14:21:03 +01:00
Georg Brandl
03d5917a53
Split out test_build_latex.
2010-01-17 12:29:00 +01:00