Commit Graph
100 Commits
Author SHA1 Message Date
jfbu f2b63b473b fix python error in latex.py from commit 528b6c3 2016-11-03 20:03:53 +01: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
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
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
jfbu 4d3f5b3c1c update style files checklist for latex tests 2016-10-27 11:43:20 +02:00
jfbu 5142d17e41 fix mark-up in AUTHORS (funny effect of `T.`) 2016-10-27 10:08:26 +02:00
jfbu 7a96becca1 Update CHANGES for PR#3096 2016-10-27 10:02:53 +02:00
Jean-François B 5fa47df1e8 Merge pull request #3096 from jfbu/latex_fixtoodeeplynested
Fix #777: (part II) LaTeX output "too deeply nested"
2016-10-27 09:58:48 +02:00
jfbu 4e2bdf6671 ignore `'maxlistdepth'` if package "enumitem" in use 2016-10-27 09:24:12 +02:00
jfbu 183a2ca75a Fix label placement in doc/config.rst (caused extra white line) 2016-10-26 23:49:49 +02:00
jfbu e59ab1538d fix typos and mark-up in doc/config.rst 2016-10-26 23:16:15 +02:00
jfbu a3cf7185f1 fix mark-up in doc/config.rst 2016-10-26 22:56:58 +02:00
jfbu 787fffd25f fix test of current listdepth which was too permissive by one unit 2016-10-26 19:07:44 +02:00
jfbu 4470e7d565 use "kvoptions" to handle sphinx latex package options
will facilitate adding options in the future, with a "key=value" syntax.
2016-10-26 12:06:05 +02:00
jfbu 3af9353b38 Fix #777: (part II) LaTeX output "too deeply nested"
The standard classes have a severe cap on maximal nesting of list-like
environments (a total of six levels, and four for each of enumerate and
itemize). This commit defines a new key ``'maxlistdepth'``. _Only_ if it
is set (i.e. non-empty) will sphinx.sty do some hack to lift the LaTeX
limitations and extend the maximal list depth to the desired value.
2016-10-26 10:30:52 +02:00
jfbu a2672ce11b streamline latex comments in sphinx.sty 2016-10-26 10:16:09 +02:00
jfbu 69d3480ef7 Fix again hyperref duplicate destination warnings
The method at 4e88bfe worked only for page 1. This moves to
``\maketitle`` the whole control.
2016-10-25 22:30:40 +02:00
Jean-François B 41609f15b8 Fix #3086: revert 1.5a2 change to latex bibliographic entries key widths (#3087) 2016-10-24 15:58:20 +02:00
jfbu d0dbd60d94 Addition and alphabetical order fix in AUTHORS 2016-10-23 15:08:51 +02:00
jfbu 8aa66fda80 Let "make help" provide better info for latexpdf target 2016-10-23 11:25:05 +02:00
jfbu ef73ecefb2 Amend Update CHANGES for PR#3056 (it was already in 1.5a2) 2016-10-23 10:53:55 +02:00
jfbu 637cb141f9 Update CHANGES for PR#3056 2016-10-23 10:46:10 +02:00
jfbu 720e155b83 Add a comment to Makefile template for make-mode, update doc/Makefile 2016-10-23 10:45:23 +02:00
jfbu 54dbd3882d add advice on use of tabulary (latex output) 2016-10-20 15:47:38 +02:00
jfbu 039c68d8f3 Fix #3062: Failed to build PDF using 1.5a2
PR #3030 (3e21ef4) moved "hyperref" loading to later but forgot the
`\hypersetup` at sphinx.sty#L895 for Japanese documents.
2016-10-19 08:55:27 +02:00
jfbu 6438cf54db fix capitalization in config.rst: "Example of configuration file" 2016-10-17 17:25:40 +02:00
jfbu daee1fc51d Fix config.rst description of `latex_documents` docclass element 2016-10-17 09:46:38 +02:00
jfbu 78d96b4abb amend Update CHANGES for PR#3057 2016-10-16 17:49:23 +02:00
jfbu 18c31d52bb Update CHANGES for PR#3057 2016-10-16 17:47:38 +02:00
Jean-François B 828c96ec10 Fix #3047: spacing before footnote in pdf output is not coherent (#3057)
A ``\sphinxBeforeFootnote`` macro is inserted by footnote environment
and ``\footnotemark`` command. Its default is to remove the space before
the footnote mark. Formerly, footnotes from explicit mark-up were
preceded by a space allowing a linebreak, but automatically generated
footnotes had no such space.
2016-10-16 17:40:19 +02:00
jfbu 2b865cf90a Make `make synonym to make help` again 2016-10-15 23:42:00 +02:00
jfbu 16e9049bb3 No need for an empty recipe for Makefile as it has been set .PHONY 2016-10-15 22:59:12 +02:00
jfbu 362ee9d974 Fix make-mode in order to allow build to go through 2016-10-15 21:09:21 +02:00
jfbu aad61e814c Fix #2461: re-allow footnotes in topics for latex PDF
The issue #2291 which was fixed at 9b958b6d (1.3.6) is now alleviated
in another way since PR #3022 (b8e0e93).
2016-10-15 13:03:18 +02:00
jfbu 40b644b664 Update CHANGES for PR#3022 2016-10-15 12:19:08 +02:00
Jean-François B b8e0e935e4 Improve LaTeX footnotes (#3022)
Allow code-blocks in footnotes for LaTeX PDF output.

This is done via using a ``footnote environment``, provided by LaTeX
package footnotehyper which replaces old problematic package footnote.
No need to ship a custom tabulary anymore.

The footnote markers are silently removed from the table of contents and
do not end in the PDF bookmarks (the old code in ``sphinx.sty`` copying
``footmisc.sty`` was not satisfactory and has been deleted and replaced
by use of better ``\sphinxfootnotemark``.) Footnotes can be used also in
captions of literal blocks.
2016-10-15 12:09:58 +02:00
jfbu 58dab8d80b Update CHANGES for PR#3030 2016-10-15 11:56:17 +02:00
Jean-François B 3e21ef45cf Merge pull request #3030 from jfbu/loadhyperreflater
(latex) separate loading of hyperref from sphinx.sty
2016-10-15 11:47:51 +02:00
jfbu ec8dd32e35 add example to use of `'printindex'` key 2016-10-14 11:21:18 +02:00
jfbu 689327d6fc add missing versionchanged directive for tableofcontents 2016-10-14 11:14:15 +02:00
jfbu 536d52063f Revert "new `'packages' key to latex_elements`"
This reverts commit 9972d729ab.
2016-10-14 09:04:45 +02:00
jfbu 9972d729ab new `'packages' key to latex_elements`
serves to load packages after ``sphinx.sty`` itself and before hyperref.
2016-10-14 09:04:08 +02:00
jfbu 9cdf4fe00f (latex) separate loading of hyperref from sphinx.sty
new 'hyperref' key in ``latex_elements``.
2016-10-14 09:02:18 +02:00
Jean-François B 28d6e34bb3 Merge pull request #3051 from jfbu/betterfixforduplicatedestinationwarning
(latex) avoid in a better way duplicate name page.1 hyperref warning
2016-10-14 08:21:36 +02:00
jfbu 340edb32c6 (latex) mention Bjornstrup fncychap chapter style in the docs 2016-10-13 23:21:05 +02:00
Jean-François B b22db35849 Merge pull request #3040 from jfbu/updatelatexsphinxdocumentation
update latex.rst (``LaTeX customization`` chapter in the docs)
2016-10-13 22:14:15 +02:00
jfbu 4e88bfeff0 (latex) avoid in a better way duplicate name page.1 hyperref warning
The  ``\pagenumbering{alph}`` trick has the inconvenient that it is
mandatory to reset later the page numbering to arabic else errors will
arise as soon as the document has more than 26 pages. This resetting is
done by Sphinx code for ``\tableofcontents`` now called
``\sphinxtableofcontents`` but not by original ``\tableofcontents``.
Thus, user putting ``\tableofcontents`` in ``'tableofcontents'`` key
would get errors now without that fix.

The titlepage environment creates a group and clears the page before
exiting, thus this solution is quite analogous to the one recommended by
hyperref author at http://tex.stackexchange.com/a/333219/4686.
2016-10-13 20:17:28 +02:00
jfbu fc3908485c kill unwanted TABs 2016-10-13 15:47:30 +02:00
jfbu 44907736ec update more latex.rst 2016-10-13 14:09:43 +02:00
jfbu a16cb8ea57 update info strings of Sphinx LaTeX style file and classes
makes latex compilation logs more precise
2016-10-13 10:58:44 +02:00
jfbu c3b6f8cc95 Update CHANGES for PR#3032 2016-10-12 22:42:12 +02:00
Jean-François B 749a6a0558 Merge pull request #3032 from jfbu/improvelatexcompatibilities
Fix #3031: incompatibility with LaTeX package ``tocloft``
2016-10-12 22:40:28 +02:00
jfbu 0861ca9a03 escape some backslashes in latex.rst example code 2016-10-12 22:33:09 +02:00
jfbu 613b80d3ed update latex.rst (`LaTeX customization` chapter in the docs) 2016-10-12 22:12:36 +02:00
jfbu 1a540247b6 make sphinx prefixed names known to non-Sphinx document classes 2016-10-12 08:32:24 +02:00
jfbu 9826be6f69 fix forgotten needed redefinitions in sphinx.sty for jsclasses 2016-10-11 23:12:27 +02:00
jfbu 49031c3c40 make sphinx latex style file use a package option
for handling of ``latex_keep_old_macro_names`` conf.py setting
2016-10-11 22:50:12 +02:00
jfbu b0a3b6cbc0 fix typo in config.rst 2016-10-11 20:55:00 +02:00
jfbu bc8d9aa93d fix accidental replacement of section by chapter 2016-10-11 20:52:19 +02:00
jfbu 143daf21d8 Fix #3031: incompatibility with LaTeX package `tocloft`
Use ``\sphinxtableofcontents``,  and environments ``sphinxtheindex``
and ``sphinxthebibliography``.
2016-10-11 20:42:58 +02:00
jfbu e43a31da12 Re-insert check for LaTeX macro filename which got suppressed in merge 2016-10-10 21:15:53 +02:00
jfbu e4dd1bf04b Update CHANGES for PR#3023 2016-10-10 21:12:57 +02:00
Jean-François B 940fa11b9b Merge pull request #3023 from jfbu/fixpysiglineissue
Fix an issue with ``\pysigline`` in LaTeX style file.
2016-10-10 20:59:59 +02:00
jfbu 5b040dd754 Update CHANGES for PR#3020 2016-10-10 20:58:34 +02:00
jfbu 861973bfbb Merge branch 'usegeometrypackage' 2016-10-10 20:55:44 +02:00
jfbu 34ac39e583 Update CHANGES for PR#3017 2016-10-10 20:52:55 +02:00
Jean-François B 89ccf9e103 Merge pull request #3017 from jfbu/fixuseofncychap
Fix #147 and fix #1986: Problem with latex chapter style
2016-10-10 20:49:05 +02:00
jfbu 5e2c8b9f74 Fix an issue with `\pysigline` in LaTeX style file.
This issue was initially reported as
<http://tex.stackexchange.com/questions/201270/argument-of-item-has-an-extra>

The commit also fixes two other potential problematic code locations in
sphinx.sty
2016-10-09 22:19:25 +02:00
jfbu 34f1ce17fd Fix #3018: LaTeX problem with page dimensions and chapter titles
New key ``'geometry'`` to ``latex_elements``.
2016-10-07 23:40:39 +02:00
jfbu 5b78aa28fe Fix #147 and fix #1986: Problem with latex chapter style
Notice that as an after effect ``Contents`` or ``Python Module Index``
will appear (by default) in bold, and larger than formerly (it was a
bug of Sphinx that they were not styled).

I am leaving the `\py@HeaderFamily` in the `sphinx.sty` patch to the
Bjarne `fncychap.sty` style for backwards compatibility. And as it does
`\bfseries` by default I left only the size changing commands in the
`fncychap` customization of Bjarne style.

Also, the `\@makechapterhead` re-definition obeys `\mainmatter` etc...
2016-10-07 11:55:43 +02:00
jfbu 0875507497 Better wording in CHANGES for PR#3010 2016-10-06 19:50:42 +02:00
Jean-François B d36b0984fc Merge pull request #3010 from jfbu/fixcodeinparsedliteral
Fix #3009: Bad rendering of parsed-literals in LaTeX
2016-10-06 19:27:46 +02:00
jfbu 89487d02fe Update CHANGES for PR#3010 2016-10-06 19:27:20 +02:00
jfbu 446729dccf Improve wording in sphinx.sty and spare a few code lines at its end. 2016-10-06 19:26:32 +02:00
jfbu 44f595a63f Fix #3009: Bad rendering of parsed-literals in LaTeX
This reverts the ``\scantokens`` added (commit 86083875) to ``\code``
(aka ``\sphinxcode``), in case it is encountered inside a parsed-literal
directive. Indeed strange interference arise then. The problem would
occur in Verbatim too, but I think ``\sphinxcode`` is not encountered
there.
2016-10-06 19:26:32 +02:00
jfbu d6d6a8e0d8 Update CHANGES for PR#2997 2016-10-02 09:31:36 +02:00
Jean-François B 07e599a83a Merge pull request #2997 from jfbu/fixitalianshorthandoff
Fix #2810: Problems with pdflatex in an Italian document
2016-10-02 09:28:41 +02:00
jfbu 85b954714c Fix #2810: Problems with pdflatex in an Italian document
Depending on the version of the italian module for LaTeX Babel, the
double-quote character may have been or not declared as a babel
shorthand. The babel ``\shorthandoff`` macro emits an error which aborts
compilation if the character isn't a shorthand. This commits wraps the
macro in a conditional to test if the character is active or not.

	modified:   sphinx/writers/latex.py
2016-10-01 17:44:46 +02:00
jfbu 24dc3e601d Reset verbatim nolig list only in case of wrapping of codelines 2016-09-07 23:54:53 +02:00
jfbu 0464c52bce latex: code blocks linebreaks easier customized
Via re-definable ``\sphinxbreaksbeforelist`` and ``\sphinxbreaksafterlist``,
latex user can specify (using ``'preamble'`` key for example) if broken
code lines are split before or after the said character when code blocks
are wrapped. Punctuation characters use active catcodes and are
configurable via further macros ``\sphinxbreaksbeforeactivelist`` and
``\sphinxbreaksafteractivelist``. The defaults in ``sphinx.sty`` can be
modified by imitation in user document preamble.

n.b.: ``\sphinxbreaksatpunct`` has been renamed to ``\sphinxbreaksviaactive``.
2016-09-07 23:31:34 +02:00
jfbu 1d7c82b3bb Merge branch 'stable' into master
Conflicts (fixed)::
	sphinx/texinputs/sphinx.sty
2016-09-07 23:18:09 +02:00
jfbu 581216e50e Update CHANGES 2016-09-02 10:09:56 +02:00
jfbu 71b9f00d31 Fix #2873: code-block overflow in latex (due to commas)
The potential linebreaks at commas in code lines were not inserted due
to latex kernel macro ``\@noligs`` which is issued by fancyvrb.sty
during its line processing. From the default `` `<>,'- ``, only the
backtick is left to be handled by ``\@noligs`` because the others are
either already replaced by a macro by Pygments, or (only the comma) made
active by sphinx.sty to insert potential linebreaks.
2016-09-02 09:48:33 +02:00
jfbu 7db8141238 Amend merged PR#2736 to maintain strict stability of pdf title page
This maintains for the time being the diverging behaviour between
engines regarding the top of title page, as discussed at
https://github.com/sphinx-doc/sphinx/pull/2736#issuecomment-230140016
2016-07-03 10:49:05 +02:00
Jean-François B 532a804a66 Merge pull request #2736 from jfbu/fixunderfullhbox
Fix #2735: latexpdf ``Underfull \hbox`` warnings from title page
2016-07-02 12:46:39 +02:00
jfbu 0ecfa8e8e9 Fix #2735: latexpdf `Underfull \hbox` warnings from title page
This came from the spurious space tokens following a fullwidth rule at
top of ``\maketitle`` in ``sphinxhowto.cls`` and ``sphinxmanual.cls``.
The ``\newline\null\par`` incantation recreates the extra empty line
which originated in these spurious space tokens, but it avoids the
Underfull latex warning. Nothing is changed to layout from this fix.
2016-07-02 10:56:59 +02:00
jfbu 7796a553d3 Update CHANGES for PR#2726 2016-07-02 07:41:43 +02:00
Jean-François B 8a79144e26 Merge pull request #2726 from jfbu/fixmultirow
Fix #2723: extra spaces in latex pdf output from multirow cell
2016-07-02 07:39:47 +02:00
jfbu 35214d4518 Fix #2733: `make latexpdf` generates lots of hyperref warnings 2016-07-01 19:18:27 +02:00
jfbu b25dc5ef4c Fix #2723: extra spaces in latex pdf output from multirow cell
Adds some ``\relax``/``\unskip`` and removes spaces from ``visit_entry``
generated latex code. Earlier, multirow cell inherited one extra space
token at begin and one at end, making left or right alignment with other
cells fail because the native LaTeX space removal mechanism for table
cells could not apply there.

Memo: the ``\eqparbox`` part of ``visit_entry`` from e41f831f is left
untouched; separate analysis required.
2016-06-30 18:11:54 +02:00