You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This brings the rendering of non-article entries in line with RevTeX. It
significantly extends the support especially for `@inproceedings`,
`@incollection`, `@inbook`. The `Chapter`, `Volume`, `Number`,
`Edition`, `Month`, fields are now supported for several entry types.
Revises how the URL/DOI is linked in the references.
Adds the `title_transform_case` option to the internal formatting
routines, for use by custom styles. In principle, this could be used to
implement the sentence-case transformation that is common in BibTeX
styles. Note that I don't condone this convention: The titles should
appear as they do in the published material (which generally means title
case, not sentence case). In any case, `DocumenterCitations` will
continue to render titles as they appear in the `.bib` file, making
braces to "protect" capitalized words unnecessary.
Copy file name to clipboardExpand all lines: NEWS.md
+1
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
12
12
* Support underscores in citation keys [[#14][]]
13
13
* The `Pages` in a `@bibliography` block are now relative to the folder containing the current file. The behavior is consistent with `Pages` in Documenter's `@index` and `@contents` blocks. [[#22][]]
14
14
* The parsing of LaTeX strings has improved significantly. In particular, curly braces should now be stripped correctly [[#15][]]. Note that that braces in titles are never needed for `DocumenterCitations`, but handling them correctly makes it easier to use the same `.bib` file for LaTeX and `DocumenterCitations`.
15
+
* Fixed the rendering of references other than `@article`, especially `@inproceedings`, `@incollection`, `@inbooks`, mimicking RevTeX. The DOI/URL are now linked via the Title and/or Booktitle. Added support for `Chapter`, `Volume`, `Number`, `Edition`, `Month` fields.
title = {{PyTorch}: An Imperative Style, High-Performance Deep Learning Library},
171
+
address = {Vancouver, BC, Canada},
172
+
author = {Paszke, Adam and Gross, Sam and Massa, Francisco and Lerer, Adam and Bradbury, James and Chanan, Gregory and Killeen, Trevor and Lin, Zeming and Gimelshein, Natalia and Antiga, Luca and Desmaison, Alban and K{\"o}pf, Andreas and Yang, Edward and DeVito, Zachary and Raison, Martin and Tejani, Alykhan and Chilamkurthy, Sasank and Steiner, Benoit and Fang, Lu and Bai, Junjie and Chintala, Soumith},
173
+
booktitle = {Proceedings of the 33rd International Conference on Neural Information Processing Systems (NeurIPS 2019)},
174
+
editor = {Wallach, Hanna M. and Larochelle, Hugo and Beygelzimer, Alina and d'Alch{\'e}-Buc, Florence and Fox, Edward A. and Garnett, Roman},
Copy file name to clipboardExpand all lines: docs/src/gallery.md
+12-10
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ The built-in styles are:
13
13
This is the default style (`style=:numeric`) used throughout the other pages of this documentation, cf. the [Syntax](@ref) examples.
14
14
15
15
*`[GoerzQ2022](@cite)` renders as "[GoerzQ2022](@cite)"
16
-
*`[FuerstNJP2014](@cite)` renders as "[FuerstNJP2014](@cite)"
16
+
*`[FuerstNJP2014,SolaAAMOP2018](@cite)` renders as "[FuerstNJP2014,SolaAAMOP2018](@cite)"
17
17
*`[GoerzQ2022](@citet)` renders as "[GoerzQ2022](@citet)"
18
18
*`[GoerzQ2022](@citep)` renders as "[GoerzQ2022](@citep)" — `@citep` is the same as `@cite` for this style
19
19
*`[GoerzQ2022; Eq. (1)](@cite)` renders as "[GoerzQ2022; Eq. (1)](@cite)"
@@ -29,7 +29,7 @@ This is the default style (`style=:numeric`) used throughout the other pages of
29
29
**References:**
30
30
31
31
```@bibliography
32
-
Pages = ["gallery.md"]
32
+
Pages = [@__FILE__]
33
33
Style = :numeric
34
34
Canonical = false
35
35
```
@@ -39,7 +39,7 @@ Canonical = false
39
39
The author-year style (`style=:authoryear`) formats citations with the author name and publication year. This is the citation style used, e.g., in [Rev. Mod. Phys.](https://journals.aps.org/rmp/) (`rmp` option in [REVTeX](https://www.ctan.org/tex-archive/macros/latex/contrib/revtex/auguide)). The bibliography is sorted alphabetically by author name. The default `@cite` command is parenthetical (`@cite` and `@citep` are equivalent) which is different from the `authoryear` style in [natbib](https://mirrors.rit.edu/CTAN/macros/latex/contrib/natbib/natnotes.pdf).
40
40
41
41
*`[GoerzQ2022](@cite)` renders as "[GoerzQ2022](@cite%authoryear%)"
42
-
*`[FuerstNJP2014](@cite)` renders as "[FuerstNJP2014](@cite%authoryear%)"
42
+
*`[FuerstNJP2014,SolaAAMOP2018](@cite)` renders as "[FuerstNJP2014,SolaAAMOP2018](@cite%authoryear%)"
43
43
*`[GoerzQ2022](@citet)` renders as "[GoerzQ2022](@citet%authoryear%)"
44
44
*`[GoerzQ2022](@citep)` renders as "[GoerzQ2022](@citep%authoryear%)" — `@citep` is the same as `@cite` for this style
45
45
*`[GoerzQ2022; Eq. (1)](@cite)` renders as "[GoerzQ2022; Eq. (1)](@cite%authoryear%)"
@@ -57,7 +57,7 @@ The author-year style (`style=:authoryear`) formats citations with the author na
57
57
**References:**
58
58
59
59
```@bibliography
60
-
Pages = ["gallery.md"]
60
+
Pages = [@__FILE__]
61
61
Style = :authoryear
62
62
Canonical = false
63
63
```
@@ -67,7 +67,7 @@ Canonical = false
67
67
The `style=:alpha` formats citations and references like `:numeric`, except that it uses labels derived from the author names and publication year and sorts the references alphabetically.
68
68
69
69
*`[GoerzQ2022](@cite)` renders as "[GoerzQ2022](@cite%alpha%)"
70
-
*`[FuerstNJP2014](@cite)` renders as "[FuerstNJP2014](@cite%alpha%)"
70
+
*`[FuerstNJP2014,SolaAAMOP2018](@cite)` renders as "[FuerstNJP2014,SolaAAMOP2018](@cite%alpha%)"
71
71
*`[GoerzQ2022](@citet)` renders as "[GoerzQ2022](@citet%alpha%)"
72
72
*`[GoerzQ2022](@citep)` renders as "[GoerzQ2022](@citep%alpha%)" — `@citep` is the same as `@cite` for this style
73
73
*`[GoerzQ2022; Eq. (1)](@cite)` renders as "[GoerzQ2022; Eq. (1)](@cite%alpha%)"
@@ -83,9 +83,11 @@ The `style=:alpha` formats citations and references like `:numeric`, except that
83
83
**References:**
84
84
85
85
```@bibliography
86
-
Pages = ["gallery.md"]
86
+
Pages = [@__FILE__]
87
87
Style = :alpha
88
88
Canonical = false
89
+
90
+
SolaAAMOP2018
89
91
```
90
92
91
93
```@raw latex
@@ -135,13 +137,13 @@ end
135
137
The important part of the definition is in the last line, indicating that the References should be shown as an enumeration (ordered list, `<ol>`, in HTML), see below. Meanwhile, citations render exactly as with `style=:authoryear`:
136
138
137
139
*`[GoerzQ2022](@cite)` renders as "[GoerzQ2022](@cite%enumauthoryear%)"
138
-
*`[FuerstNJP2014](@cite)` renders as "[FuerstNJP2014](@cite%enumauthoryear%)"
140
+
*`[FuerstNJP2014,SolaAAMOP2018](@cite)` renders as "[FuerstNJP2014,SolaAAMOP2018](@cite%enumauthoryear%)"
139
141
*`[WinckelIP2008](@Citet)` renders as "[WinckelIP2008](@Citet%enumauthoryear%)"
140
142
141
143
**References:**
142
144
143
145
```@bibliography
144
-
Pages = ["gallery.md"]
146
+
Pages = [@__FILE__]
145
147
Style = :enumauthoryear
146
148
Canonical = false
147
149
```
@@ -165,7 +167,7 @@ end
165
167
~~~
166
168
167
169
*`[GoerzQ2022](@cite)` renders as "[GoerzQ2022](@cite%keylabels%)"
168
-
*`[FuerstNJP2014](@cite)` renders as "[FuerstNJP2014](@cite%keylabels%)"
170
+
*`[FuerstNJP2014,SolaAAMOP2018](@cite)` renders as "[FuerstNJP2014,SolaAAMOP2018](@cite%keylabels%)"
169
171
*`[GoerzQ2022](@citet)` renders as "[GoerzQ2022](@citet%keylabels%)"
170
172
*`[GoerzQ2022](@citep)` renders as "[GoerzQ2022](@citep%keylabels%)" — `@citep` is the same as `@cite` for this style
171
173
*`[GoerzQ2022; Eq. (1)](@cite)` renders as "[GoerzQ2022; Eq. (1)](@cite%keylabels%)"
0 commit comments