mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
LaTeX: workaround to help users of luatex-ja LaTeX classes (#11191)
Close #11179
This commit is contained in:
parent
ffe4c079d3
commit
6ffe7be080
@ -1,7 +1,7 @@
|
||||
%% TITLES
|
||||
%
|
||||
% change this info string if making any custom modification
|
||||
\ProvidesFile{sphinxlatexstyleheadings.sty}[2022/08/15 headings]
|
||||
\ProvidesFile{sphinxlatexstyleheadings.sty}[2023/02/11 headings]
|
||||
|
||||
\RequirePackage[nobottomtitles*]{titlesec}
|
||||
\@ifpackagelater{titlesec}{2016/03/15}%
|
||||
@ -36,13 +36,15 @@
|
||||
{\py@TitleColor\thesection}{0.5em}{\py@TitleColor}
|
||||
\titleformat{\subsection}{\large\py@HeaderFamily}%
|
||||
{\py@TitleColor\thesubsection}{0.5em}{\py@TitleColor}
|
||||
\titleformat{\subsubsection}{\py@HeaderFamily}%
|
||||
% \normalsize added as work-around to a lualatex-ja upstream problem
|
||||
% https://osdn.net/projects/luatex-ja/ticket/47321
|
||||
\titleformat{\subsubsection}{\normalsize\py@HeaderFamily}%
|
||||
{\py@TitleColor\thesubsubsection}{0.5em}{\py@TitleColor}
|
||||
% By default paragraphs (and subsubsections) will not be numbered because
|
||||
% sphinxmanual.cls and sphinxhowto.cls set secnumdepth to 2
|
||||
\titleformat{\paragraph}{\py@HeaderFamily}%
|
||||
\titleformat{\paragraph}{\normalsize\py@HeaderFamily}%
|
||||
{\py@TitleColor\theparagraph}{0.5em}{\py@TitleColor}
|
||||
\titleformat{\subparagraph}{\py@HeaderFamily}%
|
||||
\titleformat{\subparagraph}{\normalsize\py@HeaderFamily}%
|
||||
{\py@TitleColor\thesubparagraph}{0.5em}{\py@TitleColor}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user