-
Notifications
You must be signed in to change notification settings - Fork 47
Open
Description
The super and foot styles differ in a few details:
superdoes not have brackets,footdoes.- Even if we add brackets to
superby customizing (see below), the brackets are not hyperlinked, unlikefootstyle.
Thus, to achieve a consistent style when using both cite and footcite, it would be great to be able to use foot in bibtex_reference_style.
from dataclasses import dataclass, field
from sphinxcontrib.bibtex.style.referencing import BracketStyle,PersonStyle
from sphinxcontrib.bibtex.style.referencing.super_ import SuperReferenceStyle
from sphinxcontrib.bibtex.plugin import register_plugin as sphinxcontrib_register_plugin
@dataclass
class SuperWithBrackets(SuperReferenceStyle):
#: Bracket style for textual citations (:cite:t: and variations).
bracket_textual: BracketStyle = field(default_factory=BracketStyle)
#: Person style (applies to all relevant citation commands).
person: PersonStyle = field(default_factory=PersonStyle)
sphinxcontrib_register_plugin('sphinxcontrib.bibtex.style.referencing',
'super_with_brackets', SuperWithBrackets)Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels