-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
73 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
from pybtex.style.formatting.unsrt import Style | ||
from formatting.apa import APAStyle | ||
from 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(Style): | ||
default_label_style = 'myapa' | ||
|
||
def setup(app): | ||
register_plugin('pybtex.style.labels', 'myapa', MyAPALabelStyle) | ||
register_plugin('pybtex.style.formatting', 'myapastyle', MyAPAStyle) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
from dataclasses import dataclass, field | ||
import sphinxcontrib.bibtex.plugin | ||
|
||
from sphinxcontrib.bibtex.style.referencing import BracketStyle | ||
from sphinxcontrib.bibtex.style.referencing.author_year \ | ||
import AuthorYearReferenceStyle | ||
|
||
|
||
def bracket_style() -> BracketStyle: | ||
return BracketStyle( | ||
left='(', | ||
right=')', | ||
) | ||
|
||
|
||
@dataclass | ||
class MyReferenceStyle(AuthorYearReferenceStyle): | ||
bracket_parenthetical: BracketStyle = field(default_factory=bracket_style) | ||
bracket_textual: BracketStyle = field(default_factory=bracket_style) | ||
bracket_author: BracketStyle = field(default_factory=bracket_style) | ||
bracket_label: BracketStyle = field(default_factory=bracket_style) | ||
bracket_year: BracketStyle = field(default_factory=bracket_style) | ||
|
||
|
||
def setup(app): | ||
sphinxcontrib.bibtex.plugin.register_plugin( | ||
'sphinxcontrib.bibtex.style.referencing', | ||
'author_year_round', MyReferenceStyle) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,3 +31,4 @@ chapters: | |
# - file: publications | ||
# - file: conferences | ||
#- file: news | ||
- file: references |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,18 @@ | ||
--- | ||
--- | ||
@article{Frank_1983, | ||
title={The Structure and Energetics of the East Atlantic Intertropical Convergence Zone}, | ||
volume={40}, | ||
ISSN={1520-0469}, | ||
url={http://dx.doi.org/10.1175/1520-0469(1983)040<1916:TSAEOT>2.0.CO;2}, | ||
DOI={10.1175/1520-0469(1983)040<1916:tsaeot>2.0.co;2}, | ||
number={8}, | ||
journal={Journal of the Atmospheric Sciences}, | ||
publisher={American Meteorological Society}, | ||
author={Frank, | ||
William M.}, | ||
year={1983}, | ||
month=aug, | ||
pages={1916–1929} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# References | ||
```{bibliography} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,4 @@ requests | |
aiohttp | ||
zarr>=2.8.3 | ||
healpy | ||
pybtex-apa-style |