diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-04-04 18:29:18 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-04-04 18:29:18 +0200 |
| commit | 5b0297464efc131beb7be84fa7a02b9a8670b5dd (patch) | |
| tree | e8bc1a0420c42ce4866a129f9b36ff3541a715f3 /library/src | |
| parent | bfec77754267488a37bd843fa080c9c6ca589fd9 (diff) | |
Rename bibliography styles
Diffstat (limited to 'library/src')
| -rw-r--r-- | library/src/meta/bibliography.rs | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/library/src/meta/bibliography.rs b/library/src/meta/bibliography.rs index 8dac28db..635f1d8c 100644 --- a/library/src/meta/bibliography.rs +++ b/library/src/meta/bibliography.rs @@ -218,7 +218,7 @@ pub enum BibliographyStyle { Apa, /// The Chicago Author Date style. Based on the 17th edition of the Chicago /// Manual of Style, Chapter 15. - AuthorDate, + ChicagoAuthorDate, /// The style of the Institute of Electrical and Electronics Engineers. /// Based on the 2018 IEEE Reference Guide. Ieee, @@ -231,10 +231,10 @@ impl BibliographyStyle { /// The default citation style for this bibliography style. pub fn default_citation_style(self) -> CitationStyle { match self { - Self::Apa => CitationStyle::AuthorDate, - Self::AuthorDate => CitationStyle::AuthorDate, + Self::Apa => CitationStyle::ChicagoAuthorDate, + Self::ChicagoAuthorDate => CitationStyle::ChicagoAuthorDate, Self::Ieee => CitationStyle::Numerical, - Self::Mla => CitationStyle::AuthorDate, + Self::Mla => CitationStyle::ChicagoAuthorDate, } } } @@ -294,7 +294,7 @@ pub struct CiteElem { /// /// #bibliography( /// "works.bib", - /// style: "author-date", + /// style: "chicago-author-date", /// ) /// ``` #[default(true)] @@ -354,14 +354,14 @@ pub enum CitationStyle { /// A simple alphanumerical style. For example, the output could be Rass97 /// or MKG+21. Alphanumerical, + /// Citations that just consist of the entry keys. + Keys, /// The Chicago Author Date style. Based on the 17th edition of the Chicago /// Manual of Style, Chapter 15. - AuthorDate, - /// A Chicago-like author-title format. Results could look like this: + ChicagoAuthorDate, + /// The Chicago-like author-title format. Results could look like this: /// Prokopov, “It Is Fast or It Is Wrong”. - AuthorTitle, - /// Citations that just consist of the entry keys. - Keys, + ChicagoAuthorTitle, } impl CitationStyle { @@ -458,10 +458,12 @@ fn create( CitationStyle::Alphanumerical => { Box::new(style::Alphanumerical::new()) } - CitationStyle::AuthorDate => { + CitationStyle::ChicagoAuthorDate => { Box::new(style::ChicagoAuthorDate::new()) } - CitationStyle::AuthorTitle => Box::new(style::AuthorTitle::new()), + CitationStyle::ChicagoAuthorTitle => { + Box::new(style::AuthorTitle::new()) + } CitationStyle::Keys => Box::new(style::Keys::new()), }; } @@ -515,7 +517,7 @@ fn create( let bibliography_style: Box<dyn style::BibliographyStyle> = match style { BibliographyStyle::Apa => Box::new(style::Apa::new()), - BibliographyStyle::AuthorDate => Box::new(style::ChicagoAuthorDate::new()), + BibliographyStyle::ChicagoAuthorDate => Box::new(style::ChicagoAuthorDate::new()), BibliographyStyle::Ieee => Box::new(style::Ieee::new()), BibliographyStyle::Mla => Box::new(style::Mla::new()), }; |
