Commit Graph
100 Commits
Author SHA1 Message Date
Jean-François B 79501767d8 Merge pull request #4360 from jfbu/4359_tame_docutils_conf
Do not apply smart quotes if Sphinx says no, even if Docutils says yes
2018-01-05 15:56:21 +01:00
jfbu 0d824dfd41 Update CHANGES for PR #4360 2018-01-05 15:16:23 +01:00
jfbu bd139453c9 Move SphinxSmartQuotes transform to SphinxStandaloneReader
closes #4142
closes #4357
closes #4359
refs: #3967

Adds ``smartquotes``, ``smartquotes_action``, ``smartquotes_excludes``
configuration variables.

- if ``smartquotes`` is set to False, then Smart Quotes transform is not
  applied even if a Docutils configuration file activates it,

- the current default of ``smartquotes_excludes`` deactivates Smart
  Quotes for Japanese language, and also for the ``man`` and ``text``
  builders.

  However, currently ``make text html`` deactivates Smart Quotes for
  ``html`` too, and ``make html text`` activates them for ``text`` too,
  because the picked environment is shared and already transformed.

- now Smart Quotes get applied also when source documents are in
  Markdown or other formats.
2018-01-05 15:06:10 +01:00
jfbu 0059c05a85 Rename smartquotable to notsmartquotable for intelligibility 2017-12-30 11:03:43 +01:00
jfbu 8c72f98c78 Update CHANGES for PR #4316 2017-12-20 22:45:22 +01:00
Jean-François B fa20b7af5c Merge pull request #4316 from jfbu/4315_toplevel_sectioning
4315 toplevel sectioning
2017-12-20 21:46:03 +01:00
jfbu 1ee2c2fb95 Re-use some existing test with extras 2017-12-20 21:30:05 +01:00
jfbu 72bffcf0f4 Add precision to docs of latex_toplevel_sectioning 2017-12-18 11:20:07 +01:00
jfbu 245876c6e7 Add test for latex_toplevel_sectioning 2017-12-18 08:27:59 +01:00
jfbu af46ed16b0 Fixes #4315: latex_toplevel_sectioning induced \chapter in article class 2017-12-18 08:09:47 +01:00
jfbu 46b1896228 Again rewording docs about numfig_secnum_depth 2017-12-17 17:56:03 +01:00
jfbu ba1368072f Typo place holder --> placeholder 2017-12-16 11:51:00 +01:00
jfbu a9602e4597 Improve numref docs 2017-12-16 11:46:33 +01:00
jfbu f780f92d1b Mention `:numbered:` needed in numfig_secnum_depth docs 2017-12-16 11:32:40 +01:00
jfbu 070fbb97e5 Add markup and clarify numfig_secnum_depth docs 2017-12-16 11:05:33 +01:00
jfbu b131c33af5 Fix markup in doc/ext/math.rst 2017-12-15 22:54:52 +01:00
jfbu 64bb48ad2d Fix some French English encountered in sphinx.sty's comments ... 2017-12-13 22:29:56 +01:00
jfbu 8de0abd1b6 Make PDF highlighting work as expected also in absence of `:linenos:`
Method at 347f15ca2 was overly complicated, due to not enough
understanding of LaTeX package fancyvrb's innards.
2017-12-13 11:12:18 +01:00
jfbu b5e50d652c Update LaTeX style file's version date 2017-12-12 10:59:25 +01:00
jfbu faadbef757 Expose some sphinx.sty LaTeX internals for customizability (refs: #4285) 2017-12-12 10:57:49 +01:00
jfbu 43e6f1aa96 Fix VerbatimHighlightColor key declared non-sphinx-prefixed colour name 2017-12-11 23:09:19 +01:00
jfbu f95464baf3 Update CHANGES for PR #4285 2017-12-11 22:10:53 +01:00
Jean-François B 063bc681b5 Merge pull request #4285 from jfbu/1238_PDF_emphasize-lines
Support ``:emphasize-lines:`` in PDF output (closes #1238)
2017-12-11 21:45:21 +01:00
jfbu 2bbb699b01 Move some LaTeX macros for easier customizability if needed 2017-12-11 21:23:25 +01:00
jfbu 314f5291d4 Replace two self.body.append by one in latex writer 2017-12-11 20:17:27 +01:00
jfbu 34634d6225 Update CHANGES for PR #4250 2017-12-10 23:31:44 +01:00
Jean-François B 0febbc552a Merge pull request #4250 from jfbu/4249_errhighlight
Fix #4249 by overriding Pygments latex formatter error highlighting
2017-12-10 23:29:30 +01:00
jfbu e583e5b0f3 Fix highlighting in PDF if wrapping of long code lines was _not_ enabled 2017-12-10 17:11:55 +01:00
jfbu 3bbfbadce5 Add a note for future maintenance by TeX hackers 2017-12-10 16:51:10 +01:00
jfbu c220ae3ecb Update docs relative to emphasize-lines 2017-12-10 16:20:00 +01:00
jfbu 347f15ca28 Make PDF support for emphasize-lines work with lineno-start like html 2017-12-10 16:19:32 +01:00
jfbu 8ac042a0f8 Add emphasize-lines PDF support also under verbatimwrapslines=false 2017-12-10 16:19:28 +01:00
jfbu 70f8d4ddfc Support `:emphasize-lines:` in PDF output (closes #1238) 2017-12-10 12:37:36 +01:00
jfbu 90ee039e34 Avoid № in CHANGES, as PDF built with language="ja" does not render it 2017-12-06 19:02:11 +01:00
jfbu 21d1025739 Update CHANGES for PR #4268
modified:   CHANGES
2017-12-06 18:43:37 +01:00
jfbu 6cb517dc2d Fix #4249 by overriding Pygments latex formatter error highlighting 2017-12-06 09:43:39 +01:00
Jean-François B 7b2794fde1 Merge pull request #4268 from jfbu/4267_Unicode_breaks_PDF
Fix #4267 by passing `warn` option to package textcomp.
2017-12-05 23:26:36 +01:00
jfbu 10ec24b80d Fix #4267 by passing warn option to package textcomp.
This silences its silly build-breaking errors in case some font
substitution proved necessary for the characters it supports.
2017-11-29 17:07:10 +01:00
jfbu 9701c236d4 Trim docs/config.rst now that new config setting smart_quotes exists 2017-10-31 20:31:56 +01:00
jfbu 4b3d41c855 Fix typo in doc/config.rst 2017-10-31 20:30:32 +01:00
jfbu 6b4a0123fa Fix the fix of #4090 (sorry) 2017-10-22 13:28:46 +02:00
jfbu 5e86c1c934 Fix #4090: extra LaTeX macros via `latex_additional_files` 2017-10-22 13:24:03 +02:00
jfbu 90e3425ed7 Fix #4149: Documentation: Help choosing latex_engine 2017-10-22 11:45:28 +02:00
jfbu 5dbfc43dda Make clearer that Sphinx applies Smart quotes by default
modified:   doc/config.rst
2017-10-19 10:00:08 +02:00
jfbu 6a897af1d9 Clarify docs about `html_use_smartypants` deprecation 2017-10-19 09:56:14 +02:00
jfbu 77c5aaaa97 Fix #4134: [doc] docutils.conf is not documented explicitly 2017-10-19 09:23:41 +02:00
jfbu db36b42e55 Avoid extra space in PDF after image in parsed-literal (refs: Fix #4085) 2017-09-27 12:43:28 +02:00
jfbu dc129e0532 Fix #4085 Failed PDF build from image in parsed-literal 2017-09-27 09:54:18 +02:00
jfbu 6b7e33a332 Update CHANGES for PR #4066 2017-09-20 10:44:31 +02:00
Jean-François B 59b4f32b38 Merge pull request #4066 from aszekMosek/patch-1
Avoiding indent after index entries in latex
2017-09-20 10:43:20 +02:00
jfbu d0418f9129 Add test for #4066 latex \index indent fix 2017-09-20 10:30:45 +02:00
jfbu 444b1998d8 Produce less `\ignorespaces ` in latex output 2017-09-20 09:56:06 +02:00
jfbu 8542e29b40 Fix flake8 line too long violation in latex.py 2017-09-11 20:35:25 +02:00
jfbu f453fe7bf0 Fix #4044 (extra row height in PDF output from empty multicell) 2017-09-11 20:18:35 +02:00
jfbu f353bc63d7 Update LaTeX style file version date 2017-07-24 15:15:52 +02:00
jfbu 7f9907be61 Update CHANGES 2017-07-24 15:08:34 +02:00
jfbu 621eca38be Fix #3946 (typo in sphinx.sty) 2017-07-24 14:51:06 +02:00
jfbu adc056200c Improve access to table and math markup info in docs 2017-06-20 15:57:32 +02:00
jfbu 6f283d6879 Update docs regarding the CDN used by default for MathJax 2017-06-20 00:20:22 +02:00
jfbu a069378adb Fix #3881 by adding blank line in tex file before figure environment 2017-06-19 12:50:34 +02:00
jfbu 0a805ce03b latex: Fix #3878 by using `\sphinxbfcode and not \sphinxstrong` 2017-06-19 11:02:05 +02:00
jfbu 0b70314f66 Fix `\sphinxbfcode` latex macro swallows initial space of argument 2017-06-19 10:53:51 +02:00
jfbu 9db496f800 Fix typo in latex macro name 2017-06-18 20:22:48 +02:00
jfbu 5331ab2ef9 Fix #3851 and fix #3706 about box drawing characters for PDF output
Do not tex-escape them, but provide suitable definitions for pdflatex
only (and platex). Define the 4 box drawing characters needed by unix
tree command with charset utf8. Also define the U+2572 as it was
previously escaped for all engines.

No definitions for xelatex/lualatex as it is then only a matter of using
a font providing them (a priori, only the mono font needs definition, as
the characters will be used in literal blocks).
2017-06-18 20:07:10 +02:00
jfbu ab2cc9d8f1 Update LaTeX style file date for 1.6.3 release 2017-06-18 17:21:28 +02:00
jfbu 3e2255c720 Update CHANGES 2017-06-18 13:27:55 +02:00
jfbu f99fe20e50 Update nodes skipping smart quotes text processing
literal_block dit not belong to the list anyhow as it is block level
node and further it inherits from Docutils FixedTextElement, not
TextElement.

refs #3824, #3826
2017-06-18 13:21:41 +02:00
jfbu 2b2652056b Update CHANGES (refs #3472) 2017-06-17 16:12:34 +02:00
jfbu 521158549a Fix docs (Close: #3863) 2017-06-17 15:45:40 +02:00
Jean-François B c7914b3275 Merge pull request #3792 from jfbu/3764_hint_verbatimcontinues
latex: hint that code-blocks continue on next page (closes #3764)
2017-06-17 10:32:56 +02:00
jfbu d06cb0bc2e Update MathJax CDN link to use 2.7.1
refs: #3602
2017-06-16 08:28:50 +02:00
jfbu 474b30daa1 Move latex styling macros to proper place 2017-06-14 11:20:11 +02:00
jfbu c2277ae61c latex: hint that code-blocks continue on next page (closes #3764) 2017-06-14 09:49:39 +02:00
jfbu db8ff5fb75 Fix markup typo and missing bit in docs 2017-06-05 19:43:09 +02:00
jfbu 8b35c36cfe Shorten a definition list in latex docs 2017-06-05 16:55:37 +02:00
jfbu bd8c7e1410 Make the latex docs more concise 2017-06-05 15:34:23 +02:00
Jean-François B c6699eb6b8 Merge pull request #3832 from jfbu/smarty
Backport docutils.utils.smartquotes fixes as of r8097
2017-06-04 18:40:59 +02:00
jfbu e3c39deb1e Merge b52b790 and 075a8cf addition of alabaster sidebar template 2017-06-03 17:59:59 +02:00
Jean-François B 0aa5657f69 Merge pull request #3836 from jfbu/skipbacktickprocessing
Backport Docutils 0.14 skip of backticks processing by SmartQuotes
2017-06-03 12:55:31 +02:00
jfbu a3bdf1d0dc Backport Docutils 0.14 skip of backticks processing by SmartQuotes
refs: https://sourceforge.net/p/docutils/mailman/message/35869025/
2017-05-31 16:00:28 +02:00
jfbu 0b0bbfcb5b Backport docutils.utils.smartquotes fixes as of r8097
This incorporates fixes from 0.14rc1 which were not in the PR #3666
merged in 1.6.1, and extra language configurations and fixes for quotes.

Only active if Docutils is at 0.13.1 or earlier.
2017-05-31 10:33:24 +02:00
jfbu 075a8cfb8f Closes #3829: add `html_sidebars` default to sphinx-quickstart 2017-05-30 13:10:11 +02:00
jfbu 8aafa50af4 Fix typo in CHANGES at 1.6b1 Deprecated 2017-05-28 19:27:21 +02:00
jfbu 8679e145e4 Update docs and CHANGES about Latexmk not being used on Windows 2017-05-28 16:24:21 +02:00
jfbu e1574bfae9 Fix #3807 by using old Makefile in LaTeX build repertory for windows 2017-05-28 16:08:10 +02:00
jfbu 19e4462fd7 Update CHANGES for PR #3816 2017-05-28 15:24:38 +02:00
jfbu 3f6bfe1e8a Fix flake8 2017-05-28 13:32:44 +02:00
jfbu 1f451ce2f9 Fix #3781: instruct SmartQuotes of nodes to skip
Relates #3666, #3787
2017-05-28 13:10:17 +02:00
jfbu 350f58a618 Update CHANGES and docs regarding Latexmk dependency 2017-05-28 09:43:24 +02:00
jfbu 445ed48331 unindent a `break` (cosmetic) 2017-05-28 08:44:53 +02:00
jfbu 7165a4f1e4 Fix #3788: Docutils emits warnings for unsupported languages
This monkey-patches docutils.languages.get_language() to suppress
Docutils emitted warning when the document settings use a language_code
for which Docutils has no ready-made localisation. The language_code is
needed for functioning of the smartquotes transform.
2017-05-27 16:58:10 +02:00
jfbu 2d1503262d Add explanatory comment in LaTeX style file for `\spx@VerbatimFBox` 2017-05-23 13:00:42 +02:00
jfbu b18a3f82b4 Fix flake8 2017-05-20 10:16:24 +02:00
jfbu 6422f7b8c9 Fix #3742: missing `Index` bookmark and TOC entry in PDF builds at RTD
The trick is to create an Index TOC/bookmarks entry in anticipation of
makeindex execution, as RTD (currently) does only one pdflatex run after
makeindex.

    https://github.com/rtfd/readthedocs.org/issues/2857

The workaround works for Sphinx own docs, which uses ``'manual'``
docclass and puts the general index at very end of document.
2017-05-20 09:54:09 +02:00
jfbu ae1455077b Fix #3746: PDF builds fail with latexmk version 4.48 or earlier
This is tested to work with latexmk version: 4.39 (10 Nov 2013).

For xelatex engine and with latexmk 4.52b or later (Jan 2017), setting
LATEXMKOPTS Makefile variable on command line to "-xelatex" results in
faster builds, because PDF is produced only on last run.
2017-05-13 13:05:58 +02:00
jfbu 7d5c14c98c Update CHANGES 2017-05-13 12:21:38 +02:00
jfbu 2c1dcaf041 Fix (old!) typo in latex Makefile: ARCHIVEPREFIX was misspelled 2017-05-13 12:18:12 +02:00
jfbu 773659c41a Mention latex table templates in docs 2017-05-11 22:50:58 +02:00
jfbu d7d7a1cff9 Update CHANGES for PR #3684 2017-05-11 11:21:27 +02:00
Jean-François B 298b38453b Merge pull request #3684 from jfbu/stubs
Add latex support for docutils table stub columns (issue #3479)
2017-05-11 11:17:02 +02:00