mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Rename macros for conformity with choices done at PR #5134
This commit is contained in:
parent
e7ee035050
commit
fb45af7cde
@ -3,7 +3,7 @@ headings_flag 1
|
|||||||
heading_prefix " \\bigletter "
|
heading_prefix " \\bigletter "
|
||||||
|
|
||||||
preamble "\\begin{sphinxtheindex}
|
preamble "\\begin{sphinxtheindex}
|
||||||
\\let\\bigletter\\sphinxstyleindexletterhead
|
\\let\\bigletter\\sphinxstyleindexlettergroup
|
||||||
|
|
||||||
"
|
"
|
||||||
|
|
||||||
|
@ -471,8 +471,8 @@
|
|||||||
{}% else clause of \ltx@ifundefined
|
{}% else clause of \ltx@ifundefined
|
||||||
|
|
||||||
% redefined in preamble, headings for makeindex produced index
|
% redefined in preamble, headings for makeindex produced index
|
||||||
\newcommand*{\sphinxsymbolsname}{Symbols}
|
\newcommand*{\sphinxsymbolsname}{}
|
||||||
\newcommand*{\sphinxnumbersname}{Numbers}
|
\newcommand*{\sphinxnumbersname}{}
|
||||||
|
|
||||||
%% COLOR (general)
|
%% COLOR (general)
|
||||||
%
|
%
|
||||||
@ -1598,7 +1598,7 @@
|
|||||||
\def\sphinxstyleindexentry #1{\texttt{#1}}
|
\def\sphinxstyleindexentry #1{\texttt{#1}}
|
||||||
\def\sphinxstyleindexextra #1{ \emph{(#1)}}
|
\def\sphinxstyleindexextra #1{ \emph{(#1)}}
|
||||||
\def\sphinxstyleindexpageref #1{, \pageref{#1}}
|
\def\sphinxstyleindexpageref #1{, \pageref{#1}}
|
||||||
\def\sphinxstyleindexletterhead #1{{\Large\sffamily#1}\nopagebreak\vspace{1mm}}
|
\def\sphinxstyleindexlettergroup #1{{\Large\sffamily#1}\nopagebreak\vspace{1mm}}
|
||||||
\protected\def\sphinxstyletopictitle #1{\textbf{#1}\par\medskip}
|
\protected\def\sphinxstyletopictitle #1{\textbf{#1}\par\medskip}
|
||||||
\let\sphinxstylesidebartitle\sphinxstyletopictitle
|
\let\sphinxstylesidebartitle\sphinxstyletopictitle
|
||||||
\protected\def\sphinxstyleothertitle #1{\textbf{#1}}
|
\protected\def\sphinxstyleothertitle #1{\textbf{#1}}
|
||||||
|
@ -862,7 +862,7 @@ class LaTeXTranslator(nodes.NodeVisitor):
|
|||||||
def generate(content, collapsed):
|
def generate(content, collapsed):
|
||||||
# type: (List[Tuple[unicode, List[Tuple[unicode, unicode, unicode, unicode, unicode]]]], bool) -> None # NOQA
|
# type: (List[Tuple[unicode, List[Tuple[unicode, unicode, unicode, unicode, unicode]]]], bool) -> None # NOQA
|
||||||
ret.append('\\begin{sphinxtheindex}\n')
|
ret.append('\\begin{sphinxtheindex}\n')
|
||||||
ret.append('\\let\\bigletter\\sphinxstyleindexletterhead\n')
|
ret.append('\\let\\bigletter\\sphinxstyleindexlettergroup\n')
|
||||||
for i, (letter, entries) in enumerate(content):
|
for i, (letter, entries) in enumerate(content):
|
||||||
if i > 0:
|
if i > 0:
|
||||||
ret.append('\\indexspace\n')
|
ret.append('\\indexspace\n')
|
||||||
|
Loading…
Reference in New Issue
Block a user