summaryrefslogtreecommitdiff
path: root/sphinx/texinputs
Commit message (Collapse)AuthorAgeFilesLines
...
* | LaTeX: separate terms from their definitions by a CR (fix #9985)jfbu2021-12-201-2/+36
|/
* Fix Multi-function declaration in Python domain has cramped spacingjfbu2021-12-091-9/+24
| | | | | | | | | | | | Fix #9940 Avoid \pysiglinewithargsret tricks to get correct vertical spacing in multiline declarations in case mark-up inserts a \phantomsection. Activate such tricks also in \pysigline, but now with the \phantomsection test. Relates #7241, #8980, #8995
* Add \sphinxhyphenin{inline,parsed}literal for customizabilityjfbu2021-12-092-7/+11
| | | | | | | | | | | | | | | | | | | | Whether or not to allow linebreaks is matter of debate because user of pdf can not reflow the displayed text, and overfull lines may lead to loss of data beyond page border. Since Sphinx 1.5, inline literals allow linebreaks after the characters ".", ",", ";", "?", "!", "/" and "\" (cf the inlineliteralwraps key of latex_elements['sphinxsetup']). With pdflatex the dash "-" does not allow a linebreak when used with a monospace font (btw the dash is escaped to \sphinxhyphen{} which expands back to a dash). But this failed with xelatex, so previous commits ensured nobreak behaviour by redefining \sphinxhyphen to be \sphinxhyphennobreak when encountered in inline and parsed literals. This commit adds \sphinxhyphenin{inline,parsed}literal macros which default to \sphinxhyphennobreak and thus allow to customize how the dashes from sources will behave in such contexts in pdf output.
* Make sure option names in xelatex pdf output do not split at dashesjfbu2021-12-091-1/+8
| | | | Fix #9925
* Fix inaccurate LaTeX commentsjfbu2021-12-091-5/+11
|
* Fix #9500: LaTeX: Failed to build Japanese document on WindowsTakeshi KOMIYA2021-09-301-1/+1
| | | | | | At present, LaTeX builder generates a Makefile for PDFLaTeX instead of upLaTeX in building Japanese document on Windows. This adds upLaTeX support to Makefile for Windows.
* Merge pull request #9616 from jdufresne/fix-urlTakeshi KOMIYA2021-09-112-2/+2
|\ | | | | Update Sphinx url: s|https?://sphinx-doc\.org/|https://www.sphinx-doc.org/|g
| * Update Sphinx url: s|https?://sphinx-doc\.org/|https://www.sphinx-doc.org/|gJon Dufresne2021-09-062-2/+2
| | | | | | | | | | | | https://sphinx-doc.org is unreachable, but is linked from the PyPI page: https://pypi.org/project/Sphinx/. Switch to https://www.sphinx-doc.org/ instead.
* | Fix typos discovered by codespellChristian Clauss2021-09-084-5/+5
|/
* Fix typoEisuke Kawashima2021-07-082-2/+2
|
* Put the brackets in the right places.David Ham2021-07-041-1/+1
|
* Merge branch 'sphinx-doc:4.x' into container-latexDavid A. Ham2021-07-041-1/+2
|\
| * Fix #9305 LaTeX: backslash in sphinxupquote error with Japanesejfbu2021-06-131-1/+2
| |
* | Changes requested by review.David Ham2021-07-041-11/+16
| |
* | sphinxclass environment definition docutils style.David Ham2021-05-121-1/+6
| |
* | Refactor to one environment per class.David Ham2021-05-041-5/+5
| | | | | | | | Also rename sphinxcontainer to sphinxclass.
* | Grammar.David Ham2021-05-031-1/+1
| |
* | Support containers in LaTeX output.David Ham2021-05-032-0/+17
|/ | | | | | | Support containers in the LaTeX writer by outputting the start and end of a LaTeX group, wrapping the beginning and end of a LaTeX environment. The class name(s) are passed as an argument to the environment.
* LaTeX: partially revert #8997 \pysiglinejfbu2021-03-151-4/+10
| | | | | | | | | | | | | | | | | | | Reason is that mark-up such as this: .. attribute:: state state_machine The state and state machine which controls the parsing. Used for ``nested_parse``. generates two `\pysigline` each with `\phantomsection`. The latex code to get good vertical spacing between label and its description, if label ``\parbox`` is multi-line, cause in this context the two (generally, single-line) labels to be stacked vertically with no spacing. This commit keeps the ``\parbox`` which fixes #8980, but drops the attempt to correct vertical distance to description, so as to not alter the possibly more common use case of items with common description.
* Merge pull request #8997 from jfbu/latex_pysiglineJean-François B2021-03-141-10/+27
|\ | | | | LaTeX: improve behavious of `\pysigline` and `\pysiglinewithargsret` in case of multi-line signature
| * LaTeX: modify \pysigline and \pysiglinewithargsretjfbu2021-03-131-10/+27
| | | | | | | | | | | | Fix #7241 Fix #8980 Fix #8995
* | Refactor some internal LaTeX codejfbu2021-03-141-1/+21
|/ | | | | | | | | Codeline wrapping in literal blocks (possibly hard-wrap in presence of unbreakable long strings) requires a measurement step. Spring 2021 LaTeX adds quite some overhead to each and every paragraph to insert hooks at begin and end of paragraphs. For technical reasons, our measurement (which uses a paragraph in a scratch box) could be broken by the "after para" hook. Work around that.
* Merge branch 'master' into pdf_bookmarksdepthJean-François B2021-03-121-11/+0
|\
| * Merge branch 'master' into latex_better_fix_pygmentsJean-François B2021-03-121-1/+14
| |\
| * | LaTeX, better workaround for a Pygments <= 2.7.4 line spacing issuejfbu2021-02-131-11/+0
| | | | | | | | | | | | | | | | | | Closes: #8874 Relates #4249
* | | Merge branch 'master' into pdf_bookmarksdepthJean-François B2021-03-121-1/+14
|\ \ \ | | |/ | |/|
| * | LaTeX: let underfull calculation in wrapped code lines ignore last linejfbu2021-02-241-1/+14
| |/ | | | | | | Closes: #8925
* | LaTeX: let bookmarks use high default depthjfbu2021-02-181-0/+2
|/ | | | Add bookmarksdepth key to latex_elements['sphinxsetup']
* Merge branch '3.x'jfbu2021-02-121-1/+1
|\
| * Fix #8838 by forcing horizontal mode before inserting the penaltyjfbu2021-02-121-1/+1
| |
* | Update latex commentjfbu2021-02-101-0/+1
| |
* | Merge branch '3.x' into merge_3.x_into_masterjfbu2021-02-091-1/+1
|\ \ | |/
| * Minor style issue in texinputs/sphinx.styjfbu2021-02-091-1/+1
| |
* | Merge branch '3.x' into merge_3.x_into_masterjfbu2021-02-093-5/+255
|\ \ | |/ | | | | | | | | | | | | Resolved Conflicts: sphinx/texinputs/sphinx.sty Some hunks needed to go to sphinx/texinputs/sphinxlatexliterals.py, others already belonged to split files.
| * Merge branch '3.x' into latex_hyperlinked_caption_footnotes_on_3.xjfbu2021-02-091-4/+182
| |\
| | * Update CHANGES and docs relative to new verbatimforcewrapsjfbu2021-02-091-3/+4
| | |
| | * Add forgotten minwidth computationjfbu2021-02-091-5/+9
| | |
| | * Add verbatimmaxoverfull and verbatimmaxunderfulljfbu2021-02-091-3/+10
| | |
| | * Support Unicode input when forcefully wrapping code linesjfbu2021-02-091-52/+128
| | | | | | | | | | | | | | | | | | | | | This needs special coding only for pdflatex, Unicode TeX engines already handle Unicode characters as one token. The utf8x LaTeX input encoding is not supported, only utf8.
| | * LaTeX: optionally apply a second forceful wrapping of long code linesjfbu2021-02-081-3/+93
| | | | | | | | | | | | Closes #8849
| * | Extra references to explicitly numbered footnote get page indicationjfbu2021-02-062-28/+59
| | | | | | | | | | | | | | | | | | | | | To achieve this the simplest was to use also the \label/\ref mechanism as for footnotes typeset using footnotetext. Removing the hack into footnotehyper internal macro, we use an enriched scope, which will enable references with same number to each generate correct links.
| * | Be extra cautious to not use \@arabic in \thesphinxscopejfbu2021-02-061-0/+5
| | |
| * | Use \thesphinxscope mark-up (shorter, and may help trick for page scope)jfbu2021-02-061-4/+4
| | |
| * | Abstract \stepcounter{sphinxscope} into macro for flexibilityjfbu2021-02-061-0/+1
| | |
| * | Prepare for scope-limited footnote numberingjfbu2021-02-062-18/+19
| | |
| * | LaTeX: make all references to explicitly numbered footnote clickablejfbu2021-02-051-8/+33
| | |
| * | LaTeX footnotes from caption titles now hyperlinked in PDFjfbu2021-02-051-2/+11
| | | | | | | | | | | | This is fifth item of #2616
* | | Merge branch '3.x'Takeshi KOMIYA2021-02-071-1/+1
|\ \ \ | | |/ | |/|
| * | Revert "Add \nobreak inside \sphinxAtStartPar"jfbu2021-02-061-1/+1
| |/ | | | | | | | | | | | | | | | | | | | | | | This reverts commit 17642a5e6bbcccc5616da381c10a068c9e09b6d7. Fixes #8838. For some reason the \nobreak causes breakage in table vertical spacing for merge cells in tabular and longtable, and regarding tabulary for all cells... Reverting this will cause as described in the reverted commit message some much less annoying problem in certain circumstances when a long word has no hyphenation point.
* | Merge branch '3.x' into merge_3.x_into_masterjfbu2021-02-041-22/+61
|\ \ | |/ | | | | | | Resolved Conflicts: sphinx/texinputs/sphinxpackagefootnote.sty