Commit Graph

5379 Commits

Author SHA1 Message Date
jfbu
eb46ae20f8 Fix #3496: latex longtable's last column...
... may be much wider than its contents
2017-03-02 19:11:22 +01:00
Takayuki SHIMIZUKAWA
7fceef480f Merge pull request #3490 from shibukawa/fix/pot_creation_date
fix gettext builder that writes pot files unless the content are same without creation date
2017-03-02 16:49:30 +09:00
Yoshiki Shibukawa
8ebc97d0c8 fix gettext builder that writes pot files unless the content are same without creation date 2017-03-02 15:11:12 +09:00
Takeshi KOMIYA
3a3cec7a8e Fix #3488: objects.inv has broken when `release or version` contain return code 2017-03-02 13:32:46 +09:00
Takeshi KOMIYA
1e9c791285 Merge pull request #3470 from mitya57/stable
Make genindex support all kinds of letters, not only Latin ones
2017-03-01 02:31:32 +09:00
Jean-François B
7d0ac36e2d Merge pull request #3478 from jfbu/transitionlatex
Remove unneeded ``{}`` in LaTeX transition code
2017-02-28 16:04:37 +01:00
Takeshi KOMIYA
dea2064dfc Update docstring to patches for table directives
table directives on docutils-0.13.1+ set source information to
caption node.  So these patch will be not necessary in feature
version of docutils.
https://sourceforge.net/p/docutils/patches/137/
2017-02-28 23:23:02 +09:00
jfbu
434a32d1c8 Remove unneeded `{}` in LaTeX transition code 2017-02-28 10:00:41 +01:00
jfbu
9752525ed1 Make sure spaces have no stretchability in literal blocks (LaTeX)
For PDF via LaTeX PR #2304 (ac7d7b5) implemented wrapping of long code
lines in literal blocks and PR #3340 (8c21abe) extended this to parsed
literals. On this occasion the space was defined as a LaTeX macro,
depending on the used font, and as it allowed some potential uses it was
allowed for the space to obey the stretch and shrink as configured in
the used font. The default is to render using the mono font
(``\ttfamily``), hence a priori the stretchability and shrinkability are
anyhow zero. Non-zero stretch/shrink was left as a theoretical
possibility for special purposes; but although it may make sense to use
a "variable mono" for non-Python code, it is certainly not adequate for
things like verbatim grid tables...

The problem is that XeTeX does not set the TeX font parameters to zero
for OpenType fonts of Mono type, as is discussed there:
  http://tug.org/pipermail/xetex/2017-January/026956.html
and in particular applies to the Latin Modern OpenType font, which is
the default when loading fontspec package. Due to this problem there was
a LaTeX kernel patch update late January 2017 to forcefully set the
corresponding TeX font parameters to zero (indeed since 2017/01/01
release LaTeX uses OpenType fonts by default under XeTeX/LuaTeX
engines.) But this is only a specific kludge for handling the Latin
Modern Mono font. Other OpenType fonts of MonoSpace type may still show
the XeTeX issue.

To make things simple, this commit simply avoids ascribing to the space
the font stretch or shrink as set in the TeX font parameters. This will
alleviate problems with Monospace fonts with XeTeX and avoir user
reports that their literal-blocks are all wrong.

