git.iko.soy/typeable/pandoc
on master help sign in
Adds YAML biblio format
a43ceb5nickbart1980
README+10−6
@@ -2666,20 +2666,24 @@ The bibliography may have any of these formats:
2666
2666
2667 Format File extension
2667 Format File extension
2668 ------------ --------------
2668 ------------ --------------
2669− MODS .mods
2670 BibLaTeX .bib
2669 BibLaTeX .bib
2671 BibTeX .bibtex
2670 BibTeX .bibtex
2672− RIS .ris
2671+ Copac .copac
2672+ CSL JSON .json
2673+ CSL YAML .yaml
2673 EndNote .enl
2674 EndNote .enl
2674 EndNote XML .xml
2675 EndNote XML .xml
2675 ISI .wos
2676 ISI .wos
2676 MEDLINE .medline
2677 MEDLINE .medline
2677− Copac .copac
2678+ MODS .mods
2678− CSL JSON .json
2679+ RIS .ris
2679
2680
2680Note that `.bib` can generally be used with both BibTeX and BibLaTeX
2681Note that `.bib` can generally be used with both BibTeX and BibLaTeX
2681files, but you can use `.bibtex` to force BibTeX.
2682files, but you can use `.bibtex` to force BibTeX.
2682
2683
2684+Note that `pandoc-citeproc --bib2json` and `pandoc-citeproc --bib2yaml`
2685+can produce `.json` and `.yaml` files from any of the supported formats.
2686+
2683As an alternative to specifying a bibliography file, you can include
2687As an alternative to specifying a bibliography file, you can include
2684the citation data directly in the `references` field of the
2688the citation data directly in the `references` field of the
2685document's YAML metadata. The field should contain an array of
2689document's YAML metadata. The field should contain an array of
@@ -2699,8 +2703,8 @@ YAML-encoded references, for example:
2699 - - 1953
2703 - - 1953
2700 - 4
2704 - 4
2701 - 25
2705 - 25
2702− title: 'Molecular structure of nucleic acids: a structure for deoxyribose nucleic
2706+ title: 'Molecular structure of nucleic acids: a structure for deoxyribose
2703− acid'
2707+ nucleic acid'
2704 title-short: Molecular structure of nucleic acids
2708 title-short: Molecular structure of nucleic acids
2705 container-title: Nature
2709 container-title: Nature
2706 volume: 171
2710 volume: 171