Commit Graph
100 Commits
Author SHA1 Message Date
Jean-François B c5e55c56c0 Merge pull request #3582 from jfbu/fixpdfinfo
Use hyperref to set up the PDF information dictionary (fixes #3551)
2017-04-15 10:29:04 +02:00
Jean-François B 9a68db9513 Merge branch 'master' into fixpdfinfo 2017-04-15 10:15:14 +02:00
jfbu 1c4915f904 Typo in CHANGES 2017-04-08 21:54:10 +02:00
Jean-François B ebc376157c Merge pull request #3605 from tk0miya/3594_support_block_level_raw_node_in_latex
Fix #3594: LaTeX: single raw directive has been considereed as block …
2017-04-08 21:52:36 +02:00
jfbu 3ff68db8d9 Remove a line in CHANGES for 1.5.4 upcoming release 2017-03-30 18:50:48 +02:00
jfbu f5f27c42d8 Merge branch 'stable' 2017-03-26 22:29:40 +02:00
jfbu 6b583a9618 Update version and date for LaTeX style files 2017-03-26 20:25:41 +02:00
jfbu 5f581cdb2d Fix potential regression in LaTeX from a code change at PR #3538
The removal of an `\everyeof{}` from `\sphinxcode` was causing
never-ending loop if the latter expanded inside `\sphinxhref`. The bug
was introduced at 3128a43, it thus never made it to a release yet.
Catching it in time for 1.5.4.
2017-03-26 20:00:35 +02:00
jfbu a8627ac01c Use hyperref to set up the PDF information dictionary (fixes #3551) 2017-03-24 09:16:14 +01:00
jfbu 254c04500b Merge branch 'stable' 2017-03-23 11:13:22 +01:00
jfbu 895014cd71 Fix use of \pdfinfo (refs #3551, #3567)
Although the data in ``\pdfinfo`` as set-up in ``sphinxmanual.cls`` was
ignored, some LaTeX commands (e.g. ``\large``) in the ``latex_documents``
title item could cause failed PDF builds.

This commit removes the anyhow ignored ``\pdfinfo`` usage, and indicates
in commented-out lines how to use ``\hypersetup``, which may be done in
master branch, or possibly in stable branch, if some consensus emerges
about how to represent ``\and`` in the ``/Author`` field. It seems the
PDF Document Information Dictionary does not seem to provide any
universal multi-lingual way to indicate multiple authors.
2017-03-23 11:06:48 +01:00
jfbu 89431bf833 Fix accidental use of `language='ja'` in docs (at 41bb388) 2017-03-23 11:03:38 +01:00
jfbu aa03441ee9 Fix TeX coding bug in latex writer (closes #3575) 2017-03-21 13:21:46 +01:00
jfbu a0a0e6cab0 Fix typo 2017-03-21 09:23:35 +01:00
jfbu 68ac715565 Update domains.rst 2017-03-21 08:26:11 +01:00
jfbu 41bb38877f Update docs (domains.rst) 2017-03-21 08:24:35 +01:00
jfbu d4d106e7b7 Update CHANGES for PR #3550 2017-03-18 23:26:33 +01:00
Jean-François B 4fb01cae8c Merge pull request #3550 from jfbu/fixcolorsetup
Streamline obsolete color set-up in LaTeX style file
2017-03-18 23:15:57 +01:00
jfbu daca6293a0 Typo in a comment 2017-03-18 22:42:31 +01:00
jfbu 00ac58ff1e Revert "Remove parskip space above logo image on PDF title page"
This reverts commit 4712faf907.
2017-03-18 22:38:00 +01:00
jfbu ada9aa6b94 Markup in CONTRIBUTING.rst 2017-03-18 09:49:18 +01:00
jfbu 2b929dc27e Fix syntax coloring in CONTRIBUTING.rst 2017-03-18 09:25:48 +01:00
jfbu 39bce2f90a Remove documentation of `\sphinxquotedblleft` from next minor release
Indeed, the macros will perhaps be removed already at 1.6, (PR #3562),
hence it is better not to document them at 1.5.4.
2017-03-16 23:01:12 +01:00
Jean-François B 0d85348454 Merge pull request #3563 from mitya57/fix-invalid-escape
tests: Fix invalid escape sequence
2017-03-16 19:23:51 +01:00
jfbu 4712faf907 Remove parskip space above logo image on PDF title page 2017-03-13 09:40:51 +01:00
jfbu 4b8295d981 If no logo, do insert blank line between rule and title on PDF titlepage 2017-03-13 09:09:49 +01:00
jfbu 65f9be9311 Remove legacy accidental blank line between top rule and logo in PDF
Probably for accidental reasons, pdflatex and lualatex (but not platex
and xelatex) were configured with a blank line above the logo on title
page, below the top rule. This commit removes it.
2017-03-13 08:32:11 +01:00
jfbu 4b2fff4e5e Streamline obsolete color set-up in LaTeX style file
The file ``pdfcolor.tex`` included in tex distributions is for Plain
pdfTeX, not for LaTeX use. Loading it complicates task of supporting
multiple TeX engines. If needed all corresponding colour names are
better available from passing to ``color`` or ``xcolor`` the
``dvipsnames`` option. It is better to leave responsability of using
this option to Sphinx user, if needed. The macros for setting the color
defined by ``pdfcolor.tex`` were never documented to Sphinx user, and
they can not be used from reST apart from ``.. raw:: latex`` directive,
they are for Plain TeX without use of ``color`` package. Thus, this
commit drops loading this file and the complicated conditionals around
it (``\ifsphinxpdfoutput``), which are also used in the class files
``sphinxmanual.cls``, ``sphinxhowto.cls``.

Also, this fixes issue #2693.
2017-03-13 08:10:56 +01:00
jfbu 73b8cf44cf Revert "Amend merged PR#2736 to maintain strict stability of pdf title page"
This reverts commit 7db8141238.

As discussed at

<https://github.com/sphinx-doc/sphinx/pull/2736#issuecomment-230140016>

platex and xelatex engines led to a slightly different title page layout
missing a blank line underneath the top rule (above the logo) compared
to pdflatex and lualatex. This was probably accidental.
2017-03-13 08:07:46 +01:00
jfbu 46244ae9f8 Correct missing space before type annotation 2017-03-12 13:32:01 +01:00
jfbu 9d58a0b96c Split some long type-checking annotation lines 2017-03-12 13:20:55 +01:00
jfbu bc0682af0e Merge branch 'stable'
Conflicts resolved:
	sphinx/domains/cpp.py
	sphinx/domains/python.py
	sphinx/texinputs/sphinx.sty
	sphinx/util/docfields.py
	sphinx/writers/latex.py
	tests/test_build_latex.py

Also updated:
    sphinx/domains/__init__.py
2017-03-12 13:01:47 +01:00
Jean-François B 741acb04e9 Merge pull request #3544 from jfbu/reorderlatexmacros
Reorder macros in LaTeX style file for easier maintenance
2017-03-12 12:51:06 +01:00
jfbu b176957729 Remove superfluous `\long` from text styling macro definitions
All LaTeX commands such as \textbf, \emph, \underline.. are "short",
thus there was no need of ``\long`` prefix. Regarding
``\sphinxoptional`` which was defined via ``\newcommand``, the ``\long``
is there for full backwards compatibility, but a priori the argument
will always be a "short" one (i.e. not containing empty line or ``\par``
token.)
2017-03-12 10:57:26 +01:00
jfbu a62ea77a2d Reorder macros in LaTeX style file for easier maintenance 2017-03-12 10:55:02 +01:00
jfbu ba0209c9b1 Typo in CHANGES 2017-03-11 20:36:37 +01:00
jfbu 4a6e5863f4 Update CHANGES for PR #3538 2017-03-11 16:58:32 +01:00
Jean-François B 3128a4327d More robust hyperlink macros in LaTeX output (refs #3317, #3340, #3533) (#3538)
More robust hyperlink macros in LaTeX output (refs #3317, #3340, #3533)
2017-03-11 16:53:53 +01:00
jfbu 0f8abd16a2 Add `Dependencies` group to CHANGES 2017-03-11 16:47:48 +01:00
jfbu 538f55ed85 Update CHANGES for PR #3082 2017-03-11 15:27:00 +01:00
Jean-François B 87c1f6ef5b Merge pull request #3082 from jfbu/uselatexmk
Use latexmk for pdf (and dvi) targets
2017-03-10 19:27:10 +01:00
jfbu 19558c9800 Update latex builder docs (latexmk requirement) 2017-03-10 19:11:06 +01:00
jfbu 448dc08924 Update CHANGES for PR #3527 2017-03-10 09:29:36 +01:00
Jean-François B 94e9d3e28b Merge pull request #3527 from jfbu/fixdoublequotes
Protect TeX double quotes ligatures in inline literals (refs #3507)
2017-03-10 09:24:23 +01:00
jfbu 990f51d680 Update latex docs 2017-03-10 08:42:37 +01:00
jfbu a16b266ba8 Let clean target also remove xdv files 2017-03-09 18:40:12 +01:00
jfbu 409605d9b7 Use latexmk for pdf (and dvi) targets (on unixen) 2017-03-08 18:35:11 +01:00
Jean-François B 0063446c1a Merge pull request #3525 from jfbu/syncfootnotehyper
Sync with 1.0 footnotehyper
2017-03-08 10:32:31 +01:00
jfbu 71e1642749 Protect TeX double quotes ligatures in inline literals (refs #3507) 2017-03-07 22:20:11 +01:00
jfbu c42db788d0 Sync with 1.0 footnotehyper
Since #3022 (Sphinx 1.5) more footnotes are hyperlinked but it became
impossible for Sphinx user to pass option ``hyperfootnotes=false`` to
package ``hyperref``. Release 1.0 of LaTeX package ``footnotehyper``,
which serves as bugfix replacement to older package ``footnote``, is
compatible with ``hyperfootnotes=false``, hence it is again possible to
Sphinx user to completely disable hyperlinking of footnotes, if ever
needed.
2017-03-07 19:06:23 +01:00
jfbu 6fda42f214 Reword a CHANGES entry for 1.6 (refs #3466) 2017-03-05 10:35:02 +01:00
jfbu 79a49805eb Add xcolor to Travis requirements for testing (refs #3070) 2017-03-04 18:56:55 +01:00
jfbu bfaab9b45d Stop bundling LaTeX package needspace with Sphinx (refs #3070) 2017-03-04 18:55:24 +01:00
jfbu 91ec5a8012 Update CHANGES for PR#3504 2017-03-04 18:50:08 +01:00
Jean-François B 469d261abb Merge pull request #3504 from jfbu/fixtablevspaces
Fix #3491 via equalizing vertical spaces for latex tables of all types
2017-03-04 18:24:49 +01:00
jfbu 64a45053af Rename to `\shinxbelowcaptionspace` 2017-03-04 18:09:33 +01:00
jfbu 07fa4246a3 Reduce after table space 2017-03-04 16:25:21 +01:00
jfbu 0882a41f24 Rename and simplify LaTeX macros
in particular:
``\sphinxbelowtablecaptionskip`` renamed to ``\sphinxbelowcaptionskip``
as it may be extended in future to usage for captions of literal blocks.
2017-03-04 16:09:49 +01:00
jfbu 5f71a2ccb3 Fix #3491 via equalizing vertical spaces for latex tables of all types
User interface via macros ``\sphinxtablepre``, ``\sphinxtablepost``
and ``\sphinxbelowtablecaptionskip``.
2017-03-04 00:08:02 +01:00
jfbu c112f60d47 Fix mypy violations after merge of 'stable'
modified:   sphinx/builders/gettext.py
2017-03-03 11:11:49 +01:00
jfbu 179a769490 Fix other error in merging 'stable'
modified:   sphinx/ext/intersphinx.py
2017-03-03 11:05:04 +01:00
jfbu 8f5d1e1050 Fix error in merge of 'stable'
modified:   sphinx/builders/gettext.py
2017-03-03 10:43:22 +01:00
jfbu 3743199576 Remove frame around LaTeX longtable's "Continued on next page" footer
refs: PR #3497
2017-03-03 10:08:08 +01:00
jfbu 33bf5410f6 Update tests after 'stable' merge (refs: #3497) 2017-03-03 10:00:56 +01:00
jfbu a7afad3952 Merge branch 'stable' 2017-03-03 09:57:15 +01:00
jfbu f8391ea487 Update CHANGES for PR#3497 2017-03-03 09:56:39 +01:00
jfbu fb5dd840f4 Merge branch 'stable' 2017-03-03 09:53:50 +01:00
Jean-François B 812d835fd1 Merge pull request #3497 from jfbu/fixlongtablelastcolumn
Fix #3496: latex longtable's last column may be wider than its contents
2017-03-03 09:48:47 +01:00
jfbu e9304fd41d Keep the frame around "Continued on next page" longtable footer 2017-03-03 09:39:59 +01:00
jfbu eb46ae20f8 Fix #3496: latex longtable's last column...
... may be much wider than its contents
2017-03-02 19:11:22 +01:00
Jean-François B 042c2beafa Merge pull request #3492 from jfbu/fixhtmlcompactlistsdoc
Close #3489: bullet list rendered "opened up"
2017-03-02 15:22:22 +01:00
jfbu 4119439f3a Close #3489: bullet list rendered "opened up" 2017-03-02 14:56:27 +01:00
jfbu e14b296ef0 Update CHANGES for PR#3435 2017-03-01 22:34:47 +01:00
jfbu c28e1da763 Update (again) latex docs after PR##3429 2017-03-01 22:26:49 +01:00
Jean-François B 74b46505f6 Merge pull request #3435 from jfbu/improvelatextables
Fix #1574 via improvement to latex tables (allow general contents in merged cells)
2017-03-01 20:58:41 +01:00
jfbu e8e8616079 Solve the LaTeX multirow issue with colour panels
This uses the same macro for suppressing column colours which was used
for multi-column. Bottom cells of multi-row must have no colour panels,
else they hide the text which is inserted from the top row.
2017-03-01 09:46:36 +01:00
jfbu 080d8854af Re-instore `\X` columns under old condition for problematic
Indeed the ``l`` specifier must be avoided as much as possible to allow
cells having much more contents than others to be handled sanely.
Related to issue #3447. Parent commit would have made the issue more
frequent, this one helps restrain cases to those already in existence.
2017-03-01 09:45:31 +01:00
jfbu bc67d4298f Improve latex tables: fix #1574 and other rendering issues
- allow multi-paragraph contents in grid table merged cells
- allow code-blocks in merged cells
- allow generally speaking reST contents allowed in regular
  cells to be also allowed in merged cells, whether multirow,
  multicolumn, or both.

This is made possible by custom LaTeX macros replacing original
``\multicolumn`` and ``\multirow`` (none of the originals allows
verbatim contents as is needed for code-blocks). They are defined in
bundled LaTeX style file sphinxmulticell.sty. The multicolumn merged
cells give much better results with tabulary as it is coerced into
taking them into account in its automatic width algorithm.

This deprecates use of LaTeX packages eqparbox and multirow, which are
not needed anymore.

New config setting ``latex_use_latex_multicolumn`` (default value False,
currently) as custom Sphinx multicolumn is not fully compatible will all
types of custom table col specs which may be inserted via tabularcolumns
directive. It works best with standard ``|`` column separator.

The default tabulary column specifier has been changed from L
(flushleft) to J (justifying). Internally the column type is called T,
so ``r'\newcolumntype{T}{L}'`` in preamble key recovers the former
behaviour. A ``\Y`` column type is defined which admits one decimal
argument in place of the two integers for ``\X``.
2017-03-01 09:41:30 +01:00
Jean-François B a4d1fb7dec Merge pull request #3481 from jfbu/spx@ifundefined
Remove now unneeded internal LaTeX macro as TL2013's one is OK
2017-03-01 08:48:10 +01:00
jfbu 99a0a6f76a Remove now unneeded internal LaTeX macro as TL2013's one is OK 2017-02-28 20:49:29 +01:00
jfbu 95d9261f1e Update CHANGES for PR#3480 2017-02-28 16:07:01 +01: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
Jean-François B c8e55b3e54 Merge pull request #3480 from jfbu/extraclassoptions
Make ``'extraclassoptions'`` key of ``latex_elements`` public
2017-02-28 16:03:41 +01:00
jfbu 5b5398768c Make `'extraclassoptions' key of latex_elements` public 2017-02-28 12:43:36 +01:00
jfbu 434a32d1c8 Remove unneeded `{}` in LaTeX transition code 2017-02-28 10:00:41 +01:00
jfbu 801ec86f66 Update a comment 2017-02-28 08:55:20 +01:00
jfbu 3e3d97ff9c fix test 2017-02-28 08:13:37 +01:00
jfbu f282647e17 Update docs and CHANGES after PR#3429 2017-02-27 23:57:37 +01:00
jfbu 234be035c6 Fix longtable template after PR#3429 merge 2017-02-27 23:33:56 +01:00
Jean-François B efc2d06e4f Merge pull request #3429 from jfbu/xelatexfontspecclash
deprecate config setting ``latex_keep_old_macro_names`` at 1.6
2017-02-27 22:31:01 +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
jfbu 493c65a9ee Update CHANGES for PR#3466 2017-02-27 12:46:27 +01:00
Jean-François B 56d446cb42 Merge pull request #3466 from jfbu/lualatexsettings
same default settings for lualatex as for xelatex
2017-02-27 12:19:32 +01:00
jfbu 1c4112b9cc typo in CHANGES 2017-02-26 23:42:49 +01:00
jfbu d4bf543e7e add missing space in a CHANGES entry 2017-02-26 23:41:37 +01:00
jfbu 465aad14a8 add missing backquote for a literal in a CHANGES entry 2017-02-26 23:36:27 +01:00
jfbu b6eeb6e13e fix indentation in invocation.rst 2017-02-26 21:52:06 +01:00
jfbu 2543517894 fix bad indentation in CHANGES#L95 2017-02-26 20:09:26 +01:00
jfbu ff700ae606 again update LaTeX requirements documentation 2017-02-26 13:26:23 +01:00
jfbu 7f1b9c0e5b update docs about LaTeX builder with required TeX install version 2017-02-26 11:45:20 +01:00