Existing documents are not affected. The possibility to use a variable
space mono font had not been documented.
2017-02-27 20:34:56 +01:00
Dmitry Shachnev
d534692a0e Make genindex support RTL languages
If a string starts with an RTL mark, simply skip it and use the following
character as the first letter.
2017-02-27 15:45:34 +03:00
Dmitry Shachnev
046abd0577 Make genindex support all kinds of letters, not only Latin ones
Without this i.e. all names starting with a Cyrillic letter are moved
into a Symbols section rather than being split into sections by letter.
2017-02-27 15:04:40 +03:00
Yoshiki Shibukawa
b1808e7cd5 epub has duplicated nav.xhtml link except first time 2017-02-27 07:58:56 +09:00
Jean-François B
8f2b460a93 Merge pull request #3446 from jfbu/latex-utf8x
Fix #3445: (latex) make ``\\usepackage[utf8x]{inputenc}`` usable
2017-02-26 09:21:04 +01:00
Takeshi KOMIYA
5fc40108d9 Bump version 2017-02-26 15:57:01 +09:00
Takeshi KOMIYA
715eb45755 Bump to 1.5.3 final 2017-02-26 15:49:56 +09:00
Takeshi KOMIYA
64041636d6 Merge pull request #3455 from shibukawa/fix-again/epub-nbsp-issue
Fix &nbsp is appeared in EPUB docs #3450 again
2017-02-26 15:46:33 +09:00
Takeshi KOMIYA
1d0083edc5 Fix #3421: Could not translate a caption of tables 2017-02-26 13:47:53 +09:00
Yoshiki Shibukawa
1cce97ad5c Fix &nbsp is appeared in EPUB docs #3450 again 2017-02-26 00:29:25 +09:00
Takeshi KOMIYA
e0fa1d05b0 Fix #3400: make-mode don't use subprocess on building docs 2017-02-25 17:31:08 +09:00
Takeshi KOMIYA
4e8c622abe Fix Search button is misaligned in nature and pyramid theme (refs: #3418) 2017-02-25 11:56:39 +09:00
Takeshi KOMIYA
63470a8578 Merge pull request #3452 from shibukawa/fix/epub-validation-error
fix #3450: &nbsp is appeared in EPUB docs
2017-02-24 21:44:45 +09:00
Yoshiki Shibukawa
99b27c0c00 fix #3450: &nbsp is appeared in EPUB docs 2017-02-24 20:04:00 +09:00
jfbu
4985330468 move a definition to top of LaTeX file, as it may be used sooner
(macro is needed by ``\sphinxdepreactionwarning`` which may in future
be used at location of the various ``\RequirePackage``, definition of
``\spx@ifundefined`` was too far down)
2017-02-23 19:45:13 +01:00
jfbu
e3fb7d2828 Fix #3445: (latex) make `\\usepackage[utf8x]{inputenc}` usable 2017-02-22 12:36:50 +01:00
Jean-François B
b352927b37 Merge pull request #3162 from jfbu/fixreturnFrenchtranslation
Modify French translation of ``return``
2017-02-22 10:08:08 +01:00
Takeshi KOMIYA
19d2d56e36 Fix IndexBuilder.prune() and load() supports _filenames field 2017-02-21 00:17:38 +09:00
Takeshi KOMIYA
8c3ceec294 Fix IndexBuilder.prune() takes docnames as a argument 2017-02-20 23:49:31 +09:00
Takeshi KOMIYA
1f973caf06 Fix #3349: Result of `IndexBuilder.load()` is broken 2017-02-20 16:33:37 +09:00
jfbu
3c77408044 add deprecation helper to LaTeX style file (and fixes #3428) 2017-02-17 20:00:16 +01:00
Takeshi KOMIYA
79b7c468a9 Fix #3427: autodoc: memory addresses are not stripped on Windows 2017-02-17 12:21:04 +09:00
Takeshi KOMIYA
387588a9d8 Fix #3410: return code in :confval:release breaks html search 2017-02-15 18:16:35 +09:00
Takeshi KOMIYA
b9bba672ed Fix #3366: option directive does not allow punctuations 2017-02-15 01:42:08 +09:00
Takeshi KOMIYA
929e67ffca Fix parselinenos() could not parse left half open range (cf. "-4") 2017-02-12 00:09:04 +09:00
jfbu
a9fba76829 latex's `'pxunit''s default written .75bp` for conciseness
It boils down to exact same value (`̀ 49336sp``) as formerly.
2017-02-09 14:13:09 +01:00
jfbu
eb1e9e07f6 add to latex text layout dimension computations for Japanese documents 2017-02-07 11:17:54 +01:00
Takeshi KOMIYA
a403c83e51 Merge pull request #3399 from pashango2/stable
Fixed bug that conf.py was not overwritten by template
2017-02-07 11:32:11 +09:00
pashango2
959a76341b Fixed bug that conf.py was not overwritten by template 2017-02-07 07:53:07 +09:00
Jean-François B
6f3759dbab Merge branch 'stable' into japanesetextlayout 2017-02-06 14:48:38 +01:00
jfbu
6b577914a1 correct missing {} in sphinx.sty 2017-02-06 14:40:07 +01:00
jfbu
09324bd9a6 allow user to pass option nomag to jsbook LaTeX class 2017-02-05 20:24:02 +01:00
jfbu
451115f2d1 no need to pass truedimen as class option, package option is enough 2017-02-05 20:07:41 +01:00
jfbu
9c6a071572 Fix #3356 and #3394 (latex) text layout of Japanese documents
- make text width integer multiple of zenkaku width

- fix incompatibility of ``geometry`` package with ``jsbook`` LaTeX
  class (``'manual'`` docclass)

- fix issue with shortened text area height in ``'manual'`` docclass
2017-02-05 17:25:50 +01:00
jfbu
20dc524346 Fix #3392: "releasename" in latex_elements is not working 2017-02-05 12:59:33 +01:00
jfbu
6a5be5b60f Fix: since 1.5, PDF's TOC and bookmarks lack an entry for general Index 2017-02-02 19:50:13 +01:00
Takeshi KOMIYA
7482b6b2a4 Refactor quickstart 2017-01-31 02:06:19 +09:00
Takeshi KOMIYA
678cc3d503 Fix #3364: sphinx-quickstart prompts overflow on Console with 80 chars width 2017-01-29 13:30:30 +09:00
Takeshi KOMIYA
14a864a637 Support requests-2.0.0 (experimental) (refs: #3367) 2017-01-29 13:15:49 +09:00
Takeshi KOMIYA
952161de4e Fix LaTeX: :confval:release is not escaped (refs: #3362) 2017-01-28 19:55:51 +09:00
Takeshi KOMIYA
1a2488610d Fix #3370: the caption of code-block is not picked up for translation 2017-01-26 01:57:22 +09:00
Takeshi KOMIYA
f3135280e3 Bump version 2017-01-22 17:29:47 +09:00