diff options
| author | John MacFarlane <[email protected]> | 2022-03-01 13:20:31 -0800 |
|---|---|---|
| committer | John MacFarlane <[email protected]> | 2022-03-01 13:20:31 -0800 |
| commit | c3cf339f1d2eecb217d3e2f0e67b00de27652b59 (patch) | |
| tree | 02d896f22295167974213a49e9579c527cca793a | |
| parent | 326a00ab1a0ff7cd1afff4d6a3417a780d9bdf40 (diff) | |
RST writer: support all standard metadata ("bibliographic") fields.
| -rw-r--r-- | data/templates/default.rst | 42 | ||||
| -rw-r--r-- | test/writer.rst | 2 |
2 files changed, 35 insertions, 9 deletions
diff --git a/data/templates/default.rst b/data/templates/default.rst index 9ba15f546..207967122 100644 --- a/data/templates/default.rst +++ b/data/templates/default.rst @@ -1,19 +1,45 @@ $if(titleblock)$ $titleblock$ -$endif$ $for(author)$ -:Author: $author$ +:Author: $^$$author$ $endfor$ -$if(date)$ -:Date: $date$ +$if(authors)$ +:Authors: + $author$ $endif$ -$if(author)$ - -$else$ $if(date)$ - +:Date: $^$$date$ +$endif$ +$if(address)$ +:Addresss: $^$$address$ +$endif$ +$if(contact)$ +:Contact: $^$$contact$ +$endif$ +$if(copyright)$ +:Copyright: $^$$copyright$ $endif$ +$if(dedication)$ +:Dedication: $^$$dedication$ +$endif$ +$if(organization)$ +:Organization: $^$$organization$ +$endif$ +$if(revision)$ +:Revision: $^$$revision$ +$endif$ +$if(status)$ +:Status: $^$$status$ +$endif$ +$if(version)$ +:Version: $^$$version$ +$endif$ +$if(abstract)$ +:Abstract: + $abstract$ +$endif$ + $endif$ $if(rawtex)$ .. role:: raw-latex(raw) diff --git a/test/writer.rst b/test/writer.rst index 0baaa670c..d4a0f7335 100644 --- a/test/writer.rst +++ b/test/writer.rst @@ -4,7 +4,7 @@ Pandoc Test Suite :Author: John MacFarlane :Author: Anonymous -:Date: July 17, 2006 +:Date: July 17, 2006 .. role:: raw-latex(raw) :format: latex |
