summaryrefslogtreecommitdiff
path: root/sphinx/texinputs
Commit message (Collapse)AuthorAgeFilesLines
...
* LaTeX: ``\emph`` replaced by ``\sphinxparam`` and ``\sphinxsamedocref``Jean-François B2023-01-241-0/+3
|
* LaTeX: remove deprecated internal ``\dimen`` at 6.2.0 not 7.0.0Jean-François B2023-01-081-5/+5
|
* LaTeX: remove some internal \dimen registersJean-François B2023-01-073-39/+39
|
* LaTeX: fix 5.1.0 bugs related to topic and contents boxes (#11102)Jean-François B2023-01-062-13/+18
| | | | | | | | | | | | | | | | | | * Fix #11095 (PDF wrong placement of shadow of topic boxes since 5.1.0) * Fix #11096 (LaTeX shadowsize regression at 5.1.0) * Fix #11099 (shadowrule legacy sphinxsetup key vanished at 5.1.0) * Fix #11101 (LaTeX div.topic_padding of sphinxsetup had wrong name) * Add some checks that various sphinxsetup keys do not break PDF build * Update LaTeX docs * Update CHANGES * Can not use :dudir:`contents` has it links to wrong place
* Fix #11074: Can't change sphinxnote to use sphinxheavyboxJean-François B2023-01-031-0/+39
|
* Trim duplicate in sphinxlatexadmonitions.sty latex codeJean-François B2023-01-031-5/+0
|
* Fix #6744: support for seealso directive should be via an environmentJean-François B2023-01-032-2/+6
|
* LaTeX: switch to some nicer defaults for tables and code-blocks (#10924)Jean-François B2022-10-171-7/+10
|
* s/5.2.0/5.3.0 in various code comments as #10759 got merged in 5.3.0Jean-François B2022-10-123-12/+12
|
* LaTeX: support for booktabs-style and zebra-striped tables (#10759)Jean-François B2022-10-124-59/+934
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a combination of 2 + 28 + 7 + and some more commits... * Cherry-pick: Add support for booktabs-style tables to LaTeX builder * Cherry-pick: Add support for zebra-striped tables to LaTeX builder Co-authored-by: Stefan Wiehler <stefan.wiehler@missinglinkelectronics.com> Above work originally initiated by @sephalon (thanks!) Development refactored and continued by @jfbu * latex_table_style configuration, support booktabs, colorrows, borderless Some details: - Simplify a bit a conditional in the longtable template This also puts the target for a longtable with a label but no caption above the toprule for better hyperlinking (testing shows hyperlink target can not end up alone at bottom of previous page). - Extend allowed syntax for colour assignments via 'sphinxsetup' - latex_table_style new configuration value and coloured rows For the user interface I tried to look for inspiration in https://docutils.sourceforge.io/docs/user/config.html#table-style which mentions booktabs and borderless. They also mention captionbelow which we can implement later, now that architecture is here. They don't mention coloured rows. - Test on our own document... looks fine! - Work-around an incompatibility of \cline with row colours - Reverse priority of classes to allow overruling booktabs by standard after parsing source but before letting LaTeX writer act - Closes #8220 Commit https://github.com/sphinx-doc/sphinx/commit/bb859c669679baebd8cc8d10c99382478c0d1647 already improved a bit, this finishes it (as :rst:dir:`rst-class` was actually not linking to anywhere). - Let booktabs style defaults to *not* using \cmidrule. They actually don't make much sense there, as all \hline's are removed. - Add \sphinxnorowcolor which allows construct such as this one in a tabularcolumns directive: >{\columncolor{blue}\sphinxnorowcolor} else LaTeX always overrides column colour by row colour - Add TableMergeColorHeader, TableMergeColorOdd, TableMergeColorEven so single-row merged cells can be styled especially - Extend row colours to all header rows not only the first one (all header rows will share same colour settings) - Auto-adjust to a no '|'-colspec for optimal handling of merged cell - Add \sphinxcolorblend - Workaround LaTeX's \cline features and other grid tables matters - Add \sphinxbuildwarning for important warnings - Fix some white gaps in merged cells of tables with vlines and colorrows - Work around LaTeX's \cline serious deficiencies for complex grid tables This commit corrects \cline badly impacting vertical spacing and making tables look even more cramped as they usually are in LaTeX (although one sees it clearly only with \arrarrulewidth a bit more than the LaTeX default of 0.4pt). Most importantly this commit solves the problem that \cline's got masked by colour panels from the row below. - Update CHANGES for PR #10759 - Improve documentation of new latex_table_style regarding colours
* Fix #10723: LaTeX verbatimwithframe=false without effect since 5.1.0Jean-François B2022-07-291-30/+40
|
* LaTeX: fix another incompatibility with old pict2e LaTeXJean-François B2022-07-231-7/+7
| | | | | | We need to make sure the \put command arguments will expand to a (fractional) number, so \strip@pt is added, and the \dimexpr properly closed with \relax
* Fix #10695: old LaTeX does not allow \@ifpackageloaded usage in bodyJean-François B2022-07-235-19/+24
|
* Merge pull request #10655 from alcrene/fix-LatinRules-encodingJean-François B2022-07-181-3/+7
|\ | | | | Explain non-standard encoding in LatinRules.xdy
| * Fix punctuation in commentsAlexandre René2022-07-181-3/+3
| |
| * Explain non-standard encoding in LatinRules.xdyAlexandre René2022-07-171-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | In order to fulfill its function, LatinRules.xdy must use single, non-standard byte characters (neither ASCII, nor multi-byte UTF-8). To someone encountering the file without knowing its purpose (e.g. due a post-processing raising a warning for the unrecognized encoding) this is likely surprising, and may seem like a holdover from a time where Unicode wasn't as universally supported. The added comment should make clear that the file must stay as it is, and in particular that it must not be "standardized" to UTF-8.
* | Mumble... Typo in a LaTeX code commentJean-François B2022-07-151-1/+1
| |
* | LaTeX: clean-up some LaTeX code comments (follow-up to #10638)Jean-François B2022-07-151-31/+33
| |
* | LaTeX: enhanced boxes with padding, borders, shadows, rounded cornersJean-François B2022-07-145-283/+1210
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | - LaTeX: box padding (t,r,b,l), borders (t,r,b,l), shadows (x,y) or radii - LaTeX: fix #10650 via usage of our own sophisticated \fcolorbox - LaTeX: user interface via 'sphinxsetup' to enhanced code-blocks frames - LaTeX: user interface via 'sphinxsetup' to enhanced topic boxes - LaTeX: CSS-named-alikes 'sphinxsetup' options for code-blocks and topics - LaTeX: CSS-named-alikes 'sphinxsetup' keys for warning type notices (fix #10651) - LaTeX: documentation of the new CSS-like options - LaTeX: remove #10619 documentation, as the #10619 added shadowBorderColor and shadowShadowColor now named respectively: aside.topic_border-TeXcolor and aside.topic_box-shadow-TeXcolor - LaTeX: use div.topic option prefix and not aside.topic for CSS-like options - LaTeX: keep the implicit legacy padding of warning type boxes as default behaviour
* Merge pull request #10639 from jfbu/latex_roundedboxesJean-François B2022-07-062-0/+126
|\ | | | | LaTeX: optional rounded corners for framing of code-blocks
| * LaTeX: fix (better) compatibility with "old" LaTeXJean-François B2022-07-051-8/+7
| | | | | | | | | | There was no need for pre-expansion via \expanded and the latter was not available prior to TL2019
| * LaTeX: fix previous commit for "old" LaTeX compatibilityJean-François B2022-07-051-2/+6
| |
| * LaTeX: optional rounded corners for framing of code-blocksJean-François B2022-07-052-0/+123
| | | | | | | | | | | | | | | | | | | | Via a new configuration verbatimradius of 'sphinxsetup', which defaults to 0pt. If this dimension is non zero, the LaTeX package pict2e will be loaded to help construct frames with rounded corners for code-blocks. And if the LaTeX package pict2e was not found, a LaTeX warning is issued during PDF build.
* | LaTeX: move a recently added code line near where it is now usedJean-François B2022-07-051-6/+8
|/
* Fix #10638: LaTeX code-blocks when highlighted token uses \fcolorboxJean-François B2022-07-041-74/+78
| | | | | This commit also does some internal refactoring in order to ease up projected PRs.
* Fix #10633 LaTeX: upstream framed.sty color leak bugJean-François B2022-07-033-3/+9
|
* Merge pull request #10619 from jfbu/latex_coloredshadowsJean-François B2022-07-032-19/+74
|\ | | | | LaTeX: refactor sphinxShadowBox to allow colors for frame and shadow
| * LaTeX: code comments on sphinxShadowBox for topic directiveJean-François B2022-07-011-23/+56
| |
| * LaTeX: refactor sphinxShadowBox to allow colors for frame and shadowJean-François B2022-06-302-11/+33
| |
* | Merge branch '5.0.x' into 5.xJean-François B2022-07-021-1/+2
|\ \ | |/ |/|
| * Fix #10506 (again): replacements to Pygments escapesJean-François B2022-07-021-1/+2
| | | | | | | | Relates: pygments/pygments#2172
* | LaTeX: refactor \spx@fcolorbox to fix #10610Jean-François B2022-06-301-26/+57
| |
* | LaTeX: (cont'd) fix of code comments and slight refactoringJean-François B2022-06-301-10/+12
| |
* | LaTeX: internal optimizations and commentsJean-François B2022-06-291-8/+18
| |
* | LaTeX: fix #10615 (relates: #10577)Jean-François B2022-06-291-5/+20
| |
* | LaTeX: partially fix color issues for wrapped code lines with pagebreakJean-François B2022-06-292-18/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This does not fix entirely #10610 but it does sufficiently for it not to require reverting #10577 which tried to solve #8686 conundrum. In extreme cases, the #8686 problem meant that some contents disappeared at page bottom, so it is probably better to maintain #10577 which will avoid any such overflow of code beyond its frame, even though in some specific cases (a colored entity such as a long string is partly on both pages), some syntax highlighting gets lost. There are anyhow other issues with colors for wrapped code lines, even with no pagebreaks involved, such as #10615. This patch does not change the situation there.
* | LaTeX commentsJean-François B2022-06-292-6/+9
| |
* | LaTeX: some code comments (technical) and minor changesJean-François B2022-06-271-1/+15
| |
* | LaTeX: fix #8686 Text can fall out of code-block at end of page (#10577)Jean-François B2022-06-261-50/+105
|/ | | When wrapping long code lines, recover the TeX "hbox"es and trick fancyvrb into considering each as an input code line. This way, pagebreaks are allowed. No change to existing output (in particular, codeline number is printed only once) when the wrapped line had place on current page.
* Fix #10363: make howto LaTeX title page rule use \linewidthLuis2022-05-081-2/+2
|
* LaTeX: workaround a memoir class compatibility issuejfbu2022-04-161-3/+10
|
* LaTeX: avoid a footnote in a signature line executing \label twicejfbu2022-04-161-0/+4
| | | | | | The signature may contain an auto-generated footnote, which now always sets a label (formerly this happened only for multiply referred-to footnotes so the problem did not arise).
* LaTeX: comment out footnote mark enhancement for footnote environmentjfbu2022-04-161-8/+12
| | | | | | | | | | | | | Page detection left to apply as was case before this PR, i.e. only for the \sphinxfootnotemark mark-up, which means either in combination with footnotetext environment, or for multiply referred-to footnotes and the extra footnote marks additional to the initial one. This is to avoid a problem with each LaTeX pass in certain circumstances modifying the aux file, and latexmk consequently complaining. refs: https://github.com/sphinx-doc/sphinx/pull/10191#issuecomment-1038807448
* LaTeX: correct footnote marks, extended with page of link targetjfbu2022-04-162-73/+91
| | | | | | | | | | | | | Fix #10188 Footnotes in some LaTeX environments (tables, fulllineitems for object descriptions) are gathered and appear after the environment, causing the footnote to possibly appear on a page later than some of the footnote marks referring it. With this commit, the footnote mark compares page numbers and incorporates the destination page number if it turns out to be distinct from the page where it stands.
* Merge branch '4.x'Takeshi KOMIYA2022-03-031-35/+65
|\
| * Merge pull request #10087 from marxin/vertical-spaces-for-cpp-functionsJean-François B2022-02-141-35/+65
| |\ | | | | | | Latex: fix vertical spacing for cpp:function.
| | * LaTeX: same signature-description vertical space as for sig-sigjfbu2022-01-141-0/+7
| | |
| | * LaTeX: \pysig{start,stop}signatures and related \pysigline refactoringjfbu2022-01-131-35/+58
| | | | | | | | | | | | | | | | | | | | | | | | This fixes #9924 Removes #9941 complex LaTeX macros, which incidentally had broken effect of #9946 on issue #9926, as they become unneeded after the refactoring of \pysigline/\pysiglinewithargs expansion context.
* | | Merge branch '4.x'Takeshi KOMIYA2022-02-191-3/+3
|\ \ \ | |/ /
| * | latex: Update description of \sphinxexplicitTakeshi KOMIYA2022-02-111-3/+3
| |/