mirror of
https://github.com/TeachBooks/manual.git
synced 2026-11-12 22:35:51 +00:00
17 lines
No EOL
612 B
Python
17 lines
No EOL
612 B
Python
|
|
# from pybtex.style.formatting.unsrt import Style
|
|
from pybtexapastyle.formatting.apa import APAStyle
|
|
from pybtexapastyle.labels.apa import LabelStyle as APALabelStyle
|
|
from pybtex.plugin import register_plugin
|
|
# from pybtex.style.template import names, sentence
|
|
|
|
class MyAPALabelStyle(APALabelStyle):
|
|
def format_label(self, entry):
|
|
return APALabelStyle.format_label(self, entry)
|
|
|
|
class MyAPAStyle(APAStyle):
|
|
default_label_style = 'myapa'
|
|
|
|
def setup(app):
|
|
register_plugin('pybtex.style.labels', 'myapa', MyAPALabelStyle)
|
|
register_plugin('pybtex.style.formatting', 'myapastyle', MyAPAStyle) |