Rename macros for conformity with choices done at PR #5134

This commit is contained in:
jfbu 2018-07-16 01:57:40 +02:00
parent e7ee035050
commit fb45af7cde
3 changed files with 5 additions and 5 deletions

View File

@ -3,7 +3,7 @@ headings_flag 1
heading_prefix " \\bigletter "
preamble "\\begin{sphinxtheindex}
\\let\\bigletter\\sphinxstyleindexletterhead
\\let\\bigletter\\sphinxstyleindexlettergroup
"

View File

@ -471,8 +471,8 @@
{}% else clause of \ltx@ifundefined
% redefined in preamble, headings for makeindex produced index
\newcommand*{\sphinxsymbolsname}{Symbols}
\newcommand*{\sphinxnumbersname}{Numbers}
\newcommand*{\sphinxsymbolsname}{}
\newcommand*{\sphinxnumbersname}{}
%% COLOR (general)
%
@ -1598,7 +1598,7 @@
\def\sphinxstyleindexentry #1{\texttt{#1}}
\def\sphinxstyleindexextra #1{ \emph{(#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}
\let\sphinxstylesidebartitle\sphinxstyletopictitle
\protected\def\sphinxstyleothertitle #1{\textbf{#1}}

View File

@ -862,7 +862,7 @@ class LaTeXTranslator(nodes.NodeVisitor):
def generate(content, collapsed):
# type: (List[Tuple[unicode, List[Tuple[unicode, unicode, unicode, unicode, unicode]]]], bool) -> None # NOQA
ret.append('\\begin{sphinxtheindex}\n')
ret.append('\\let\\bigletter\\sphinxstyleindexletterhead\n')
ret.append('\\let\\bigletter\\sphinxstyleindexlettergroup\n')
for i, (letter, entries) in enumerate(content):
if i > 0:
ret.append('\\indexspace\n')