diff options
| author | Jean-François B <2589111+jfbu@users.noreply.github.com> | 2023-04-11 20:40:34 +0200 |
|---|---|---|
| committer | Jean-François B <2589111+jfbu@users.noreply.github.com> | 2023-04-11 20:41:58 +0200 |
| commit | b95fc0e88b6ea9f869a7cf014e80b335d6e05b55 (patch) | |
| tree | 134b7b0a19c22019253bbca7a79bfd23594831de /sphinx/templates | |
| parent | 509cc4533c92adae92997d63c8a7b11295f9e207 (diff) | |
| download | sphinx-git-b95fc0e88b6ea9f869a7cf014e80b335d6e05b55.tar.gz | |
Use leaner TeX syntax (follow-up to #11319)
Because it is cool. And avoids overhead. Matter of principle.
Diffstat (limited to 'sphinx/templates')
| -rw-r--r-- | sphinx/templates/latex/longtable.tex.jinja | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sphinx/templates/latex/longtable.tex.jinja b/sphinx/templates/latex/longtable.tex.jinja index 3cc9e1e38..83790f4b2 100644 --- a/sphinx/templates/latex/longtable.tex.jinja +++ b/sphinx/templates/latex/longtable.tex.jinja @@ -24,14 +24,14 @@ <% endif -%> \makeatletter <%- if table.align in ('center', 'default') %> - \setlength\LTleft{\@totalleftmargin plus1fill} - \setlength\LTright{\dimexpr\columnwidth-\@totalleftmargin-\linewidth\relax plus1fill} + \LTleft \@totalleftmargin plus1fill + \LTright\dimexpr\columnwidth-\@totalleftmargin-\linewidth\relax plus1fill <%- elif table.align == 'left' %> - \setlength\LTleft{\@totalleftmargin} - \setlength\LTright{\dimexpr\columnwidth-\@totalleftmargin-\linewidth\relax plus1fill} + \LTleft \@totalleftmargin + \LTright\dimexpr\columnwidth-\@totalleftmargin-\linewidth\relax plus1fill <%- elif table.align == 'right' %> - \setlength\LTleft{\@totalleftmargin plus1fill} - \setlength\LTright{\dimexpr\columnwidth-\@totalleftmargin-\linewidth\relax} + \LTleft \@totalleftmargin plus1fill + \LTright\dimexpr\columnwidth-\@totalleftmargin-\linewidth\relax <%- endif %> \makeatother \begin{longtable}<%= table.get_colspec() %> |
