Commit Graph

7350 Commits

Author SHA1 Message Date
jfbu
308d3aee89 make shorthandoff extra safe also for turkish
(perhaps xelatex+babel+turkish may not use active ``=`` either now
or in future)
2016-11-17 10:12:53 +01:00
jfbu
8e1db118c0 polyglossia honors `\addto\captions<language>` like babel 2016-11-17 10:01:46 +01:00
jfbu
5663f750fe refactor multilingual (load user settings on top) 2016-11-17 10:00:01 +01:00
jfbu
b35539bd2e reset `'babel' to empty if it was for babel_renewcommand` ok 2016-11-05 19:25:20 +01:00
jfbu
4c38038f64 latex multilingual and contentsname setup to after getting user setup 2016-11-05 19:02:12 +01:00
Jean-François B
2de1cd7fde Merge pull request #3115 from jfbu/luatex85
load latex package luatex85 only under lualatex engine
2016-11-05 13:35:36 +01:00
Jean-François B
146e3e6029 Merge pull request #3119 from jfbu/testtest2
add unit test for maxlistdepth (latex)
2016-11-05 12:08:37 +01:00
jfbu
53d202440f add `@skip_if_stylefiles_notfound` to maxlistdepth test 2016-11-05 11:50:12 +01:00
jfbu
8b3b8e01cc clarify wording in documentation of latex config 2016-11-05 11:11:51 +01:00
jfbu
e49132d3e4 use inputenc latex template variable always 2016-11-05 11:06:49 +01:00
jfbu
0473e438dc add unit test for maxlistdepth (latex) 2016-11-04 23:57:00 +01:00
jfbu
7651b2de9b Update CHANGES 2016-11-04 22:35:29 +01:00
jfbu
7b8ef11e5e Update CHANGES for PR#3116 2016-11-04 22:31:54 +01:00
jfbu
5caa6c3be9 Update CHANGES for PR#3083 2016-11-04 22:29:38 +01:00
Jean-François B
20c7c60862 Merge pull request #3116 from jfbu/breakableinlineliterals
Breakable inline literals in LaTeX
2016-11-04 22:22:11 +01:00
jfbu
be8034e131 make inputenc template use conditional on latex_engine being pdflatex 2016-11-04 22:17:34 +01:00
jfbu
cf246d09c0 latex_engine template variable, check luatex85 only if lualatex engine 2016-11-04 22:16:30 +01:00
Jean-François B
7325f8fe8c Merge pull request #3083 from jfbu/add_to_new_default_latex_settings
Add to new default latex settings
2016-11-04 21:59:30 +01:00
jfbu
e4d73df110 refactor multilingual setup, let "polyglossia" use `\setmainlanguage` 2016-11-04 21:00:37 +01:00
Takeshi KOMIYA
2fb9f81208 Update CHANGES for PR#2495 2016-11-04 23:55:32 +09:00
Takeshi KOMIYA
a503849ac1 Merge pull request #2495 from electrofelix/linkcheck-skip-anchors
Allow skipping anchor checking using regex
2016-11-04 23:53:46 +09:00
Takeshi KOMIYA
56958227c8 Refactor test_bulid_latex: add skip_if_stylefiles_notfound() 2016-11-04 15:14:41 +09:00
Takeshi KOMIYA
3f4721e140 Refactore test_build_latex: add compile_latex_document() 2016-11-04 12:06:19 +09:00
jfbu
f2b63b473b fix python error in latex.py from commit 528b6c3 2016-11-03 20:03:53 +01:00
jfbu
aa1ea9b863 latex use more of `\protected\def`
this makes the LaTeX macros more robust, less worrying about where they
are used.
2016-11-03 19:15:29 +01:00
jfbu
ee8b558f14 latex use `\protected macros for \sphinxstyle...`'s commands
also use ``\sphinxcode`` for literals in titles which will add the
extras (straight quotes, breaks allowed at ``/`` and some other
characters)
2016-11-03 18:54:24 +01:00
jfbu
d32d6f56ef replace `\DeclareRobustCommand by \long\protected\def` 2016-11-03 18:41:57 +01:00
jfbu
097967ed25 allow word wrap in PDF output for inline literals
modified:   sphinx/texinputs/sphinx.sty
2016-11-03 18:28:52 +01:00
Takeshi KOMIYA
7a6f2ae894 Fix py3.6b3 crashes with empty Callable annotation 2016-11-03 10:01:21 +09:00
Alex Grönholm
07caa321d3 Add comment about skipping plain Callable 2016-11-02 21:43:33 +02:00
Alex Grönholm
a1f6baaa81 Fix annotations formatting for plain typing.Callable
The typing.Callable class may be used without generic arguments, in which case it is equivalent to collections.abc.Callable.
2016-11-02 21:43:33 +02:00
Takeshi KOMIYA
0f35b94500 Update CHANGES for PR#3071 2016-11-02 23:01:58 +09:00
Takeshi KOMIYA
b32d9a9bc7 Merge pull request #3071 from mleinart/autodoc/pass_through_decorators
Autodoc: Allow mocked module decorators to pass-through functions unchanged
2016-11-02 23:01:16 +09:00
jfbu
1777939fa4 Update CHANGES for PR#3059 2016-11-02 14:55:47 +01:00
Jean-François B
67fe3d6da0 Fix #2865: let LaTeX image inclusion obey `scale` before textwidth fit (#3059) 2016-11-02 14:50:41 +01:00
Jean-François B
358f5e08ef Merge pull request #3055 from jfbu/allowreferencesinlatextopics
Fix #2461: re-allow footnotes in topics for latex PDF
2016-11-02 14:45:27 +01:00
Takeshi KOMIYA
a880d0e84e Fix #3114: Install enum34 to test autodoc on py27 2016-11-02 21:35:50 +09:00
Takeshi KOMIYA
b014c34586 Fix #3111: autodoc crashes with python3.6b3
Since 3.6b3, structure of typing.Callable has been changed.
2016-11-02 20:08:21 +09:00
jfbu
da1e157e90 fix typo in CHANGES 2016-11-02 08:18:53 +01:00
jfbu
b9bb7d8810 Update CHANGES for PR#3104 2016-11-02 08:16:30 +01:00
Takeshi KOMIYA
ae1f523d52 Add `--extensions to sphinx-quickstart` to support enable arbitary extensions from command line (ref: #2904) 2016-11-02 11:11:15 +09:00
Jean-François B
a759e5eae7 Merge pull request #3104 from jfbu/latex_keyvalueoptions
``'sphinxpackageoptions'`` for key=value styling of Sphinx LaTeX
2016-11-01 19:25:49 +01:00
jfbu
aff72931fc minor update to latex.rst 2016-10-30 00:08:17 +02:00
jfbu
e70746e8da uppercase colour names (latex styling) 2016-10-30 00:04:23 +02:00
jfbu
a48a9c883a style the latex chapter in the docs (for pdf output) 2016-10-29 16:30:33 +02:00
jfbu
528b6c374c refactor the handling of latex options
previously, modifying a single option via ``\sphinxsetup`` redeclared
all dimensions and colours, even if they had not changed.
2016-10-29 14:03:12 +02:00
jfbu
b6695ad7fc use 'sphinxpackageoptions' as argument to `\sphinxsetup`
Indeed, LaTeX's handling of package options is not robust when options
contain LaTeX macros; thus we pass all the user customization to
``\sphinxsetup``, not as package options to "sphinx.sty".

Also, make parameters for long code line breaking (ref #2343, 1.4.2)
accessible as sub-keys of 'sphinxpackageoptions'. The space reserved for
the continuation character has been modified for coherence and
compatibility with use in footnotes. In fact it did not use the correct
font for the dimension computation. The documentation explains how to
recover former value.
2016-10-28 21:45:44 +02:00
jfbu
67a785c2ab use less macros for dimension parameters in LaTeX styling 2016-10-28 17:01:14 +02:00
jfbu
fb8bb072cb `'sphinxpackageoptions'` for key=value styling of Sphinx LaTeX 2016-10-27 20:24:33 +02:00
shimizukawa
a5bdf1fdae Closes #3060: autodoc supports documentation for attributes of Enum class. Now autodoc render just the value of Enum attributes instead of Enum attribute representation. 2016-10-28 00:02:09 +09:00