feat: Add capitalization choices for title and author
This commit is contained in:
parent
dc4c30e2e1
commit
7e7c720682
2 changed files with 52 additions and 9 deletions
26
README.md
26
README.md
|
|
@ -67,6 +67,8 @@ default-formatter = python
|
|||
full-year = False
|
||||
title-words = 4
|
||||
title-chars = -1
|
||||
title-case = capitalize
|
||||
author-case = capitalize
|
||||
```
|
||||
|
||||
### Full year
|
||||
|
|
@ -122,6 +124,30 @@ title-chars = -1
|
|||
This will ensure that a maximum of 4 words will be placed in the ref, but they do not have a maximum character length,
|
||||
so will always be fully written out (the default behavior if no title length options are provided).
|
||||
|
||||
### Capitalization
|
||||
|
||||
Both the author and the title can receive different capitalization.
|
||||
The options for capitalization are `capitalize`, `lower` and `upper`.
|
||||
They can be set independently for author (`author-case`) and title (`title-case`).
|
||||
|
||||
```cfg
|
||||
[plugins.bbt]
|
||||
title-case = capitalize
|
||||
author-case = lower
|
||||
```
|
||||
|
||||
The example above would produce a reference like `name2008TitleShort`, whereas:
|
||||
|
||||
```cfg
|
||||
[plugins.bbt]
|
||||
title-case = upper
|
||||
author-case = upper
|
||||
```
|
||||
|
||||
produces `NAME2008TITLESHORT`.
|
||||
|
||||
If either of the settings are set to any other string they are simply passed through to the reference as they are.
|
||||
|
||||
### Fallback formatter
|
||||
|
||||
For anything that is not a reference, use this formatter.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue