mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix #2338: Define `\titlereference
macro to redefine the style of
title-reference` roles.
This commit is contained in:
parent
9ff2847886
commit
e8cbd5a750
1
CHANGES
1
CHANGES
@ -13,6 +13,7 @@ Features added
|
||||
* #2245: Add ``latex_elements["passoptionstopackages"]`` option to call PassOptionsToPackages
|
||||
in early stage of preambles.
|
||||
* PR #2340: Math extension: support alignment of multiple equations for MathJAX.
|
||||
* #2338: Define ``\titlereference`` macro to redefine the style of `title-reference` roles.
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
@ -146,6 +146,7 @@
|
||||
\newcommand{\bfcode}[1]{\code{\bfseries#1}}
|
||||
\newcommand{\email}[1]{\textsf{#1}}
|
||||
\newcommand{\tablecontinued}[1]{\textsf{#1}}
|
||||
\newcommand{\titlereference}[1]{\emph{#1}}
|
||||
|
||||
% Redefine the Verbatim environment to allow border and background colors.
|
||||
% The original environment is still used for verbatims within tables.
|
||||
|
@ -1699,7 +1699,7 @@ class LaTeXTranslator(nodes.NodeVisitor):
|
||||
return self.depart_literal_emphasis(node)
|
||||
|
||||
def visit_title_reference(self, node):
|
||||
self.body.append(r'\emph{')
|
||||
self.body.append(r'\titlereference{')
|
||||
|
||||
def depart_title_reference(self, node):
|
||||
self.body.append('}')
|
||||
|
Loading…
Reference in New Issue
Block a user