summaryrefslogtreecommitdiff
path: root/sphinx/texinputs
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | LaTeX: fix #6804jfbu2019-11-101-7/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In case a code-block is in an environment already using the "framed" package, measure the vertical size needed for the code lines and use a nested "framed" only if short enough (i.e. at most 90% of text area on a page). Long nested contents will drop the inner frame. They lose the background color as well as the continuation hints across pagebreaks. But the caption if present is typeset normally. And highlighted lines and line numbers are rendered with no alteration. Short nested contents (should) render exactly as before this commit: they use "framed" but this must be encapsulated in an unbreakable "minipage". All decoration including caption are obeyed but of course not the continuation hints are these never apply.
* | | | | LaTeX: Allow linebreaks at \ (in literals, code-blocks, parsed-literal)jfbu2019-11-061-3/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Default configuration is to allow the linebreak after the backslash. It is possible at user side via 'preamble' key and some LaTeX code to allow the linebreak before the backslash, but each of inline-literal, code-block, and parsed-literal has its more or less cumbersome way for that. Closes: #6000, #6001 This commit handles only the \ character, which had been left aside by accident so far. Inline-literals could break at more characters but this is not yet done in this commit. In this context, in future it could be useful to modify sphinx.util.texescape to use mark-up such as \sphinxtextbackslash rather than naked \textbackslash and similarly for some other characters. This could then be used to allow linebreaks even in regular text paragraphs.
* | | | | Merge branch '2.2.2' into 2.0jfbu2019-11-061-2/+4
|\ \ \ \ \ | |/ / / / | | | | / | |_|_|/ |/| | |
| * | | Fix #6776: 2019-10-01 LaTeX release breaks sphinxcyrillic.styjfbu2019-10-281-2/+4
| | | |
* | | | Merge branch '2.2.1' into 2.0jfbu2019-09-141-1/+2
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | Resolved Conflicts: CHANGES sphinx/__init__.py sphinx/texinputs/sphinx.sty
| * | | Fix #6641: Undefined control sequence \sphinxmaketitlejfbu2019-09-021-1/+2
| |/ /
* | | Merge branch '2.0' into latex_6668Jean-François B2019-09-061-1/+1
|\ \ \
| * | | LaTeX: Avoid section titles at the end of a pageSebastian Huber2019-09-051-1/+1
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | The topic directive uses in LaTeX rendering a framed box which encourages a pagebreak before it even if the element is a section title. This can be avoided with the nobottomtitles option of the titlesec package. Fixes: #6618
* | | Fix #6668: LaTeX: Longtable before header has incorrect distancejfbu2019-09-011-2/+3
|/ /
* | LaTeX: refactor visit_enumerated_list() to use \sphinxsetlistlabelsjfbu2019-06-291-0/+12
| | | | | | | | Fixes: #6511
* | LaTeX: prevent pagebrak separating note from section titlejfbu2019-06-041-2/+2
|/ | | | Fixes: #6442
* Merge branch 'master' into latex_safe_graphicsjfbu2019-02-052-2/+2
|\
| * Merge branch '1.8'jfbu2019-02-042-2/+2
| |\
| | * LaTeX: remove extra space after author on title page in PDFjfbu2019-02-032-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Closes: #6004 Comment: \begin{tabular}[@{}c@{}] does not work in case of multiple authors separated by \and in latex_documents, because latex has this definition of \and : macro:->\end {tabular}\hskip 1em \@plus .17fil\begin {tabular}[t]{c} which means we would need to modify it to read macro:->\end {tabular}\hskip 1em \@plus .17fil\begin {tabular}[t]{@{}c@{}} (or only one @{} at end) modifying space between two authors.
* | | LaTeX: safer image inclusionjfbu2019-01-291-40/+64
|/ / | | | | | | Closes: #5956
* | Merge branch '1.8'jfbu2019-01-221-1/+7
|\ \ | |/
| * Closes: #5960jfbu2019-01-171-1/+7
| | | | | | | | Mumble
* | Merge branch '1.8'jfbu2019-01-131-1/+40
|\ \ | |/
| * LaTeX: \sphinxsafeincludegraphics for sphinxShadowBox/sphinxheavyboxjfbu2019-01-121-1/+40
| | | | | | | | Fixes: #5936
* | LaTeX: no need for \sphinxVerbatimEnvironmentjfbu2019-01-101-7/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | It is not needed as fancyvrb's \VerbatimEnvironment can be used in nested way and the outer one prevails (sorry for adding the complication initially when providing sphinxVerbatimintable environment). That internal macro is not public API, and it is hard to deprecate it from LaTeX as the Sphinx custom Verbatim environments redefined it on-the-fly. I searched and found no usage on internet of this, so there does not seem any need to deprecate this non-public internal macro before removal.
* | Update date of LaTeX class filesjfbu2018-12-232-2/+2
| |
* | Merge branch 'master' into latex_tableofcontentshookjfbu2018-12-232-7/+9
|\ \
| * | Fix bad merge (sorry)jfbu2018-12-231-1/+1
| | | | | | | | | | | | modified: sphinx/texinputs/sphinxmanual.cls
| * | Merge branch '1.8'jfbu2018-12-232-4/+6
| |\ \ | | |/ | | | | | | | | | (Resolved) Conflicts: sphinx/texinputs/sphinxmanual.cls
| | * Update date and version of LaTeX class filesjfbu2018-12-222-2/+2
| | |
| | * LaTeX: ``\sphinxmaketitle`` and optional ``\sphinxbackoftitlepage``jfbu2018-12-212-2/+4
| | | | | | | | | | | | Closes: #5849
| * | LaTeX, rename some internal temporary macro in \sphinxtableofcontentsjfbu2018-12-221-3/+3
| | |
* | | LaTeX: move some hard-coded re-definitions to user hook for TOCjfbu2018-12-222-7/+11
|/ /
* | Merge branch '1.8'jfbu2018-12-161-1/+4
|\ \ | |/
| * LaTeX: allow sphinxVerbatim usage without explicit "hllines" extra setupjfbu2018-12-161-1/+4
| | | | | | | | Fixes: #5810
* | Merge branch '1.8'jfbu2018-12-111-0/+3
|\ \ | |/
| * LaTeX update a comment about inputencjfbu2018-12-111-0/+3
| |
* | Merge branch 'master' of github.com:sphinx-doc/sphinxTakeshi KOMIYA2018-11-221-12/+14
|\ \
| * | LaTeX: ignore global document class options in sphinxcyrillic.styjfbu2018-11-221-12/+14
| | | | | | | | | | | | | | | | | | | | | | | | And sort Cyrillic glyphs in ascending order in X2 code. Thanks to tex.sx user egreg (https://tex.stackexchange.com/a/460325/) for providing the original code for X2 declarations using directly the Unicode characters.
* | | Merge branch '1.8'Takeshi KOMIYA2018-11-221-32/+100
|\ \ \ | |/ / |/| / | |/
| * LaTeX: update sphinx.sty version and datejfbu2018-11-181-1/+1
| |
| * LaTeX: add a commentjfbu2018-11-181-0/+1
| |
| * LaTeX: compatibility with captions package, last partjfbu2018-11-181-10/+27
| | | | | | | | | | Make sure vertiale spacing is the same for tabular(y)/longtable also for multi-line captions
| * LaTeX: compatibility with caption package, 2nd partjfbu2018-11-181-28/+44
| | | | | | | | | | | | | | Ensure same vertical spaces above caption for tabular(y) and longtable rendered tables. Fixes: #5520
| * LaTeX: compatibility with caption packagejfbu2018-11-131-13/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This compatibility is mainly re-instored for convenience of user to style the fonts used for the caption, and also possibly influence the horizontal position via "width" or "margin" option of caption package (attention that caption package obeys the document class tacit "twoside" option, so if left and right margins are not set-up to be the same, positioning of caption will depend on parity of the page number). Regarding vertical skips, for captions placed on top (which is the table templates default and also the literalblockcappos default), this commit ensures that the vertical spacing separating the caption last baseline to the top of framing is governed by \sphinxbelowcaptionspace in all these three cases: tabular(y), longtable, literal blocks; the "skip" option of caption package is ignored for them. The "skip" is obeyed for the spacing between an image and its caption, which currently in Sphinx is always below the image (no customization of the figure caption vertical placement is currently available). If literalblockcappos is "b" (captions follow code-blocks), this commit removes the caption-package added \abovecaptionskip, so that "skip" is also ignored for code-blocks in this case. This looks better due to the extra space already added by the framing of the code-block and achieves same spacing as without caption package (presumably loaded mainly to style the fonts used for the caption). However in future maybe caption's package "skip" should be obeyed for "literalblock" caption type. Fixes: 5520
* | new file: sphinx/texinputs/sphinxcyrillic.styjfbu2018-11-211-0/+51
| | | | | | | | Forgot to add it to previous commit :(
* | LaTeX: font choices for Greek and Cyrillic support, and (Xe|Lua)LaTeXjfbu2018-11-211-24/+0
| |
* | LaTeX: support for Greek and Cyrillicjfbu2018-11-162-34/+79
|/ | | | | | | | | | | | | | | | | | | | | | | | | 0. do not escape Unicode Greek letters via LaTeX math mark-up: pass them through un-modified to LaTeX document, 1. if "fontenc" receives extra option LGR, then pdflatex will support Unicode Greek letters (not in math), and with extra option T2A it will support (most) Unicode Cyrillic letters. 2. for pdflatex with LGR, this will use "textalpha" LaTeX package and "substitutefont" package to set up some automatic font substitution to work around the unavailability of Greek with "times" package (which is default font package chosen by Sphinx for pdflatex), same with T2A and "substitutefont" for Cyrillic. 3. for xelatex/lualatex, set up Computer Modern Unicode as default font, as it supports Cyrillic and Greek scripts, 4. for platex, don't do anything special as the engine already has its default font supporting Cyrillic and Greek (even in math mode!) Closes: #5251 Fixes: #5248 Fixes: #5247
* LaTeX: update date and version of sphinx.styjfbu2018-11-061-1/+1
|
* LaTeX: add styling to general index, similar to domain indicesjfbu2018-10-313-3/+13
| | | | Closes: #5579. Also closes #5576.
* LaTeX: do not use `-I xelatex` option with xindy (Fix: #5561)jfbu2018-10-301-2/+0
| | | | | | It is not supported by old xindy (TeXLive 2013 or earlier), and probably irrelevant anyhow as the .idx file should not have ^^ab or ^^^^abcd entries.
* Fix #5454: latex: Index has disappeared from PDF for Japanese documentsTakeshi KOMIYA2018-09-221-5/+3
|
* Update CHANGES for #5455jfbu2018-09-201-1/+1
|
* Fix #5453 and move LaTeX ``\pagestyle`` to templatejfbu2018-09-183-21/+37
|
* latex: Invoke mendex from perl (for Windows)Takeshi KOMIYA2018-08-131-1/+18
|