├── .github ├── FUNDING.yml └── workflows │ └── ci.yml ├── .gitignore ├── CONTRIBUTING.md ├── LICENSE ├── Makefile ├── README.md ├── Setup.hs ├── TODO ├── cabal.project ├── changelog ├── chicago-author-date.csl ├── compat └── Text │ └── CSL │ └── Compat │ └── Pandoc.hs ├── hackage-docs.sh ├── locales ├── locales-af-ZA.xml ├── locales-ar.xml ├── locales-bg-BG.xml ├── locales-ca-AD.xml ├── locales-cs-CZ.xml ├── locales-cy-GB.xml ├── locales-da-DK.xml ├── locales-de-AT.xml ├── locales-de-CH.xml ├── locales-de-DE.xml ├── locales-el-GR.xml ├── locales-en-GB.xml ├── locales-en-US.xml ├── locales-es-CL.xml ├── locales-es-ES.xml ├── locales-es-MX.xml ├── locales-et-EE.xml ├── locales-eu.xml ├── locales-fa-IR.xml ├── locales-fi-FI.xml ├── locales-fr-CA.xml ├── locales-fr-FR.xml ├── locales-he-IL.xml ├── locales-hr-HR.xml ├── locales-hu-HU.xml ├── locales-id-ID.xml ├── locales-is-IS.xml ├── locales-it-IT.xml ├── locales-ja-JP.xml ├── locales-km-KH.xml ├── locales-ko-KR.xml ├── locales-la.xml ├── locales-lt-LT.xml ├── locales-lv-LV.xml ├── locales-mn-MN.xml ├── locales-nb-NO.xml ├── locales-nl-NL.xml ├── locales-nn-NO.xml ├── locales-pl-PL.xml ├── locales-pt-BR.xml ├── locales-pt-PT.xml ├── locales-ro-RO.xml ├── locales-ru-RU.xml ├── locales-sk-SK.xml ├── locales-sl-SI.xml ├── locales-sr-RS.xml ├── locales-sv-SE.xml ├── locales-th-TH.xml ├── locales-tr-TR.xml ├── locales-uk-UA.xml ├── locales-vi-VN.xml ├── locales-zh-CN.xml └── locales-zh-TW.xml ├── man ├── Makefile ├── man1 │ └── pandoc-citeproc.1 └── pandoc-citeproc.1.md ├── mktest.sh ├── pandoc-citeproc.cabal ├── pandoc-citeproc.hs ├── prelude └── Prelude.hs ├── src └── Text │ ├── CSL.hs │ └── CSL │ ├── Data.hs │ ├── Data │ └── Embedded.hs │ ├── Eval.hs │ ├── Eval │ ├── Common.hs │ ├── Date.hs │ ├── Names.hs │ └── Output.hs │ ├── Exception.hs │ ├── Input │ ├── Bibtex.hs │ └── Bibutils.hs │ ├── Output │ ├── Pandoc.hs │ └── Plain.hs │ ├── Pandoc.hs │ ├── Parser.hs │ ├── Proc.hs │ ├── Proc │ ├── Collapse.hs │ └── Disamb.hs │ ├── Reference.hs │ ├── Style.hs │ └── Util.hs ├── stack.yaml └── tests ├── JSON.hs ├── advanced-optical-materials.csl ├── annales.csl ├── apa.csl ├── biblatex-examples.bib ├── biblio.bib ├── biblio2yaml ├── 266.biblatex ├── aksin.biblatex ├── almendro.biblatex ├── angenendt.biblatex ├── aristotle-anima.biblatex ├── aristotle-physics.biblatex ├── aristotle-poetics.biblatex ├── aristotle-rhetoric.biblatex ├── article.biblatex ├── augustine.biblatex ├── averroes-bland.biblatex ├── averroes-hannes.biblatex ├── averroes-hercz.biblatex ├── baez-article.biblatex ├── baez-online.biblatex ├── basic.bibtex ├── bertram.biblatex ├── bibstring-resolution.biblatex ├── book-averroes.biblatex ├── book-coleridge.biblatex ├── book-title-maintitle-series.biblatex ├── book-vazques-de-parga.biblatex ├── brandt.biblatex ├── britannica.biblatex ├── chiu.biblatex ├── cicero.biblatex ├── cms.biblatex ├── coleridge.biblatex ├── companion.biblatex ├── cotton.biblatex ├── crossref-inbook-mvbook.biblatex ├── crossref-nested.biblatex ├── ctan.biblatex ├── dates.biblatex ├── doody.biblatex ├── edtf-date.biblatex ├── escapedquotes.biblatex ├── formatting.biblatex ├── gaonkar-in.biblatex ├── gaonkar.biblatex ├── geer.biblatex ├── gerhardt.biblatex ├── gillies.biblatex ├── glashow.biblatex ├── gonzalez.biblatex ├── hammond.biblatex ├── herrmann.biblatex ├── hyman.biblatex ├── iliad.biblatex ├── inbook-title-booktitle-maintitle-series-2.biblatex ├── inbook-title-booktitle-maintitle-series.biblatex ├── inbook.biblatex ├── incollection-2.biblatex ├── incollection.biblatex ├── inproceedings.biblatex ├── issue288.biblatex ├── itzhaki.biblatex ├── jaffe.biblatex ├── jcg.biblatex ├── kant-kpv.biblatex ├── kant-ku.biblatex ├── kastenholz.biblatex ├── knuth-ct-a.biblatex ├── knuth-ct-b.biblatex ├── knuth-ct-c.biblatex ├── knuth-ct-d.biblatex ├── knuth-ct-e.biblatex ├── knuth-ct-related.biblatex ├── knuth-ct.biblatex ├── kowalik.biblatex ├── kullback-related.biblatex ├── kullback-reprint.biblatex ├── kullback.biblatex ├── laufenberg.biblatex ├── loh.biblatex ├── malinowski.biblatex ├── manual.biblatex ├── markey.biblatex ├── maron.biblatex ├── massa.biblatex ├── moore-related.biblatex ├── moore.biblatex ├── moraux.biblatex ├── murray.biblatex ├── nietzsche-historie.biblatex ├── nietzsche-ksa.biblatex ├── nietzsche-ksa1.biblatex ├── nussbaum.biblatex ├── online.biblatex ├── options-url-false-doi-false.biblatex ├── padhye.biblatex ├── pandoc-2 │ ├── ctan.biblatex │ ├── formatting.biblatex │ ├── jaffe.biblatex │ ├── kastenholz.biblatex │ ├── online.biblatex │ └── sigfridsson.biblatex ├── patent.biblatex ├── periodical.biblatex ├── piccato.biblatex ├── pines.biblatex ├── quotes.biblatex ├── reese.biblatex ├── report.biblatex ├── salam.biblatex ├── sarfraz.biblatex ├── shore.biblatex ├── sigfridsson.biblatex ├── sorace.biblatex ├── spiegelberg.biblatex ├── springer.biblatex ├── strings.biblatex ├── test-case-conversion.biblatex ├── textnormal.biblatex ├── thesis.biblatex ├── title-and-shorttitle.biblatex ├── vangennep-related.biblatex ├── vangennep-trans.biblatex ├── vangennep.biblatex ├── vazques-de-parga-mvbook.biblatex ├── vazques-de-parga.biblatex ├── video.biblatex ├── vizedom-related.biblatex ├── wassenberg.biblatex ├── weinberg.biblatex ├── westfahl-frontier.biblatex ├── westfahl-space.biblatex ├── wilde.biblatex ├── worman.biblatex └── yoon.biblatex ├── chicago-annotated-bibliography.csl ├── chicago-author-date-with-original-date-and-status.csl ├── chicago-author-date.expected.native ├── chicago-author-date.in.native ├── chicago-author-date.in.txt ├── chicago-fullnote-bibliography.csl ├── chicago-note-bibliography.csl ├── chinese-gb7714-2005-numeric.csl ├── din-1505-2.csl ├── harvard-university-of-kent.csl ├── ieee.csl ├── ieee.expected.native ├── ieee.in.native ├── issue118.expected.native ├── issue118.in.native ├── issue119.expected.native ├── issue119.in.native ├── issue13.expected.native ├── issue13.in.native ├── issue14.expected.native ├── issue14.in.native ├── issue152.expected.native ├── issue152.in.native ├── issue160.csl ├── issue160.expected.native ├── issue160.in.native ├── issue175.expected.native ├── issue175.in.native ├── issue197.expected.native ├── issue197.in.native ├── issue213.expected.native ├── issue213.in.native ├── issue25.expected.native ├── issue25.in.native ├── issue250.expected.native ├── issue250.in.native ├── issue27.expected.native ├── issue27.in.native ├── issue292.expected.native ├── issue292.in.native ├── issue301.expected.native ├── issue301.in.native ├── issue307.expected.native ├── issue307.in.native ├── issue31.expected.native ├── issue31.in.native ├── issue312.expected.native ├── issue312.in.native ├── issue320.expected.native ├── issue320.in.native ├── issue320a.expected.native ├── issue320a.in.native ├── issue322.expected.native ├── issue322.in.native ├── issue325.expected.native ├── issue325.in.native ├── issue327.expected.native ├── issue327.in.native ├── issue338.expected.native ├── issue338.in.native ├── issue351.expected.native ├── issue351.in.native ├── issue356.expected.native ├── issue356.in.native ├── issue360.expected.native ├── issue360.in.native ├── issue361.expected.native ├── issue361.in.native ├── issue365.expected.native ├── issue365.in.native ├── issue371.expected.native ├── issue371.in.native ├── issue38.expected.native ├── issue38.in.native ├── issue386.expected.native ├── issue386.in.native ├── issue392.expected.native ├── issue392.in.native ├── issue399.expected.native ├── issue399.in.native ├── issue437.csl ├── issue437.expected.native ├── issue437.in.native ├── issue47.expected.native ├── issue47.in.native ├── issue51.expected.native ├── issue51.in.native ├── issue57.expected.native ├── issue57.in.native ├── issue58.csl ├── issue58.expected.native ├── issue58.in.native ├── issue61.expected.native ├── issue61.in.native ├── issue64.expected.native ├── issue64.in.native ├── issue65.expected.native ├── issue65.in.native ├── issue68.expected.native ├── issue68.in.native ├── issue7.expected.native ├── issue7.in.native ├── issue70.expected.native ├── issue70.in.native ├── issue75.expected.native ├── issue75.in.native ├── issue76.expected.native ├── issue76.in.native ├── issue77.expected.native ├── issue77.in.native ├── issue82.expected.native ├── issue82.in.native ├── issue87.expected.native ├── issue87.in.native ├── le-tapuscrit-note.csl ├── locators-delimited.expected.native ├── locators-delimited.in.native ├── locators-integrated.expected.native ├── locators-integrated.in.native ├── locators.csl ├── mhra.csl ├── mhra.expected.native ├── mhra.in.native ├── modern-humanities-research-association.csl ├── move-period-inside-quote.expected.native ├── move-period-inside-quote.in.native ├── no-author.expected.native ├── no-author.in.native ├── number-of-volumes.expected.native ├── number-of-volumes.in.native ├── oscola.csl ├── page-range.expected.native ├── page-range.in.native ├── sage-harvard.csl ├── science.csl ├── style399.csl ├── test-citeproc.hs ├── test-pandoc-citeproc.hs ├── vancouver.csl └── zeitschrift-fur-kunstgeschichte.csl /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | github: [jgm] 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | dist 2 | cabal-dev 3 | *.o 4 | *.hi 5 | *.chi 6 | *.chs.h 7 | .virthualenv 8 | .stack-work 9 | test-diffs 10 | /dist-newstyle/ 11 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2008-2013, Andrea Rossato 2 | Copyright (c) 2013-2017, John MacFarlane 3 | All rights reserved. 4 | 5 | Redistribution and use in source and binary forms, with or without modification, 6 | are permitted provided that the following conditions are met: 7 | 8 | Redistributions of source code must retain the above copyright notice, this 9 | list of conditions and the following disclaimer. 10 | 11 | Redistributions in binary form must reproduce the above copyright notice, this 12 | list of conditions and the following disclaimer in the documentation and/or 13 | other materials provided with the distribution. 14 | 15 | Neither the name of the {organization} nor the names of its 16 | contributors may be used to endorse or promote products derived from 17 | this software without specific prior written permission. 18 | 19 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 20 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 21 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 22 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR 23 | ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 24 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 25 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON 26 | ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 28 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | SOURCEFILES?=$(shell find pandoc-citeproc.hs src tests -name '*.hs') 2 | stack: 3 | stack install --test --flag 'pandoc:embed_data_files' --flag 'pandoc-citeproc:test_citeproc' --flag 'pandoc-citeproc:embed_data_files' --fast --ghc-options '-Wall' --test-arguments='-j4 --hide-successes $(TESTARGS)' . pandoc 4 | 5 | debug: 6 | stack install --test --flag 'pandoc-citeproc:debug' --flag 'pandoc:embed_data_files' --flag 'pandoc-citeproc:embed_data_files' --fast --ghc-options '-Wall' --test-arguments='-j4 --hide-successes $(TESTARGS)' 7 | 8 | quick: deps 9 | cabal configure --enable-tests -ftest_citeproc -fembed_data_files --disable-optimization --ghc-options "-Wall" 10 | cabal build 11 | 12 | full: deps man 13 | cabal configure --enable-tests -ftest_citeproc -fembed_data_files --ghc-options "-Wall" 14 | cabal build 15 | 16 | man: 17 | make -C man -B 18 | 19 | deps: 20 | cabal install --only-dependencies --enable-tests -ftest_citeproc -fembed_data_files 21 | 22 | prof: deps 23 | cabal configure --enable-library-profiling --enable-executable-profiling --enable-optimization --ghc-options "-Wall" 24 | cabal build 25 | 26 | install: 27 | cabal copy 28 | cabal register 29 | 30 | test: 31 | cabal test 32 | 33 | clean: 34 | cabal clean 35 | 36 | reformat: 37 | for f in $(SOURCEFILES); do echo $$f; stylish-haskell -i $$f ; done 38 | 39 | lint: 40 | for f in $(SOURCEFILES); do echo $$f; hlint --verbose --cpp-file `stack path --dist-dir`/build/autogen/cabal_macros.h --cpp-file `stack path --dist-dir`/setup/setup_macros.h --refactor --refactor-options='-i -s' $$f; done 41 | 42 | update: 43 | curl 'https://raw.githubusercontent.com/citation-style-language/styles/master/chicago-author-date.csl' > chicago-author-date.csl ; \ 44 | git clone 'https://github.com/citation-style-language/locales' locales-repo ; \ 45 | for x in locales-repo/*.xml; do cp $$x locales/; done ; \ 46 | rm -rf locales-repo; \ 47 | git add locales/*.xml; \ 48 | git add chicago-author-date.csl; \ 49 | git commit -a 50 | 51 | .PHONY: quick full prof update clean install test deps man stack 52 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | pandoc-citeproc 2 | =============== 3 | 4 | **Note: This package is no longer maintained. 5 | Pandoc now uses the [citeproc](https://github.com/jgm/citeproc) 6 | library, and no external filter is needed.** 7 | 8 | [![CI 9 | tests](https://github.com/jgm/pandoc-citeproc/workflows/CI%20tests/badge.svg)](https://github.com/jgm/pandoc-citeproc/actions) 10 | 11 | 12 | This package provides a library and executable to facilitate the use of 13 | citeproc with pandoc 1.12 and greater. (Earlier versions of pandoc have 14 | integrated citeproc support.) 15 | 16 | `pandoc-citeproc` 17 | ----------------- 18 | 19 | The `pandoc-citeproc` executable can be used as a filter with pandoc to 20 | resolve and format citations using a bibliography file and a CSL 21 | stylesheet. It can also be used (with `--bib2yaml` or `--bib2json` 22 | options) to convert a bibliography to a YAML format that can be put 23 | directly into a pandoc markdown document or to CSL JSON. Bibliographies 24 | can be in any of several formats, but bibtex and biblatex are the best 25 | supported. 26 | 27 | For usage and further details, see the [pandoc-citeproc man 28 | page](https://github.com/jgm/pandoc-citeproc/blob/master/man/pandoc-citeproc.1.md). 29 | 30 | The current version of the package includes code from citeproc-hs, 31 | which has not been updated for some time. When citeproc-hs is brought 32 | up to date, this code can be removed and this package will depend 33 | on citeproc-hs. 34 | 35 | `Text.CSL.Pandoc` 36 | ----------------- 37 | 38 | Those who use pandoc as a library (e.g. in a web application) will 39 | need to use this module to process citations. 40 | 41 | The module exports two functions, `processCites`, which is pure and 42 | accepts a style and a list of references as arguments, and 43 | `processCites'`, which lives in the IO monad and derives the style 44 | and references from the document's metadata. 45 | 46 | -------------------------------------------------------------------------------- /Setup.hs: -------------------------------------------------------------------------------- 1 | {-# LANGUAGE CPP #-} 2 | 3 | import Distribution.Simple 4 | import Distribution.PackageDescription (PackageDescription(..)) 5 | import Distribution.Simple.Utils (notice, installOrdinaryFiles) 6 | import Distribution.Simple.Setup 7 | import Distribution.Simple.LocalBuildInfo 8 | 9 | 10 | main :: IO () 11 | main = 12 | defaultMainWithHooks $ simpleUserHooks { 13 | postCopy = installManPage 14 | } 15 | 16 | installManPage :: Args -> CopyFlags 17 | -> PackageDescription -> LocalBuildInfo -> IO () 18 | installManPage _ flags pkg lbi = do 19 | let verbosity = fromFlag (copyVerbosity flags) 20 | let copydest = fromFlag (copyDest flags) 21 | let mandest = mandir (absoluteInstallDirs pkg lbi copydest) 22 | ++ "/man1" 23 | notice verbosity $ "Copying man page to " ++ mandest 24 | installOrdinaryFiles verbosity mandest 25 | [("man/man1", "pandoc-citeproc.1")] 26 | 27 | -------------------------------------------------------------------------------- /TODO: -------------------------------------------------------------------------------- 1 | TODO: 2 | 3 | - man pages 4 | - error reporting has been improved, but warnings still don't appear with 5 | numerical styles 6 | 7 | -------------------------------------------------------------------------------- /cabal.project: -------------------------------------------------------------------------------- 1 | packages: pandoc-citeproc.cabal 2 | 3 | package pandoc-citeproc 4 | flags: +embed_data_files +bibutils -unicode_collation -test_citeproc -debug 5 | 6 | source-repository-package 7 | type: git 8 | location: https://github.com/jgm/pandoc 9 | tag: 9672ff827194ddf5565351b2fdde942c03942b2d 10 | 11 | -------------------------------------------------------------------------------- /hackage-docs.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # from https://github.com/ekmett/lens/blob/master/scripts/hackage-docs.sh 4 | # Copyright 2012-2015 Edward Kmett, BSD3 license 5 | 6 | set -e 7 | 8 | if [ "$#" -ne 1 ]; then 9 | echo "Usage: scripts/hackage-docs.sh HACKAGE_USER" 10 | exit 1 11 | fi 12 | 13 | user=$1 14 | 15 | cabal_file=$(find . -maxdepth 1 -name "*.cabal" -print -quit) 16 | if [ ! -f "$cabal_file" ]; then 17 | echo "Run this script in the top-level package directory" 18 | exit 1 19 | fi 20 | 21 | pkg=$(awk -F ":[[:space:]]*" 'tolower($1)=="name" { print $2 }' < "$cabal_file") 22 | ver=$(awk -F ":[[:space:]]*" 'tolower($1)=="version" { print $2 }' < "$cabal_file") 23 | 24 | if [ -z "$pkg" ]; then 25 | echo "Unable to determine package name" 26 | exit 1 27 | fi 28 | 29 | if [ -z "$ver" ]; then 30 | echo "Unable to determine package version" 31 | exit 1 32 | fi 33 | 34 | echo "Detected package: $pkg-$ver" 35 | 36 | dir=$(mktemp -d build-docs.XXXXXX) 37 | trap 'rm -r "$dir"' EXIT 38 | 39 | 40 | if haddock --hyperlinked-source >/dev/null 41 | then 42 | echo "Using fancy hyperlinked source" 43 | HYPERLINK_FLAG="--haddock-option=--hyperlinked-source" 44 | else 45 | echo "Using boring hyperlinked source" 46 | HYPERLINK_FLAG="--hyperlink-source" 47 | fi 48 | 49 | cabal haddock --hoogle $HYPERLINK_FLAG --html-location='/package/$pkg-$version/docs' --contents-location='/package/$pkg-$version' 50 | 51 | cp -R dist/doc/html/$pkg/ $dir/$pkg-$ver-docs 52 | 53 | tar cvz -C $dir --format=ustar -f $dir/$pkg-$ver-docs.tar.gz $pkg-$ver-docs 54 | 55 | curl -X PUT \ 56 | -H 'Content-Type: application/x-tar' \ 57 | -H 'Content-Encoding: gzip' \ 58 | -u "$user" \ 59 | --data-binary "@$dir/$pkg-$ver-docs.tar.gz" \ 60 | "https://hackage.haskell.org/package/$pkg-$ver/docs" 61 | -------------------------------------------------------------------------------- /man/Makefile: -------------------------------------------------------------------------------- 1 | ALL=man1/pandoc-citeproc.1 2 | DATE=$(shell date "+%Y-%m-%d") 3 | VERSION=$(shell grep version: ../pandoc-citeproc.cabal | head -1 | awk '{print $$2;}') 4 | 5 | .PHONY: all 6 | 7 | all: $(ALL) 8 | man1/%.1: %.1.md 9 | pandoc $< -o $@ -s -t man -Vfooter="pandoc-citeproc ${VERSION}" -Vdate="${DATE}" 10 | -------------------------------------------------------------------------------- /prelude/Prelude.hs: -------------------------------------------------------------------------------- 1 | {-# LANGUAGE NoImplicitPrelude #-} 2 | {-# LANGUAGE PackageImports #-} 3 | {-# LANGUAGE CPP #-} 4 | 5 | -- The intent is that this Prelude provide the API of 6 | -- the base 4.11 Prelude in a way that is portable for 7 | -- all base versions. 8 | 9 | module Prelude 10 | ( 11 | module Prelude.Compat 12 | , Semigroup(..) 13 | ) 14 | where 15 | 16 | import Prelude.Compat 17 | import Data.Semigroup (Semigroup(..)) -- includes (<>) 18 | -------------------------------------------------------------------------------- /src/Text/CSL/Data/Embedded.hs: -------------------------------------------------------------------------------- 1 | {-# LANGUAGE NoImplicitPrelude #-} 2 | {-# LANGUAGE TemplateHaskell #-} 3 | 4 | module Text.CSL.Data.Embedded (localeFiles, defaultCSL, manpage, license) 5 | where 6 | import Prelude 7 | import qualified Data.ByteString.Char8 as S 8 | import Data.FileEmbed 9 | 10 | localeFiles :: [(FilePath, S.ByteString)] 11 | localeFiles = $(embedDir "locales") 12 | 13 | defaultCSL :: S.ByteString 14 | defaultCSL = $(embedFile "chicago-author-date.csl") 15 | 16 | manpage :: S.ByteString 17 | manpage = $(embedFile "man/man1/pandoc-citeproc.1") 18 | 19 | license :: S.ByteString 20 | license = $(embedFile "LICENSE") 21 | -------------------------------------------------------------------------------- /src/Text/CSL/Exception.hs: -------------------------------------------------------------------------------- 1 | {-# LANGUAGE NoImplicitPrelude #-} 2 | {-# LANGUAGE DeriveDataTypeable #-} 3 | 4 | module Text.CSL.Exception (CiteprocException(..), renderError) where 5 | import Prelude 6 | import Control.Exception (Exception) 7 | import Data.Data 8 | 9 | data CiteprocException = 10 | ErrorParsingReferences String 11 | | CouldNotFindAbbrevFile String 12 | | CouldNotFindBibFile String 13 | | ErrorReadingBibFile String String 14 | | ErrorReadingBib String 15 | | ErrorSplittingDate 16 | | MacroNotFound String 17 | | DependentStyleHasItselfAsParent String 18 | deriving (Show, Data, Typeable) 19 | 20 | instance Exception CiteprocException 21 | 22 | renderError :: CiteprocException -> String 23 | renderError (ErrorParsingReferences s) = 24 | "Error parsing references: " ++ s 25 | renderError (CouldNotFindAbbrevFile s) = 26 | "Could not find abbreviation file: " ++ s 27 | renderError (CouldNotFindBibFile s) = 28 | "Could not find bibliography file: " ++ s 29 | renderError (ErrorReadingBibFile f s) = 30 | "Error reading bibliography " ++ f ++ " " ++ s 31 | renderError (ErrorReadingBib s) = 32 | "Error reading bibliography " ++ s 33 | renderError ErrorSplittingDate = 34 | "Error splitting date" 35 | renderError (MacroNotFound s) = 36 | "Macro not found: " ++ s 37 | renderError (DependentStyleHasItselfAsParent s) = 38 | "Dependent style " ++ s ++ " has itself as parent" 39 | -------------------------------------------------------------------------------- /src/Text/CSL/Output/Plain.hs: -------------------------------------------------------------------------------- 1 | {-# LANGUAGE NoImplicitPrelude #-} 2 | 3 | ----------------------------------------------------------------------------- 4 | -- | 5 | -- Module : Text.CSL.Output.Plain 6 | -- Copyright : (c) Andrea Rossato 7 | -- License : BSD-style (see LICENSE) 8 | -- 9 | -- Maintainer : Andrea Rossato 10 | -- Stability : unstable 11 | -- Portability : unportable 12 | -- 13 | -- The plain ascii output formatter for CSL 14 | -- 15 | ----------------------------------------------------------------------------- 16 | 17 | module Text.CSL.Output.Plain 18 | ( renderPlain 19 | ) where 20 | 21 | import Prelude 22 | import Data.Text (Text) 23 | import Text.CSL.Compat.Pandoc (writePlain) 24 | import Text.CSL.Style 25 | import Text.Pandoc (Block (Plain), Pandoc (..), nullMeta) 26 | 27 | -- | Render the 'Formatted' into a plain text string. 28 | renderPlain :: Formatted -> Text 29 | renderPlain (Formatted ils) = writePlain $ Pandoc nullMeta [Plain ils] 30 | 31 | -------------------------------------------------------------------------------- /stack.yaml: -------------------------------------------------------------------------------- 1 | flags: 2 | pandoc-citeproc: 3 | bibutils: true 4 | embed_data_files: false 5 | unicode_collation: false 6 | test_citeproc: false 7 | debug: false 8 | static: false 9 | packages: 10 | - '.' 11 | extra-deps: 12 | - texmath-0.12.0.3 13 | - haddock-library-1.9.0 14 | - skylighting-0.10.0.2 15 | - skylighting-core-0.10.0.2 16 | - regex-pcre-builtin-0.95.1.2.8.43 17 | - regex-base-0.94.0.0 18 | - doclayout-0.3 19 | - emojis-0.1 20 | - hslua-1.1.0 21 | - jira-wiki-markup-1.3.2 22 | - HsYAML-0.2.1.0 23 | - HsYAML-aeson-0.2.0.0 24 | - doctemplates-0.8.2 25 | - commonmark-0.1.0.2 26 | - commonmark-extensions-0.2.0.1 27 | - commonmark-pandoc-0.2.0.1 28 | - pandoc-types-1.22 29 | - rfc5051-0.2 30 | - git: https://github.com/jgm/pandoc 31 | commit: c9e7ccba6f8a5a840fd7a110b9dbb2d9fc80296b 32 | 33 | ghc-options: 34 | "$locals": -fhide-source-paths 35 | resolver: lts-14.6 36 | -------------------------------------------------------------------------------- /tests/JSON.hs: -------------------------------------------------------------------------------- 1 | {-# LANGUAGE NoImplicitPrelude #-} 2 | {-# OPTIONS_GHC -fno-warn-orphans #-} 3 | -- ToJSON/FromJSON instances for Style 4 | module JSON where 5 | import Prelude 6 | import Data.Aeson 7 | import qualified Data.ByteString.Lazy as L 8 | import qualified Data.Text.Encoding as T 9 | import Text.CSL.Parser 10 | import Text.CSL.Style 11 | 12 | instance FromJSON Style where 13 | parseJSON (String s) = return $ parseCSL' $ L.fromChunks [T.encodeUtf8 s] 14 | parseJSON _ = fail "Could not parse Style" 15 | -------------------------------------------------------------------------------- /tests/biblio.bib: -------------------------------------------------------------------------------- 1 | @Book{item1, 2 | author="John Doe", 3 | title="First Book", 4 | year="2005", 5 | address="Cambridge", 6 | publisher="Cambridge University Press" 7 | } 8 | 9 | @Article{item2, 10 | author="John Doe", 11 | title="Article", 12 | year="2006", 13 | journal="Journal of Generic Studies", 14 | volume="6", 15 | pages="33-34" 16 | } 17 | 18 | @InCollection{пункт3, 19 | author="John Doe and Jenny Roe", 20 | title="Why Water Is Wet", 21 | booktitle="Third Book", 22 | editor="Sam Smith", 23 | publisher="Oxford University Press", 24 | address="Oxford", 25 | year="2007" 26 | } 27 | -------------------------------------------------------------------------------- /tests/biblio2yaml/266.biblatex: -------------------------------------------------------------------------------- 1 | @book{goethe2005, 2 | langid = {german}, 3 | location = {{Frankfurt am Main}}, 4 | title = {Not A Real Book}, 5 | date = {2005}, 6 | author = {family=Goethe, given=Johann Wolfgang, prefix=von, useprefix=false and given=Antonie, prefix=van, family=Leeuwenhoek, useprefix=true}, editor = {Schöne, Albrecht} 7 | } 8 | 9 | --- 10 | references: 11 | - id: goethe2005 12 | type: book 13 | author: 14 | - family: Goethe 15 | given: Johann Wolfgang 16 | dropping-particle: von 17 | - family: Leeuwenhoek 18 | given: Antonie 19 | non-dropping-particle: van 20 | editor: 21 | - family: Schöne 22 | given: Albrecht 23 | issued: 24 | - year: 2005 25 | title: Not A Real Book 26 | publisher-place: Frankfurt am Main 27 | language: de-DE 28 | ... 29 | -------------------------------------------------------------------------------- /tests/biblio2yaml/almendro.biblatex: -------------------------------------------------------------------------------- 1 | @comment{ 2 | 3 | Adapted from biblatex-example.bib 4 | 5 | 6 | Formatted with pandoc and chicago-author-date.csl, 2013-10-23: 7 | 8 | (Almendro et al. 1998) 9 | 10 | Almendro, José L., Jacinto Martín, Alberto Sánchez, and Fernando Nozal. 11 | 1998. “Elektromagnetisches Signalhorn.” 12 | 13 | 14 | Formatted with pandoc and apa.csl, 2013-10-23: 15 | 16 | (Almendro, Martín, Sánchez, & Nozal, 1998) 17 | 18 | Almendro, J. L., Martín, J., Sánchez, A., & Nozal, F. (1998). 19 | Elektromagnetisches Signalhorn. 20 | 21 | 22 | NOTES: 23 | 24 | - CSL styles’ handling of patent items needs to be improved 25 | 26 | } 27 | 28 | @Patent{almendro, 29 | author = {Almendro, Jos{\'e} L. and Mart{\'i}n, Jacinto and S{\'a}nchez, 30 | Alberto and Nozal, Fernando}, 31 | title = {Elektromagnetisches Signalhorn}, 32 | number = {EU-29702195U}, 33 | date = 1998, 34 | location = {countryfr and countryuk and countryde}, 35 | hyphenation = {german}, 36 | annotation = {This is a patent entry with a location 37 | field. The number is given in the number field. Note 38 | the format of the location field in the database 39 | file. Compare laufenberg, sorace, and 40 | kowalik}, 41 | } 42 | 43 | --- 44 | references: 45 | - id: almendro 46 | type: patent 47 | author: 48 | - family: Almendro 49 | given: José L. 50 | - family: Martín 51 | given: Jacinto 52 | - family: Sánchez 53 | given: Alberto 54 | - family: Nozal 55 | given: Fernando 56 | issued: 57 | - year: 1998 58 | title: Elektromagnetisches Signalhorn 59 | jurisdiction: France; United Kingdom; Germany 60 | annote: This is a patent entry with a location field. The number is given in the number field. Note the format of the location field in the database file. Compare laufenberg, sorace, and kowalik 61 | number: EU-29702195U 62 | language: de-DE 63 | ... 64 | -------------------------------------------------------------------------------- /tests/biblio2yaml/angenendt.biblatex: -------------------------------------------------------------------------------- 1 | @comment{ 2 | 3 | Adapted from biblatex-example.bib 4 | 5 | 6 | Formatted with pandoc and chicago-author-date.csl, 2013-10-23: 7 | 8 | (Angenendt 2002) 9 | 10 | Angenendt, Arnold. 2002. “In Honore Salvatoris – Vom Sinn und Unsinn der 11 | Patrozinienkunde.” *Revue d’Histoire Ecclésiastique* 97: 431–456, 12 | 791–823. 13 | 14 | 15 | Formatted with pandoc and apa.csl, 2013-10-23: 16 | 17 | (Angenendt, 2002) 18 | 19 | Angenendt, A. (2002). In Honore Salvatoris – Vom Sinn und Unsinn der 20 | Patrozinienkunde. *Revue d’Histoire Ecclésiastique*, *97*, 431–456, 21 | 791–823. 22 | 23 | 24 | } 25 | 26 | @Article{angenendt, 27 | author = {Angenendt, Arnold}, 28 | title = {In Honore Salvatoris~-- Vom Sinn und Unsinn der 29 | Patrozinienkunde}, 30 | journaltitle = {Revue d'Histoire Eccl{\'e}siastique}, 31 | date = 2002, 32 | volume = 97, 33 | pages = {431--456, 791--823}, 34 | hyphenation = {german}, 35 | indextitle = {In Honore Salvatoris}, 36 | shorttitle = {In Honore Salvatoris}, 37 | annotation = {A German article in a French journal. Apart from that, a 38 | typical article entry. Note the indextitle 39 | field}, 40 | } 41 | 42 | --- 43 | references: 44 | - id: angenendt 45 | type: article-journal 46 | author: 47 | - family: Angenendt 48 | given: Arnold 49 | issued: 50 | - year: 2002 51 | title: In Honore Salvatoris – Vom Sinn und Unsinn der Patrozinienkunde 52 | title-short: In Honore Salvatoris 53 | container-title: Revue d’Histoire Ecclésiastique 54 | page: 431-456, 791-823 55 | volume: '97' 56 | annote: A German article in a French journal. Apart from that, a typical article entry. Note the indextitle field 57 | language: de-DE 58 | ... 59 | -------------------------------------------------------------------------------- /tests/biblio2yaml/aristotle-anima.biblatex: -------------------------------------------------------------------------------- 1 | @comment{ 2 | 3 | Adapted from biblatex-example.bib 4 | 5 | 6 | Formatted with pandoc and chicago-author-date.csl, 2013-10-23: 7 | 8 | (Aristotle 1907) 9 | 10 | Aristotle. 1907. *De Anima*. Edited by Robert Drew Hicks. Cambridge: 11 | Cambridge University Press. 12 | 13 | 14 | Formatted with pandoc and apa.csl, 2013-10-23: 15 | 16 | (Aristotle, 1907) 17 | 18 | Aristotle. (1907). *De anima*. (R. D. Hicks, Ed.). Cambridge: Cambridge 19 | University Press. 20 | 21 | 22 | } 23 | 24 | @string{ cup = {Cambridge University Press} } 25 | 26 | @Book{aristotle:anima, 27 | author = {Aristotle}, 28 | title = {De Anima}, 29 | date = 1907, 30 | editor = {Hicks, Robert Drew}, 31 | publisher = cup, 32 | location = {Cambridge}, 33 | keywords = {primary}, 34 | hyphenation = {british}, 35 | annotation = {A book entry with an author and an 36 | editor}, 37 | } 38 | 39 | --- 40 | references: 41 | - id: aristotle:anima 42 | type: book 43 | author: 44 | - family: Aristotle 45 | editor: 46 | - family: Hicks 47 | given: Robert Drew 48 | issued: 49 | - year: 1907 50 | title: De anima 51 | publisher: Cambridge University Press 52 | publisher-place: Cambridge 53 | annote: A book entry with an author and an editor 54 | keyword: primary 55 | language: en-GB 56 | ... 57 | -------------------------------------------------------------------------------- /tests/biblio2yaml/aristotle-physics.biblatex: -------------------------------------------------------------------------------- 1 | @comment{ 2 | 3 | Adapted from biblatex-example.bib 4 | 5 | 6 | Formatted with pandoc and chicago-author-date.csl, 2013-10-23: 7 | 8 | (Aristotle 1929) 9 | 10 | Aristotle. 1929. *Physics*. Translated by P. H. Wicksteed and F. M. 11 | Cornford. New York: G. P. Putnam. 12 | 13 | 14 | Formatted with pandoc and apa.csl, 2013-10-23: 15 | 16 | (Aristotle, 1929) 17 | 18 | Aristotle. (1929). *Physics*. (P. H. Wicksteed & F. M. Cornford, 19 | Trans.). New York: G. P. Putnam. 20 | 21 | 22 | } 23 | 24 | @Book{aristotle:physics, 25 | author = {Aristotle}, 26 | title = {Physics}, 27 | date = 1929, 28 | translator = {Wicksteed, P. H. and Cornford, F. M.}, 29 | publisher = {G. P. Putnam}, 30 | location = {New York}, 31 | keywords = {primary}, 32 | hyphenation = {american}, 33 | shorttitle = {Physics}, 34 | annotation = {A book entry with a translator field}, 35 | } 36 | 37 | --- 38 | references: 39 | - id: aristotle:physics 40 | type: book 41 | author: 42 | - family: Aristotle 43 | translator: 44 | - family: Wicksteed 45 | given: P. H. 46 | - family: Cornford 47 | given: F. M. 48 | issued: 49 | - year: 1929 50 | title: Physics 51 | title-short: Physics 52 | publisher: G. P. Putnam 53 | publisher-place: New York 54 | annote: A book entry with a translator field 55 | keyword: primary 56 | language: en-US 57 | ... 58 | -------------------------------------------------------------------------------- /tests/biblio2yaml/aristotle-poetics.biblatex: -------------------------------------------------------------------------------- 1 | @comment{ 2 | 3 | Adapted from biblatex-example.bib 4 | 5 | 6 | Formatted with pandoc and chicago-author-date.csl, 2013-10-23: 7 | 8 | (Aristotle 1968) 9 | 10 | Aristotle. 1968. *Poetics*. Edited by D. W. Lucas. Clarendon Aristotle. 11 | Oxford: Clarendon Press. 12 | 13 | 14 | Formatted with pandoc and apa.csl, 2013-10-23: 15 | 16 | (Aristotle, 1968) 17 | 18 | Aristotle. (1968). *Poetics*. (D. W. Lucas, Ed.). Oxford: Clarendon 19 | Press. 20 | 21 | 22 | } 23 | 24 | @Book{aristotle:poetics, 25 | author = {Aristotle}, 26 | title = {Poetics}, 27 | date = 1968, 28 | editor = {Lucas, D. W.}, 29 | series = {Clarendon {Aristotle}}, 30 | publisher = {Clarendon Press}, 31 | location = {Oxford}, 32 | keywords = {primary}, 33 | hyphenation = {british}, 34 | shorttitle = {Poetics}, 35 | annotation = {A book entry with an author and an 36 | editor as well as a series field}, 37 | } 38 | 39 | --- 40 | references: 41 | - id: aristotle:poetics 42 | type: book 43 | author: 44 | - family: Aristotle 45 | editor: 46 | - family: Lucas 47 | given: D. W. 48 | issued: 49 | - year: 1968 50 | title: Poetics 51 | title-short: Poetics 52 | collection-title: Clarendon Aristotle 53 | publisher: Clarendon Press 54 | publisher-place: Oxford 55 | annote: A book entry with an author and an editor as well as a series field 56 | keyword: primary 57 | language: en-GB 58 | ... 59 | -------------------------------------------------------------------------------- /tests/biblio2yaml/augustine.biblatex: -------------------------------------------------------------------------------- 1 | @comment{ 2 | 3 | Adapted from biblatex-example.bib 4 | 5 | 6 | Formatted with pandoc and chicago-author-date.csl, 2013-10-23: 7 | 8 | (Augustine 1995) 9 | 10 | Augustine, Robert L. 1995. *Heterogeneous Catalysis for the Synthetic 11 | Chemist*. New York: Marcel Dekker. 12 | 13 | 14 | Formatted with pandoc and apa.csl, 2013-10-23: 15 | 16 | (Augustine, 1995) 17 | 18 | Augustine, R. L. (1995). *Heterogeneous catalysis for the synthetic 19 | chemist*. New York: Marcel Dekker. 20 | 21 | 22 | } 23 | 24 | @Book{augustine, 25 | author = {Augustine, Robert L.}, 26 | title = {Heterogeneous catalysis for the synthetic chemist}, 27 | date = 1995, 28 | publisher = {Marcel Dekker}, 29 | location = {New York}, 30 | hyphenation = {american}, 31 | shorttitle = {Heterogeneous catalysis}, 32 | annotation = {A plain book entry}, 33 | } 34 | 35 | --- 36 | references: 37 | - id: augustine 38 | type: book 39 | author: 40 | - family: Augustine 41 | given: Robert L. 42 | issued: 43 | - year: 1995 44 | title: Heterogeneous catalysis for the synthetic chemist 45 | title-short: Heterogeneous catalysis 46 | publisher: Marcel Dekker 47 | publisher-place: New York 48 | annote: A plain book entry 49 | language: en-US 50 | ... 51 | -------------------------------------------------------------------------------- /tests/biblio2yaml/baez-online.biblatex: -------------------------------------------------------------------------------- 1 | @comment{ 2 | 3 | Adapted from biblatex-example.bib 4 | 5 | Formatted with pandoc and chicago-author-date.csl, 2013-10-23: 6 | 7 | (Baez and Lauda 2004) 8 | 9 | Baez, John C., and Aaron D. Lauda. 2004. “Higher-dimensional Algebra V: 10 | 2-groups” (version 3). October 27. 11 | 12 | 13 | Formatted with pandoc and apa.csl, 2013-10-23: 14 | 15 | (Baez & Lauda, 2004) 16 | 17 | Baez, J. C., & Lauda, A. D. (2004, October 27). Higher-dimensional 18 | algebra V: 2-groups. 19 | 20 | 21 | NOTES: 22 | 23 | - biblio2yaml: 24 | - eprinttype = {arxiv}, eprint = {math/0307200v3}, 25 | should be converted to a url: http://arxiv.org/abs/math/0307200v3 26 | (prefix http://arxiv.org/abs/ seems to work for all arxiv material) 27 | 28 | } 29 | 30 | @Online{baez-online, 31 | author = {Baez, John C. and Lauda, Aaron D.}, 32 | title = {Higher-Dimensional Algebra {V}: 2-Groups}, 33 | date = {2004-10-27}, 34 | version = 3, 35 | hyphenation = {american}, 36 | eprinttype = {arxiv}, 37 | eprint = {math/0307200v3}, 38 | annotation = {An online reference from arXiv. Note the 39 | eprint and eprinttype fields. Compare 40 | baez\slash article which is the same item given as an 41 | article entry with eprint information}, 42 | } 43 | 44 | --- 45 | references: 46 | - id: baez-online 47 | type: webpage 48 | author: 49 | - family: Baez 50 | given: John C. 51 | - family: Lauda 52 | given: Aaron D. 53 | issued: 54 | - year: 2004 55 | month: 10 56 | day: 27 57 | title: 'Higher-dimensional algebra V: 2-groups' 58 | title-short: Higher-dimensional algebra V 59 | version: '3' 60 | annote: An online reference from arXiv. Note the eprint and eprinttype fields. Compare baez/article which is the same item given as an article entry with eprint information 61 | URL: http://arxiv.org/abs/math/0307200v3 62 | language: en-US 63 | ... 64 | -------------------------------------------------------------------------------- /tests/biblio2yaml/basic.bibtex: -------------------------------------------------------------------------------- 1 | @Book{item1, 2 | author="John Doe", 3 | title="First Book", 4 | year="2005", 5 | address="Cambridge", 6 | publisher="Cambridge University Press" 7 | } 8 | 9 | @Article{item2, 10 | author="John Doe", 11 | title="Article", 12 | year="2006", 13 | journal="Journal of Generic Studies", 14 | volume="6", 15 | pages="33-34" 16 | } 17 | 18 | @InCollection{пункт3, 19 | author="John Doe and Jenny Roe", 20 | title="Why Water Is Wet", 21 | booktitle="Third Book", 22 | editor="Sam Smith", 23 | publisher="Oxford University Press", 24 | address="Oxford", 25 | year="2007" 26 | } 27 | 28 | --- 29 | references: 30 | - id: item1 31 | type: book 32 | author: 33 | - family: Doe 34 | given: John 35 | issued: 36 | - year: 2005 37 | title: First book 38 | publisher: Cambridge University Press 39 | publisher-place: Cambridge 40 | 41 | - id: item2 42 | type: article-journal 43 | author: 44 | - family: Doe 45 | given: John 46 | issued: 47 | - year: 2006 48 | title: Article 49 | container-title: Journal of Generic Studies 50 | page: 33-34 51 | volume: '6' 52 | 53 | - id: пункт3 54 | type: chapter 55 | author: 56 | - family: Doe 57 | given: John 58 | - family: Roe 59 | given: Jenny 60 | editor: 61 | - family: Smith 62 | given: Sam 63 | issued: 64 | - year: 2007 65 | title: Why water is wet 66 | container-title: Third book 67 | publisher: Oxford University Press 68 | publisher-place: Oxford 69 | ... 70 | -------------------------------------------------------------------------------- /tests/biblio2yaml/bertram.biblatex: -------------------------------------------------------------------------------- 1 | @comment{ 2 | 3 | Adapted from biblatex-example.bib 4 | 5 | 6 | Formatted with pandoc and chicago-author-date.csl, 2013-10-23: 7 | 8 | (Bertram and Wentworth 1996) 9 | 10 | Bertram, Aaron, and Richard Wentworth. 1996. “Gromov Invariants for 11 | Holomorphic Maps on Riemann Surfaces.” *J. Amer. Math. Soc.* 9 (2): 12 | 529–571. 13 | 14 | 15 | Formatted with pandoc and apa.csl, 2013-10-23: 16 | 17 | (Bertram & Wentworth, 1996) 18 | 19 | Bertram, A., & Wentworth, R. (1996). Gromov invariants for holomorphic 20 | maps on Riemann surfaces. *J. Amer. Math. Soc.*, *9*(2), 529–571. 21 | 22 | 23 | } 24 | 25 | @string{ jams = {J.~Amer. Math. Soc.} } 26 | 27 | @Article{bertram, 28 | author = {Bertram, Aaron and Wentworth, Richard}, 29 | title = {Gromov invariants for holomorphic maps on {Riemann} surfaces}, 30 | journaltitle = jams, 31 | date = 1996, 32 | volume = 9, 33 | number = 2, 34 | pages = {529-571}, 35 | hyphenation = {american}, 36 | shorttitle = {Gromov invariants}, 37 | annotation = {An article entry with a volume and a 38 | number field}, 39 | } 40 | 41 | --- 42 | references: 43 | - id: bertram 44 | type: article-journal 45 | author: 46 | - family: Bertram 47 | given: Aaron 48 | - family: Wentworth 49 | given: Richard 50 | issued: 51 | - year: 1996 52 | title: Gromov invariants for holomorphic maps on Riemann surfaces 53 | title-short: Gromov invariants 54 | container-title: J. Amer. Math. Soc. 55 | page: 529-571 56 | volume: '9' 57 | issue: '2' 58 | annote: An article entry with a volume and a number field 59 | language: en-US 60 | ... 61 | -------------------------------------------------------------------------------- /tests/biblio2yaml/bibstring-resolution.biblatex: -------------------------------------------------------------------------------- 1 | @book{item1, 2 | Title = {The Title: \bibstring{newseries}}, 3 | Hyphenation = {english} 4 | } 5 | 6 | --- 7 | references: 8 | - id: item1 9 | type: book 10 | title: 'The title: new series' 11 | title-short: The title 12 | language: en-US 13 | ... 14 | -------------------------------------------------------------------------------- /tests/biblio2yaml/book-coleridge.biblatex: -------------------------------------------------------------------------------- 1 | @comment{adapted from http://mirrors.ctan.org/macros/latex/contrib/biblatex/doc/examples/biblatex-examples.bib 2 | 3 | TODO (as a stopgap): 4 | Combine biblatex “volume = 7” and “part = 2” to CSL “volume: 7.2” 5 | 6 | } 7 | 8 | @book{coleridge, 9 | Annotation = {One (partial) volume of a multivolume book. This is a book entry with a volume and a part field which explicitly refers to the second (physical) part of the seventh (logical) volume. Also note the series and number fields}, 10 | Author = {Coleridge, Samuel Taylor}, 11 | Date = 1983, 12 | Editor = {Coburn, Kathleen and Engell, James and Bate, W. Jackson}, 13 | Hyphenation = {british}, 14 | Indextitle = {Biographia literaria}, 15 | Location = {London}, 16 | Maintitle = {The collected works of {Samuel Taylor Coleridge}}, 17 | Number = 75, 18 | Part = 2, 19 | Publisher = {Routledge {and} Kegan Paul}, 20 | Series = {Bollingen Series}, 21 | Shorttitle = {Biographia literaria}, 22 | Title = {Biographia literaria, or {Biographical} sketches of my literary life and opinions}, 23 | Volume = 7} 24 | --- 25 | references: 26 | - id: coleridge 27 | type: book 28 | author: 29 | - family: Coleridge 30 | given: Samuel Taylor 31 | editor: 32 | - family: Coburn 33 | given: Kathleen 34 | - family: Engell 35 | given: James 36 | - family: Bate 37 | given: W. Jackson 38 | issued: 39 | - year: 1983 40 | title: The collected works of Samuel Taylor Coleridge 41 | volume-title: Biographia literaria, or Biographical sketches of my literary life and opinions 42 | collection-title: Bollingen series 43 | collection-number: '75' 44 | publisher: Routledge and Kegan Paul 45 | publisher-place: London 46 | volume: '7.2' 47 | annote: One (partial) volume of a multivolume book. This is a book entry with a volume and a part field which explicitly refers to the second (physical) part of the seventh (logical) volume. Also note the series and number fields 48 | language: en-GB 49 | ... 50 | -------------------------------------------------------------------------------- /tests/biblio2yaml/book-title-maintitle-series.biblatex: -------------------------------------------------------------------------------- 1 | @book{item1, 2 | Author = {Author, Al}, 3 | Date = {2013}, 4 | Hyphenation = {french}, 5 | Location = {Location}, 6 | Mainsubtitle = {Mainsubtitle}, 7 | Maintitle = {Maintitle}, 8 | Maintitleaddon = {Maintitleaddon}, 9 | Number = {3}, 10 | Publisher = {Publisher}, 11 | Series = {Series}, 12 | Subtitle = {Subtitle}, 13 | Title = {Title of the Book}, 14 | Titleaddon = {Titleaddon}, 15 | } 16 | 17 | --- 18 | references: 19 | - id: item1 20 | type: book 21 | author: 22 | - family: Author 23 | given: Al 24 | issued: 25 | - year: 2013 26 | title: 'Maintitle: Mainsubtitle. Maintitleaddon' 27 | volume-title: 'Title of the Book: Subtitle. Titleaddon' 28 | collection-title: Series 29 | collection-number: '3' 30 | publisher: Publisher 31 | publisher-place: Location 32 | language: fr-FR 33 | ... 34 | -------------------------------------------------------------------------------- /tests/biblio2yaml/book-vazques-de-parga.biblatex: -------------------------------------------------------------------------------- 1 | @comment{excerpted from http://mirrors.ctan.org/macros/latex/contrib/biblatex/doc/examples/biblatex-examples.bib 2 | 3 | Note handling of Author = {Vázques{ de }Parga, Luis} 4 | 5 | } 6 | 7 | @book{vazques-de-parga, 8 | Annotation = {A multivolume book cited as a whole. This is a book entry with volumes, note, sorttitle, and indextitle fields}, 9 | Author = {Vázques{ de }Parga, Luis and Lacarra, José María and Uría Ríu, Juan}, 10 | Date = 1993, 11 | Hyphenation = {spanish}, 12 | Indextitle = {Peregrinaciones a Santiago de Compostela, Las}, 13 | Location = {Pamplona}, 14 | Note = {Ed. facs. de la realizada en 1948--49}, 15 | Publisher = {Iberdrola}, 16 | Shorttitle = {Peregrinaciones}, 17 | Sorttitle = {Peregrinaciones a Santiago de Compostela}, 18 | Title = {Las Peregrinaciones a Santiago de Compostela}, 19 | Volumes = 3} 20 | --- 21 | references: 22 | - id: vazques-de-parga 23 | type: book 24 | author: 25 | - family: Vázques de Parga 26 | given: Luis 27 | - family: Lacarra 28 | given: José María 29 | - family: Uría Ríu 30 | given: Juan 31 | issued: 32 | - year: 1993 33 | title: Las Peregrinaciones a Santiago de Compostela 34 | title-short: Peregrinaciones 35 | publisher: Iberdrola 36 | publisher-place: Pamplona 37 | number-of-volumes: '3' 38 | note: Ed. facs. de la realizada en 1948–49 39 | annote: A multivolume book cited as a whole. This is a book entry with volumes, note, sorttitle, and indextitle fields 40 | language: es-ES 41 | ... 42 | -------------------------------------------------------------------------------- /tests/biblio2yaml/companion.biblatex: -------------------------------------------------------------------------------- 1 | @comment{ 2 | 3 | Adapted from biblatex-example.bib 4 | 5 | 6 | Formatted with pandoc and chicago-author-date.csl, 2013-10-23: 7 | 8 | (Goossens, Mittelbach, and Samarin 1994) 9 | 10 | Goossens, Michel, Frank Mittelbach, and Alexander Samarin. 1994. *The 11 | LaTeX Companion*. 1st ed. Reading, Mass.: Addison-Wesley. 12 | 13 | 14 | Formatted with pandoc and apa.csl, 2013-10-23: 15 | 16 | (Goossens, Mittelbach, & Samarin, 1994) 17 | 18 | Goossens, M., Mittelbach, F., & Samarin, A. (1994). *The LaTeX 19 | companion* (1st ed.). Reading, Mass.: Addison-Wesley. 20 | 21 | 22 | } 23 | 24 | @Book{companion, 25 | author = {Goossens, Michel and Mittelbach, Frank and Samarin, Alexander}, 26 | title = {The {LaTeX} Companion}, 27 | date = 1994, 28 | edition = 1, 29 | publisher = {Addison-Wesley}, 30 | location = {Reading, Mass.}, 31 | pagetotal = 528, 32 | hyphenation = {american}, 33 | sorttitle = {LaTeX Companion}, 34 | indextitle = {LaTeX Companion, The}, 35 | shorttitle = {LaTeX Companion}, 36 | annotation = {A book with three authors. Note the formatting of the author 37 | list. By default, only the first name is reversed in the 38 | bibliography}, 39 | } 40 | 41 | --- 42 | references: 43 | - id: companion 44 | type: book 45 | author: 46 | - family: Goossens 47 | given: Michel 48 | - family: Mittelbach 49 | given: Frank 50 | - family: Samarin 51 | given: Alexander 52 | issued: 53 | - year: 1994 54 | title: The LaTeX companion 55 | title-short: LaTeX companion 56 | publisher: Addison-Wesley 57 | publisher-place: Reading, Mass. 58 | number-of-pages: '528' 59 | edition: '1' 60 | annote: A book with three authors. Note the formatting of the author list. By default, only the first name is reversed in the bibliography 61 | language: en-US 62 | ... 63 | -------------------------------------------------------------------------------- /tests/biblio2yaml/cotton.biblatex: -------------------------------------------------------------------------------- 1 | @comment{ 2 | 3 | Adapted from biblatex-example.bib 4 | 5 | 6 | Formatted with pandoc and chicago-author-date.csl, 2013-10-23: 7 | 8 | (Cotton et al. 1999) 9 | 10 | Cotton, Frank Albert, Geoffrey Wilkinson, Carlos A. Murillio, and 11 | Manfred Bochmann. 1999. *Advanced Inorganic Chemistry*. 6th ed. 12 | Chichester: Wiley. 13 | 14 | 15 | Formatted with pandoc and apa.csl, 2013-10-23: 16 | 17 | (Cotton, Wilkinson, Murillio, & Bochmann, 1999) 18 | 19 | Cotton, F. A., Wilkinson, G., Murillio, C. A., & Bochmann, M. (1999). 20 | *Advanced inorganic chemistry* (6th ed.). Chichester: Wiley. 21 | 22 | 23 | } 24 | 25 | @Book{cotton, 26 | author = {Cotton, Frank Albert and Wilkinson, Geoffrey and Murillio, 27 | Carlos A. and Bochmann, Manfred}, 28 | title = {Advanced inorganic chemistry}, 29 | date = 1999, 30 | edition = 6, 31 | publisher = {Wiley}, 32 | location = {Chichester}, 33 | hyphenation = {british}, 34 | annotation = {A book entry with \arabic{author} authors and an 35 | edition field. By default, long author and 36 | editor lists are automatically truncated. This is 37 | configurable}, 38 | } 39 | 40 | --- 41 | references: 42 | - id: cotton 43 | type: book 44 | author: 45 | - family: Cotton 46 | given: Frank Albert 47 | - family: Wilkinson 48 | given: Geoffrey 49 | - family: Murillio 50 | given: Carlos A. 51 | - family: Bochmann 52 | given: Manfred 53 | issued: 54 | - year: 1999 55 | title: Advanced inorganic chemistry 56 | publisher: Wiley 57 | publisher-place: Chichester 58 | edition: '6' 59 | annote: A book entry with author authors and an edition field. By default, long author and editor lists are automatically truncated. This is configurable 60 | language: en-GB 61 | ... 62 | -------------------------------------------------------------------------------- /tests/biblio2yaml/crossref-inbook-mvbook.biblatex: -------------------------------------------------------------------------------- 1 | @comment{ 2 | 3 | crossref, directly from inbook to mvbook 4 | 5 | } 6 | 7 | @inbook{inbook-1, 8 | Crossref = {mvbook-1}, 9 | Title = {Macbeth [title field of inbook-1]}, 10 | Date = {1975}, 11 | Volume = {3}, 12 | Chapter = {7}, 13 | Pages = {100-200}, 14 | } 15 | 16 | @mvbook{mvbook-1, 17 | Author = {Shakespeare}, 18 | Date = {1970/1980}, 19 | Title = {Collected Works [title field of mvbook-1]}, 20 | Location = {Location}, 21 | Publisher = {Publisher}, 22 | Volumes = {4}, 23 | } 24 | 25 | --- 26 | references: 27 | - id: inbook-1 28 | type: chapter 29 | author: 30 | - family: Shakespeare 31 | container-author: 32 | - family: Shakespeare 33 | issued: 34 | - year: 1975 35 | title: Macbeth \[title field of inbook-1\] 36 | container-title: Collected works \[title field of mvbook-1\] 37 | publisher: Publisher 38 | publisher-place: Location 39 | page: 100-200 40 | volume: '3' 41 | number-of-volumes: '4' 42 | chapter-number: '7' 43 | 44 | - id: mvbook-1 45 | type: book 46 | author: 47 | - family: Shakespeare 48 | issued: 49 | - year: 1970 50 | - year: 1980 51 | title: Collected works \[title field of mvbook-1\] 52 | publisher: Publisher 53 | publisher-place: Location 54 | number-of-volumes: '4' 55 | ... 56 | -------------------------------------------------------------------------------- /tests/biblio2yaml/edtf-date.biblatex: -------------------------------------------------------------------------------- 1 | @article{item3-3, date={1998/unknown}} 2 | @article{item3-4, date={1999/open}} 3 | @article{item3-10, date={2004-04-05T14:34:00}} 4 | @article{item5-1, date={0000}} 5 | @article{item5-2, date={-0876}} 6 | @article{item5-3, date={-0877/-0866}} 7 | @article{item5-5, date={-0343-02}} 8 | @article{item5-8, date={1723~}} 9 | @article{item5-9, date={1723?}} 10 | @article{item5-10, date={1723?~}} 11 | @article{item5-11, date={2004-22}} 12 | @article{item5-12, date={2004-24}} 13 | @article{item5-13, date={20uu}} 14 | @article{item5-14, date={y-123456789}} 15 | 16 | --- 17 | references: 18 | - id: item3-3 19 | type: article-journal 20 | issued: 21 | - year: 1998 22 | - {} 23 | 24 | - id: item3-4 25 | type: article-journal 26 | issued: 27 | - year: 1999 28 | - {} 29 | 30 | - id: item3-10 31 | type: article-journal 32 | issued: 33 | - year: 2004 34 | month: 4 35 | day: 5 36 | 37 | - id: item5-1 38 | type: article-journal 39 | issued: 40 | - year: -1 41 | 42 | - id: item5-2 43 | type: article-journal 44 | issued: 45 | - year: -877 46 | 47 | - id: item5-3 48 | type: article-journal 49 | issued: 50 | - year: -878 51 | - year: -867 52 | 53 | - id: item5-5 54 | type: article-journal 55 | issued: 56 | - year: -344 57 | month: 2 58 | 59 | - id: item5-8 60 | type: article-journal 61 | issued: 62 | - year: 1723 63 | circa: true 64 | 65 | - id: item5-9 66 | type: article-journal 67 | issued: 68 | - year: 1723 69 | 70 | - id: item5-10 71 | type: article-journal 72 | issued: 73 | - year: 1723 74 | circa: true 75 | 76 | - id: item5-11 77 | type: article-journal 78 | issued: 79 | - year: 2004 80 | season: 2 81 | 82 | - id: item5-12 83 | type: article-journal 84 | issued: 85 | - year: 2004 86 | season: 4 87 | 88 | - id: item5-13 89 | type: article-journal 90 | issued: 91 | - year: 2000 92 | - year: 2099 93 | 94 | - id: item5-14 95 | type: article-journal 96 | issued: 97 | - year: -123456790 98 | ... 99 | -------------------------------------------------------------------------------- /tests/biblio2yaml/escapedquotes.biblatex: -------------------------------------------------------------------------------- 1 | @comment{From jgm/pandoc#1568. Double quotes escaped using {"}.} 2 | 3 | @ARTICLE{Koff2009-gn, 4 | title = "Pan-Canadian evaluation of irreversible compression ratios 5 | ({"}lossy{"} compression) for development of national 6 | guidelines", 7 | author = "Koff, David and Bak, Peter and Brownrigg, Paul and 8 | Hosseinzadeh, Danoush and Khademi, April and Kiss, Alex and 9 | Lepanto, Luigi and Michalak, Tracy and Shulman, Harry and 10 | Volkening, Andrew", 11 | affiliation = "Sunnybrook Health Sciences Centre, 2075 Bayview Ave., Toronto, 12 | ON, M4N 3M5, Canada. dkoffmcmaster.ca", 13 | journal = "Journal of digital imaging", 14 | } 15 | 16 | --- 17 | references: 18 | - id: Koff2009-gn 19 | type: article-journal 20 | author: 21 | - family: Koff 22 | given: David 23 | - family: Bak 24 | given: Peter 25 | - family: Brownrigg 26 | given: Paul 27 | - family: Hosseinzadeh 28 | given: Danoush 29 | - family: Khademi 30 | given: April 31 | - family: Kiss 32 | given: Alex 33 | - family: Lepanto 34 | given: Luigi 35 | - family: Michalak 36 | given: Tracy 37 | - family: Shulman 38 | given: Harry 39 | - family: Volkening 40 | given: Andrew 41 | title: Pan-canadian evaluation of irreversible compression ratios ("lossy" compression) for development of national guidelines 42 | container-title: Journal of digital imaging 43 | ... 44 | -------------------------------------------------------------------------------- /tests/biblio2yaml/formatting.biblatex: -------------------------------------------------------------------------------- 1 | @article{item1, 2 | Title = {The Title: 3 | \textit{italics}, 4 | \textbf{bold}, 5 | \textsubscript{subscript}, 6 | \textsuperscript{superscript}, 7 | \textsc{small-caps}} 8 | } 9 | --- 10 | references: 11 | - id: item1 12 | type: article-journal 13 | title: 'The title: *Italics*, **bold**, ~subscript~, ^superscript^, small-caps' 14 | title-short: The title 15 | ... 16 | -------------------------------------------------------------------------------- /tests/biblio2yaml/gaonkar-in.biblatex: -------------------------------------------------------------------------------- 1 | @comment{ 2 | 3 | Adapted from biblatex-example.bib 4 | 5 | 6 | Formatted with pandoc and chicago-author-date.csl, 2013-10-23: 7 | 8 | (Gaonkar 2001) 9 | 10 | Gaonkar, Dilip Parameshwar. 2001. “On Alternative Modernities.” In 11 | *Alternative Modernities*, edited by Dilip Parameshwar Gaonkar, 1–23. 12 | Durham; London: Duke University Press. 13 | 14 | 15 | Formatted with pandoc and apa.csl, 2013-10-23: 16 | 17 | (Gaonkar, 2001) 18 | 19 | Gaonkar, D. P. (2001). On alternative modernities. In D. P. Gaonkar 20 | (Ed.), *Alternative modernities* (pp. 1–23). Durham; London: Duke 21 | University Press. 22 | 23 | 24 | } 25 | 26 | @InCollection{gaonkar:in, 27 | author = {Gaonkar, Dilip Parameshwar}, 28 | editor = {Gaonkar, Dilip Parameshwar}, 29 | title = {On Alternative Modernities}, 30 | date = 2001, 31 | booktitle = {Alternative Modernities}, 32 | publisher = {Duke University Press}, 33 | location = {Durham and London}, 34 | isbn = {0-822-32714-7}, 35 | pages = {1-23}, 36 | } 37 | 38 | --- 39 | references: 40 | - id: gaonkar:in 41 | type: chapter 42 | author: 43 | - family: Gaonkar 44 | given: Dilip Parameshwar 45 | editor: 46 | - family: Gaonkar 47 | given: Dilip Parameshwar 48 | issued: 49 | - year: 2001 50 | title: On alternative modernities 51 | container-title: Alternative modernities 52 | publisher: Duke University Press 53 | publisher-place: Durham; London 54 | page: 1-23 55 | ISBN: 0-822-32714-7 56 | ... 57 | -------------------------------------------------------------------------------- /tests/biblio2yaml/gaonkar.biblatex: -------------------------------------------------------------------------------- 1 | @comment{ 2 | 3 | Adapted from biblatex-example.bib 4 | 5 | 6 | Formatted with pandoc and chicago-author-date.csl, 2013-10-23: 7 | 8 | (Gaonkar 2001) 9 | 10 | Gaonkar, Dilip Parameshwar, ed. 2001. *Alternative Modernities*. Durham; 11 | London: Duke University Press. 12 | 13 | 14 | Formatted with pandoc and apa.csl, 2013-10-23: 15 | 16 | (Gaonkar, 2001) 17 | 18 | Gaonkar, D. P. (Ed.). (2001). *Alternative modernities*. Durham; London: 19 | Duke University Press. 20 | 21 | 22 | } 23 | 24 | @Collection{gaonkar, 25 | editor = {Gaonkar, Dilip Parameshwar}, 26 | title = {Alternative Modernities}, 27 | date = 2001, 28 | publisher = {Duke University Press}, 29 | location = {Durham and London}, 30 | isbn = {0-822-32714-7}, 31 | hyphenation = {american}, 32 | annotation = {This is a collection entry. Note the format of the 33 | location field in the database file as well as the 34 | isbn field}, 35 | } 36 | 37 | --- 38 | references: 39 | - id: gaonkar 40 | type: book 41 | editor: 42 | - family: Gaonkar 43 | given: Dilip Parameshwar 44 | issued: 45 | - year: 2001 46 | title: Alternative modernities 47 | publisher: Duke University Press 48 | publisher-place: Durham; London 49 | annote: This is a collection entry. Note the format of the location field in the database file as well as the isbn field 50 | ISBN: 0-822-32714-7 51 | language: en-US 52 | ... 53 | -------------------------------------------------------------------------------- /tests/biblio2yaml/gerhardt.biblatex: -------------------------------------------------------------------------------- 1 | @comment{ 2 | 3 | Adapted from biblatex-example.bib 4 | 5 | Formatted with pandoc and chicago-author-date.csl, 2013-10-23: 6 | 7 | (Gerhardt 2000) 8 | 9 | Gerhardt, Michael J. 2000. *The Federal Appointments Process: A 10 | Constitutional and Historical Analysis*. Durham; London: Duke University 11 | Press. 12 | 13 | 14 | Formatted with pandoc and apa.csl, 2013-10-23: 15 | 16 | (Gerhardt, 2000) 17 | 18 | Gerhardt, M. J. (2000). *The federal appointments process: A 19 | constitutional and historical analysis*. Durham; London: Duke University 20 | Press. 21 | 22 | 23 | } 24 | 25 | @Book{gerhardt, 26 | author = {Gerhardt, Michael J.}, 27 | title = {The Federal Appointments Process}, 28 | date = 2000, 29 | publisher = {Duke University Press}, 30 | location = {Durham and London}, 31 | hyphenation = {american}, 32 | sorttitle = {Federal Appointments Process}, 33 | indextitle = {Federal Appointments Process, The}, 34 | subtitle = {A Constitutional and Historical Analysis}, 35 | shorttitle = {Federal Appointments Process}, 36 | annotation = {This is a book entry. Note the format of the 37 | location field as well as the sorttitle and 38 | indextitle fields}, 39 | } 40 | 41 | --- 42 | references: 43 | - id: gerhardt 44 | type: book 45 | author: 46 | - family: Gerhardt 47 | given: Michael J. 48 | issued: 49 | - year: 2000 50 | title: 'The federal appointments process: A constitutional and historical analysis' 51 | title-short: Federal appointments process 52 | publisher: Duke University Press 53 | publisher-place: Durham; London 54 | annote: This is a book entry. Note the format of the location field as well as the sorttitle and indextitle fields 55 | language: en-US 56 | ... 57 | -------------------------------------------------------------------------------- /tests/biblio2yaml/gillies.biblatex: -------------------------------------------------------------------------------- 1 | @comment{ 2 | 3 | Adapted from biblatex-example.bib 4 | 5 | 6 | Formatted with pandoc and chicago-author-date.csl, 2013-10-23: 7 | 8 | (Gillies 1933) 9 | 10 | Gillies, Alexander. 1933. “Herder and the Preparation of Goethe’s Idea 11 | of World Literature.” *Publications of the English Goethe Society, New 12 | Series* 9: 46–67. 13 | 14 | 15 | Formatted with pandoc and apa.csl, 2013-10-23: 16 | 17 | (Gillies, 1933) 18 | 19 | Gillies, A. (1933). Herder and the preparation of Goethe’s idea of world 20 | literature. *Publications of the English Goethe Society, new series*, 21 | *9*, 46–67. 22 | 23 | 24 | NOTES: 25 | 26 | - biblio2yaml 27 | - "new series" is not pretty, but it’s the best we can do at the moment, given the limitations of CSL. 28 | 29 | } 30 | 31 | @Article{gillies, 32 | author = {Gillies, Alexander}, 33 | title = {Herder and the Preparation of {Goethe}'s Idea of World 34 | Literature}, 35 | journaltitle = {Publications of the English Goethe Society}, 36 | date = 1933, 37 | series = {newseries}, 38 | volume = 9, 39 | pages = {46-67}, 40 | hyphenation = {british}, 41 | annotation = {An article entry with a series and a 42 | volume field. Note that format of the series 43 | field in the database file}, 44 | } 45 | 46 | --- 47 | references: 48 | - id: gillies 49 | type: article-journal 50 | author: 51 | - family: Gillies 52 | given: Alexander 53 | issued: 54 | - year: 1933 55 | title: Herder and the preparation of Goethe’s idea of world literature 56 | container-title: Publications of the English Goethe Society 57 | collection-title: new series 58 | page: 46-67 59 | volume: '9' 60 | annote: An article entry with a series and a volume field. Note that format of the series field in the database file 61 | language: en-GB 62 | ... 63 | -------------------------------------------------------------------------------- /tests/biblio2yaml/glashow.biblatex: -------------------------------------------------------------------------------- 1 | @comment{ 2 | 3 | Adapted from biblatex-example.bib 4 | 5 | Formatted with pandoc and chicago-author-date.csl, 2013-10-23: 6 | 7 | (Glashow 1961) 8 | 9 | Glashow, Sheldon. 1961. “Partial Symmetries of Weak Interactions.” 10 | *Nucl. Phys.* 22: 579–588. 11 | 12 | 13 | Formatted with pandoc and apa.csl, 2013-10-23: 14 | 15 | (Glashow, 1961) 16 | 17 | Glashow, S. (1961). Partial symmetries of weak interactions. 18 | *Nucl. Phys.*, *22*, 579–588. 19 | 20 | 21 | } 22 | 23 | @Article{glashow, 24 | author = {Glashow, Sheldon}, 25 | title = {Partial Symmetries of Weak Interactions}, 26 | journaltitle = {Nucl.~Phys.}, 27 | date = 1961, 28 | volume = 22, 29 | pages = {579-588}, 30 | } 31 | 32 | --- 33 | references: 34 | - id: glashow 35 | type: article-journal 36 | author: 37 | - family: Glashow 38 | given: Sheldon 39 | issued: 40 | - year: 1961 41 | title: Partial symmetries of weak interactions 42 | container-title: Nucl. Phys. 43 | page: 579-588 44 | volume: '22' 45 | ... 46 | -------------------------------------------------------------------------------- /tests/biblio2yaml/gonzalez.biblatex: -------------------------------------------------------------------------------- 1 | @comment{ 2 | 3 | Adapted from biblatex-example.bib 4 | 5 | Formatted with pandoc and chicago-author-date.csl, 2013-10-23: 6 | 7 | (Gonzalez 2001) 8 | 9 | Gonzalez, Ray. 2001. *The Ghost of John Wayne and Other Stories*. 10 | Tucson: The University of Arizona Press. 11 | 12 | 13 | Formatted with pandoc and apa.csl, 2013-10-23: 14 | 15 | (Gonzalez, 2001) 16 | 17 | Gonzalez, R. (2001). *The ghost of John Wayne and other stories*. 18 | Tucson: The University of Arizona Press. 19 | 20 | } 21 | 22 | @Book{gonzalez, 23 | author = {Gonzalez, Ray}, 24 | title = {The Ghost of {John Wayne} and Other Stories}, 25 | date = 2001, 26 | publisher = {The University of Arizona Press}, 27 | location = {Tucson}, 28 | isbn = {0-816-52066-6}, 29 | hyphenation = {american}, 30 | sorttitle = {Ghost of John Wayne and Other Stories}, 31 | indextitle = {Ghost of {John Wayne} and Other Stories, The}, 32 | shorttitle = {Ghost of {John Wayne}}, 33 | annotation = {A collection of short stories. This is a book entry. 34 | Note the sorttitle and indextitle fields in 35 | the database file. There's also an isbn field}, 36 | } 37 | 38 | --- 39 | references: 40 | - id: gonzalez 41 | type: book 42 | author: 43 | - family: Gonzalez 44 | given: Ray 45 | issued: 46 | - year: 2001 47 | title: The ghost of John Wayne and other stories 48 | title-short: Ghost of John Wayne 49 | publisher: The University of Arizona Press 50 | publisher-place: Tucson 51 | annote: A collection of short stories. This is a book entry. Note the sorttitle and indextitle fields in the database file. There’s also an isbn field 52 | ISBN: 0-816-52066-6 53 | language: en-US 54 | ... 55 | -------------------------------------------------------------------------------- /tests/biblio2yaml/hammond.biblatex: -------------------------------------------------------------------------------- 1 | @comment{ 2 | 3 | Adapted from biblatex-example.bib 4 | 5 | Formatted with pandoc and chicago-author-date.csl, 2013-10-23: 6 | 7 | (Hammond 1997) 8 | 9 | Hammond, Christopher. 1997. *The Basics of Crystallography and 10 | Diffraction*. Oxford: International Union of Crystallography; Oxford 11 | University Press. 12 | 13 | 14 | Formatted with pandoc and apa.csl, 2013-10-23: 15 | 16 | (Hammond, 1997) 17 | 18 | Hammond, C. (1997). *The basics of crystallography and diffraction*. 19 | Oxford: International Union of Crystallography; Oxford University Press. 20 | 21 | 22 | } 23 | 24 | @Book{hammond, 25 | author = {Hammond, Christopher}, 26 | title = {The basics of crystallography and diffraction}, 27 | date = 1997, 28 | publisher = {International Union of Crystallography and Oxford University 29 | Press}, 30 | location = {Oxford}, 31 | hyphenation = {british}, 32 | sorttitle = {Basics of crystallography and diffraction}, 33 | indextitle = {Basics of crystallography and diffraction, The}, 34 | shorttitle = {Crystallography and diffraction}, 35 | annotation = {A book entry. Note the sorttitle and 36 | indextitle fields as well as the format of the 37 | publisher field}, 38 | } 39 | 40 | --- 41 | references: 42 | - id: hammond 43 | type: book 44 | author: 45 | - family: Hammond 46 | given: Christopher 47 | issued: 48 | - year: 1997 49 | title: The basics of crystallography and diffraction 50 | title-short: Crystallography and diffraction 51 | publisher: International Union of Crystallography; Oxford University Press 52 | publisher-place: Oxford 53 | annote: A book entry. Note the sorttitle and indextitle fields as well as the format of the publisher field 54 | language: en-GB 55 | ... 56 | -------------------------------------------------------------------------------- /tests/biblio2yaml/herrmann.biblatex: -------------------------------------------------------------------------------- 1 | @comment{ 2 | 3 | Adapted from biblatex-example.bib 4 | 5 | Formatted with pandoc and chicago-author-date.csl, 2013-10-23: 6 | 7 | (Herrmann et al. 2006) 8 | 9 | Herrmann, Wolfgang A., Karl Öfele, Sabine K. Schneider, Eberhardt 10 | Herdtweck, and Stephan D. Hoffmann. 2006. “A Carbocyclic Carbene as an 11 | Efficient Catalyst Ligand for C–C Coupling Reactions.” *Angew. Chem. 12 | Int. Ed.* 45 (23): 3859–3862. 13 | 14 | 15 | Formatted with pandoc and apa.csl, 2013-10-23: 16 | 17 | (Herrmann, Öfele, Schneider, Herdtweck, & Hoffmann, 2006) 18 | 19 | Herrmann, W. A., Öfele, K., Schneider, S. K., Herdtweck, E., & Hoffmann, 20 | S. D. (2006). A carbocyclic carbene as an efficient catalyst ligand for 21 | C–C coupling reactions. *Angew. Chem. Int. Ed.*, *45*(23), 3859–3862. 22 | 23 | 24 | } 25 | 26 | @string{ anch-ie = {Angew.~Chem. Int.~Ed.} } 27 | 28 | @Article{herrmann, 29 | author = {Herrmann, Wolfgang A. and {\"O}fele, Karl and Schneider, 30 | Sabine K. and Herdtweck, Eberhardt and Hoffmann, Stephan D.}, 31 | title = {A carbocyclic carbene as an efficient catalyst ligand for {C--C} 32 | coupling reactions}, 33 | journaltitle = anch-ie, 34 | date = 2006, 35 | volume = 45, 36 | number = 23, 37 | pages = {3859-3862}, 38 | indextitle = {Carbocyclic carbene as an efficient catalyst, A}, 39 | } 40 | 41 | --- 42 | references: 43 | - id: herrmann 44 | type: article-journal 45 | author: 46 | - family: Herrmann 47 | given: Wolfgang A. 48 | - family: Öfele 49 | given: Karl 50 | - family: Schneider 51 | given: Sabine K. 52 | - family: Herdtweck 53 | given: Eberhardt 54 | - family: Hoffmann 55 | given: Stephan D. 56 | issued: 57 | - year: 2006 58 | title: A carbocyclic carbene as an efficient catalyst ligand for C–C coupling reactions 59 | container-title: Angew. Chem. Int. Ed. 60 | page: 3859-3862 61 | volume: '45' 62 | issue: '23' 63 | ... 64 | -------------------------------------------------------------------------------- /tests/biblio2yaml/iliad.biblatex: -------------------------------------------------------------------------------- 1 | @comment{ 2 | 3 | Adapted from biblatex-example.bib 4 | 5 | Formatted with pandoc and chicago-author-date.csl, 2013-10-23: 6 | 7 | (Homer 2004) 8 | 9 | Homer. 2004. *Die Ilias*. Translated by Wolfgang Schadewaldt. 3rd ed. 10 | Düsseldorf; Zürich: Artemis & Winkler. 11 | 12 | 13 | Formatted with pandoc and apa.csl, 2013-10-23: 14 | 15 | (Homer, 2004) 16 | 17 | Homer. (2004). *Die Ilias*. (W. Schadewaldt, trans.) (3rd ed.). 18 | Düsseldorf; Zürich: Artemis & Winkler. 19 | 20 | } 21 | 22 | @Book{iliad, 23 | author = {Homer}, 24 | title = {Die Ilias}, 25 | date = 2004, 26 | translator = {Schadewaldt, Wolfgang}, 27 | introduction = {Latacz, Joachim}, 28 | edition = 3, 29 | publisher = {Artemis \& Winkler}, 30 | location = {D{\"u}sseldorf and Z{\"u}rich}, 31 | hyphenation = {german}, 32 | sorttitle = {Ilias}, 33 | indextitle = {Ilias, Die}, 34 | shorttitle = {Ilias}, 35 | annotation = {A German translation of the \emph{Iliad}. Note the 36 | translator and introduction fields and the 37 | format of the location field in the database 38 | file. Also note the sorttitle and indextitle 39 | fields}, 40 | } 41 | 42 | --- 43 | references: 44 | - id: iliad 45 | type: book 46 | author: 47 | - family: Homer 48 | translator: 49 | - family: Schadewaldt 50 | given: Wolfgang 51 | issued: 52 | - year: 2004 53 | title: Die Ilias 54 | title-short: Ilias 55 | publisher: Artemis & Winkler 56 | publisher-place: Düsseldorf; Zürich 57 | edition: '3' 58 | annote: A German translation of the *Iliad*. Note the translator and introduction fields and the format of the location field in the database file. Also note the sorttitle and indextitle fields 59 | language: de-DE 60 | ... 61 | -------------------------------------------------------------------------------- /tests/biblio2yaml/inbook-title-booktitle-maintitle-series-2.biblatex: -------------------------------------------------------------------------------- 1 | @inbook{item1, 2 | Author = {Author, Al}, 3 | Bookauthor = {Bookauthor, Bob}, 4 | Booksubtitle = {Booksubtitle}, 5 | Booktitle = {Booktitle}, 6 | Booktitleaddon = {Booktitleaddon}, 7 | Date = {2011}, 8 | Hyphenation = {french}, 9 | Location = {Location}, 10 | Mainsubtitle = {Mainsubtitle}, 11 | Maintitle = {Maintitle}, 12 | Maintitleaddon = {Maintitleaddon}, 13 | Number = {3}, 14 | Publisher = {Publisher}, 15 | Series = {Series}, 16 | Subtitle = {Subtitle}, 17 | Title = {Title of the ``inbook'' Entry}, 18 | Titleaddon = {Titleaddon}, 19 | Volume = {4}} 20 | 21 | --- 22 | references: 23 | - id: item1 24 | type: chapter 25 | author: 26 | - family: Author 27 | given: Al 28 | container-author: 29 | - family: Bookauthor 30 | given: Bob 31 | issued: 32 | - year: 2011 33 | title: 'Title of the “inbook” Entry: Subtitle. Titleaddon' 34 | container-title: 'Maintitle: Mainsubtitle. Maintitleaddon' 35 | volume-title: 'Booktitle: Booksubtitle. Booktitleaddon' 36 | collection-title: Series 37 | collection-number: '3' 38 | publisher: Publisher 39 | publisher-place: Location 40 | volume: '4' 41 | language: fr-FR 42 | ... 43 | -------------------------------------------------------------------------------- /tests/biblio2yaml/inbook-title-booktitle-maintitle-series.biblatex: -------------------------------------------------------------------------------- 1 | @inbook{item1, 2 | Author = {Author, Al}, 3 | Booksubtitle = {Booksubtitle}, 4 | Booktitle = {Booktitle}, 5 | Booktitleaddon = {Booktitleaddon}, 6 | Date = {2011}, 7 | Hyphenation = {french}, 8 | Location = {Location}, 9 | Mainsubtitle = {Mainsubtitle}, 10 | Maintitle = {Maintitle}, 11 | Maintitleaddon = {Maintitleaddon}, 12 | Number = {3}, 13 | Publisher = {Publisher}, 14 | Series = {Series}, 15 | Subtitle = {Subtitle}, 16 | Title = {Title of the ``inbook'' Entry}, 17 | Titleaddon = {Titleaddon}, 18 | Volume = {4}} 19 | 20 | --- 21 | references: 22 | - id: item1 23 | type: chapter 24 | author: 25 | - family: Author 26 | given: Al 27 | issued: 28 | - year: 2011 29 | title: 'Title of the “inbook” Entry: Subtitle. Titleaddon' 30 | container-title: 'Maintitle: Mainsubtitle. Maintitleaddon' 31 | volume-title: 'Booktitle: Booksubtitle. Booktitleaddon' 32 | collection-title: Series 33 | collection-number: '3' 34 | publisher: Publisher 35 | publisher-place: Location 36 | volume: '4' 37 | language: fr-FR 38 | ... 39 | -------------------------------------------------------------------------------- /tests/biblio2yaml/issue288.biblatex: -------------------------------------------------------------------------------- 1 | @thesis{Leavitt_2016, 2 | location = {{Los Angeles, CA}}, 3 | title = {Upvoting the News: {{Breaking}} News Aggregation, Crowd Collaboration, 4 | and Algorithm-Driven Attention on Reddit.Com}, 5 | timestamp = {2017-04-06T14:13:22Z}, 6 | langid = {english}, 7 | institution = {{University of Southern California}}, 8 | type = {Dissertation}, 9 | author = {Leavitt, Alex}, 10 | date = {2016-08}, 11 | } 12 | 13 | --- 14 | references: 15 | - id: Leavitt_2016 16 | type: thesis 17 | author: 18 | - family: Leavitt 19 | given: Alex 20 | issued: 21 | - year: 2016 22 | month: 8 23 | title: 'Upvoting the news: Breaking news aggregation, crowd collaboration, and algorithm-driven attention on reddit.com' 24 | title-short: Upvoting the news 25 | publisher: University of Southern California 26 | publisher-place: Los Angeles, CA 27 | genre: Dissertation 28 | language: en-US 29 | ... 30 | -------------------------------------------------------------------------------- /tests/biblio2yaml/jcg.biblatex: -------------------------------------------------------------------------------- 1 | @comment{ 2 | 3 | Adapted from biblatex-example.bib 4 | 5 | Formatted with pandoc and chicago-author-date.csl, 2013-10-23: 6 | 7 | (“Semantic 3D Media and Content” 2011) 8 | 9 | “Semantic 3D Media and Content.” 2011. *Computers and Graphics* 35 (4). 10 | 11 | 12 | Formatted with pandoc and apa.csl, 2013-10-23: 13 | 14 | (“Semantic 3D media and content,” 2011) 15 | 16 | Semantic 3D media and content. (2011). *Computers and Graphics*, 17 | *35*(4). 18 | 19 | 20 | NOTES: 21 | - output looks OK even if indistinguishable from article without page numbers 22 | 23 | } 24 | 25 | @Periodical{jcg, 26 | title = {Computers and Graphics}, 27 | year = 2011, 28 | issuetitle = {Semantic {3D} Media and Content}, 29 | volume = 35, 30 | number = 4, 31 | issn = {0097-8493}, 32 | annotation = {This is a periodical entry with an issn 33 | field.}, 34 | } 35 | 36 | --- 37 | references: 38 | - id: jcg 39 | type: article-journal 40 | issued: 41 | - year: 2011 42 | title: Semantic 3D media and content 43 | container-title: Computers and Graphics 44 | volume: '35' 45 | issue: '4' 46 | annote: This is a periodical entry with an issn field. 47 | ISSN: 0097-8493 48 | ... 49 | -------------------------------------------------------------------------------- /tests/biblio2yaml/knuth-ct-b.biblatex: -------------------------------------------------------------------------------- 1 | @comment{ 2 | 3 | Adapted from biblatex-example.bib 4 | 5 | 6 | Formatted with pandoc and chicago-author-date.csl, 2015-03-08: 7 | 8 | (Knuth 1986) 9 | 10 | Knuth, Donald E. 1986. *Computers & Typesetting*. Vol. B. Reading, 11 | Mass.: Addison-Wesley. 12 | 13 | 14 | Formatted with pandoc and apa.csl, 2015-03-08: 15 | 16 | (Knuth, 1986) 17 | 18 | Knuth, D. E. (1986). *Computers & typesetting* (Vol. B). Reading, Mass.: 19 | Addison-Wesley. 20 | 21 | 22 | NOTES: 23 | 24 | - volume-title currently not implemented by chicago-author-date.csl and apa.csl. 25 | 26 | } 27 | 28 | @Book{knuth:ct:b, 29 | author = {Knuth, Donald E.}, 30 | title = {\TeX: {T}he Program}, 31 | date = 1986, 32 | maintitle = {Computers \& Typesetting}, 33 | volume = {B}, 34 | publisher = {Addison-Wesley}, 35 | location = {Reading, Mass.}, 36 | hyphenation = {american}, 37 | sortyear = {1986-1}, 38 | sorttitle = {Computers & Typesetting B}, 39 | indexsorttitle= {TeX: The Program}, 40 | shorttitle = {\TeX}, 41 | annotation = {The second volume of a five-volume book. Note the 42 | sorttitle and sortyear fields. Also note the 43 | indexsorttitle field}, 44 | } 45 | 46 | --- 47 | references: 48 | - id: knuth:ct:b 49 | type: book 50 | author: 51 | - family: Knuth 52 | given: Donald E. 53 | issued: 54 | - year: 1986 55 | title: Computers & typesetting 56 | title-short: TeX 57 | volume-title: 'TeX: The program' 58 | publisher: Addison-Wesley 59 | publisher-place: Reading, Mass. 60 | volume: B 61 | annote: The second volume of a five-volume book. Note the sorttitle and sortyear fields. Also note the indexsorttitle field 62 | language: en-US 63 | ... 64 | -------------------------------------------------------------------------------- /tests/biblio2yaml/knuth-ct-c.biblatex: -------------------------------------------------------------------------------- 1 | @comment{ 2 | 3 | Adapted from biblatex-example.bib 4 | 5 | 6 | Formatted with pandoc and chicago-author-date.csl, 2015-03-08: 7 | 8 | (Knuth 1986) 9 | 10 | Knuth, Donald E. 1986. *Computers & Typesetting*. Vol. C. Reading, 11 | Mass.: Addison-Wesley. 12 | 13 | 14 | Formatted with pandoc and apa.csl, 2015-03-08: 15 | 16 | (Knuth, 1986) 17 | 18 | Knuth, D. E. (1986). *Computers & typesetting* (Vol. C). Reading, Mass.: 19 | Addison-Wesley. 20 | 21 | 22 | NOTES: 23 | 24 | - volume-title currently not implemented by chicago-author-date.csl and apa.csl. 25 | 26 | } 27 | 28 | @Book{knuth:ct:c, 29 | author = {Knuth, Donald E.}, 30 | title = {The {METAFONTbook}}, 31 | date = 1986, 32 | maintitle = {Computers \& Typesetting}, 33 | volume = {C}, 34 | publisher = {Addison-Wesley}, 35 | location = {Reading, Mass.}, 36 | hyphenation = {american}, 37 | sortyear = {1986-2}, 38 | sorttitle = {Computers & Typesetting C}, 39 | indextitle = {METAFONTbook, The}, 40 | shorttitle = {{METAFONTbook}}, 41 | annotation = {The third volume of a five-volume book. Note the 42 | sorttitle and sortyear fields as well as the 43 | indextitle field}, 44 | } 45 | 46 | --- 47 | references: 48 | - id: knuth:ct:c 49 | type: book 50 | author: 51 | - family: Knuth 52 | given: Donald E. 53 | issued: 54 | - year: 1986 55 | title: Computers & typesetting 56 | volume-title: The METAFONTbook 57 | publisher: Addison-Wesley 58 | publisher-place: Reading, Mass. 59 | volume: C 60 | annote: The third volume of a five-volume book. Note the sorttitle and sortyear fields as well as the indextitle field 61 | language: en-US 62 | ... 63 | -------------------------------------------------------------------------------- /tests/biblio2yaml/knuth-ct-d.biblatex: -------------------------------------------------------------------------------- 1 | @comment{ 2 | 3 | Adapted from biblatex-example.bib 4 | 5 | 6 | Formatted with pandoc and chicago-author-date.csl, 2015-03-08: 7 | 8 | (Knuth 1986) 9 | 10 | Knuth, Donald E. 1986. *Computers & Typesetting*. Vol. D. Reading, 11 | Mass.: Addison-Wesley. 12 | 13 | 14 | Formatted with pandoc and apa.csl, 2015-03-08: 15 | 16 | (Knuth, 1986) 17 | 18 | Knuth, D. E. (1986). *Computers & typesetting* (Vol. D). Reading, Mass.: 19 | Addison-Wesley. 20 | 21 | 22 | NOTES: 23 | 24 | - biblio2yaml 25 | - Should letters following a colon, such as the "T" in "{{METAFONT}: {T}he Program}" be protected by default? -- I'm not sure ... 26 | 27 | - volume-title currently not implemented by chicago-author-date.csl and apa.csl. 28 | 29 | } 30 | 31 | @Book{knuth:ct:d, 32 | author = {Knuth, Donald E.}, 33 | title = {{METAFONT}: {T}he Program}, 34 | date = 1986, 35 | maintitle = {Computers \& Typesetting}, 36 | volume = {D}, 37 | publisher = {Addison-Wesley}, 38 | location = {Reading, Mass.}, 39 | hyphenation = {american}, 40 | sortyear = {1986-3}, 41 | sorttitle = {Computers & Typesetting D}, 42 | shorttitle = {{METAFONT}}, 43 | annotation = {The fourth volume of a five-volume book. Note the 44 | sorttitle and sortyear fields}, 45 | } 46 | 47 | --- 48 | references: 49 | - id: knuth:ct:d 50 | type: book 51 | author: 52 | - family: Knuth 53 | given: Donald E. 54 | issued: 55 | - year: 1986 56 | title: Computers & typesetting 57 | title-short: METAFONT 58 | volume-title: 'METAFONT: The program' 59 | publisher: Addison-Wesley 60 | publisher-place: Reading, Mass. 61 | volume: D 62 | annote: The fourth volume of a five-volume book. Note the sorttitle and sortyear fields 63 | language: en-US 64 | ... 65 | -------------------------------------------------------------------------------- /tests/biblio2yaml/knuth-ct-e.biblatex: -------------------------------------------------------------------------------- 1 | @comment{ 2 | 3 | Adapted from biblatex-example.bib 4 | 5 | 6 | Formatted with pandoc and chicago-author-date.csl, 2015-03-08: 7 | 8 | (Knuth 1986) 9 | 10 | Knuth, Donald E. 1986. *Computers & Typesetting*. Vol. E. Reading, 11 | Mass.: Addison-Wesley. 12 | 13 | 14 | Formatted with pandoc and apa.csl, 2015-03-08: 15 | 16 | (Knuth, 1986) 17 | 18 | Knuth, D. E. (1986). *Computers & typesetting* (Vol. E). Reading, Mass.: 19 | Addison-Wesley. 20 | 21 | 22 | NOTES: 23 | 24 | - volume-title currently not implemented by chicago-author-date.csl and apa.csl. 25 | 26 | } 27 | 28 | @Book{knuth:ct:e, 29 | author = {Knuth, Donald E.}, 30 | title = {Computer Modern Typefaces}, 31 | date = 1986, 32 | maintitle = {Computers \& Typesetting}, 33 | volume = {E}, 34 | publisher = {Addison-Wesley}, 35 | location = {Reading, Mass.}, 36 | hyphenation = {american}, 37 | sortyear = {1986-4}, 38 | sorttitle = {Computers & Typesetting E}, 39 | annotation = {The fifth volume of a five-volume book. Note the 40 | sorttitle and sortyear fields}, 41 | } 42 | 43 | --- 44 | references: 45 | - id: knuth:ct:e 46 | type: book 47 | author: 48 | - family: Knuth 49 | given: Donald E. 50 | issued: 51 | - year: 1986 52 | title: Computers & typesetting 53 | volume-title: Computer modern typefaces 54 | publisher: Addison-Wesley 55 | publisher-place: Reading, Mass. 56 | volume: E 57 | annote: The fifth volume of a five-volume book. Note the sorttitle and sortyear fields 58 | language: en-US 59 | ... 60 | -------------------------------------------------------------------------------- /tests/biblio2yaml/knuth-ct-related.biblatex: -------------------------------------------------------------------------------- 1 | @comment{ 2 | 3 | Adapted from biblatex-example.bib 4 | 5 | 6 | Formatted with pandoc and chicago-author-date.csl, 2013-10-23: 7 | 8 | (Knuth 1984–1986) 9 | 10 | Knuth, Donald E. 1984–1986. *Computers & Typesetting*. 5. Reading, 11 | Mass.: Addison-Wesley. 12 | 13 | 14 | Formatted with pandoc and apa.csl, 2013-10-23: 15 | 16 | (Knuth, 1984–1986) 17 | 18 | Knuth, D. E. (1984–1986). *Computers & typesetting* (1-5). Reading, 19 | Mass.: Addison-Wesley. 20 | 21 | 22 | NOTES: 23 | 24 | - biblio2yaml 25 | - related = {...}, relatedtype = {multivolume}, -- no counterpart in CSL 26 | 27 | - citeproc 28 | - term "vols." missing 29 | 30 | } 31 | 32 | @Book{knuth:ct:related, 33 | author = {Knuth, Donald E.}, 34 | title = {Computers \& Typesetting}, 35 | date = {1984/1986}, 36 | volumes = 5, 37 | publisher = {Addison-Wesley}, 38 | location = {Reading, Mass.}, 39 | hyphenation = {american}, 40 | sortyear = {1984-0}, 41 | sorttitle = {Computers & Typesetting}, 42 | indexsorttitle= {Computers & Typesetting}, 43 | related = {knuth:ct:a,knuth:ct:b,knuth:ct:c,knuth:ct:d,knuth:ct:e}, 44 | relatedtype = {multivolume}, 45 | annotation = {A five-volume book cited as a whole and related to its 46 | individual volumes. Note the related and 47 | relatedtype fields}, 48 | } 49 | 50 | --- 51 | references: 52 | - id: knuth:ct:related 53 | type: book 54 | author: 55 | - family: Knuth 56 | given: Donald E. 57 | issued: 58 | - year: 1984 59 | - year: 1986 60 | title: Computers & typesetting 61 | publisher: Addison-Wesley 62 | publisher-place: Reading, Mass. 63 | number-of-volumes: '5' 64 | annote: A five-volume book cited as a whole and related to its individual volumes. Note the related and relatedtype fields 65 | language: en-US 66 | ... 67 | -------------------------------------------------------------------------------- /tests/biblio2yaml/knuth-ct.biblatex: -------------------------------------------------------------------------------- 1 | @comment{ 2 | 3 | Adapted from biblatex-example.bib 4 | 5 | 6 | Formatted with pandoc and chicago-author-date.csl, 2013-10-23: 7 | 8 | (Knuth 1984–1986) 9 | 10 | Knuth, Donald E. 1984–1986. *Computers & Typesetting*. 5. Reading, 11 | Mass.: Addison-Wesley. 12 | 13 | 14 | Formatted with pandoc and apa.csl, 2013-10-23: 15 | 16 | (Knuth, 1984–1986) 17 | 18 | Knuth, D. E. (1984–1986). *Computers & typesetting* (1-5). Reading, 19 | Mass.: Addison-Wesley. 20 | 21 | 22 | NOTES: 23 | 24 | - citeproc 25 | - term "vols." is missing 26 | 27 | } 28 | 29 | @Book{knuth:ct, 30 | author = {Knuth, Donald E.}, 31 | title = {Computers \& Typesetting}, 32 | date = {1984/1986}, 33 | volumes = 5, 34 | publisher = {Addison-Wesley}, 35 | location = {Reading, Mass.}, 36 | hyphenation = {american}, 37 | sortyear = {1984-0}, 38 | sorttitle = {Computers & Typesetting}, 39 | indexsorttitle= {Computers & Typesetting}, 40 | annotation = {A five-volume book cited as a whole. This is a book 41 | entry, note the volumes field}, 42 | } 43 | 44 | --- 45 | references: 46 | - id: knuth:ct 47 | type: book 48 | author: 49 | - family: Knuth 50 | given: Donald E. 51 | issued: 52 | - year: 1984 53 | - year: 1986 54 | title: Computers & typesetting 55 | publisher: Addison-Wesley 56 | publisher-place: Reading, Mass. 57 | number-of-volumes: '5' 58 | annote: A five-volume book cited as a whole. This is a book entry, note the volumes field 59 | language: en-US 60 | ... 61 | -------------------------------------------------------------------------------- /tests/biblio2yaml/kowalik.biblatex: -------------------------------------------------------------------------------- 1 | @comment{ 2 | 3 | Adapted from biblatex-example.bib 4 | 5 | 6 | Formatted with pandoc and chicago-author-date.csl, 2013-10-23: 7 | 8 | (Kowalik and Isard 1995) 9 | 10 | Kowalik, F., and M. Isard. 1995. “Estimateur d’un défaut de 11 | fonctionnement d’un modulateur en quadrature et étage de modulation 12 | l’utilisant.” French patent request. 13 | 14 | 15 | Formatted with pandoc and apa.csl, 2013-10-23: 16 | 17 | (Kowalik & Isard, 1995) 18 | 19 | Kowalik, F., & Isard, M. (1995, January 11). Estimateur d’un défaut de 20 | fonctionnement d’un modulateur en quadrature et étage de modulation 21 | l’utilisant. French patent request. 22 | 23 | 24 | } 25 | 26 | @Patent{kowalik, 27 | author = {Kowalik, F. and Isard, M.}, 28 | title = {Estimateur d'un d{\'e}faut de fonctionnement d'un modulateur 29 | en quadrature et {\'e}tage de modulation l'utilisant}, 30 | number = 9500261, 31 | date = {1995-01-11}, 32 | type = {patreqfr}, 33 | hyphenation = {french}, 34 | indextitle = {Estimateur d'un d{\'e}faut de fonctionnement}, 35 | annotation = {This is a patent entry for a French patent request 36 | with a full date. The number is given in the number 37 | field. Note the format of the type and date 38 | fields in the database file. Compare almendro, 39 | laufenberg, and sorace}, 40 | } 41 | 42 | --- 43 | references: 44 | - id: kowalik 45 | type: patent 46 | author: 47 | - family: Kowalik 48 | given: F. 49 | - family: Isard 50 | given: M. 51 | issued: 52 | - year: 1995 53 | month: 1 54 | day: 11 55 | title: Estimateur d’un défaut de fonctionnement d’un modulateur en quadrature et étage de modulation l’utilisant 56 | genre: French patent request 57 | annote: This is a patent entry for a French patent request with a full date. The number is given in the number field. Note the format of the type and date fields in the database file. Compare almendro, laufenberg, and sorace 58 | number: '9500261' 59 | language: fr-FR 60 | ... 61 | -------------------------------------------------------------------------------- /tests/biblio2yaml/kullback-related.biblatex: -------------------------------------------------------------------------------- 1 | @comment{ 2 | 3 | Adapted from biblatex-example.bib 4 | 5 | 6 | Formatted with pandoc and chicago-author-date.csl, 2013-10-23: 7 | 8 | (Kullback 1997) 9 | 10 | Kullback, Solomon. 1997. *Information Theory and Statistics*. New York: 11 | Dover Publications. 12 | 13 | 14 | Formatted with pandoc and apa.csl, 2013-10-23: 15 | 16 | (Kullback, 1997) 17 | 18 | Kullback, S. (1997). *Information theory and statistics*. New York: 19 | Dover Publications. 20 | 21 | 22 | NOTES: 23 | 24 | - related = {kullback}, relatedtype = {origpubin}, -- not possible in CSL 25 | 26 | } 27 | 28 | @Book{kullback:related, 29 | author = {Kullback, Solomon}, 30 | title = {Information Theory and Statistics}, 31 | year = 1997, 32 | publisher = {Dover Publications}, 33 | location = {New York}, 34 | hyphenation = {american}, 35 | related = {kullback}, 36 | relatedtype = {origpubin}, 37 | annotation = {A reprint of the kullback entry. Note the format of 38 | the related and relatedtype fields}, 39 | } 40 | 41 | --- 42 | references: 43 | - id: kullback:related 44 | type: book 45 | author: 46 | - family: Kullback 47 | given: Solomon 48 | issued: 49 | - year: 1997 50 | title: Information theory and statistics 51 | publisher: Dover Publications 52 | publisher-place: New York 53 | annote: A reprint of the kullback entry. Note the format of the related and relatedtype fields 54 | language: en-US 55 | ... 56 | -------------------------------------------------------------------------------- /tests/biblio2yaml/kullback-reprint.biblatex: -------------------------------------------------------------------------------- 1 | @comment{ 2 | 3 | Adapted from biblatex-example.bib 4 | 5 | 6 | Formatted with pandoc and chicago-author-date.csl, 2013-10-23: 7 | 8 | (Kullback 1997) 9 | 10 | Kullback, Solomon. 1997. *Information Theory and Statistics*. New York: 11 | Dover Publications. 12 | 13 | 14 | Formatted with pandoc and apa.csl, 2013-10-23: 15 | 16 | (Kullback, 1997) 17 | 18 | Kullback, S. (1997). *Information theory and statistics*. New York: 19 | Dover Publications. 20 | 21 | 22 | NOTES: 23 | 24 | Formatted with chicago-author-date-TEST-20131018.csl 25 | 26 | (Kullback [1959] 1997) 27 | 28 | Kullback, Solomon. (1959) 1997. *Information Theory and Statistics*. New 29 | York: Dover Publications. 30 | 31 | } 32 | 33 | @Book{kullback:reprint, 34 | author = {Kullback, Solomon}, 35 | title = {Information Theory and Statistics}, 36 | year = 1997, 37 | publisher = {Dover Publications}, 38 | location = {New York}, 39 | origyear = 1959, 40 | origpublisher= {John Wiley \& Sons}, 41 | hyphenation = {american}, 42 | annotation = {A reprint of the kullback entry. Note the format of 43 | origyear and origpublisher. These fields are 44 | not used by the standard bibliography styles}, 45 | } 46 | 47 | --- 48 | references: 49 | - id: kullback:reprint 50 | type: book 51 | author: 52 | - family: Kullback 53 | given: Solomon 54 | issued: 55 | - year: 1997 56 | original-date: 57 | - year: 1959 58 | title: Information theory and statistics 59 | publisher: Dover Publications 60 | original-publisher: John Wiley & Sons 61 | publisher-place: New York 62 | annote: A reprint of the kullback entry. Note the format of origyear and origpublisher. These fields are not used by the standard bibliography styles 63 | language: en-US 64 | ... 65 | -------------------------------------------------------------------------------- /tests/biblio2yaml/kullback.biblatex: -------------------------------------------------------------------------------- 1 | @comment{ 2 | 3 | Adapted from biblatex-example.bib 4 | 5 | 6 | Formatted with pandoc and chicago-author-date.csl, 2013-10-23: 7 | 8 | (Kullback 1959) 9 | 10 | Kullback, Solomon. 1959. *Information Theory and Statistics*. New York: 11 | John Wiley & Sons. 12 | 13 | 14 | Formatted with pandoc and apa.csl, 2013-10-23: 15 | 16 | (Kullback, 1959) 17 | 18 | Kullback, S. (1959). *Information theory and statistics*. New York: John 19 | Wiley & Sons. 20 | 21 | 22 | } 23 | 24 | @Book{kullback, 25 | author = {Kullback, Solomon}, 26 | title = {Information Theory and Statistics}, 27 | year = 1959, 28 | publisher = {John Wiley \& Sons}, 29 | location = {New York}, 30 | hyphenation = {american}, 31 | } 32 | 33 | --- 34 | references: 35 | - id: kullback 36 | type: book 37 | author: 38 | - family: Kullback 39 | given: Solomon 40 | issued: 41 | - year: 1959 42 | title: Information theory and statistics 43 | publisher: John Wiley & Sons 44 | publisher-place: New York 45 | language: en-US 46 | ... 47 | -------------------------------------------------------------------------------- /tests/biblio2yaml/loh.biblatex: -------------------------------------------------------------------------------- 1 | @comment{ 2 | 3 | Adapted from biblatex-example.bib 4 | 5 | 6 | Formatted with pandoc and chicago-author-date.csl, 2013-10-23: 7 | 8 | (Loh 1992) 9 | 10 | Loh, Nin C. 1992. “High-resolution Micromachined Interferometric 11 | Accelerometer.” Master’s thesis, Cambridge, Mass.: Massachusetts 12 | Institute of Technology. 13 | 14 | 15 | Formatted with pandoc and apa.csl, 2013-10-23: 16 | 17 | (Loh, 1992) 18 | 19 | Loh, N. C. (1992). *High-resolution micromachined interferometric 20 | accelerometer* (Master’s thesis). Massachusetts Institute of Technology, 21 | Cambridge, Mass. 22 | 23 | 24 | NOTES: 25 | 26 | - biblio2yaml 27 | - At some point, actual localization of "localization keys" will have to be implemented 28 | 29 | } 30 | 31 | @Thesis{loh, 32 | author = {Loh, Nin C.}, 33 | title = {High-Resolution Micromachined Interferometric Accelerometer}, 34 | type = {mathesis}, 35 | institution = {Massachusetts Institute of Technology}, 36 | date = 1992, 37 | location = {Cambridge, Mass.}, 38 | hyphenation = {american}, 39 | annotation = {This is a typical thesis entry for an MA thesis. Note 40 | the type field in the database file which uses a 41 | localization key}, 42 | } 43 | --- 44 | references: 45 | - id: loh 46 | type: thesis 47 | author: 48 | - family: Loh 49 | given: Nin C. 50 | issued: 51 | - year: 1992 52 | title: High-resolution micromachined interferometric accelerometer 53 | publisher: Massachusetts Institute of Technology 54 | publisher-place: Cambridge, Mass. 55 | genre: Master’s thesis 56 | annote: This is a typical thesis entry for an MA thesis. Note the type field in the database file which uses a localization key 57 | language: en-US 58 | ... 59 | -------------------------------------------------------------------------------- /tests/biblio2yaml/malinowski.biblatex: -------------------------------------------------------------------------------- 1 | @comment{ 2 | 3 | Adapted from biblatex-example.bib 4 | 5 | 6 | Formatted with pandoc and chicago-author-date.csl, 2013-10-23: 7 | 8 | (Malinowski 1972) 9 | 10 | Malinowski, Bronisław. 1972. *Argonauts of the Western Pacific: An 11 | Account of Native Enterprise and Adventure in the Archipelagoes of 12 | Melanesian New Guinea*. 8th ed. London: Routledge and Kegan Paul. 13 | 14 | 15 | Formatted with pandoc and apa.csl, 2013-10-23: 16 | 17 | (Malinowski, 1972) 18 | 19 | Malinowski, B. (1972). *Argonauts of the Western Pacific: An account of 20 | native enterprise and adventure in the Archipelagoes of Melanesian New 21 | Guinea* (8th ed.). London: Routledge and Kegan Paul. 22 | 23 | 24 | } 25 | 26 | @Book{malinowski, 27 | author = {Malinowski, Bronis{\l}aw}, 28 | title = {Argonauts of the {Western Pacific}}, 29 | date = 1972, 30 | edition = 8, 31 | publisher = {Routledge {and} Kegan Paul}, 32 | location = {London}, 33 | hyphenation = {british}, 34 | subtitle = {An account of native enterprise and adventure in the 35 | {Archipelagoes of Melanesian New Guinea}}, 36 | shorttitle = {Argonauts}, 37 | annotation = {This is a book entry. Note the format of the 38 | publisher and edition fields as well as the 39 | subtitle field}, 40 | } 41 | 42 | --- 43 | references: 44 | - id: malinowski 45 | type: book 46 | author: 47 | - family: Malinowski 48 | given: Bronisław 49 | issued: 50 | - year: 1972 51 | title: 'Argonauts of the Western Pacific: An account of native enterprise and adventure in the Archipelagoes of Melanesian New Guinea' 52 | title-short: Argonauts 53 | publisher: Routledge and Kegan Paul 54 | publisher-place: London 55 | edition: '8' 56 | annote: This is a book entry. Note the format of the publisher and edition fields as well as the subtitle field 57 | language: en-GB 58 | ... 59 | -------------------------------------------------------------------------------- /tests/biblio2yaml/manual.biblatex: -------------------------------------------------------------------------------- 1 | @comment{adapted from http://mirrors.ctan.org/macros/latex/contrib/biblatex/doc/examples/biblatex-examples.bib} 2 | 3 | @Manual{cms, 4 | title = {The {Chicago} Manual of Style}, 5 | date = 2003, 6 | subtitle = {The Essential Guide for Writers, Editors, and Publishers}, 7 | edition = 15, 8 | publisher = {University of Chicago Press}, 9 | location = {Chicago, Ill.}, 10 | isbn = {0-226-10403-6}, 11 | label = {CMS}, 12 | hyphenation = {american}, 13 | sorttitle = {Chicago Manual of Style}, 14 | indextitle = {Chicago Manual of Style, The}, 15 | shorttitle = {Chicago Manual of Style}, 16 | annotation = {This is a manual entry without an author or 17 | editor. Note the label field in the database 18 | file which is provided for author-year citation styles. Also 19 | note the sorttitle and indextitle fields. By 20 | default, all entries without an author or 21 | editor are alphabetized by title but we want 22 | this entry to be alphabetized under \enquote*{C} rather than 23 | \enquote*{T}. There's also an isbn field}, 24 | } 25 | --- 26 | references: 27 | - id: cms 28 | type: book 29 | issued: 30 | - year: 2003 31 | title: 'The Chicago manual of style: The essential guide for writers, editors, and publishers' 32 | title-short: Chicago manual of style 33 | publisher: University of Chicago Press 34 | publisher-place: Chicago, Ill. 35 | edition: '15' 36 | annote: This is a manual entry without an author or editor. Note the label field in the database file which is provided for author-year citation styles. Also note the sorttitle and indextitle fields. By default, all entries without an author or editor are alphabetized by title but we want this entry to be alphabetized under ‘C’ rather than ‘T’. There’s also an isbn field 37 | ISBN: 0-226-10403-6 38 | language: en-US 39 | ... 40 | -------------------------------------------------------------------------------- /tests/biblio2yaml/markey.biblatex: -------------------------------------------------------------------------------- 1 | @comment{ 2 | 3 | Adapted from biblatex-example.bib 4 | 5 | 6 | Formatted with pandoc and chicago-author-date.csl, 2013-10-23: 7 | 8 | (Markey 2005) 9 | 10 | Markey, Nicolas. 2005. “Tame the BeaST: The B to X of BibTeX” (version 11 | 1.3). October 16. 12 | . 13 | 14 | 15 | Formatted with pandoc and apa.csl, 2013-10-23: 16 | 17 | (Markey, 2005) 18 | 19 | Markey, N. (2005, October 16). Tame the BeaST: The B to X of BibTeX. 20 | Retrieved October 01, 2006, from 21 | 22 | 23 | 24 | } 25 | 26 | @Online{markey, 27 | author = {Markey, Nicolas}, 28 | title = {Tame the {BeaST}}, 29 | date = {2005-10-16}, 30 | url = 31 | {http://tug.ctan.org/tex-archive/info/bibtex/tamethebeast/ttb_en.pdf}, 32 | subtitle = {The {B} to {X} of {BibTeX}}, 33 | version = {1.3}, 34 | urldate = {2006-10-01}, 35 | hyphenation = {american}, 36 | sorttitle = {Tame the Beast}, 37 | annotation = {An online entry for a tutorial. Note the format of 38 | the date field (yyyy-mm-dd) in the database 39 | file.}, 40 | } 41 | 42 | --- 43 | references: 44 | - id: markey 45 | type: webpage 46 | author: 47 | - family: Markey 48 | given: Nicolas 49 | issued: 50 | - year: 2005 51 | month: 10 52 | day: 16 53 | accessed: 54 | - year: 2006 55 | month: 10 56 | day: 1 57 | title: 'Tame the BeaST: The B to X of BibTeX' 58 | title-short: Tame the BeaST 59 | version: '1.3' 60 | annote: An online entry for a tutorial. Note the format of the date field (yyyy-mm-dd) in the database file. 61 | URL: http://tug.ctan.org/tex-archive/info/bibtex/tamethebeast/ttb_en.pdf 62 | language: en-US 63 | ... 64 | -------------------------------------------------------------------------------- /tests/biblio2yaml/maron.biblatex: -------------------------------------------------------------------------------- 1 | @comment{ 2 | 3 | Adapted from biblatex-example.bib 4 | 5 | 6 | Formatted with pandoc and chicago-author-date.csl, 2013-10-23: 7 | 8 | (Maron 2000) 9 | 10 | Maron, Monika. 2000. *Animal Triste*. Translated by Brigitte Goldstein. 11 | Lincoln: University of Nebraska Press. 12 | 13 | 14 | Formatted with pandoc and apa.csl, 2013-10-23: 15 | 16 | (Maron, 2000) 17 | 18 | Maron, M. (2000). *Animal triste*. (B. Goldstein, Trans.). Lincoln: 19 | University of Nebraska Press. 20 | 21 | 22 | NOTES: 23 | 24 | - origlanguage concatenated with translator, e.g. “translated from the German by …” not possible in CSL 25 | 26 | } 27 | 28 | @Book{maron, 29 | author = {Maron, Monika}, 30 | title = {Animal Triste}, 31 | date = 2000, 32 | translator = {Brigitte Goldstein}, 33 | origlanguage = {german}, 34 | publisher = {University of Nebraska Press}, 35 | location = {Lincoln}, 36 | hyphenation = {american}, 37 | shorttitle = {Animal Triste}, 38 | annotation = {An English translation of a German novel with a French title. 39 | In other words: a book entry with a 40 | translator field. Note the origlanguage 41 | field which is concatenated with the translator}, 42 | } 43 | 44 | --- 45 | references: 46 | - id: maron 47 | type: book 48 | author: 49 | - family: Maron 50 | given: Monika 51 | translator: 52 | - family: Goldstein 53 | given: Brigitte 54 | issued: 55 | - year: 2000 56 | title: Animal triste 57 | title-short: Animal triste 58 | publisher: University of Nebraska Press 59 | publisher-place: Lincoln 60 | annote: 'An English translation of a German novel with a French title. In other words: a book entry with a translator field. Note the origlanguage field which is concatenated with the translator' 61 | language: en-US 62 | ... 63 | -------------------------------------------------------------------------------- /tests/biblio2yaml/massa.biblatex: -------------------------------------------------------------------------------- 1 | @comment{ 2 | 3 | Adapted from biblatex-example.bib 4 | 5 | 6 | Formatted with pandoc and chicago-author-date.csl, 2013-10-23: 7 | 8 | (Massa 2004) 9 | 10 | Massa, Werner. 2004. *Crystal Structure Determination*. 2nd ed. Berlin: 11 | Spinger. 12 | 13 | 14 | Formatted with pandoc and apa.csl, 2013-10-23: 15 | 16 | (Massa, 2004) 17 | 18 | Massa, W. (2004). *Crystal structure determination* (2nd ed.). Berlin: 19 | Spinger. 20 | 21 | 22 | } 23 | 24 | @Book{massa, 25 | author = {Werner Massa}, 26 | title = {Crystal structure determination}, 27 | date = 2004, 28 | edition = 2, 29 | publisher = {Spinger}, 30 | location = {Berlin}, 31 | hyphenation = {british}, 32 | annotation = {A book entry with an edition field}, 33 | } 34 | 35 | --- 36 | references: 37 | - id: massa 38 | type: book 39 | author: 40 | - family: Massa 41 | given: Werner 42 | issued: 43 | - year: 2004 44 | title: Crystal structure determination 45 | publisher: Spinger 46 | publisher-place: Berlin 47 | edition: '2' 48 | annote: A book entry with an edition field 49 | language: en-GB 50 | ... 51 | -------------------------------------------------------------------------------- /tests/biblio2yaml/moore-related.biblatex: -------------------------------------------------------------------------------- 1 | @comment{ 2 | 3 | Adapted from biblatex-example.bib 4 | 5 | 6 | Formatted with pandoc and chicago-author-date.csl, 2013-10-23: 7 | 8 | (Moore 1998) 9 | 10 | Moore, Gordon E. 1998. “Cramming More Components onto Integrated 11 | Circuits.” *Proceedings of the IEEE* 86 (1): 82–85. 12 | 13 | 14 | Formatted with pandoc and apa.csl, 2013-10-23: 15 | 16 | (Moore, 1998) 17 | 18 | Moore, G. E. (1998). Cramming more components onto integrated circuits. 19 | *Proceedings of the IEEE*, *86*(1), 82–85. 20 | 21 | 22 | NOTES: 23 | 24 | - "related = {moore}, relatedtype = {reprintfrom}," – no equivalent implemented in CSL 25 | 26 | } 27 | 28 | @Article{moore:related, 29 | author = {Moore, Gordon E.}, 30 | title = {Cramming more components onto integrated circuits}, 31 | journaltitle = {Proceedings of the {IEEE}}, 32 | year = 1998, 33 | volume = 86, 34 | number = 1, 35 | pages = {82-85}, 36 | hyphenation = {american}, 37 | related = {moore}, 38 | relatedtype = {reprintfrom}, 39 | annotation = {A reprint of Moore's law. Note the related and 40 | relatedtype fields}, 41 | } 42 | 43 | --- 44 | references: 45 | - id: moore:related 46 | type: article-journal 47 | author: 48 | - family: Moore 49 | given: Gordon E. 50 | issued: 51 | - year: 1998 52 | title: Cramming more components onto integrated circuits 53 | container-title: Proceedings of the IEEE 54 | page: 82-85 55 | volume: '86' 56 | issue: '1' 57 | annote: A reprint of Moore’s law. Note the related and relatedtype fields 58 | language: en-US 59 | ... 60 | -------------------------------------------------------------------------------- /tests/biblio2yaml/moore.biblatex: -------------------------------------------------------------------------------- 1 | @comment{ 2 | 3 | Adapted from biblatex-example.bib 4 | 5 | 6 | Formatted with pandoc and chicago-author-date.csl, 2013-10-23: 7 | 8 | (Moore 1965) 9 | 10 | Moore, Gordon E. 1965. “Cramming More Components onto Integrated 11 | Circuits.” *Electronics* 38 (8): 114–117. 12 | 13 | 14 | Formatted with pandoc and apa.csl, 2013-10-23: 15 | 16 | (Moore, 1965) 17 | 18 | Moore, G. E. (1965). Cramming more components onto integrated circuits. 19 | *Electronics*, *38*(8), 114–117. 20 | 21 | 22 | } 23 | 24 | @Article{moore, 25 | author = {Moore, Gordon E.}, 26 | title = {Cramming more components onto integrated circuits}, 27 | journaltitle = {Electronics}, 28 | year = 1965, 29 | volume = 38, 30 | number = 8, 31 | pages = {114-117}, 32 | hyphenation = {american}, 33 | } 34 | 35 | --- 36 | references: 37 | - id: moore 38 | type: article-journal 39 | author: 40 | - family: Moore 41 | given: Gordon E. 42 | issued: 43 | - year: 1965 44 | title: Cramming more components onto integrated circuits 45 | container-title: Electronics 46 | page: 114-117 47 | volume: '38' 48 | issue: '8' 49 | language: en-US 50 | ... 51 | -------------------------------------------------------------------------------- /tests/biblio2yaml/nussbaum.biblatex: -------------------------------------------------------------------------------- 1 | @comment{ 2 | 3 | Adapted from biblatex-example.bib 4 | 5 | 6 | Formatted with pandoc and chicago-author-date.csl, 2013-10-23: 7 | 8 | (Nussbaum 1978) 9 | 10 | Nussbaum, Martha. 1978. *Aristotle’s “De Motu Animalium”*. Princeton: 11 | Princeton University Press. 12 | 13 | 14 | Formatted with pandoc and apa.csl, 2013-10-23: 15 | 16 | (Nussbaum, 1978) 17 | 18 | Nussbaum, M. (1978). *Aristotle’s “De Motu Animalium”*. Princeton: 19 | Princeton University Press. 20 | 21 | 22 | } 23 | 24 | @string{ pup = {Princeton University Press} } 25 | 26 | @Book{nussbaum, 27 | author = {Nussbaum, Martha}, 28 | title = {Aristotle's \mkbibquote{De Motu Animalium}}, 29 | date = 1978, 30 | publisher = pup, 31 | location = {Princeton}, 32 | keywords = {secondary}, 33 | hyphenation = {american}, 34 | sorttitle = {Aristotle's De Motu Animalium}, 35 | indexsorttitle= {Aristotle's De Motu Animalium}, 36 | annotation = {A book entry. Note the sorttitle and 37 | indexsorttitle fields and the markup of the quotes in 38 | the database file}, 39 | } 40 | 41 | --- 42 | references: 43 | - id: nussbaum 44 | type: book 45 | author: 46 | - family: Nussbaum 47 | given: Martha 48 | issued: 49 | - year: 1978 50 | title: Aristotle’s “De Motu Animalium” 51 | publisher: Princeton University Press 52 | publisher-place: Princeton 53 | annote: A book entry. Note the sorttitle and indexsorttitle fields and the markup of the quotes in the database file 54 | keyword: secondary 55 | language: en-US 56 | ... 57 | -------------------------------------------------------------------------------- /tests/biblio2yaml/options-url-false-doi-false.biblatex: -------------------------------------------------------------------------------- 1 | @comment{ 2 | 3 | Entry contains url and doi fields; these should be discarded since the 4 | options field specifies url=false, doi=false. 5 | 6 | Exception: As in standard biblatex, in online entries url should never be 7 | discarded, even if options contains url=false. 8 | 9 | } 10 | 11 | @article{item1, 12 | Author = {Author, Andy}, 13 | Date = {2012}, 14 | Doi = {1234/5678.90}, 15 | Journal = {Journal}, 16 | Options = {url=false, doi=false}, 17 | Title = {Title, Any Entry Type Except online}, 18 | Url = {http://foo.bar} 19 | } 20 | 21 | @online{item2, 22 | Author = {Author, Andy}, 23 | Date = {2012}, 24 | Doi = {1234/5678.90}, 25 | Journal = {Journal}, 26 | Options = {url=false, doi=false}, 27 | Title = {Title, Entry Type online}, 28 | Url = {http://foo.bar} 29 | } 30 | 31 | --- 32 | references: 33 | - id: item1 34 | type: article-journal 35 | author: 36 | - family: Author 37 | given: Andy 38 | issued: 39 | - year: 2012 40 | title: Title, any entry type except online 41 | container-title: Journal 42 | 43 | - id: item2 44 | type: webpage 45 | author: 46 | - family: Author 47 | given: Andy 48 | issued: 49 | - year: 2012 50 | title: Title, entry type online 51 | container-title: Journal 52 | URL: http://foo.bar 53 | ... 54 | -------------------------------------------------------------------------------- /tests/biblio2yaml/pandoc-2/formatting.biblatex: -------------------------------------------------------------------------------- 1 | @article{item1, 2 | Title = {The Title: 3 | \textit{italics}, 4 | \textbf{bold}, 5 | \textsubscript{subscript}, 6 | \textsuperscript{superscript}, 7 | \textsc{small-caps}} 8 | } 9 | --- 10 | references: 11 | - id: item1 12 | type: article-journal 13 | title: 'The title: *Italics*, **bold**, ~subscript~, ^superscript^, small-caps' 14 | title-short: The title 15 | ... 16 | -------------------------------------------------------------------------------- /tests/biblio2yaml/periodical.biblatex: -------------------------------------------------------------------------------- 1 | @comment{excerpt from http://mirrors.ctan.org/macros/latex/contrib/biblatex/doc/examples/biblatex-examples.bib 2 | 3 | @periodical{jcg, 4 | Annotation = {This is a periodical entry with an issn field.}, 5 | Issn = {0097-8493}, 6 | Issuetitle = {Semantic {3D} Media and Content}, 7 | Number = 4, 8 | Title = {Computers and Graphics}, 9 | Volume = 35, 10 | Year = 2011} 11 | 12 | --- 13 | references: 14 | - id: jcg 15 | type: article-journal 16 | issued: 17 | - year: 2011 18 | title: Semantic 3D media and content 19 | container-title: Computers and Graphics 20 | volume: '35' 21 | issue: '4' 22 | annote: This is a periodical entry with an issn field. 23 | ISSN: 0097-8493 24 | ... 25 | -------------------------------------------------------------------------------- /tests/biblio2yaml/piccato.biblatex: -------------------------------------------------------------------------------- 1 | @comment{ 2 | 3 | Adapted from biblatex-example.bib 4 | 5 | 6 | Formatted with pandoc and chicago-author-date.csl, 2013-10-23: 7 | 8 | (Piccato 2001) 9 | 10 | Piccato, Pablo. 2001. *City of Suspects: Crime in Mexico City, 11 | 1900–1931*. Durham; London: Duke University Press. 12 | 13 | 14 | Formatted with pandoc and apa.csl, 2013-10-23: 15 | 16 | (Piccato, 2001) 17 | 18 | Piccato, P. (2001). *City of suspects: Crime in Mexico City, 1900–1931*. 19 | Durham; London: Duke University Press. 20 | 21 | 22 | } 23 | 24 | @Book{piccato, 25 | author = {Piccato, Pablo}, 26 | title = {City of Suspects}, 27 | date = 2001, 28 | publisher = {Duke University Press}, 29 | location = {Durham and London}, 30 | hyphenation = {american}, 31 | subtitle = {Crime in {Mexico City}, 1900--1931}, 32 | shorttitle = {City of Suspects}, 33 | annotation = {This is a book entry. Note the format of the 34 | location field in the database file}, 35 | } 36 | 37 | --- 38 | references: 39 | - id: piccato 40 | type: book 41 | author: 42 | - family: Piccato 43 | given: Pablo 44 | issued: 45 | - year: 2001 46 | title: 'City of suspects: Crime in Mexico City, 1900–1931' 47 | title-short: City of suspects 48 | publisher: Duke University Press 49 | publisher-place: Durham; London 50 | annote: This is a book entry. Note the format of the location field in the database file 51 | language: en-US 52 | ... 53 | -------------------------------------------------------------------------------- /tests/biblio2yaml/quotes.biblatex: -------------------------------------------------------------------------------- 1 | @comment{excerpt from http://mirrors.ctan.org/macros/latex/contrib/biblatex/doc/examples/biblatex-examples.bib 2 | 3 | \mkbibquote{} should be replaced by a matching set of quotation marks that can be used by citeproc for quote substitution and flipflopping. English smart double quotation marks seem best, as they cannot be confused with apostrophes. 4 | 5 | \enquote{}, \enquote*{} should be replaced by a matching set of quotation marks, too: “foo”, ‘bar’. 6 | } 7 | 8 | @string{pup = {Princeton University Press}} 9 | 10 | @book{nussbaum, 11 | Annotation = {A book entry. Note the sorttitle and indexsorttitle fields and the markup of the quotes in the database file}, 12 | Author = {Nussbaum, Martha}, 13 | Date = 1978, 14 | Hyphenation = {american}, 15 | Indexsorttitle = {Aristotle's De Motu Animalium}, 16 | Keywords = {secondary}, 17 | Location = {Princeton}, 18 | Publisher = pup, 19 | Sorttitle = {Aristotle's De Motu Animalium}, 20 | Title = {Aristotle's \mkbibquote{De Motu Animalium}}} 21 | 22 | --- 23 | references: 24 | - id: nussbaum 25 | type: book 26 | author: 27 | - family: Nussbaum 28 | given: Martha 29 | issued: 30 | - year: 1978 31 | title: Aristotle’s “De Motu Animalium” 32 | publisher: Princeton University Press 33 | publisher-place: Princeton 34 | annote: A book entry. Note the sorttitle and indexsorttitle fields and the markup of the quotes in the database file 35 | keyword: secondary 36 | language: en-US 37 | ... 38 | -------------------------------------------------------------------------------- /tests/biblio2yaml/reese.biblatex: -------------------------------------------------------------------------------- 1 | @comment{ 2 | 3 | Adapted from biblatex-example.bib 4 | 5 | 6 | Formatted with pandoc and chicago-author-date.csl, 2013-10-23: 7 | 8 | (Reese 1958) 9 | 10 | Reese, Trevor R. 1958. “Georgia in Anglo-Spanish Diplomacy, 1736-1739.” 11 | *William and Mary Quarterly, 3* 15: 168–190. 12 | 13 | 14 | Formatted with pandoc and apa.csl, 2013-10-23: 15 | 16 | (Reese, 1958) 17 | 18 | Reese, T. R. (1958). Georgia in Anglo-Spanish diplomacy, 1736-1739. 19 | *William and Mary Quarterly, 3*, *15*, 168–190. 20 | 21 | 22 | NOTES: 23 | 24 | - biblio2yaml 25 | - series field: still not entirely satisfactory. 26 | Could we map this to some existing CSL variable, and have the CSL styles handle this? "edition", maybe ?? 27 | 28 | } 29 | 30 | @Article{reese, 31 | author = {Reese, Trevor R.}, 32 | title = {Georgia in {Anglo-Spanish} Diplomacy, 1736-1739}, 33 | journaltitle = {William and Mary Quarterly}, 34 | date = 1958, 35 | series = 3, 36 | volume = 15, 37 | pages = {168-190}, 38 | hyphenation = {american}, 39 | annotation = {An article entry with a series and a 40 | volume field. Note the format of the series. If the 41 | value of the series field is an integer, this number 42 | is printed as an ordinal and the string \enquote*{series} is 43 | appended automatically}, 44 | } 45 | 46 | --- 47 | references: 48 | - id: reese 49 | type: article-journal 50 | author: 51 | - family: Reese 52 | given: Trevor R. 53 | issued: 54 | - year: 1958 55 | title: Georgia in Anglo-Spanish diplomacy, 1736-1739 56 | container-title: William and Mary Quarterly 57 | collection-title: 3rd ser. 58 | page: 168-190 59 | volume: '15' 60 | annote: An article entry with a series and a volume field. Note the format of the series. If the value of the series field is an integer, this number is printed as an ordinal and the string ‘series’ is appended automatically 61 | language: en-US 62 | ... 63 | -------------------------------------------------------------------------------- /tests/biblio2yaml/salam.biblatex: -------------------------------------------------------------------------------- 1 | @comment{ 2 | 3 | Adapted from biblatex-example.bib 4 | 5 | 6 | Formatted with pandoc and chicago-author-date.csl, 2013-10-23: 7 | 8 | (Salam 1968) 9 | 10 | Salam, Abdus. 1968. “Weak and Electromagnetic Interactions.” In 11 | *Elementary Particle Theory: Relativistic Groups and Analyticity. 12 | Proceedings of the Eighth Nobel Symposium*, edited by Nils Svartholm, 13 | 367–377. Stockholm: Almquist & Wiksell. 14 | 15 | 16 | Formatted with pandoc and apa.csl, 2013-10-23: 17 | 18 | (Salam, 1968) 19 | 20 | Salam, A. (1968). Weak and electromagnetic interactions. In N. Svartholm 21 | (Ed.), *Elementary particle theory: Relativistic groups and analyticity. 22 | Proceedings of the eighth Nobel symposium* (pp. 367–377). Stockholm: 23 | Almquist & Wiksell. 24 | 25 | 26 | } 27 | 28 | @InProceedings{salam, 29 | author = {Salam, Abdus}, 30 | editor = {Svartholm, Nils}, 31 | title = {Weak and Electromagnetic Interactions}, 32 | date = 1968, 33 | booktitle = {Elementary particle theory}, 34 | booksubtitle = {Relativistic groups and analyticity}, 35 | booktitleaddon= {Proceedings of the Eighth {Nobel} Symposium}, 36 | eventdate = {1968-05-19/1968-05-25}, 37 | venue = {Aspen{\"a}sgarden, Lerum}, 38 | publisher = {Almquist \& Wiksell}, 39 | location = {Stockholm}, 40 | pages = {367-377}, 41 | } 42 | 43 | --- 44 | references: 45 | - id: salam 46 | type: paper-conference 47 | author: 48 | - family: Salam 49 | given: Abdus 50 | editor: 51 | - family: Svartholm 52 | given: Nils 53 | issued: 54 | - year: 1968 55 | event-date: 56 | - year: 1968 57 | month: 5 58 | day: 19 59 | - year: 1968 60 | month: 5 61 | day: 25 62 | title: Weak and electromagnetic interactions 63 | container-title: 'Elementary particle theory: Relativistic groups and analyticity. Proceedings of the eighth Nobel symposium' 64 | publisher: Almquist & Wiksell 65 | publisher-place: Stockholm 66 | event-place: Aspenäsgarden, Lerum 67 | page: 367-377 68 | ... 69 | -------------------------------------------------------------------------------- /tests/biblio2yaml/sarfraz.biblatex: -------------------------------------------------------------------------------- 1 | @comment{ 2 | 3 | Adapted from biblatex-example.bib 4 | 5 | 6 | Formatted with pandoc and chicago-author-date.csl, 2013-10-23: 7 | 8 | (Sarfraz and Razzak 2002) 9 | 10 | Sarfraz, M., and M. F. A. Razzak. 2002. “Technical Section: An Algorithm 11 | for Automatic Capturing of the Font Outlines.” *Computers and Graphics* 12 | 26 (5): 795–804. 13 | 14 | 15 | Formatted with pandoc and apa.csl, 2013-10-23: 16 | 17 | (Sarfraz & Razzak, 2002) 18 | 19 | Sarfraz, M., & Razzak, M. F. A. (2002). Technical section: An algorithm 20 | for automatic capturing of the font outlines. *Computers and Graphics*, 21 | *26*(5), 795–804. 22 | 23 | 24 | } 25 | 26 | @Article{sarfraz, 27 | author = {M. Sarfraz and M. F. A. Razzak}, 28 | title = {Technical section: {An} algorithm for automatic capturing of 29 | the font outlines}, 30 | year = 2002, 31 | volume = 26, 32 | number = 5, 33 | pages = {795-804}, 34 | issn = {0097-8493}, 35 | journal = {Computers and Graphics}, 36 | annotation = {An article entry with an issn field}, 37 | } 38 | 39 | --- 40 | references: 41 | - id: sarfraz 42 | type: article-journal 43 | author: 44 | - family: Sarfraz 45 | given: M. 46 | - family: Razzak 47 | given: M. F. A. 48 | issued: 49 | - year: 2002 50 | title: 'Technical section: An algorithm for automatic capturing of the font outlines' 51 | title-short: Technical section 52 | container-title: Computers and Graphics 53 | page: 795-804 54 | volume: '26' 55 | issue: '5' 56 | annote: An article entry with an issn field 57 | ISSN: 0097-8493 58 | ... 59 | -------------------------------------------------------------------------------- /tests/biblio2yaml/shore.biblatex: -------------------------------------------------------------------------------- 1 | @comment{ 2 | 3 | Adapted from biblatex-example.bib 4 | 5 | 6 | Formatted with pandoc and chicago-author-date.csl, 2013-10-23: 7 | 8 | (Shore 1991) 9 | 10 | Shore, Bradd. 1991. “Twice-born, Once Conceived: Meaning Construction 11 | and Cultural Cognition.” *American Anthropologist, New Series* 93 (1) 12 | (March): 9–27. 13 | 14 | 15 | Formatted with pandoc and apa.csl, 2013-10-23: 16 | 17 | (Shore, 1991) 18 | 19 | Shore, B. (1991). Twice-born, once conceived: Meaning construction and 20 | cultural cognition. *American Anthropologist, new series*, *93*(1), 21 | 9–27. 22 | 23 | 24 | } 25 | 26 | @Article{shore, 27 | author = {Shore, Bradd}, 28 | title = {Twice-Born, Once Conceived}, 29 | journaltitle = {American Anthropologist}, 30 | date = {1991-03}, 31 | subtitle = {Meaning Construction and Cultural Cognition}, 32 | series = {newseries}, 33 | volume = 93, 34 | number = 1, 35 | pages = {9-27}, 36 | annotation = {An article entry with series, 37 | volume, and number fields. Note the format 38 | of the series which is a localization key}, 39 | } 40 | 41 | --- 42 | references: 43 | - id: shore 44 | type: article-journal 45 | author: 46 | - family: Shore 47 | given: Bradd 48 | issued: 49 | - year: 1991 50 | month: 3 51 | title: 'Twice-born, once conceived: Meaning construction and cultural cognition' 52 | title-short: Twice-born, once conceived 53 | container-title: American Anthropologist 54 | collection-title: new series 55 | page: 9-27 56 | volume: '93' 57 | issue: '1' 58 | annote: An article entry with series, volume, and number fields. Note the format of the series which is a localization key 59 | ... 60 | -------------------------------------------------------------------------------- /tests/biblio2yaml/sorace.biblatex: -------------------------------------------------------------------------------- 1 | @comment{ 2 | 3 | Adapted from biblatex-example.bib 4 | 5 | 6 | Formatted with pandoc and chicago-author-date.csl, 2013-10-23: 7 | 8 | (Sorace, Reinhardt, and Vaughn 1997) 9 | 10 | Sorace, Ronald E., Victor S. Reinhardt, and Steven A. Vaughn. 1997. 11 | “High-speed Digital-to-RF Converter.” U.S. patent. 12 | 13 | 14 | Formatted with pandoc and apa.csl, 2013-10-23: 15 | 16 | (Sorace, Reinhardt, & Vaughn, 1997) 17 | 18 | Sorace, R. E., Reinhardt, V. S., & Vaughn, S. A. (1997, September 16). 19 | High-speed digital-to-RF converter. U.S. patent. 20 | 21 | 22 | } 23 | 24 | @Patent{sorace, 25 | author = {Sorace, Ronald E. and Reinhardt, Victor S. and Vaughn, Steven 26 | A.}, 27 | title = {High-Speed Digital-to-{RF} Converter}, 28 | number = 5668842, 29 | date = {1997-09-16}, 30 | holder = {{Hughes Aircraft Company}}, 31 | type = {patentus}, 32 | hyphenation = {american}, 33 | annotation = {This is a patent entry with a holder field. 34 | Note the format of the type and date fields 35 | in the database file. Compare almendro, 36 | laufenberg, and kowalik}, 37 | } 38 | 39 | --- 40 | references: 41 | - id: sorace 42 | type: patent 43 | author: 44 | - family: Sorace 45 | given: Ronald E. 46 | - family: Reinhardt 47 | given: Victor S. 48 | - family: Vaughn 49 | given: Steven A. 50 | issued: 51 | - year: 1997 52 | month: 9 53 | day: 16 54 | title: High-speed digital-to-RF converter 55 | genre: U.S. patent 56 | annote: This is a patent entry with a holder field. Note the format of the type and date fields in the database file. Compare almendro, laufenberg, and kowalik 57 | number: '5668842' 58 | language: en-US 59 | ... 60 | -------------------------------------------------------------------------------- /tests/biblio2yaml/spiegelberg.biblatex: -------------------------------------------------------------------------------- 1 | @comment{ 2 | 3 | Adapted from biblatex-example.bib 4 | 5 | 6 | Formatted with pandoc and chicago-author-date.csl, 2013-10-23: 7 | 8 | (Spiegelberg 1969) 9 | 10 | Spiegelberg, Herbert. 1969. ““Intention” und “Intentionalität” in der 11 | Scholastik, bei Brentano und Husserl.” *Studia Philosophica* 29: 12 | 189–216. 13 | 14 | 15 | Formatted with pandoc and apa.csl, 2013-10-23: 16 | 17 | (Spiegelberg, 1969) 18 | 19 | Spiegelberg, H. (1969). “Intention” und “Intentionalität” in der 20 | Scholastik, bei Brentano und Husserl. *Studia Philosophica*, *29*, 21 | 189–216. 22 | 23 | 24 | NOTES: 25 | 26 | - citeproc 27 | - flipflopping of quotes incorrect 28 | 29 | } 30 | 31 | @Article{spiegelberg, 32 | author = {Spiegelberg, Herbert}, 33 | title = {\mkbibquote{Intention} und \mkbibquote{Intentionalit{\"a}t} in 34 | der Scholastik, bei Brentano und Husserl}, 35 | journaltitle = {Studia Philosophica}, 36 | date = 1969, 37 | volume = 29, 38 | pages = {189-216}, 39 | hyphenation = {german}, 40 | sorttitle = {Intention und Intentionalitat in der Scholastik, bei Brentano 41 | und Husserl}, 42 | indexsorttitle= {Intention und Intentionalitat in der Scholastik, bei Brentano 43 | und Husserl}, 44 | shorttitle = {Intention und Intentionalit{\"a}t}, 45 | annotation = {An article entry. Note the sorttitle and 46 | indexsorttitle fields and the markup of the quotes in 47 | the database file}, 48 | } 49 | 50 | --- 51 | references: 52 | - id: spiegelberg 53 | type: article-journal 54 | author: 55 | - family: Spiegelberg 56 | given: Herbert 57 | issued: 58 | - year: 1969 59 | title: “Intention” und “Intentionalität” in der Scholastik, bei Brentano und Husserl 60 | title-short: Intention und Intentionalität 61 | container-title: Studia Philosophica 62 | page: 189-216 63 | volume: '29' 64 | annote: An article entry. Note the sorttitle and indexsorttitle fields and the markup of the quotes in the database file 65 | language: de-DE 66 | ... 67 | -------------------------------------------------------------------------------- /tests/biblio2yaml/springer.biblatex: -------------------------------------------------------------------------------- 1 | @comment{ 2 | 3 | Adapted from biblatex-example.bib 4 | 5 | 6 | Formatted with pandoc and chicago-author-date.csl, 2013-10-23: 7 | 8 | (Springer 1950) 9 | 10 | Springer, Otto. 1950. “Mediaeval Pilgrim Routes from Scandinavia to 11 | Rome.” *Mediaeval Studies* 12: 92–122. 12 | 13 | 14 | Formatted with pandoc and apa.csl, 2013-10-23: 15 | 16 | (Springer, 1950) 17 | 18 | Springer, O. (1950). Mediaeval pilgrim routes from Scandinavia to Rome. 19 | *Mediaeval Studies*, *12*, 92–122. 20 | 21 | 22 | } 23 | 24 | @Article{springer, 25 | author = {Springer, Otto}, 26 | title = {Mediaeval Pilgrim Routes from {Scandinavia} to {Rome}}, 27 | journaltitle = {Mediaeval Studies}, 28 | date = 1950, 29 | volume = 12, 30 | pages = {92-122}, 31 | hyphenation = {british}, 32 | shorttitle = {Mediaeval Pilgrim Routes}, 33 | annotation = {A plain article entry}, 34 | } 35 | 36 | --- 37 | references: 38 | - id: springer 39 | type: article-journal 40 | author: 41 | - family: Springer 42 | given: Otto 43 | issued: 44 | - year: 1950 45 | title: Mediaeval pilgrim routes from Scandinavia to Rome 46 | title-short: Mediaeval pilgrim routes 47 | container-title: Mediaeval Studies 48 | page: 92-122 49 | volume: '12' 50 | annote: A plain article entry 51 | language: en-GB 52 | ... 53 | -------------------------------------------------------------------------------- /tests/biblio2yaml/strings.biblatex: -------------------------------------------------------------------------------- 1 | @comment{excerpt from http://mirrors.ctan.org/macros/latex/contrib/biblatex/doc/examples/biblatex-examples.bib} 2 | 3 | @string{anch-ie = {Angew.~Chem. Int.~Ed.}} 4 | 5 | @article{herrmann, 6 | Author = {Herrmann, Wolfgang A. and Öfele, Karl and Schneider, Sabine K. and Herdtweck, Eberhardt and Hoffmann, Stephan D.}, 7 | Date = 2006, 8 | Hyphenation = {english}, 9 | Indextitle = {Carbocyclic carbene as an efficient catalyst, A}, 10 | Journaltitle = anch-ie, 11 | Number = 23, 12 | Pages = {3859-3862}, 13 | Title = {A Carbocyclic Carbene as an Efficient Catalyst Ligand for {C--C} Coupling Reactions}, 14 | Volume = 45} 15 | 16 | --- 17 | references: 18 | - id: herrmann 19 | type: article-journal 20 | author: 21 | - family: Herrmann 22 | given: Wolfgang A. 23 | - family: Öfele 24 | given: Karl 25 | - family: Schneider 26 | given: Sabine K. 27 | - family: Herdtweck 28 | given: Eberhardt 29 | - family: Hoffmann 30 | given: Stephan D. 31 | issued: 32 | - year: 2006 33 | title: A carbocyclic carbene as an efficient catalyst ligand for C–C coupling reactions 34 | container-title: Angew. Chem. Int. Ed. 35 | page: 3859-3862 36 | volume: '45' 37 | issue: '23' 38 | language: en-US 39 | ... 40 | -------------------------------------------------------------------------------- /tests/biblio2yaml/textnormal.biblatex: -------------------------------------------------------------------------------- 1 | @book{item1, 2 | Title = {The Title \textnormal{of this book}}, 3 | } 4 | 5 | --- 6 | references: 7 | - id: item1 8 | type: book 9 | title: The title of this book 10 | ... 11 | -------------------------------------------------------------------------------- /tests/biblio2yaml/vangennep-related.biblatex: -------------------------------------------------------------------------------- 1 | @comment{ 2 | 3 | Adapted from biblatex-example.bib 4 | 5 | 6 | Formatted with pandoc and chicago-author-date.csl, 2013-10-23: 7 | 8 | (van Gennep 1909) 9 | 10 | van Gennep, Arnold. 1909. *Les rites de passage*. Paris: Nourry. 11 | 12 | 13 | Formatted with pandoc and apa.csl, 2013-10-23: 14 | 15 | (van Gennep, 1909) 16 | 17 | van Gennep, A. (1909). *Les rites de passage*. Paris: Nourry. 18 | 19 | NOTES: 20 | 21 | - biblio2yaml 22 | - "related = {vizedom:related}, relatedtype = {bytranslator}": no equivalent implemented in CSL 23 | - "options = {useprefix}," is shorthand for "options = {useprefix=true}," 24 | 25 | 26 | } 27 | 28 | @Book{vangennep:related, 29 | author = {van Gennep, Arnold}, 30 | title = {Les rites de passage}, 31 | date = 1909, 32 | publisher = {Nourry}, 33 | location = {Paris}, 34 | options = {useprefix}, 35 | hyphenation = {french}, 36 | related = {vizedom:related}, 37 | relatedtype = {bytranslator}, 38 | sorttitle = {Rites de passage}, 39 | indextitle = {Rites de passage, Les}, 40 | shorttitle = {Rites de passage}, 41 | annotation = {A variant of the vangennep entry related to its 42 | translation. Note the format of the related and 43 | relatedtype fields}, 44 | } 45 | 46 | --- 47 | references: 48 | - id: vangennep:related 49 | type: book 50 | author: 51 | - family: Gennep 52 | given: Arnold 53 | non-dropping-particle: van 54 | issued: 55 | - year: 1909 56 | title: Les rites de passage 57 | title-short: Rites de passage 58 | publisher: Nourry 59 | publisher-place: Paris 60 | annote: A variant of the vangennep entry related to its translation. Note the format of the related and relatedtype fields 61 | language: fr-FR 62 | ... 63 | -------------------------------------------------------------------------------- /tests/biblio2yaml/vangennep-trans.biblatex: -------------------------------------------------------------------------------- 1 | @comment{ 2 | 3 | Adapted from biblatex-example.bib 4 | 5 | 6 | Formatted with pandoc and chicago-author-date.csl, 2013-10-23: 7 | 8 | (van Gennep 1960) 9 | 10 | van Gennep, Arnold. 1960. *The Rites of Passage*. Translated by Monika 11 | B. Vizedom and Gabrielle L. Caffee. University of Chicago Press. 12 | 13 | 14 | Formatted with pandoc and apa.csl, 2013-10-23: 15 | 16 | (van Gennep, 1960) 17 | 18 | van Gennep, A. (1960). *The rites of passage*. (M. B. Vizedom & G. L. 19 | Caffee, Trans.). University of Chicago Press. 20 | 21 | 22 | } 23 | 24 | @Book{vangennep:trans, 25 | author = {van Gennep, Arnold}, 26 | title = {The Rites of Passage}, 27 | year = 1960, 28 | translator = {Vizedom, Monika B. and Caffee, Gabrielle L.}, 29 | language = {english}, 30 | origlanguage = {french}, 31 | publisher = {University of Chicago Press}, 32 | options = {useprefix}, 33 | indextitle = {Rites of Passage, The}, 34 | sorttitle = {Rites of Passage}, 35 | shorttitle = {Rites of Passage}, 36 | hyphenation = {american}, 37 | annotation = {A translation of the vangennep entry. Note the 38 | translator and origlanguage fields. Compare 39 | with the vangennep:related entry.}, 40 | } 41 | 42 | --- 43 | references: 44 | - id: vangennep:trans 45 | type: book 46 | author: 47 | - family: Gennep 48 | given: Arnold 49 | non-dropping-particle: van 50 | translator: 51 | - family: Vizedom 52 | given: Monika B. 53 | - family: Caffee 54 | given: Gabrielle L. 55 | issued: 56 | - year: 1960 57 | title: The rites of passage 58 | title-short: Rites of passage 59 | publisher: University of Chicago Press 60 | annote: A translation of the vangennep entry. Note the translator and origlanguage fields. Compare with the vangennep:related entry. 61 | language: en-US 62 | ... 63 | -------------------------------------------------------------------------------- /tests/biblio2yaml/vangennep.biblatex: -------------------------------------------------------------------------------- 1 | @comment{ 2 | 3 | Adapted from biblatex-example.bib 4 | 5 | 6 | Formatted with pandoc and chicago-author-date.csl, 2013-10-23: 7 | 8 | (van Gennep 1909) 9 | 10 | van Gennep, Arnold. 1909. *Les rites de passage*. Paris: Nourry. 11 | 12 | 13 | Formatted with pandoc and apa.csl, 2013-10-23: 14 | 15 | (van Gennep, 1909) 16 | 17 | van Gennep, A. (1909). *Les rites de passage*. Paris: Nourry. 18 | 19 | 20 | } 21 | 22 | @Book{vangennep, 23 | author = {van Gennep, Arnold}, 24 | title = {Les rites de passage}, 25 | date = 1909, 26 | publisher = {Nourry}, 27 | location = {Paris}, 28 | options = {useprefix}, 29 | hyphenation = {french}, 30 | sorttitle = {Rites de passage}, 31 | indextitle = {Rites de passage, Les}, 32 | shorttitle = {Rites de passage}, 33 | annotation = {A book entry. Note the format of the printed name and 34 | compare the useprefix option in the options 35 | field as well as brandt and geer}, 36 | } 37 | 38 | --- 39 | references: 40 | - id: vangennep 41 | type: book 42 | author: 43 | - family: Gennep 44 | given: Arnold 45 | non-dropping-particle: van 46 | issued: 47 | - year: 1909 48 | title: Les rites de passage 49 | title-short: Rites de passage 50 | publisher: Nourry 51 | publisher-place: Paris 52 | annote: A book entry. Note the format of the printed name and compare the useprefix option in the options field as well as brandt and geer 53 | language: fr-FR 54 | ... 55 | -------------------------------------------------------------------------------- /tests/biblio2yaml/video.biblatex: -------------------------------------------------------------------------------- 1 | @video{x1,title={blah}} 2 | @movie{x2,title={blah}} 3 | 4 | --- 5 | references: 6 | - id: x1 7 | type: motion_picture 8 | title: Blah 9 | 10 | - id: x2 11 | type: motion_picture 12 | title: Blah 13 | ... 14 | -------------------------------------------------------------------------------- /tests/biblio2yaml/vizedom-related.biblatex: -------------------------------------------------------------------------------- 1 | @comment{ 2 | 3 | Adapted from biblatex-example.bib 4 | 5 | Formatted with pandoc and chicago-author-date.csl, 2013-10-23: 6 | 7 | (Vizedom and Caffee 1960) 8 | 9 | Vizedom, Monika B., and Gabrielle L. Caffee, trans. 1960. *The Rites of 10 | Passage*. University of Chicago Press. 11 | 12 | 13 | Formatted with pandoc and apa.csl, 2013-10-23: 14 | 15 | (Vizedom & Caffee, 1960) 16 | 17 | Vizedom, M. B., & Caffee, G. L. (Trans.). (1960). *The rites of 18 | passage*. University of Chicago Press. 19 | 20 | 21 | NOTES: 22 | 23 | - biblio2yaml 24 | - "related = {vangennep}, relatedtype = {translationof}": no equivalent implemented in CSL 25 | 26 | } 27 | 28 | @Book{vizedom:related, 29 | title = {The Rites of Passage}, 30 | year = 1960, 31 | translator = {Vizedom, Monika B. and Caffee, Gabrielle L.}, 32 | language = {english}, 33 | publisher = {University of Chicago Press}, 34 | hyphenation = {american}, 35 | options = {usetranslator}, 36 | related = {vangennep}, 37 | relatedtype = {translationof}, 38 | indextitle = {Rites of Passage, The}, 39 | sorttitle = {Rites of Passage}, 40 | shorttitle = {Rites of Passage}, 41 | annotation = {A translated work from vangennep. Note the format of 42 | the related and relatedtype fields}, 43 | } 44 | 45 | --- 46 | references: 47 | - id: vizedom:related 48 | type: book 49 | translator: 50 | - family: Vizedom 51 | given: Monika B. 52 | - family: Caffee 53 | given: Gabrielle L. 54 | issued: 55 | - year: 1960 56 | title: The rites of passage 57 | title-short: Rites of passage 58 | publisher: University of Chicago Press 59 | annote: A translated work from vangennep. Note the format of the related and relatedtype fields 60 | language: en-US 61 | ... 62 | -------------------------------------------------------------------------------- /tests/biblio2yaml/weinberg.biblatex: -------------------------------------------------------------------------------- 1 | @comment{ 2 | 3 | Adapted from biblatex-example.bib 4 | 5 | 6 | Formatted with pandoc and chicago-author-date.csl, 2013-10-23: 7 | 8 | (Weinberg 1967) 9 | 10 | Weinberg, Steven. 1967. “A Model of Leptons.” *Phys. Rev. Lett.* 19: 11 | 1264–1266. 12 | 13 | 14 | Formatted with pandoc and apa.csl, 2013-10-23: 15 | 16 | (Weinberg, 1967) 17 | 18 | Weinberg, S. (1967). A model of leptons. *Phys. Rev. Lett.*, *19*, 19 | 1264–1266. 20 | 21 | 22 | } 23 | 24 | @Article{weinberg, 25 | author = {Weinberg, Steven}, 26 | title = {A Model of Leptons}, 27 | journaltitle = {Phys.~Rev.~Lett.}, 28 | date = 1967, 29 | volume = 19, 30 | pages = {1264-1266}, 31 | } 32 | 33 | --- 34 | references: 35 | - id: weinberg 36 | type: article-journal 37 | author: 38 | - family: Weinberg 39 | given: Steven 40 | issued: 41 | - year: 1967 42 | title: A model of leptons 43 | container-title: Phys. Rev. Lett. 44 | page: 1264-1266 45 | volume: '19' 46 | ... 47 | -------------------------------------------------------------------------------- /tests/biblio2yaml/westfahl-frontier.biblatex: -------------------------------------------------------------------------------- 1 | @comment{ 2 | 3 | Adapted from biblatex-example.bib 4 | 5 | Formatted with pandoc and chicago-author-date.csl, 2013-10-23: 6 | 7 | (Westfahl 2000) 8 | 9 | Westfahl, Gary, ed. 2000. *Space and Beyond: The Frontier Theme in 10 | Science Fiction*. Westport, Conn.; London: Greenwood. 11 | 12 | 13 | Formatted with pandoc and apa.csl, 2013-10-23: 14 | 15 | (Westfahl, 2000) 16 | 17 | Westfahl, G. (Ed.). (2000). *Space and beyond: The frontier theme in 18 | science fiction*. Westport, Conn.; London: Greenwood. 19 | 20 | 21 | } 22 | 23 | @Collection{westfahl:frontier, 24 | editor = {Westfahl, Gary}, 25 | title = {Space and Beyond}, 26 | date = 2000, 27 | subtitle = {The Frontier Theme in Science Fiction}, 28 | publisher = {Greenwood}, 29 | location = {Westport, Conn. and London}, 30 | hyphenation = {american}, 31 | booktitle = {Space and Beyond}, 32 | booksubtitle = {The Frontier Theme in Science Fiction}, 33 | annotation = {This is a collection entry. Note the format of the 34 | location field as well as the subtitle and 35 | booksubtitle fields}, 36 | } 37 | 38 | --- 39 | references: 40 | - id: westfahl:frontier 41 | type: book 42 | editor: 43 | - family: Westfahl 44 | given: Gary 45 | issued: 46 | - year: 2000 47 | title: 'Space and beyond: The frontier theme in science fiction' 48 | title-short: Space and beyond 49 | publisher: Greenwood 50 | publisher-place: Westport, Conn.; London 51 | annote: This is a collection entry. Note the format of the location field as well as the subtitle and booksubtitle fields 52 | language: en-US 53 | ... 54 | -------------------------------------------------------------------------------- /tests/biblio2yaml/wilde.biblatex: -------------------------------------------------------------------------------- 1 | @comment{ 2 | 3 | Adapted from biblatex-example.bib 4 | 5 | 6 | Formatted with pandoc and chicago-author-date.csl, 2013-10-23: 7 | 8 | (Wilde 1899) 9 | 10 | Wilde, Oscar. 1899. *The Importance of Being Earnest: A Trivial Comedy 11 | for Serious People*. English and American Drama of the Nineteenth 12 | Century. Leonard Smithers and Company. 13 | 14 | 15 | Formatted with pandoc and apa.csl, 2013-10-23: 16 | 17 | (Wilde, 1899) 18 | 19 | Wilde, O. (1899). *The importance of being earnest: A trivial comedy for 20 | serious people*. Leonard Smithers and Company. 21 | 22 | 23 | NOTES: 24 | 25 | - biblio2yaml 26 | - From "eprint = {4HIWAAAAYAAJ}, eprinttype = {googlebooks}", a url could be reconstructed, shortest form: http://books.google.com?id=4HIWAAAAYAAJ 27 | 28 | } 29 | 30 | @Book{wilde, 31 | author = {Wilde, Oscar}, 32 | title = {The Importance of Being Earnest: {A} Trivial Comedy for Serious 33 | People}, 34 | year = 1899, 35 | series = {English and American drama of the Nineteenth Century}, 36 | publisher = {Leonard Smithers {and} Company}, 37 | eprint = {4HIWAAAAYAAJ}, 38 | eprinttype = {googlebooks}, 39 | annotation = {A book with eprint and eprinttype 40 | fields.}, 41 | } 42 | 43 | --- 44 | references: 45 | - id: wilde 46 | type: book 47 | author: 48 | - family: Wilde 49 | given: Oscar 50 | issued: 51 | - year: 1899 52 | title: 'The importance of being earnest: A trivial comedy for serious people' 53 | title-short: The importance of being earnest 54 | collection-title: English and american drama of the nineteenth century 55 | publisher: Leonard Smithers and Company 56 | annote: A book with eprint and eprinttype fields. 57 | URL: http://books.google.com?id=4HIWAAAAYAAJ 58 | ... 59 | -------------------------------------------------------------------------------- /tests/biblio2yaml/worman.biblatex: -------------------------------------------------------------------------------- 1 | @comment{ 2 | 3 | Adapted from biblatex-example.bib 4 | 5 | 6 | Formatted with pandoc and chicago-author-date.csl, 2013-10-23: 7 | 8 | (Worman 2002) 9 | 10 | Worman, Nancy. 2002. *The Cast of Character: Style in Greek Literature*. 11 | Austin: University of Texas Press. 12 | 13 | 14 | Formatted with pandoc and apa.csl, 2013-10-23: 15 | 16 | (Worman, 2002) 17 | 18 | Worman, N. (2002). *The cast of character: Style in Greek literature*. 19 | Austin: University of Texas Press. 20 | 21 | 22 | } 23 | 24 | @Book{worman, 25 | author = {Worman, Nancy}, 26 | title = {The Cast of Character}, 27 | date = 2002, 28 | publisher = {University of Texas Press}, 29 | location = {Austin}, 30 | hyphenation = {american}, 31 | sorttitle = {Cast of Character}, 32 | indextitle = {Cast of Character, The}, 33 | subtitle = {Style in {Greek} Literature}, 34 | shorttitle = {Cast of Character}, 35 | annotation = {A book entry. Note the sorttitle and 36 | indextitle fields}, 37 | } 38 | 39 | --- 40 | references: 41 | - id: worman 42 | type: book 43 | author: 44 | - family: Worman 45 | given: Nancy 46 | issued: 47 | - year: 2002 48 | title: 'The cast of character: Style in Greek literature' 49 | title-short: Cast of character 50 | publisher: University of Texas Press 51 | publisher-place: Austin 52 | annote: A book entry. Note the sorttitle and indextitle fields 53 | language: en-US 54 | ... 55 | -------------------------------------------------------------------------------- /tests/biblio2yaml/yoon.biblatex: -------------------------------------------------------------------------------- 1 | @comment{ 2 | 3 | Adapted from biblatex-example.bib 4 | 5 | 6 | Formatted with pandoc and chicago-author-date.csl, 2013-10-23: 7 | 8 | (Yoon et al. 2006) 9 | 10 | Yoon, Myeong S., Dowook Ryu, Jeongryul Kim, and Kyo Han Ahn. 2006. 11 | “Palladium Pincer Complexes with Reduced Bond Angle Strain: Efficient 12 | Catalysts for the Heck Reaction.” *Organometallics* 25 (10): 2409–2411. 13 | 14 | 15 | Formatted with pandoc and apa.csl, 2013-10-23: 16 | 17 | (Yoon, Ryu, Kim, & Ahn, 2006) 18 | 19 | Yoon, M. S., Ryu, D., Kim, J., & Ahn, K. H. (2006). Palladium pincer 20 | complexes with reduced bond angle strain: Efficient catalysts for the 21 | Heck reaction. *Organometallics*, *25*(10), 2409–2411. 22 | 23 | 24 | } 25 | 26 | @Article{yoon, 27 | author = {Yoon, Myeong S. and Ryu, Dowook and Kim, Jeongryul and Ahn, 28 | Kyo Han}, 29 | title = {Palladium pincer complexes with reduced bond angle strain: 30 | efficient catalysts for the {Heck} reaction}, 31 | journaltitle = {Organometallics}, 32 | date = 2006, 33 | volume = 25, 34 | number = 10, 35 | pages = {2409-2411}, 36 | indextitle = {Palladium pincer complexes}, 37 | } 38 | 39 | --- 40 | references: 41 | - id: yoon 42 | type: article-journal 43 | author: 44 | - family: Yoon 45 | given: Myeong S. 46 | - family: Ryu 47 | given: Dowook 48 | - family: Kim 49 | given: Jeongryul 50 | - family: Ahn 51 | given: Kyo Han 52 | issued: 53 | - year: 2006 54 | title: 'Palladium pincer complexes with reduced bond angle strain: Efficient catalysts for the Heck reaction' 55 | title-short: Palladium pincer complexes with reduced bond angle strain 56 | container-title: Organometallics 57 | page: 2409-2411 58 | volume: '25' 59 | issue: '10' 60 | ... 61 | -------------------------------------------------------------------------------- /tests/chicago-author-date.in.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jgm/pandoc-citeproc/473378e588c40a6c3cb3b24330431b89cf4f81b4/tests/chicago-author-date.in.txt -------------------------------------------------------------------------------- /tests/issue118.expected.native: -------------------------------------------------------------------------------- 1 | Pandoc (Meta {unMeta = fromList [("references",MetaList [MetaMap (fromList [("director",MetaMap (fromList [("family",MetaInlines [Str "Hitchcock"]),("given",MetaInlines [Str "Alfred"])])),("id",MetaInlines [Str "nbn"]),("issued",MetaMap (fromList [("year",MetaString "1959")])),("language",MetaInlines [Str "en-US"]),("publisher",MetaInlines [Str "Metro-Goldwyn-Mayer"]),("publisher-place",MetaInlines [Str "USA"]),("title",MetaInlines [Str "North",Space,Str "by",Space,Str "Northwest"]),("type",MetaInlines [Str "motion_picture"])])])]}) 2 | [Para [Cite [Citation {citationId = "nbn", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 1}] [Str "(Hitchcock",Space,Str "1959)"],Space,Str "is",Space,Str "a",Space,Str "spy",Space,Str "thriller",Space,Str "film."] 3 | ,Div ("refs",["references","hanging-indent"],[]) 4 | [Div ("ref-nbn",[],[]) 5 | [Para [Str "Hitchcock,",Space,Str "Alfred,",Space,Str "dir.",Space,Str "1959.",Space,Emph [Str "North",Space,Str "by",Space,Str "Northwest"],Str ".",Space,Str "USA:",Space,Str "Metro-Goldwyn-Mayer."]]]] 6 | -------------------------------------------------------------------------------- /tests/issue118.in.native: -------------------------------------------------------------------------------- 1 | Pandoc (Meta {unMeta = fromList [("references",MetaList [MetaMap (fromList [("director",MetaMap (fromList [("family",MetaInlines [Str "Hitchcock"]),("given",MetaInlines [Str "Alfred"])])),("id",MetaInlines [Str "nbn"]),("issued",MetaMap (fromList [("year",MetaString "1959")])),("language",MetaInlines [Str "en-US"]),("publisher",MetaInlines [Str "Metro-Goldwyn-Mayer"]),("publisher-place",MetaInlines [Str "USA"]),("title",MetaInlines [Str "North",Space,Str "by",Space,Str "Northwest"]),("type",MetaInlines [Str "motion_picture"])])])]}) 2 | [Para [Cite [Citation {citationId = "nbn", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 0}] [Str "@nbn"],Space,Str "is",Space,Str "a",Space,Str "spy",Space,Str "thriller",Space,Str "film."]] 3 | -------------------------------------------------------------------------------- /tests/issue119.in.native: -------------------------------------------------------------------------------- 1 | Pandoc (Meta {unMeta = fromList [("bibliography",MetaInlines [Str "tests/biblatex-examples.bib"]),("csl",MetaInlines [Str "tests/apa.csl"])]}) 2 | [Para [Cite [Citation {citationId = "averroes/bland", citationPrefix = [], citationSuffix = [], citationMode = AuthorInText, citationNoteNum = 0, citationHash = 0}] [Str "@averroes/bland"],Str ";",Space,Cite [Citation {citationId = "averroes/hannes", citationPrefix = [], citationSuffix = [], citationMode = AuthorInText, citationNoteNum = 0, citationHash = 0}] [Str "@averroes/hannes"],Str ";",Space,Cite [Citation {citationId = "averroes/hercz", citationPrefix = [], citationSuffix = [], citationMode = AuthorInText, citationNoteNum = 0, citationHash = 0}] [Str "@averroes/hercz"]] 3 | ,Header 1 ("references",["unnumbered"],[]) [Str "References"]] 4 | -------------------------------------------------------------------------------- /tests/issue13.expected.native: -------------------------------------------------------------------------------- 1 | Pandoc (Meta {unMeta = fromList [("csl",MetaInlines [Str "tests/chicago-note-bibliography.csl"]),("references",MetaList [MetaMap (fromList [("author",MetaMap (fromList [("family",MetaInlines [Str "Author"]),("given",MetaList [MetaInlines [Str "Ann"]])])),("container-title",MetaInlines [Str "Journal"]),("id",MetaInlines [Str "item1"]),("issued",MetaList [MetaMap (fromList [("year",MetaString "2011")])]),("title",MetaInlines [Str "Title"]),("type",MetaInlines [Str "article-newspaper"])])])]}) 2 | [Para [Str "Foo",Str ".",Cite [Citation {citationId = "item1", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 1}] [Note [Para [Str "Author,",Space,Str "\8220Title.\8221"]]]] 3 | ,Div ("refs",["references","hanging-indent"],[]) 4 | [Div ("ref-item1",[],[]) 5 | [Para [Str "Author,",Space,Str "Ann.",Space,Str "\8220Title.\8221",Space,Emph [Str "Journal"],Str ",",Space,Str "2011."]]]] 6 | -------------------------------------------------------------------------------- /tests/issue13.in.native: -------------------------------------------------------------------------------- 1 | Pandoc (Meta {unMeta = fromList [("csl",MetaInlines [Str "tests/chicago-note-bibliography.csl"]),("references",MetaList [MetaMap (fromList [("author",MetaMap (fromList [("family",MetaInlines [Str "Author"]),("given",MetaList [MetaInlines [Str "Ann"]])])),("container-title",MetaInlines [Str "Journal"]),("id",MetaInlines [Str "item1"]),("issued",MetaList [MetaMap (fromList [("year",MetaString "2011")])]),("title",MetaInlines [Str "Title"]),("type",MetaInlines [Str "article-newspaper"])])])]}) 2 | [Para [Str "Foo",Space,Cite [Citation {citationId = "item1", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 0}] [Str "[@item1]"],Str "."]] 3 | -------------------------------------------------------------------------------- /tests/issue152.in.native: -------------------------------------------------------------------------------- 1 | Pandoc (Meta {unMeta = fromList [("csl",MetaInlines [Str "tests/apa.csl"]),("references",MetaList [MetaMap (fromList [("URL",MetaInlines [Str "http://geekfeminism.wikia.com/wiki/Geek_Feminism"]),("accessed",MetaMap (fromList [("day",MetaString "10"),("month",MetaString "4"),("year",MetaString "2013")])),("container-title",MetaInlines [Str "Geek",Space,Str "Feminism"]),("custom2",MetaInlines [Str "ok.mm"]),("id",MetaInlines [Str "Feminism2013gf"]),("issued",MetaMap (fromList [("day",MetaString "10"),("month",MetaString "4"),("year",MetaString "2013")])),("keyword",MetaInlines [Str "gender"]),("title",MetaInlines [Str "Geek",Space,Str "Feminism"]),("type",MetaInlines [Str "webpage"])]),MetaMap (fromList [("URL",MetaInlines [Str "http://geekfeminism.wikia.com/wiki/Category:Communities"]),("accessed",MetaMap (fromList [("day",MetaString "19"),("month",MetaString "10"),("year",MetaString "2011")])),("container-title",MetaInlines [Str "Geek",Space,Str "Feminism"]),("custom2",MetaInlines [Str "gender.mm"]),("id",MetaInlines [Str "Feminism2011ces"]),("issued",MetaMap (fromList [("day",MetaString "14"),("month",MetaString "8"),("year",MetaString "2011")])),("keyword",MetaInlines [Str "gender"]),("title",MetaInlines [Str "Communities"]),("type",MetaInlines [Str "entry-encyclopedia"])])])]}) 2 | [Header 1 ("test",[],[]) [Str "Test"] 3 | ,Para [Str "I",Space,Str "have",Space,Str "two",Space,Str "citations",Space,Cite [Citation {citationId = "Feminism2013gf", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 0},Citation {citationId = "Feminism2011ces", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 0}] [Str "[@Feminism2013gf;",Space,Str "@Feminism2011ces]"],Str "."] 4 | ,Header 1 ("references",[],[]) [Str "References"]] 5 | -------------------------------------------------------------------------------- /tests/issue160.csl: -------------------------------------------------------------------------------- 1 | 2 | 29 | -------------------------------------------------------------------------------- /tests/issue160.expected.native: -------------------------------------------------------------------------------- 1 | Pandoc (Meta {unMeta = fromList [("csl",MetaInlines [Str "tests/issue160.csl"]),("references",MetaList [MetaMap (fromList [("author",MetaList [MetaMap (fromList [("family",MetaInlines [Str "Doe"]),("given",MetaInlines [Str "Jane"])])]),("citation-label",MetaInlines [Str "Jane11"]),("id",MetaInlines [Str "item1"]),("issued",MetaMap (fromList [("year",MetaString "2011")])),("title",MetaInlines [Str "A",Space,Str "book"]),("type",MetaInlines [Str "book"])])])]}) 2 | [Header 2 ("no-citation-label",[],[]) [Str "No",Space,Str "citation-label"] 3 | ,Para [Str "Foo",Space,Cite [Citation {citationId = "item1", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 1}] [Str "[Jane11]"],Str "."] 4 | ,Header 2 ("expected",[],[]) [Str "Expected"] 5 | ,BlockQuote 6 | [Para [Str "Foo",Space,Str "[Jane11]."] 7 | ,Para [Str "[Jane11]",Space,Str "Jane",Space,Str "Doe.",Space,Str "A",Space,Str "book.",Space,Str "2011."]] 8 | ,Div ("refs",["references"],[]) 9 | [Div ("ref-item1",[],[]) 10 | [Para [Str "[Jane11]",Space,Str "Jane",Space,Str "Doe.",Space,Str "A",Space,Str "book.",Space,Str "2011."]]]] 11 | -------------------------------------------------------------------------------- /tests/issue160.in.native: -------------------------------------------------------------------------------- 1 | Pandoc (Meta {unMeta = fromList [("csl",MetaInlines [Str "tests/issue160.csl"]),("references",MetaList [MetaMap (fromList [("author",MetaList [MetaMap (fromList [("family",MetaInlines [Str "Doe"]),("given",MetaInlines [Str "Jane"])])]),("citation-label",MetaInlines [Str "Jane11"]),("id",MetaInlines [Str "item1"]),("issued",MetaMap (fromList [("year",MetaString "2011")])),("title",MetaInlines [Str "A",Space,Str "book"]),("type",MetaInlines [Str "book"])])])]}) 2 | [Header 2 ("no-citation-label",[],[]) [Str "No",Space,Str "citation-label"] 3 | ,Para [Str "Foo",Space,Cite [Citation {citationId = "item1", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 0}] [Str "[@item1]"],Str "."] 4 | ,Header 2 ("expected",[],[]) [Str "Expected"] 5 | ,BlockQuote 6 | [Para [Str "Foo",Space,Str "[Jane11]."] 7 | ,Para [Str "[Jane11]",Space,Str "Jane",Space,Str "Doe.",Space,Str "A",Space,Str "book.",Space,Str "2011."]]] 8 | -------------------------------------------------------------------------------- /tests/issue175.expected.native: -------------------------------------------------------------------------------- 1 | Pandoc (Meta {unMeta = fromList [("references",MetaList [MetaMap (fromList [("author",MetaList [MetaMap (fromList [("family",MetaInlines [Str "Doe"]),("given",MetaInlines [Str "Jane"])])]),("container-title",MetaInlines [Str "A",Space,Str "magazine"]),("id",MetaInlines [Str "item1"]),("issued",MetaList [MetaMap (fromList [("month",MetaString "1"),("year",MetaString "2011")]),MetaMap (fromList [("month",MetaString "2"),("year",MetaString "2011")])]),("page",MetaInlines [Str "33-44"]),("title",MetaInlines [Str "A",Space,Str "title"]),("type",MetaInlines [Str "article-magazine"])])])]}) 2 | [Header 2 ("missing-en-dash-between-months",[],[]) [Str "Missing",Space,Str "en-dash",Space,Str "between",Space,Str "months"] 3 | ,Para [Str "Foo",Space,Cite [Citation {citationId = "item1", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 1}] [Str "(Doe",Space,Str "2011)"],Str "."] 4 | ,Header 2 ("expected",[],[]) [Str "Expected"] 5 | ,BlockQuote 6 | [Para [Str "Doe,",Space,Str "Jane.",Space,Str "2011.",Space,Str "\8220A",Space,Str "Title.\8221",Space,Emph [Str "A",Space,Str "Magazine"],Str ",",Space,Str "January\8211February."]] 7 | ,Div ("refs",["references","hanging-indent"],[]) 8 | [Div ("ref-item1",[],[]) 9 | [Para [Str "Doe,",Space,Str "Jane.",Space,Str "2011.",Space,Str "\8220A",Space,Str "Title.\8221",Space,Emph [Str "A",Space,Str "Magazine"],Str ",",Space,Str "January\8211February",Space,Str "2011."]]]] 10 | -------------------------------------------------------------------------------- /tests/issue175.in.native: -------------------------------------------------------------------------------- 1 | Pandoc (Meta {unMeta = fromList [("references",MetaList [MetaMap (fromList [("author",MetaList [MetaMap (fromList [("family",MetaInlines [Str "Doe"]),("given",MetaInlines [Str "Jane"])])]),("container-title",MetaInlines [Str "A",Space,Str "magazine"]),("id",MetaInlines [Str "item1"]),("issued",MetaList [MetaMap (fromList [("month",MetaString "1"),("year",MetaString "2011")]),MetaMap (fromList [("month",MetaString "2"),("year",MetaString "2011")])]),("page",MetaInlines [Str "33-44"]),("title",MetaInlines [Str "A",Space,Str "title"]),("type",MetaInlines [Str "article-magazine"])])])]}) 2 | [Header 2 ("missing-en-dash-between-months",[],[]) [Str "Missing",Space,Str "en-dash",Space,Str "between",Space,Str "months"] 3 | ,Para [Str "Foo",Space,Cite [Citation {citationId = "item1", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 0}] [Str "[@item1]"],Str "."] 4 | ,Header 2 ("expected",[],[]) [Str "Expected"] 5 | ,BlockQuote 6 | [Para [Str "Doe,",Space,Str "Jane.",Space,Str "2011.",Space,Str "\8220A",Space,Str "Title.\8221",Space,Emph [Str "A",Space,Str "Magazine"],Str ",",Space,Str "January\8211February."]]] 7 | -------------------------------------------------------------------------------- /tests/issue197.expected.native: -------------------------------------------------------------------------------- 1 | Pandoc (Meta {unMeta = fromList [("csl",MetaInlines [Str "tests/chicago-fullnote-bibliography.csl"]),("nocite",MetaInlines [Cite [Citation {citationId = "test", citationPrefix = [], citationSuffix = [], citationMode = AuthorInText, citationNoteNum = 0, citationHash = 0}] [Str "@test"]]),("references",MetaList [MetaMap (fromList [("editor",MetaList [MetaMap (fromList [("family",MetaInlines [Str "Abelard"]),("given",MetaInlines [Str "Peter"])])]),("id",MetaInlines [Str "test"]),("issued",MetaMap (fromList [("date-parts",MetaList [MetaList [MetaString "1989"]])])),("publisher",MetaInlines [Str "Clarendon",Space,Str "Press"]),("publisher-place",MetaInlines [Str "Oxford"]),("title",MetaInlines [Str "Test"]),("type",MetaInlines [Str "book"])])])]}) 2 | [Para [Str "This",Space,Str "is",Space,Str "a",Space,Str "test",Str ".",Cite [Citation {citationId = "test", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 1}] [Note [Para [Str "Peter",Space,Str "Abelard,",Space,Str "ed.,",Space,Emph [Str "Test"],Space,Str "(Oxford:",Space,Str "Clarendon",Space,Str "Press,",Space,Str "1989)."]]]] 3 | ,Div ("refs",["references","hanging-indent"],[]) 4 | [Div ("ref-test",[],[]) 5 | [Para [Str "Abelard,",Space,Str "Peter,",Space,Str "ed.",Space,Emph [Str "Test"],Str ".",Space,Str "Oxford:",Space,Str "Clarendon",Space,Str "Press,",Space,Str "1989."]]]] 6 | -------------------------------------------------------------------------------- /tests/issue197.in.native: -------------------------------------------------------------------------------- 1 | Pandoc (Meta {unMeta = fromList [("csl",MetaInlines [Str "tests/chicago-fullnote-bibliography.csl"]),("nocite",MetaInlines [Cite [Citation {citationId = "test", citationPrefix = [], citationSuffix = [], citationMode = AuthorInText, citationNoteNum = 0, citationHash = 0}] [Str "@test"]]),("references",MetaList [MetaMap (fromList [("editor",MetaList [MetaMap (fromList [("family",MetaInlines [Str "Abelard"]),("given",MetaInlines [Str "Peter"])])]),("id",MetaInlines [Str "test"]),("issued",MetaMap (fromList [("date-parts",MetaList [MetaList [MetaString "1989"]])])),("publisher",MetaInlines [Str "Clarendon",Space,Str "Press"]),("publisher-place",MetaInlines [Str "Oxford"]),("title",MetaInlines [Str "Test"]),("type",MetaInlines [Str "book"])])])]}) 2 | [Para [Str "This",Space,Str "is",Space,Str "a",Space,Str "test",Space,Cite [Citation {citationId = "test", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 0}] [Str "[@test]"],Str "."]] 3 | -------------------------------------------------------------------------------- /tests/issue213.expected.native: -------------------------------------------------------------------------------- 1 | Pandoc (Meta {unMeta = fromList [("csl",MetaInlines [Str "tests/harvard-university-of-kent.csl"]),("references",MetaList [MetaMap (fromList [("author",MetaList [MetaMap (fromList [("family",MetaInlines [Str "Doe"]),("given",MetaInlines [Str "Ann"])])]),("collection-title",MetaInlines [Str "The",Space,Str "collection",Space,Str "title"]),("dimensions",MetaInlines [Str "789",Space,Str "pp."]),("id",MetaInlines [Str "doe1"]),("issued",MetaList [MetaMap (fromList [("year",MetaInlines [Str "1999"])])]),("publisher",MetaInlines [Str "The",Space,Str "publisher"]),("title",MetaInlines [Str "Title"]),("type",MetaInlines [Str "book"])])])]}) 2 | [Para [Str "Foo",Space,Cite [Citation {citationId = "doe1", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 1}] [Str "(Doe",Space,Str "1999)"],Str "."] 3 | ,Header 1 ("references",["unnumbered"],[]) [Str "References"] 4 | ,Div ("refs",["references","hanging-indent"],[]) 5 | [Div ("ref-doe1",[],[]) 6 | [Para [Str "Doe,",Space,Str "A.",Space,Str "(1999).",Space,Emph [Str "Title"],Str ".",Space,Str "The",Space,Str "collection",Space,Str "title.",Space,Str "The",Space,Str "publisher.",Space,Str "789",Space,Str "pp."]]]] 7 | -------------------------------------------------------------------------------- /tests/issue213.in.native: -------------------------------------------------------------------------------- 1 | Pandoc (Meta {unMeta = fromList [("csl",MetaInlines [Str "tests/harvard-university-of-kent.csl"]),("references",MetaList [MetaMap (fromList [("author",MetaList [MetaMap (fromList [("family",MetaInlines [Str "Doe"]),("given",MetaInlines [Str "Ann"])])]),("collection-title",MetaInlines [Str "The",Space,Str "collection",Space,Str "title"]),("dimensions",MetaInlines [Str "789",Space,Str "pp."]),("id",MetaInlines [Str "doe1"]),("issued",MetaList [MetaMap (fromList [("year",MetaInlines [Str "1999"])])]),("publisher",MetaInlines [Str "The",Space,Str "publisher"]),("title",MetaInlines [Str "Title"]),("type",MetaInlines [Str "book"])])])]}) 2 | [Para [Str "Foo",Space,Cite [Citation {citationId = "doe1", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 0}] [Str "[@doe1]"],Str "."] 3 | ,Header 1 ("references",["unnumbered"],[]) [Str "References"]] 4 | -------------------------------------------------------------------------------- /tests/issue25.expected.native: -------------------------------------------------------------------------------- 1 | Pandoc (Meta {unMeta = fromList [("references",MetaList [MetaMap (fromList [("author",MetaList [MetaMap (fromList [("family",MetaInlines [Str "Author"]),("given",MetaInlines [Str "Al"])])]),("id",MetaInlines [Str "item1"]),("issued",MetaMap (fromList [("date-parts",MetaList [MetaList [MetaString "1998"]])])),("title",MetaInlines [Str "foo",Space,Str "bar",Space,Str "baz:",Space,Str "bazbaz",Space,Str "foo"]),("type",MetaInlines [Str "article-journal"])])])]}) 2 | [Para [Str "Foo",Space,Cite [Citation {citationId = "item1", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 1}] [Str "(Author",Space,Str "1998)"],Str "."] 3 | ,Header 1 ("references",["unnumbered"],[]) [Str "References"] 4 | ,Div ("refs",["references","hanging-indent"],[]) 5 | [Div ("ref-item1",[],[]) 6 | [Para [Str "Author,",Space,Str "Al.",Space,Str "1998.",Space,Str "\8220Foo",Space,Str "Bar",Space,Str "Baz:",Space,Str "Bazbaz",Space,Str "Foo.\8221"]]]] 7 | -------------------------------------------------------------------------------- /tests/issue25.in.native: -------------------------------------------------------------------------------- 1 | Pandoc (Meta {unMeta = fromList [("references",MetaList [MetaMap (fromList [("author",MetaList [MetaMap (fromList [("family",MetaInlines [Str "Author"]),("given",MetaInlines [Str "Al"])])]),("id",MetaInlines [Str "item1"]),("issued",MetaMap (fromList [("date-parts",MetaList [MetaList [MetaString "1998"]])])),("title",MetaInlines [Str "foo",Space,Str "bar",Space,Str "baz:",Space,Str "bazbaz",Space,Str "foo"]),("type",MetaInlines [Str "article-journal"])])])]}) 2 | [Para [Str "Foo",Space,Cite [Citation {citationId = "item1", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 0}] [Str "[@item1]"],Str "."] 3 | ,Header 1 ("references",["unnumbered"],[]) [Str "References"]] 4 | -------------------------------------------------------------------------------- /tests/issue250.expected.native: -------------------------------------------------------------------------------- 1 | Pandoc (Meta {unMeta = fromList [("link-citations",MetaBool True),("references",MetaList [MetaMap (fromList [("author",MetaMap (fromList [("family",MetaInlines [Str "Doe"])])),("id",MetaInlines [Str "doe"]),("title",MetaInlines [Str "Title"])])])]}) 2 | [Para [Cite [Citation {citationId = "doe", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 1}] [Str "(Doe,",Space,Link ("",[],[]) [Str "n.d."] ("#ref-doe",""),Str ")"]] 3 | ,Div ("refs",["references","hanging-indent"],[]) 4 | [Div ("ref-doe",[],[]) 5 | [Para [Str "Doe.",Space,Str "n.d.",Space,Str "\8220Title.\8221"]]]] 6 | -------------------------------------------------------------------------------- /tests/issue250.in.native: -------------------------------------------------------------------------------- 1 | Pandoc (Meta {unMeta = fromList [("link-citations",MetaBool True),("references",MetaList [MetaMap (fromList [("author",MetaMap (fromList [("family",MetaInlines [Str "Doe"])])),("id",MetaInlines [Str "doe"]),("title",MetaInlines [Str "Title"])])])]}) 2 | [Para [Cite [Citation {citationId = "doe", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 0}] [Str "[@doe]"]]] 3 | -------------------------------------------------------------------------------- /tests/issue27.expected.native: -------------------------------------------------------------------------------- 1 | Pandoc (Meta {unMeta = fromList [("csl",MetaInlines [Str "tests/science.csl"]),("references",MetaList [MetaMap (fromList [("author",MetaList [MetaMap (fromList [("family",MetaInlines [Str "AuthorOne"]),("given",MetaInlines [Str "Joe"])]),MetaMap (fromList [("family",MetaInlines [Str "AuthorTwo"]),("given",MetaInlines [Str "Jill"])])]),("container-title",MetaInlines [Str "Some",Space,Str "Journal"]),("id",MetaInlines [Str "AuthorOne2014"]),("issue",MetaInlines [Str "X"]),("issued",MetaMap (fromList [("date-parts",MetaList [MetaList [MetaString "2014"]])])),("page",MetaInlines [Str "XXXX-YYYY"]),("title",MetaInlines [Str "Sample",Space,Str "Title"]),("type",MetaInlines [Str "article-journal"]),("volume",MetaInlines [Str "XX"])])])]}) 2 | [Header 1 ("minimal-example",[],[]) [Str "Minimal",Space,Str "example"] 3 | ,Para [Str "Here",Space,Str "is",Space,Str "some",Space,Str "text",Space,Str "that",Space,Str "needs",Space,Str "a",Space,Str "citation",Space,Cite [Citation {citationId = "AuthorOne2014", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 1}] [Str "(",Emph [Str "1"],Str ")"],Str "."] 4 | ,Div ("refs",["references"],[]) [Div ("ref-AuthorOne2014",[],[]) [Para [Str "1.",Space,Str "J.",Space,Str "AuthorOne,",Space,Str "J.",Space,Str "AuthorTwo,",Space,Emph [Str "Some",Space,Str "Journal"],Str ",",Space,Str "in",Space,Str "press."]]]] 5 | -------------------------------------------------------------------------------- /tests/issue27.in.native: -------------------------------------------------------------------------------- 1 | Pandoc (Meta {unMeta = fromList [("csl",MetaInlines [Str "tests/science.csl"]),("references",MetaList [MetaMap (fromList [("author",MetaList [MetaMap (fromList [("family",MetaInlines [Str "AuthorOne"]),("given",MetaInlines [Str "Joe"])]),MetaMap (fromList [("family",MetaInlines [Str "AuthorTwo"]),("given",MetaInlines [Str "Jill"])])]),("container-title",MetaInlines [Str "Some",Space,Str "Journal"]),("id",MetaInlines [Str "AuthorOne2014"]),("issue",MetaInlines [Str "X"]),("issued",MetaMap (fromList [("date-parts",MetaList [MetaList [MetaString "2014"]])])),("page",MetaInlines [Str "XXXX-YYYY"]),("title",MetaInlines [Str "Sample",Space,Str "Title"]),("type",MetaInlines [Str "article-journal"]),("volume",MetaInlines [Str "XX"])])])]}) 2 | [Header 1 ("minimal-example",[],[]) [Str "Minimal",Space,Str "example"] 3 | ,Para [Str "Here",Space,Str "is",Space,Str "some",Space,Str "text",Space,Str "that",Space,Str "needs",Space,Str "a",Space,Str "citation",Space,Cite [Citation {citationId = "AuthorOne2014", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 0}] [Str "[@AuthorOne2014]"],Str "."]] 4 | -------------------------------------------------------------------------------- /tests/issue292.expected.native: -------------------------------------------------------------------------------- 1 | Pandoc (Meta {unMeta = fromList [("csl",MetaInlines [Str "tests/sage-harvard.csl"]),("references",MetaList [MetaMap (fromList [("author",MetaMap (fromList [("family",MetaInlines [Str "Doe"])])),("id",MetaInlines [Str "doe"]),("issued",MetaMap (fromList [("year",MetaString "2007")])),("type",MetaInlines [Str "article"])]),MetaMap (fromList [("author",MetaMap (fromList [("family",MetaInlines [Str "Zoe"])])),("id",MetaInlines [Str "zoe"]),("issued",MetaList [MetaMap (fromList [("year",MetaString "2009")])]),("type",MetaInlines [Str "article"])]),MetaMap (fromList [("author",MetaMap (fromList [("family",MetaInlines [Str "Roe"])])),("id",MetaInlines [Str "roe"]),("issued",MetaList [MetaMap (fromList [("year",MetaString "2007")])]),("type",MetaInlines [Str "article"])])])]}) 2 | [Para [Cite [Citation {citationId = "zoe", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 1},Citation {citationId = "roe", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 2},Citation {citationId = "doe", citationPrefix = [Str "see",Space,Str "for",Space,Str "comparison"], citationSuffix = [Str ",",Space,Str "p.\160\&3"], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 3}] [Str "(Roe,",Space,Str "2007;",Space,Str "Zoe,",Space,Str "2009;",Space,Str "see",Space,Str "for",Space,Str "comparison",Space,Str "Doe,",Space,Str "2007:",Space,Str "3)"]] 3 | ,Div ("refs",["references","hanging-indent"],[]) 4 | [Div ("ref-doe",[],[]) 5 | [Para [Str "Doe",Space,Str "(2007)."]] 6 | ,Div ("ref-roe",[],[]) 7 | [Para [Str "Roe",Space,Str "(2007)."]] 8 | ,Div ("ref-zoe",[],[]) 9 | [Para [Str "Zoe",Space,Str "(2009)."]]]] 10 | -------------------------------------------------------------------------------- /tests/issue292.in.native: -------------------------------------------------------------------------------- 1 | Pandoc (Meta {unMeta = fromList [("csl",MetaInlines [Str "tests/sage-harvard.csl"]),("references",MetaList [MetaMap (fromList [("author",MetaMap (fromList [("family",MetaInlines [Str "Doe"])])),("id",MetaInlines [Str "doe"]),("issued",MetaMap (fromList [("year",MetaString "2007")])),("type",MetaInlines [Str "article"])]),MetaMap (fromList [("author",MetaMap (fromList [("family",MetaInlines [Str "Zoe"])])),("id",MetaInlines [Str "zoe"]),("issued",MetaList [MetaMap (fromList [("year",MetaString "2009")])]),("type",MetaInlines [Str "article"])]),MetaMap (fromList [("author",MetaMap (fromList [("family",MetaInlines [Str "Roe"])])),("id",MetaInlines [Str "roe"]),("issued",MetaList [MetaMap (fromList [("year",MetaString "2007")])]),("type",MetaInlines [Str "article"])])])]}) 2 | [Para [Cite [Citation {citationId = "zoe", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 0},Citation {citationId = "roe", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 0},Citation {citationId = "doe", citationPrefix = [Str "see",Space,Str "for",Space,Str "comparison"], citationSuffix = [Str ",",Space,Str "p.\160\&3"], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 0}] [Str "[@zoe;",Space,Str "@roe;",Space,Str "see",Space,Str "for",Space,Str "comparison",Space,Str "@doe,",Space,Str "p.",Space,Str "3]"]]] 3 | -------------------------------------------------------------------------------- /tests/issue301.expected.native: -------------------------------------------------------------------------------- 1 | Pandoc (Meta {unMeta = fromList [("references",MetaList [MetaMap (fromList [("id",MetaInlines [Str "test"]),("title",MetaInlines [Str "Essays",Space,Str "presented",Space,Str "to",Space,Str "N.R.",Space,Str "Ker",Space,Str "(On",Space,Str "Art)"])]),MetaMap (fromList [("id",MetaInlines [Str "test2"]),("title",MetaInlines [Emph [Str "Test:"],Space,Str "An",Space,Str "experiment:",Space,Str "An",Space,Str "abridgement"])])])]}) 2 | [Para [Cite [Citation {citationId = "test", citationPrefix = [], citationSuffix = [], citationMode = AuthorInText, citationNoteNum = 0, citationHash = 1}] [Str "(",Str "\8220Essays",Space,Str "Presented",Space,Str "to",Space,Str "N.R.",Space,Str "Ker",Space,Str "(on",Space,Str "Art),\8221",Space,Str "n.d.)"],Str ";",Space,Cite [Citation {citationId = "test2", citationPrefix = [], citationSuffix = [], citationMode = AuthorInText, citationNoteNum = 0, citationHash = 2}] [Str "(",Str "\8220",Emph [Str "Test:"],Space,Str "An",Space,Str "Experiment:",Space,Str "An",Space,Str "Abridgement,\8221",Space,Str "n.d.)"]] 3 | ,Div ("refs",["references","hanging-indent"],[]) 4 | [Div ("ref-test",[],[]) 5 | [Para [Str "\8220",Str "Essays",Space,Str "Presented",Space,Str "to",Space,Str "N.R.",Space,Str "Ker",Space,Str "(on",Space,Str "Art).\8221",Space,Str "n.d."]] 6 | ,Div ("ref-test2",[],[]) 7 | [Para [Str "\8220",Emph [Str "Test:"],Space,Str "An",Space,Str "Experiment:",Space,Str "An",Space,Str "Abridgement.\8221",Space,Str "n.d."]]]] 8 | -------------------------------------------------------------------------------- /tests/issue301.in.native: -------------------------------------------------------------------------------- 1 | Pandoc (Meta {unMeta = fromList [("references",MetaList [MetaMap (fromList [("id",MetaInlines [Str "test"]),("title",MetaInlines [Str "Essays",Space,Str "presented",Space,Str "to",Space,Str "N.R.",Space,Str "Ker",Space,Str "(On",Space,Str "Art)"])]),MetaMap (fromList [("id",MetaInlines [Str "test2"]),("title",MetaInlines [Emph [Str "Test:"],Space,Str "An",Space,Str "experiment:",Space,Str "An",Space,Str "abridgement"])])])]}) 2 | [Para [Cite [Citation {citationId = "test", citationPrefix = [], citationSuffix = [], citationMode = AuthorInText, citationNoteNum = 0, citationHash = 0}] [Str "@test"],Str ";",Space,Cite [Citation {citationId = "test2", citationPrefix = [], citationSuffix = [], citationMode = AuthorInText, citationNoteNum = 0, citationHash = 0}] [Str "@test2"]]] 3 | -------------------------------------------------------------------------------- /tests/issue307.expected.native: -------------------------------------------------------------------------------- 1 | Pandoc (Meta {unMeta = fromList [("lang",MetaInlines [Str "fr-FR"]),("references",MetaList [MetaMap (fromList [("author",MetaList [MetaMap (fromList [("family",MetaInlines [Str "Bazin"]),("given",MetaInlines [Str "Andr\233"])])]),("container-title",MetaInlines [Str "Cahiers",Space,Str "du",Space,Str "cin\233ma"]),("id",MetaInlines [Str "bazin_cybernetique_1954"]),("issue",MetaInlines [Str "36"]),("issued",MetaMap (fromList [("date-parts",MetaList [MetaList [MetaString "1954",MetaString "6"]])])),("page",MetaInlines [Str "22-27"]),("title",MetaInlines [Str "La",Space,Str "Cybern\233tique",Space,Str "d\8217Andr\233",Space,Str "Cayatte"]),("type",MetaInlines [Str "article-journal"])])])]}) 2 | [Para [Str "Bonjour",Cite [Citation {citationId = "bazin_cybernetique_1954", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 1}] [Str "(Bazin",Space,Str "1954)"],Space,Str "!"] 3 | ,Div ("refs",["references","hanging-indent"],[]) 4 | [Div ("ref-bazin_cybernetique_1954",[],[]) 5 | [Para [Str "Bazin,",Space,Str "Andr\233.",Space,Str "1954.",Space,Str "\171\160La",Space,Str "Cybern\233tique",Space,Str "d\8217Andr\233",Space,Str "Cayatte\160\187.",Space,Emph [Str "Cahiers",Space,Str "du",Space,Str "cin\233ma"],Str ",",Space,Str "n\7506",Space,Str "36",Space,Str "(juin):",Space,Str "22\8209\&27."]]]] 6 | -------------------------------------------------------------------------------- /tests/issue307.in.native: -------------------------------------------------------------------------------- 1 | Pandoc (Meta {unMeta = fromList [("lang",MetaInlines [Str "fr-FR"]),("references",MetaList [MetaMap (fromList [("author",MetaList [MetaMap (fromList [("family",MetaInlines [Str "Bazin"]),("given",MetaInlines [Str "Andr\233"])])]),("container-title",MetaInlines [Str "Cahiers",Space,Str "du",Space,Str "cin\233ma"]),("id",MetaInlines [Str "bazin_cybernetique_1954"]),("issue",MetaInlines [Str "36"]),("issued",MetaMap (fromList [("date-parts",MetaList [MetaList [MetaString "1954",MetaString "6"]])])),("page",MetaInlines [Str "22-27"]),("title",MetaInlines [Str "La",Space,Str "Cybern\233tique",Space,Str "d\8217Andr\233",Space,Str "Cayatte"]),("type",MetaInlines [Str "article-journal"])])])]}) 2 | [Para [Str "Bonjour",Cite [Citation {citationId = "bazin_cybernetique_1954", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 0}] [Str "[@bazin_cybernetique_1954]"],Space,Str "!"]] 3 | -------------------------------------------------------------------------------- /tests/issue31.in.native: -------------------------------------------------------------------------------- 1 | Pandoc (Meta {unMeta = fromList [("csl",MetaInlines [Str "tests/oscola.csl"]),("references",MetaList [MetaMap (fromList [("DOI",MetaInlines [Str "10.1086/504343"]),("author",MetaList [MetaMap (fromList [("family",MetaInlines [Str "Olson"]),("given",MetaInlines [Str "Hope",Space,Str "A."])])]),("container-title",MetaInlines [Str "Library",Space,Str "Quarterly"]),("id",MetaInlines [Str "item1"]),("issue",MetaInlines [Str "1"]),("issued",MetaMap (fromList [("date-parts",MetaList [MetaList [MetaInlines [Str "2006"]]])])),("page",MetaInlines [Str "19-35"]),("title",MetaInlines [Str "Codes,",Space,Str "costs,",Space,Str "and",Space,Str "critiques:",Space,Str "The",Space,Str "organization",Space,Str "of",Space,Str "information",Space,Str "in",Space,Emph [Str "Library",Space,Str "Quarterly"],Str ",",Space,Str "1931\8211\&2004"]),("title-short",MetaInlines [Str "Codes,",Space,Str "costs,",Space,Str "and",Space,Str "critiques"]),("type",MetaInlines [Str "article-magazine"]),("volume",MetaInlines [Str "76"])]),MetaMap (fromList [("id",MetaInlines [Str "item2"]),("title",MetaInlines [Str "Second",Space,Str "title"])])])]}) 2 | [Para [Str "Foo",Space,Cite [Citation {citationId = "item1", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 0}] [Str "[@item1]"],Str ".",Space,Str "Bar",Space,Cite [Citation {citationId = "item2", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 0}] [Str "[@item2]"],Str ".",Space,Str "Baz",Space,Cite [Citation {citationId = "item1", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 0}] [Str "[@item1]"],Str "."]] 3 | -------------------------------------------------------------------------------- /tests/issue322.expected.native: -------------------------------------------------------------------------------- 1 | Pandoc (Meta {unMeta = fromList [("csl",MetaInlines [Str "tests/annales.csl"]),("references",MetaList [MetaMap (fromList [("author",MetaList [MetaMap (fromList [("family",MetaInlines [Str "Timmory"]),("given",MetaInlines [Str "Fran\231ois"])])]),("container-title",MetaInlines [Str "L\8217\201cran",Space,Str "fran\231ais"]),("id",MetaInlines [Str "timmory__justice_1950"]),("issue",MetaInlines [Str "272"]),("issued",MetaList [MetaMap (fromList [("day",MetaString "25"),("month",MetaString "9"),("year",MetaString "1950")])]),("language",MetaInlines [Str "fr-FR"]),("page",MetaInlines [Str "12"]),("title",MetaInlines [Emph [Str "Justice",Space,Str "est",Space,Str "faite"],Space,Str ":",Space,Str "soyons",Space,Str "justes"]),("type",MetaInlines [Str "article-journal"])])])]}) 2 | [Para [Str "Foo",Cite [Citation {citationId = "timmory__justice_1950", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 1}] [Note [Para [Str "Fran\231ois",Space,SmallCaps [Str "Timmory"],Str ",",Space,Str "\171\160",Emph [Str "Justice",Space,Str "est",Space,Str "faite"],Space,Str ":",Space,Str "soyons",Space,Str "justes\160\187,",Space,Emph [Str "L\8217\201cran",Space,Str "fran\231ais"],Str ",",Space,Str "1950,",Space,Str "n\7506\160\&272,",Space,Str "p.",Space,Str "12."]]],Str "."] 3 | ,Div ("refs",["references"],[]) 4 | [Div ("ref-timmory__justice_1950",[],[]) 5 | [Para [Str "Fran\231ois",Space,SmallCaps [Str "Timmory"],Str ",",Space,Str "\171\160",Emph [Str "Justice",Space,Str "est",Space,Str "faite"],Space,Str ":",Space,Str "soyons",Space,Str "justes\160\187,",Space,Emph [Str "L\8217\201cran",Space,Str "fran\231ais"],Str ",",Space,Str "1950,",Space,Str "n\7506\160\&272,",Space,Str "p.",Space,Str "12."]]]] 6 | -------------------------------------------------------------------------------- /tests/issue322.in.native: -------------------------------------------------------------------------------- 1 | Pandoc (Meta {unMeta = fromList [("csl",MetaInlines [Str "tests/annales.csl"]),("references",MetaList [MetaMap (fromList [("author",MetaList [MetaMap (fromList [("family",MetaInlines [Str "Timmory"]),("given",MetaInlines [Str "Fran\231ois"])])]),("container-title",MetaInlines [Str "L\8217\201cran",Space,Str "fran\231ais"]),("id",MetaInlines [Str "timmory__justice_1950"]),("issue",MetaInlines [Str "272"]),("issued",MetaList [MetaMap (fromList [("day",MetaString "25"),("month",MetaString "9"),("year",MetaString "1950")])]),("language",MetaInlines [Str "fr-FR"]),("page",MetaInlines [Str "12"]),("title",MetaInlines [Emph [Str "Justice",Space,Str "est",Space,Str "faite"],Space,Str ":",Space,Str "soyons",Space,Str "justes"]),("type",MetaInlines [Str "article-journal"])])])]}) 2 | [Para [Str "Foo",Cite [Citation {citationId = "timmory__justice_1950", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 0}] [Str "[@timmory__justice_1950]"],Str "."]] 3 | -------------------------------------------------------------------------------- /tests/issue325.expected.native: -------------------------------------------------------------------------------- 1 | Pandoc (Meta {unMeta = fromList [("references",MetaList [MetaMap (fromList [("author",MetaList [MetaMap (fromList [("family",MetaInlines [Str "Smith"]),("given",MetaInlines [Str "John"])])]),("id",MetaInlines [Str "item1"]),("type",MetaInlines [Str "book"])]),MetaMap (fromList [("author",MetaList [MetaMap (fromList [("family",MetaInlines [Str "Smith"]),("given",MetaInlines [Str "John"])])]),("id",MetaInlines [Str "item2"]),("type",MetaInlines [Str "book"])])])]}) 2 | [Para [Cite [Citation {citationId = "item1", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 1},Citation {citationId = "item2", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 2}] [Str "(Smith,",Space,Str "n.d.a,",Space,Str "n.d.b)"]] 3 | ,Div ("refs",["references","hanging-indent"],[]) 4 | [Div ("ref-item1",[],[]) 5 | [Para [Str "Smith,",Space,Str "John.",Space,Str "n.d.a."]] 6 | ,Div ("ref-item2",[],[]) 7 | [Para [Str "\8212\8212\8212.",Space,Str "n.d.b."]]]] 8 | -------------------------------------------------------------------------------- /tests/issue325.in.native: -------------------------------------------------------------------------------- 1 | Pandoc (Meta {unMeta = fromList [("references",MetaList [MetaMap (fromList [("author",MetaList [MetaMap (fromList [("family",MetaInlines [Str "Smith"]),("given",MetaInlines [Str "John"])])]),("id",MetaInlines [Str "item1"]),("type",MetaInlines [Str "book"])]),MetaMap (fromList [("author",MetaList [MetaMap (fromList [("family",MetaInlines [Str "Smith"]),("given",MetaInlines [Str "John"])])]),("id",MetaInlines [Str "item2"]),("type",MetaInlines [Str "book"])])])]}) 2 | [Para [Cite [Citation {citationId = "item1", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 0},Citation {citationId = "item2", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 0}] [Str "[@item1;",Space,Str "@item2]"]]] 3 | -------------------------------------------------------------------------------- /tests/issue338.expected.native: -------------------------------------------------------------------------------- 1 | Pandoc (Meta {unMeta = fromList [("csl",MetaInlines [Str "tests/din-1505-2.csl"]),("lang",MetaInlines [Str "de"]),("nocite",MetaInlines [Cite [Citation {citationId = "*", citationPrefix = [], citationSuffix = [], citationMode = AuthorInText, citationNoteNum = 0, citationHash = 0}] [Str "@*"]]),("pagetitle",MetaInlines [Str "Citation"]),("references",MetaList [MetaMap (fromList [("ISBN",MetaInlines [Str "978-3-642-32078-1"]),("author",MetaList [MetaMap (fromList [("family",MetaInlines [Str "Wolfinger"]),("given",MetaInlines [Str "Christine"])])]),("edition",MetaInlines [Str "11.,",Space,Str "vollst.",Space,Str "\252berarb.",Space,Str "Aufl."]),("id",MetaInlines [Str "item-1"]),("issued",MetaList [MetaMap (fromList [("year",MetaInlines [Str "2013"])])]),("keyword",MetaInlines [Str "UNIX;",Space,Str "LINUX"]),("number-of-pages",MetaInlines [Str "XVIII,",Space,Str "529",Space,Str "S.",Space,Str ":",Space,Str "Ill.,",Space,Str "graph.",Space,Str "Darst."]),("publisher",MetaInlines [Str "Springer",Space,Str "Vieweg"]),("publisher-place",MetaInlines [Str "Berlin",Space,Str "[u.a.]"]),("title",MetaInlines [Str "Keine",Space,Str "Angst",Space,Str "vor",Space,Str "Linux,",Space,Str "Unix:",Space,Str "ein",Space,Str "Lehrbuch",Space,Str "f\252r",Space,Str "Linux-",Space,Str "und",Space,Str "Unix-Anwender"]),("type",MetaInlines [Str "book"])])])]}) 2 | [Div ("refs",["references","hanging-indent"],[]) 3 | [Div ("ref-item-1",[],[]) 4 | [Para [SmallCaps [Str "Wolfinger,",Space,Str "Christine"],Str ":",Space,Emph [Str "Keine",Space,Str "Angst",Space,Str "vor",Space,Str "Linux,",Space,Str "Unix:",Space,Str "ein",Space,Str "Lehrbuch",Space,Str "f\252r",Space,Str "Linux-",Space,Str "und",Space,Str "Unix-Anwender"],Str ".",Space,Str "11.,",Space,Str "vollst.",Space,Str "\252berarb.",Space,Str "Aufl.",Space,Str "Aufl.",Space,Str "Berlin",Space,Str "[u.a.]\160:",Space,Str "Springer",Space,Str "Vieweg,",Space,Str "2013",Space,Str "\8212\160ISBN\160",Link ("",[],[]) [Str "978-3-642-32078-1"] ("https://worldcat.org/isbn/978-3-642-32078-1","")]]]] 5 | -------------------------------------------------------------------------------- /tests/issue338.in.native: -------------------------------------------------------------------------------- 1 | Pandoc (Meta {unMeta = fromList [("csl",MetaInlines [Str "tests/din-1505-2.csl"]),("lang",MetaInlines [Str "de"]),("nocite",MetaInlines [Cite [Citation {citationId = "*", citationPrefix = [], citationSuffix = [], citationMode = AuthorInText, citationNoteNum = 0, citationHash = 0}] [Str "@*"]]),("pagetitle",MetaInlines [Str "Citation"]),("references",MetaList [MetaMap (fromList [("ISBN",MetaInlines [Str "978-3-642-32078-1"]),("author",MetaList [MetaMap (fromList [("family",MetaInlines [Str "Wolfinger"]),("given",MetaInlines [Str "Christine"])])]),("edition",MetaInlines [Str "11.,",Space,Str "vollst.",Space,Str "\252berarb.",Space,Str "Aufl."]),("id",MetaInlines [Str "item-1"]),("issued",MetaList [MetaMap (fromList [("year",MetaInlines [Str "2013"])])]),("keyword",MetaInlines [Str "UNIX;",Space,Str "LINUX"]),("number-of-pages",MetaInlines [Str "XVIII,",Space,Str "529",Space,Str "S.",Space,Str ":",Space,Str "Ill.,",Space,Str "graph.",Space,Str "Darst."]),("publisher",MetaInlines [Str "Springer",Space,Str "Vieweg"]),("publisher-place",MetaInlines [Str "Berlin",Space,Str "[u.a.]"]),("title",MetaInlines [Str "Keine",Space,Str "Angst",Space,Str "vor",Space,Str "Linux,",Space,Str "Unix:",Space,Str "ein",Space,Str "Lehrbuch",Space,Str "f\252r",Space,Str "Linux-",Space,Str "und",Space,Str "Unix-Anwender"]),("type",MetaInlines [Str "book"])])])]}) 2 | [] 3 | -------------------------------------------------------------------------------- /tests/issue351.expected.native: -------------------------------------------------------------------------------- 1 | Pandoc (Meta {unMeta = fromList [("csl",MetaInlines [Str "tests/zeitschrift-fur-kunstgeschichte.csl"]),("references",MetaList [MetaMap (fromList [("editor",MetaList [MetaMap (fromList [("family",MetaInlines [Str "Nietzsche"]),("given",MetaInlines [Str "Friedrich"])])]),("id",MetaInlines [Str "Nie72"]),("issued",MetaList [MetaMap (fromList [("year",MetaInlines [Str "1872"])])]),("title",MetaInlines [Str "Die",Space,Str "geburt"]),("type",MetaInlines [Str "book"])])])]}) 2 | [Para [Cite [Citation {citationId = "Nie72", citationPrefix = [], citationSuffix = [], citationMode = AuthorInText, citationNoteNum = 0, citationHash = 1}] [Str "Friedrich",Space,Str "Nietzsche",Space,Str "(ed.)",Note [Para [Emph [Str "Die",Space,Str "geburt"],Str ",",Space,Str "1872."]]]] 3 | ,Div ("refs",["references","hanging-indent"],[]) 4 | [Div ("ref-Nie72",[],[]) 5 | [Para [Str "Nietzsche,",Space,Str "Friedrich",Space,Str "(ed.),",Space,Emph [Str "Die",Space,Str "geburt"],Str ",",Space,Str "1872."]]]] 6 | -------------------------------------------------------------------------------- /tests/issue351.in.native: -------------------------------------------------------------------------------- 1 | Pandoc (Meta {unMeta = fromList [("csl",MetaInlines [Str "tests/zeitschrift-fur-kunstgeschichte.csl"]),("references",MetaList [MetaMap (fromList [("editor",MetaList [MetaMap (fromList [("family",MetaInlines [Str "Nietzsche"]),("given",MetaInlines [Str "Friedrich"])])]),("id",MetaInlines [Str "Nie72"]),("issued",MetaList [MetaMap (fromList [("year",MetaInlines [Str "1872"])])]),("title",MetaInlines [Str "Die",Space,Str "geburt"]),("type",MetaInlines [Str "book"])])])]}) 2 | [Para [Cite [Citation {citationId = "Nie72", citationPrefix = [], citationSuffix = [], citationMode = AuthorInText, citationNoteNum = 0, citationHash = 0}] [Str "@Nie72"]]] 3 | -------------------------------------------------------------------------------- /tests/issue356.expected.native: -------------------------------------------------------------------------------- 1 | Pandoc (Meta {unMeta = fromList [("references",MetaList [MetaMap (fromList [("author",MetaList [MetaMap (fromList [("family",MetaInlines [Str "Alice"])])]),("id",MetaInlines [Str "foo"]),("issued",MetaList [MetaMap (fromList [("year",MetaInlines [Str "2042"])])]),("other-ids",MetaList [MetaInlines [Str "bar"],MetaInlines [Str "doz"]]),("type",MetaInlines [Str "book"])])])]}) 2 | [Para [Cite [Citation {citationId = "bar", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 1}] [Str "(Alice",Space,Str "2042)"]] 3 | ,Div ("refs",["references","hanging-indent"],[]) 4 | [Div ("ref-foo",[],[]) 5 | [Para [Str "Alice.",Space,Str "2042."]]]] 6 | -------------------------------------------------------------------------------- /tests/issue356.in.native: -------------------------------------------------------------------------------- 1 | Pandoc (Meta {unMeta = fromList [("references",MetaList [MetaMap (fromList [("author",MetaList [MetaMap (fromList [("family",MetaInlines [Str "Alice"])])]),("id",MetaInlines [Str "foo"]),("issued",MetaList [MetaMap (fromList [("year",MetaInlines [Str "2042"])])]),("other-ids",MetaList [MetaInlines [Str "bar"],MetaInlines [Str "doz"]]),("type",MetaInlines [Str "book"])])])]}) 2 | [Para [Cite [Citation {citationId = "bar", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 0}] [Str "[@bar]"]]] 3 | -------------------------------------------------------------------------------- /tests/issue360.expected.native: -------------------------------------------------------------------------------- 1 | Pandoc (Meta {unMeta = fromList [("csl",MetaInlines [Str "tests/chicago-fullnote-bibliography.csl"]),("references",MetaList [MetaMap (fromList [("author",MetaList [MetaMap (fromList [("family",MetaInlines [Str "L\8217Estrange"]),("given",MetaInlines [Str "Michael"])]),MetaMap (fromList [("family",MetaInlines [Str "Merchant"]),("given",MetaInlines [Str "Stephen"])])]),("id",MetaInlines [Str "lestrange2017"]),("issued",MetaList [MetaMap (fromList [("day",MetaInlines [Str "18"]),("month",MetaInlines [Str "7"]),("year",MetaInlines [Str "2017"])])]),("language",MetaInlines [Str "en-US"]),("title",MetaInlines [Str "2017",Space,Str "Independent",Space,Str "Intelligence",Space,Str "Review"]),("title-short",MetaInlines [Str "Independent",Space,Str "Intelligence",Space,Str "Review"]),("type",MetaInlines [Str "report"])])])]}) 2 | [Para [Cite [Citation {citationId = "lestrange2017", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 1}] [Note [Para [Str "Michael",Space,Str "L\8217Estrange",Space,Str "and",Space,Str "Stephen",Space,Str "Merchant,",Space,Emph [Str "2017",Space,Str "Independent",Space,Str "Intelligence",Space,Str "Review"],Str ",",Space,Str "July",Space,Str "18,",Space,Str "2017."]]]] 3 | ,Div ("refs",["references","hanging-indent"],[]) 4 | [Div ("ref-lestrange2017",[],[]) 5 | [Para [Str "L\8217Estrange,",Space,Str "Michael,",Space,Str "and",Space,Str "Stephen",Space,Str "Merchant.",Space,Emph [Str "2017",Space,Str "Independent",Space,Str "Intelligence",Space,Str "Review"],Str ",",Space,Str "July",Space,Str "18,",Space,Str "2017."]]]] 6 | -------------------------------------------------------------------------------- /tests/issue360.in.native: -------------------------------------------------------------------------------- 1 | Pandoc (Meta {unMeta = fromList [("csl",MetaInlines [Str "tests/chicago-fullnote-bibliography.csl"]),("references",MetaList [MetaMap (fromList [("author",MetaList [MetaMap (fromList [("family",MetaInlines [Str "L\8217Estrange"]),("given",MetaInlines [Str "Michael"])]),MetaMap (fromList [("family",MetaInlines [Str "Merchant"]),("given",MetaInlines [Str "Stephen"])])]),("id",MetaInlines [Str "lestrange2017"]),("issued",MetaList [MetaMap (fromList [("day",MetaInlines [Str "18"]),("month",MetaInlines [Str "7"]),("year",MetaInlines [Str "2017"])])]),("language",MetaInlines [Str "en-US"]),("title",MetaInlines [Str "2017",Space,Str "Independent",Space,Str "Intelligence",Space,Str "Review"]),("title-short",MetaInlines [Str "Independent",Space,Str "Intelligence",Space,Str "Review"]),("type",MetaInlines [Str "report"])])])]}) 2 | [Para [Cite [Citation {citationId = "lestrange2017", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 0}] [Str "[@lestrange2017]"]]] 3 | -------------------------------------------------------------------------------- /tests/issue365.in.native: -------------------------------------------------------------------------------- 1 | Pandoc (Meta {unMeta = fromList [("csl",MetaInlines [Str "tests/le-tapuscrit-note.csl"]),("references",MetaList [MetaMap (fromList [("ISBN",MetaInlines [Str "978-2-912573-52-0"]),("author",MetaList [MetaMap (fromList [("family",MetaInlines [Str "Le\160Gras"]),("given",MetaInlines [Str "Gw\233na\235lle"])])]),("call-number",MetaInlines [Str "Tolbiac",Space,Str "-",Space,Str "Rez",Space,Str "de",Space,Str "Jardin",Space,Str "-",Space,Str "Litt\233rature",Space,Str "et",Space,Str "art",Space,Str "-",Space,Str "Magasin",Space,Str "-",Space,Str "2010-82178"]),("collection-title",MetaInlines [Str "Jeux",Space,Str "d\8217acteurs"]),("id",MetaInlines [Str "legras_michel_2010"]),("issued",MetaList [MetaMap (fromList [("year",MetaInlines [Str "2010"])])]),("language",MetaInlines [Str "fre"]),("number-of-pages",MetaInlines [Str "128"]),("publisher",MetaInlines [Str "Scope"]),("publisher-place",MetaInlines [Str "Paris"]),("source",MetaInlines [Str "BnF",Space,Str "Catalogue",Space,Str "g\233n\233ral",Space,Str "(http://catalogue.bnf.fr)"]),("title",MetaInlines [Str "Michel",Space,Str "Simon\160:",Space,Str "l\8217art",Space,Str "de",Space,Str "la",Space,Str "disgr\226ce"]),("title-short",MetaInlines [Str "Michel",Space,Str "Simon"]),("type",MetaInlines [Str "book"])])])]}) 2 | [Para [Str "Foo",Space,Cite [Citation {citationId = "legras_michel_2010", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 0}] [Str "[@legras_michel_2010]"],Str "."]] 3 | -------------------------------------------------------------------------------- /tests/issue371.expected.native: -------------------------------------------------------------------------------- 1 | Pandoc (Meta {unMeta = fromList [("references",MetaList [MetaMap (fromList [("author",MetaList [MetaMap (fromList [("family",MetaInlines [Str "Doe"]),("given",MetaInlines [Str "Jane"])])]),("id",MetaInlines [Str "item1"]),("status",MetaInlines [Str "in",Space,Str "press"]),("title",MetaInlines [Str "Title",Space,Str "one"]),("type",MetaInlines [Str "book"])]),MetaMap (fromList [("author",MetaList [MetaMap (fromList [("family",MetaInlines [Str "Doe"]),("given",MetaInlines [Str "Jane"])])]),("id",MetaInlines [Str "item2"]),("issued",MetaList [MetaMap (fromList [("year",MetaInlines [Str "2018"])])]),("title",MetaInlines [Str "Title",Space,Str "two"]),("type",MetaInlines [Str "book"])])])]}) 2 | [Para [Str "Foo",Space,Cite [Citation {citationId = "item2", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 1},Citation {citationId = "item1", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 2}] [Str "(Doe",Space,Str "2018,",Space,Str "in",Space,Str "press)"],Str "."] 3 | ,Header 1 ("references",["unnumbered"],[]) [Str "References"] 4 | ,Div ("refs",["references","hanging-indent"],[]) 5 | [Div ("ref-item2",[],[]) 6 | [Para [Str "Doe,",Space,Str "Jane.",Space,Str "2018.",Space,Emph [Str "Title",Space,Str "Two"],Str "."]] 7 | ,Div ("ref-item1",[],[]) 8 | [Para [Str "\8212\8212\8212.",Space,Str "In",Space,Str "press.",Space,Emph [Str "Title",Space,Str "One"],Str "."]]]] 9 | -------------------------------------------------------------------------------- /tests/issue371.in.native: -------------------------------------------------------------------------------- 1 | Pandoc (Meta {unMeta = fromList [("references",MetaList [MetaMap (fromList [("author",MetaList [MetaMap (fromList [("family",MetaInlines [Str "Doe"]),("given",MetaInlines [Str "Jane"])])]),("id",MetaInlines [Str "item1"]),("status",MetaInlines [Str "in",Space,Str "press"]),("title",MetaInlines [Str "Title",Space,Str "one"]),("type",MetaInlines [Str "book"])]),MetaMap (fromList [("author",MetaList [MetaMap (fromList [("family",MetaInlines [Str "Doe"]),("given",MetaInlines [Str "Jane"])])]),("id",MetaInlines [Str "item2"]),("issued",MetaList [MetaMap (fromList [("year",MetaInlines [Str "2018"])])]),("title",MetaInlines [Str "Title",Space,Str "two"]),("type",MetaInlines [Str "book"])])])]}) 2 | [Para [Str "Foo",Space,Cite [Citation {citationId = "item2", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 0},Citation {citationId = "item1", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 0}] [Str "[@item2;",Space,Str "@item1]"],Str "."] 3 | ,Header 1 ("references",["unnumbered"],[]) [Str "References"]] 4 | -------------------------------------------------------------------------------- /tests/issue38.expected.native: -------------------------------------------------------------------------------- 1 | Pandoc (Meta {unMeta = fromList [("references",MetaList [MetaMap (fromList [("author",MetaList [MetaMap (fromList [("family",MetaInlines [Str "Doe"]),("given",MetaInlines [Str "Ann"])]),MetaMap (fromList [("family",MetaInlines [Str "Doe"]),("given",MetaInlines [Str "Ben"])]),MetaMap (fromList [("family",MetaInlines [Str "Roe"]),("given",MetaInlines [Str "Ron"])])]),("id",MetaInlines [Str "a"]),("issued",MetaMap (fromList [("date-parts",MetaList [MetaList [MetaString "2007"]])])),("title",MetaInlines [Str "Title"]),("type",MetaInlines [Str "article-journal"])])])]}) 2 | [Para [Cite [Citation {citationId = "a", citationPrefix = [], citationSuffix = [], citationMode = AuthorInText, citationNoteNum = 0, citationHash = 1}] [Str "Doe,",Space,Str "Doe,",Space,Str "and",Space,Str "Roe",Space,Str "(2007)"]] 3 | ,Div ("refs",["references","hanging-indent"],[]) 4 | [Div ("ref-a",[],[]) 5 | [Para [Str "Doe,",Space,Str "Ann,",Space,Str "Ben",Space,Str "Doe,",Space,Str "and",Space,Str "Ron",Space,Str "Roe.",Space,Str "2007.",Space,Str "\8220Title.\8221"]]]] 6 | -------------------------------------------------------------------------------- /tests/issue38.in.native: -------------------------------------------------------------------------------- 1 | Pandoc (Meta {unMeta = fromList [("references",MetaList [MetaMap (fromList [("author",MetaList [MetaMap (fromList [("family",MetaInlines [Str "Doe"]),("given",MetaInlines [Str "Ann"])]),MetaMap (fromList [("family",MetaInlines [Str "Doe"]),("given",MetaInlines [Str "Ben"])]),MetaMap (fromList [("family",MetaInlines [Str "Roe"]),("given",MetaInlines [Str "Ron"])])]),("id",MetaInlines [Str "a"]),("issued",MetaMap (fromList [("date-parts",MetaList [MetaList [MetaString "2007"]])])),("title",MetaInlines [Str "Title"]),("type",MetaInlines [Str "article-journal"])])])]}) 2 | [Para [Cite [Citation {citationId = "a", citationPrefix = [], citationSuffix = [], citationMode = AuthorInText, citationNoteNum = 0, citationHash = 0}] [Str "@a"]]] 3 | -------------------------------------------------------------------------------- /tests/issue386.expected.native: -------------------------------------------------------------------------------- 1 | Pandoc (Meta {unMeta = fromList [("csl",MetaInlines [Str "tests/advanced-optical-materials.csl"]),("references",MetaList [MetaMap (fromList [("DOI",MetaInlines [Str "10.1038/lsa.2012.20"]),("ISSN",MetaInlines [Str "2047-7538"]),("author",MetaList [MetaMap (fromList [("family",MetaInlines [Str "Ding"]),("given",MetaInlines [Str "K."])]),MetaMap (fromList [("family",MetaInlines [Str "Ning"]),("given",MetaInlines [Str "C.",Space,Str "Z."])])]),("container-title",MetaInlines [Str "Light",Space,Str "Sci.",Space,Str "Appl."]),("id",MetaInlines [Str "ding_metallic_2012"]),("issue",MetaInlines [Str "7"]),("issued",MetaList [MetaMap (fromList [("month",MetaInlines [Str "7"]),("year",MetaInlines [Str "2012"])])]),("page",MetaInlines [Str "e20-e20"]),("title",MetaInlines [Str "Metallic",Space,Str "subwavelength-cavity",Space,Str "semiconductor",Space,Str "nanolasers"]),("type",MetaInlines [Str "article-journal"]),("volume",MetaInlines [Str "1"])])])]}) 2 | [Para [Cite [Citation {citationId = "ding_metallic_2012", citationPrefix = [], citationSuffix = [], citationMode = AuthorInText, citationNoteNum = 0, citationHash = 1}] [Str "[1]"]] 3 | ,Div ("refs",["references"],[]) 4 | [Div ("ref-ding_metallic_2012",[],[]) 5 | [Para [Str "[1]",Space,Str "K.",Space,Str "Ding,",Space,Str "C.",Space,Str "Z.",Space,Str "Ning,",Space,Emph [Str "Light",Space,Str "Sci.",Space,Str "Appl."],Space,Strong [Str "2012"],Str ",",Space,Emph [Str "1"],Str ",",Space,Str "e20."]]]] 6 | -------------------------------------------------------------------------------- /tests/issue386.in.native: -------------------------------------------------------------------------------- 1 | Pandoc (Meta {unMeta = fromList [("csl",MetaInlines [Str "tests/advanced-optical-materials.csl"]),("references",MetaList [MetaMap (fromList [("DOI",MetaInlines [Str "10.1038/lsa.2012.20"]),("ISSN",MetaInlines [Str "2047-7538"]),("author",MetaList [MetaMap (fromList [("family",MetaInlines [Str "Ding"]),("given",MetaInlines [Str "K."])]),MetaMap (fromList [("family",MetaInlines [Str "Ning"]),("given",MetaInlines [Str "C.",Space,Str "Z."])])]),("container-title",MetaInlines [Str "Light",Space,Str "Sci.",Space,Str "Appl."]),("id",MetaInlines [Str "ding_metallic_2012"]),("issue",MetaInlines [Str "7"]),("issued",MetaList [MetaMap (fromList [("month",MetaInlines [Str "7"]),("year",MetaInlines [Str "2012"])])]),("page",MetaInlines [Str "e20-e20"]),("title",MetaInlines [Str "Metallic",Space,Str "subwavelength-cavity",Space,Str "semiconductor",Space,Str "nanolasers"]),("type",MetaInlines [Str "article-journal"]),("volume",MetaInlines [Str "1"])])])]}) 2 | [Para [Cite [Citation {citationId = "ding_metallic_2012", citationPrefix = [], citationSuffix = [], citationMode = AuthorInText, citationNoteNum = 0, citationHash = 0}] [Str "@ding_metallic_2012"]]] 3 | -------------------------------------------------------------------------------- /tests/issue392.expected.native: -------------------------------------------------------------------------------- 1 | Pandoc (Meta {unMeta = fromList [("csl",MetaInlines [Str "tests/vancouver.csl"]),("references",MetaList [MetaMap (fromList [("author",MetaList [MetaMap (fromList [("family",MetaInlines [Str "James"]),("given",MetaInlines [Str "M.R.C.E.L."])])]),("id",MetaInlines [Str "james"])]),MetaMap (fromList [("author",MetaList [MetaMap (fromList [("family",MetaInlines [Str "MacFarlane"]),("given",MetaInlines [Str "J.",Space,Str "G."])])]),("id",MetaInlines [Str "macfarlane"])])])]}) 2 | [Para [Cite [Citation {citationId = "james", citationPrefix = [], citationSuffix = [], citationMode = AuthorInText, citationNoteNum = 0, citationHash = 1}] [Str "(1)"],Str ";",Space,Cite [Citation {citationId = "macfarlane", citationPrefix = [], citationSuffix = [], citationMode = AuthorInText, citationNoteNum = 0, citationHash = 2}] [Str "(2)"]] 3 | ,Div ("refs",["references"],[]) 4 | [Div ("ref-james",[],[]) 5 | [Para [Str "1.",Space,Str "James",Space,Str "MRCEL.",Space]] 6 | ,Div ("ref-macfarlane",[],[]) 7 | [Para [Str "2.",Space,Str "MacFarlane",Space,Str "JG.",Space]]]] 8 | -------------------------------------------------------------------------------- /tests/issue392.in.native: -------------------------------------------------------------------------------- 1 | Pandoc (Meta {unMeta = fromList [("csl",MetaInlines [Str "tests/vancouver.csl"]),("references",MetaList [MetaMap (fromList [("author",MetaList [MetaMap (fromList [("family",MetaInlines [Str "James"]),("given",MetaInlines [Str "M.R.C.E.L."])])]),("id",MetaInlines [Str "james"])]),MetaMap (fromList [("author",MetaList [MetaMap (fromList [("family",MetaInlines [Str "MacFarlane"]),("given",MetaInlines [Str "J.",Space,Str "G."])])]),("id",MetaInlines [Str "macfarlane"])])])]}) 2 | [Para [Cite [Citation {citationId = "james", citationPrefix = [], citationSuffix = [], citationMode = AuthorInText, citationNoteNum = 0, citationHash = 0}] [Str "@james"],Str ";",Space,Cite [Citation {citationId = "macfarlane", citationPrefix = [], citationSuffix = [], citationMode = AuthorInText, citationNoteNum = 0, citationHash = 0}] [Str "@macfarlane"]]] 3 | -------------------------------------------------------------------------------- /tests/issue437.csl: -------------------------------------------------------------------------------- 1 | 2 | 27 | -------------------------------------------------------------------------------- /tests/issue437.expected.native: -------------------------------------------------------------------------------- 1 | Pandoc (Meta {unMeta = fromList [("csl",MetaInlines [Str "tests/issue437.csl"]),("references",MetaList [MetaMap (fromList [("author",MetaList [MetaMap (fromList [("family",MetaInlines [Str "Smith"]),("given",MetaInlines [Str "John"])])]),("id",MetaInlines [Str "hirt2009"]),("issued",MetaList [MetaMap (fromList [("year",MetaInlines [Str "2009"])])]),("publisher",MetaInlines [Str "Publishing",Space,Str "House"]),("publisher-place",MetaInlines [Str "Lausanne"]),("title",MetaInlines [Str "Some",Space,Str "Book"]),("type",MetaInlines [Str "book"])])])]}) 2 | [BlockQuote 3 | [Para [Str "Here",Space,Str "is",Space,Str "a",Space,Str "quote.",Cite [Citation {citationId = "hirt2009", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 1}] [Note [Para [Str "John",Space,Str "Smith,",Space,Str "Some",Space,Str "Book,",Space,Str "Lausanne,",Space,Str "2009"]]]]]] 4 | -------------------------------------------------------------------------------- /tests/issue437.in.native: -------------------------------------------------------------------------------- 1 | Pandoc (Meta {unMeta = fromList [("csl",MetaInlines [Str "tests/issue437.csl"]),("references",MetaList [MetaMap (fromList [("author",MetaList [MetaMap (fromList [("family",MetaInlines [Str "Smith"]),("given",MetaInlines [Str "John"])])]),("id",MetaInlines [Str "hirt2009"]),("issued",MetaList [MetaMap (fromList [("year",MetaInlines [Str "2009"])])]),("publisher",MetaInlines [Str "Publishing",Space,Str "House"]),("publisher-place",MetaInlines [Str "Lausanne"]),("title",MetaInlines [Str "Some",Space,Str "Book"]),("type",MetaInlines [Str "book"])])])]}) 2 | [BlockQuote 3 | [Para [Str "Here",Space,Str "is",Space,Str "a",Space,Str "quote.",Space,Cite [Citation {citationId = "hirt2009", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 0}] [Str "[@hirt2009]"]]]] 4 | -------------------------------------------------------------------------------- /tests/issue51.expected.native: -------------------------------------------------------------------------------- 1 | Pandoc (Meta {unMeta = fromList [("references",MetaList [MetaMap (fromList [("author",MetaList [MetaMap (fromList [("family",MetaInlines [Str "Doe"]),("given",MetaInlines [Str "John"])])]),("container-title",MetaInlines [Str "Journal",Space,Str "of",Space,Str "Something"]),("id",MetaInlines [Str "item1"]),("issued",MetaMap (fromList [("date-parts",MetaList [MetaList [MetaString "1987"],MetaList [MetaString "1988"]])])),("page",MetaInlines [Str "12-34"]),("title",MetaInlines [Str "The",Space,Str "title"]),("type",MetaInlines [Str "article-journal"]),("volume",MetaString "3")]),MetaMap (fromList [("author",MetaList [MetaMap (fromList [("family",MetaInlines [Str "Roe"]),("given",MetaInlines [Str "Ron"])])]),("container-title",MetaInlines [Str "Journal",Space,Str "of",Space,Str "Something"]),("id",MetaInlines [Str "item2"]),("issued",MetaMap (fromList [("date-parts",MetaList [MetaList [MetaString "1987"]])])),("page",MetaInlines [Str "12-34"]),("title",MetaInlines [Str "The",Space,Str "title"]),("type",MetaInlines [Str "article-journal"]),("volume",MetaString "4")])])]}) 2 | [Para [Cite [Citation {citationId = "item1", citationPrefix = [], citationSuffix = [], citationMode = AuthorInText, citationNoteNum = 0, citationHash = 1}] [Str "Doe",Space,Str "(1987\8211\&1988)"],Str ";",Space,Cite [Citation {citationId = "item2", citationPrefix = [], citationSuffix = [], citationMode = AuthorInText, citationNoteNum = 0, citationHash = 2}] [Str "Roe",Space,Str "(1987)"]] 3 | ,Div ("refs",["references","hanging-indent"],[]) 4 | [Div ("ref-item1",[],[]) 5 | [Para [Str "Doe,",Space,Str "John.",Space,Str "1987\8211\&1988.",Space,Str "\8220The",Space,Str "Title.\8221",Space,Emph [Str "Journal",Space,Str "of",Space,Str "Something"],Space,Str "3:",Space,Str "12\8211\&34."]] 6 | ,Div ("ref-item2",[],[]) 7 | [Para [Str "Roe,",Space,Str "Ron.",Space,Str "1987.",Space,Str "\8220The",Space,Str "Title.\8221",Space,Emph [Str "Journal",Space,Str "of",Space,Str "Something"],Space,Str "4:",Space,Str "12\8211\&34."]]]] 8 | -------------------------------------------------------------------------------- /tests/issue51.in.native: -------------------------------------------------------------------------------- 1 | Pandoc (Meta {unMeta = fromList [("references",MetaList [MetaMap (fromList [("author",MetaList [MetaMap (fromList [("family",MetaInlines [Str "Doe"]),("given",MetaInlines [Str "John"])])]),("container-title",MetaInlines [Str "Journal",Space,Str "of",Space,Str "Something"]),("id",MetaInlines [Str "item1"]),("issued",MetaMap (fromList [("date-parts",MetaList [MetaList [MetaString "1987"],MetaList [MetaString "1988"]])])),("page",MetaInlines [Str "12-34"]),("title",MetaInlines [Str "The",Space,Str "title"]),("type",MetaInlines [Str "article-journal"]),("volume",MetaString "3")]),MetaMap (fromList [("author",MetaList [MetaMap (fromList [("family",MetaInlines [Str "Roe"]),("given",MetaInlines [Str "Ron"])])]),("container-title",MetaInlines [Str "Journal",Space,Str "of",Space,Str "Something"]),("id",MetaInlines [Str "item2"]),("issued",MetaMap (fromList [("date-parts",MetaList [MetaList [MetaString "1987"]])])),("page",MetaInlines [Str "12-34"]),("title",MetaInlines [Str "The",Space,Str "title"]),("type",MetaInlines [Str "article-journal"]),("volume",MetaString "4")])])]}) 2 | [Para [Cite [Citation {citationId = "item1", citationPrefix = [], citationSuffix = [], citationMode = AuthorInText, citationNoteNum = 0, citationHash = 0}] [Str "@item1"],Str ";",Space,Cite [Citation {citationId = "item2", citationPrefix = [], citationSuffix = [], citationMode = AuthorInText, citationNoteNum = 0, citationHash = 0}] [Str "@item2"]]] 3 | -------------------------------------------------------------------------------- /tests/issue57.expected.native: -------------------------------------------------------------------------------- 1 | Pandoc (Meta {unMeta = fromList [("csl",MetaInlines [Str "tests/chicago-author-date-with-original-date-and-status.csl"]),("references",MetaList [MetaMap (fromList [("author",MetaList [MetaMap (fromList [("family",MetaInlines [Str "Faraday"]),("given",MetaInlines [Str "Carry"])])]),("container-title",MetaInlines [Str "Seven",Space,Str "Trips",Space,Str "beyond",Space,Str "the",Space,Str "Asteroid",Space,Str "Belt"]),("editor",MetaList [MetaMap (fromList [("family",MetaInlines [Str "Oring"]),("given",MetaInlines [Str "James"])])]),("id",MetaInlines [Str "Faraday-forthcoming"]),("publisher",MetaInlines [Str "Launch",Space,Str "Press"]),("publisher-place",MetaInlines [Str "Cape",Space,Str "Canaveral,",Space,Str "FL"]),("status",MetaInlines [Str "forthcoming"]),("title",MetaInlines [Str "Protean",Space,Str "photography"]),("type",MetaInlines [Str "chapter"])])])]}) 2 | [Para [Cite [Citation {citationId = "Faraday-forthcoming", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 1}] [Str "(Faraday,",Space,Str "forthcoming)"]] 3 | ,Header 1 ("references",["unnumbered"],[]) [Str "References"] 4 | ,Div ("refs",["references","hanging-indent"],[]) 5 | [Div ("ref-Faraday-forthcoming",[],[]) 6 | [Para [Str "Faraday,",Space,Str "Carry.",Space,Str "Forthcoming.",Space,Str "\8220Protean",Space,Str "Photography.\8221",Space,Str "In",Space,Emph [Str "Seven",Space,Str "Trips",Space,Str "Beyond",Space,Str "the",Space,Str "Asteroid",Space,Str "Belt"],Str ",",Space,Str "edited",Space,Str "by",Space,Str "James",Space,Str "Oring.",Space,Str "Cape",Space,Str "Canaveral,",Space,Str "FL:",Space,Str "Launch",Space,Str "Press."]]]] 7 | -------------------------------------------------------------------------------- /tests/issue57.in.native: -------------------------------------------------------------------------------- 1 | Pandoc (Meta {unMeta = fromList [("csl",MetaInlines [Str "tests/chicago-author-date-with-original-date-and-status.csl"]),("references",MetaList [MetaMap (fromList [("author",MetaList [MetaMap (fromList [("family",MetaInlines [Str "Faraday"]),("given",MetaInlines [Str "Carry"])])]),("container-title",MetaInlines [Str "Seven",Space,Str "Trips",Space,Str "beyond",Space,Str "the",Space,Str "Asteroid",Space,Str "Belt"]),("editor",MetaList [MetaMap (fromList [("family",MetaInlines [Str "Oring"]),("given",MetaInlines [Str "James"])])]),("id",MetaInlines [Str "Faraday-forthcoming"]),("publisher",MetaInlines [Str "Launch",Space,Str "Press"]),("publisher-place",MetaInlines [Str "Cape",Space,Str "Canaveral,",Space,Str "FL"]),("status",MetaInlines [Str "forthcoming"]),("title",MetaInlines [Str "Protean",Space,Str "photography"]),("type",MetaInlines [Str "chapter"])])])]}) 2 | [Para [Cite [Citation {citationId = "Faraday-forthcoming", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 0}] [Str "[@Faraday-forthcoming]"]] 3 | ,Header 1 ("references",[],[]) [Str "References"]] 4 | -------------------------------------------------------------------------------- /tests/issue58.expected.native: -------------------------------------------------------------------------------- 1 | Pandoc (Meta {unMeta = fromList [("csl",MetaInlines [Str "tests/issue58.csl"]),("references",MetaList [MetaMap (fromList [("id",MetaInlines [Str "stanze"]),("issued",MetaMap (fromList [("date-parts",MetaList [MetaList [MetaString "1547"]])])),("language",MetaInlines [Str "it-IT"]),("publisher-place",MetaInlines [Str "Florence"]),("title",MetaInlines [Str "Stanze",Space,Str "in",Space,Str "lode",Space,Str "della",Space,Str "donna",Space,Str "brutta"]),("type",MetaInlines [Str "book"])])])]}) 2 | [Para [Str "In",Space,Str "this",Space,Str "item,",Space,Str "the",Space,Str "title",Space,Str "replaces",Space,Str "the",Space,Str "(unknown)",Space,Str "author",Space,Str "(see",Space,Str "14.79)",Space,Cite [Citation {citationId = "stanze", citationPrefix = [], citationSuffix = [Str ",",Space,Str "p.",Space,Str "12"], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 1}] [Str "(",Emph [Str "Stanze",Space,Str "in",Space,Str "lode",Space,Str "della",Space,Str "donna",Space,Str "brutta"],Space,Str "1547,",Space,Str "12)"],Str "."] 3 | ,Header 1 ("references",["unnumbered"],[]) [Str "References"] 4 | ,Div ("refs",["references","hanging-indent"],[]) 5 | [Div ("ref-stanze",[],[]) 6 | [Para [Emph [Str "Stanze",Space,Str "in",Space,Str "lode",Space,Str "della",Space,Str "donna",Space,Str "brutta"],Str ".",Space,Str "1547.",Space,Str "Florence."]]]] 7 | -------------------------------------------------------------------------------- /tests/issue58.in.native: -------------------------------------------------------------------------------- 1 | Pandoc (Meta {unMeta = fromList [("csl",MetaInlines [Str "tests/issue58.csl"]),("references",MetaList [MetaMap (fromList [("id",MetaInlines [Str "stanze"]),("issued",MetaMap (fromList [("date-parts",MetaList [MetaList [MetaString "1547"]])])),("language",MetaInlines [Str "it-IT"]),("publisher-place",MetaInlines [Str "Florence"]),("title",MetaInlines [Str "Stanze",Space,Str "in",Space,Str "lode",Space,Str "della",Space,Str "donna",Space,Str "brutta"]),("type",MetaInlines [Str "book"])])])]}) 2 | [Para [Str "In",Space,Str "this",Space,Str "item,",Space,Str "the",Space,Str "title",Space,Str "replaces",Space,Str "the",Space,Str "(unknown)",Space,Str "author",Space,Str "(see",Space,Str "14.79)",Space,Cite [Citation {citationId = "stanze", citationPrefix = [], citationSuffix = [Str ",",Space,Str "p.",Space,Str "12"], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 0}] [Str "[@stanze,",Space,Str "p.",Space,Str "12]"],Str "."] 3 | ,Header 1 ("references",[],[]) [Str "References"]] 4 | -------------------------------------------------------------------------------- /tests/issue64.expected.native: -------------------------------------------------------------------------------- 1 | Pandoc (Meta {unMeta = fromList [("bibliography",MetaList [MetaInlines [Str "tests/biblio.bib"]]),("nocite",MetaInlines [Cite [Citation {citationId = "*", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 0}] [RawInline (Format "latex") "\\nocite{*}"]])]}) 2 | [Div ("refs",["references","hanging-indent"],[]) 3 | [Div ("ref-item1",[],[]) 4 | [Para [Str "Doe,",Space,Str "John.",Space,Str "2005.",Space,Emph [Str "First",Space,Str "Book"],Str ".",Space,Str "Cambridge:",Space,Str "Cambridge",Space,Str "University",Space,Str "Press."]] 5 | ,Div ("ref-item2",[],[]) 6 | [Para [Str "\8212\8212\8212.",Space,Str "2006.",Space,Str "\8220Article.\8221",Space,Emph [Str "Journal",Space,Str "of",Space,Str "Generic",Space,Str "Studies"],Space,Str "6:",Space,Str "33\8211\&34."]] 7 | ,Div ("ref-\1087\1091\1085\1082\1090\&3",[],[]) 8 | [Para [Str "Doe,",Space,Str "John,",Space,Str "and",Space,Str "Jenny",Space,Str "Roe.",Space,Str "2007.",Space,Str "\8220Why",Space,Str "Water",Space,Str "Is",Space,Str "Wet.\8221",Space,Str "In",Space,Emph [Str "Third",Space,Str "Book"],Str ",",Space,Str "edited",Space,Str "by",Space,Str "Sam",Space,Str "Smith.",Space,Str "Oxford:",Space,Str "Oxford",Space,Str "University",Space,Str "Press."]]]] 9 | -------------------------------------------------------------------------------- /tests/issue64.in.native: -------------------------------------------------------------------------------- 1 | Pandoc (Meta {unMeta = fromList [("bibliography",MetaList [MetaInlines [Str "tests/biblio.bib"]]),("nocite",MetaInlines [Cite [Citation {citationId = "*", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 0}] [RawInline (Format "latex") "\\nocite{*}"]])]}) 2 | [] 3 | -------------------------------------------------------------------------------- /tests/issue65.expected.native: -------------------------------------------------------------------------------- 1 | Pandoc (Meta {unMeta = fromList [("references",MetaList [MetaMap (fromList [("ISBN",MetaInlines [Str "3406493556"]),("author",MetaList [MetaMap (fromList [("family",MetaInlines [Str "Stotz"]),("given",MetaInlines [Str "Peter"])])]),("call-number",MetaInlines [Str "PA25",Space,Str "PA2616",Space,Str ".H24",Space,Str "Abt.",Space,Str "2,",Space,Str "T.",Space,Str "5,",Space,Str "Bd.",Space,Str "2,",Space,Str "etc"]),("collection-number",MetaInlines [Str "2.5"]),("collection-title",MetaInlines [Str "Handbuch",Space,Str "der",Space,Str "Altertumswissenschaft"]),("event-place",MetaInlines [Str "Munich"]),("first-reference-note-number",MetaString "1"),("id",MetaInlines [Str "stotz:1996handbuch"]),("issued",MetaMap (fromList [("literal",MetaInlines [Str "1996_2004"])])),("language",MetaInlines [Str "German"]),("number-of-volumes",MetaInlines [Str "5"]),("publisher",MetaInlines [Str "Beck"]),("publisher-place",MetaInlines [Str "Munich"]),("source",MetaInlines [Str "Library",Space,Str "of",Space,Str "Congress",Space,Str "ISBN"]),("title",MetaInlines [Str "Handbuch",Space,Str "zur",Space,Str "lateinischen",Space,Str "Sprache",Space,Str "des",Space,Str "Mittelalters"]),("title-short",MetaInlines [Str "Handbuch"]),("type",MetaInlines [Str "book"])])])]}) 2 | [Para [Cite [Citation {citationId = "stotz:1996handbuch", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 1}] [Str "(Stotz",Space,Str "1996\8211\&2004)"]] 3 | ,Div ("refs",["references","hanging-indent"],[]) 4 | [Div ("ref-stotz:1996handbuch",[],[]) 5 | [Para [Str "Stotz,",Space,Str "Peter.",Space,Str "1996\8211\&2004.",Space,Emph [Str "Handbuch",Space,Str "zur",Space,Str "lateinischen",Space,Str "Sprache",Space,Str "des",Space,Str "Mittelalters"],Str ".",Space,Str "5",Space,Str "vols.",Space,Str "Handbuch",Space,Str "der",Space,Str "Altertumswissenschaft",Space,Str "2.5.",Space,Str "Munich:",Space,Str "Beck."]]]] 6 | -------------------------------------------------------------------------------- /tests/issue65.in.native: -------------------------------------------------------------------------------- 1 | Pandoc (Meta {unMeta = fromList [("references",MetaList [MetaMap (fromList [("ISBN",MetaInlines [Str "3406493556"]),("author",MetaList [MetaMap (fromList [("family",MetaInlines [Str "Stotz"]),("given",MetaInlines [Str "Peter"])])]),("call-number",MetaInlines [Str "PA25",Space,Str "PA2616",Space,Str ".H24",Space,Str "Abt.",Space,Str "2,",Space,Str "T.",Space,Str "5,",Space,Str "Bd.",Space,Str "2,",Space,Str "etc"]),("collection-number",MetaInlines [Str "2.5"]),("collection-title",MetaInlines [Str "Handbuch",Space,Str "der",Space,Str "Altertumswissenschaft"]),("event-place",MetaInlines [Str "Munich"]),("first-reference-note-number",MetaString "1"),("id",MetaInlines [Str "stotz:1996handbuch"]),("issued",MetaMap (fromList [("literal",MetaInlines [Str "1996_2004"])])),("language",MetaInlines [Str "German"]),("number-of-volumes",MetaInlines [Str "5"]),("publisher",MetaInlines [Str "Beck"]),("publisher-place",MetaInlines [Str "Munich"]),("source",MetaInlines [Str "Library",Space,Str "of",Space,Str "Congress",Space,Str "ISBN"]),("title",MetaInlines [Str "Handbuch",Space,Str "zur",Space,Str "lateinischen",Space,Str "Sprache",Space,Str "des",Space,Str "Mittelalters"]),("title-short",MetaInlines [Str "Handbuch"]),("type",MetaInlines [Str "book"])])])]}) 2 | [Para [Cite [Citation {citationId = "stotz:1996handbuch", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 0}] [Str "[@stotz:1996handbuch]"]]] 3 | -------------------------------------------------------------------------------- /tests/issue7.expected.native: -------------------------------------------------------------------------------- 1 | Pandoc (Meta {unMeta = fromList [("references",MetaList [MetaMap (fromList [("author",MetaMap (fromList [("family",MetaInlines [Str "Author"]),("given",MetaList [MetaInlines [Str "Ann"]])])),("container-title",MetaInlines [Str "Journal"]),("id",MetaInlines [Str "item1"]),("issued",MetaList [MetaMap (fromList [("day",MetaString "24"),("month",MetaString "9"),("year",MetaString "2011")]),MetaMap (fromList [("day",MetaString "26"),("month",MetaString "9"),("year",MetaString "2011")])]),("title",MetaInlines [Str "Title"]),("type",MetaInlines [Str "article-magazine"])])])]}) 2 | [Para [Cite [Citation {citationId = "item1", citationPrefix = [], citationSuffix = [], citationMode = AuthorInText, citationNoteNum = 0, citationHash = 1}] [Str "Author",Space,Str "(2011)"]] 3 | ,Div ("refs",["references","hanging-indent"],[]) 4 | [Div ("ref-item1",[],[]) 5 | [Para [Str "Author,",Space,Str "Ann.",Space,Str "2011.",Space,Str "\8220Title.\8221",Space,Emph [Str "Journal"],Str ",",Space,Str "September",Space,Str "24\8211\&26,",Space,Str "2011."]]]] 6 | -------------------------------------------------------------------------------- /tests/issue7.in.native: -------------------------------------------------------------------------------- 1 | Pandoc (Meta {unMeta = fromList [("references",MetaList [MetaMap (fromList [("author",MetaMap (fromList [("family",MetaInlines [Str "Author"]),("given",MetaList [MetaInlines [Str "Ann"]])])),("container-title",MetaInlines [Str "Journal"]),("id",MetaInlines [Str "item1"]),("issued",MetaList [MetaMap (fromList [("day",MetaString "24"),("month",MetaString "9"),("year",MetaString "2011")]),MetaMap (fromList [("day",MetaString "26"),("month",MetaString "9"),("year",MetaString "2011")])]),("title",MetaInlines [Str "Title"]),("type",MetaInlines [Str "article-magazine"])])])]}) 2 | [Para [Cite [Citation {citationId = "item1", citationPrefix = [], citationSuffix = [], citationMode = AuthorInText, citationNoteNum = 0, citationHash = 0}] [Str "@item1"]]] 3 | -------------------------------------------------------------------------------- /tests/issue82.expected.native: -------------------------------------------------------------------------------- 1 | Pandoc (Meta {unMeta = fromList [("csl",MetaInlines [Str "tests/chicago-annotated-bibliography.csl"]),("references",MetaList [MetaMap (fromList [("URL",MetaInlines [Str "https://www.worldcat.org/"]),("accessed",MetaMap (fromList [("date-parts",MetaList [MetaList [MetaString "2014",MetaString "9",MetaString "19"]])])),("author",MetaList [MetaMap (fromList [("literal",MetaInlines [Str "OCLC"])])]),("first-reference-note-number",MetaString "1"),("id",MetaInlines [Str "OCLC_i1099"]),("title",MetaInlines [Str "WorldCat"]),("type",MetaInlines [Str "webpage"])])])]}) 2 | [Header 1 ("title",[],[]) [Str "Title"] 3 | ,Para [Str "Some",Space,Str "text.",Note [Para [Str "Comment",Space,Str "regarding",Space,Str "text,",Space,Str "supported",Space,Str "by",Space,Str "citation",Space,Cite [Citation {citationId = "OCLC_i1099", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 1}] [Str "OCLC,",Space,Str "\8220WorldCat.\8221"]]]] 4 | ,Div ("refs",["references","hanging-indent"],[]) 5 | [Div ("ref-OCLC_i1099",[],[]) 6 | [Para [Str "OCLC.",Space,Str "\8220WorldCat.\8221",Space,Str "Accessed",Space,Str "September",Space,Str "19,",Space,Str "2014.",Space,Link ("",[],[]) [Str "https://www.worldcat.org/"] ("https://www.worldcat.org/",""),Str "."]]]] 7 | -------------------------------------------------------------------------------- /tests/issue82.in.native: -------------------------------------------------------------------------------- 1 | Pandoc (Meta {unMeta = fromList [("csl",MetaInlines [Str "tests/chicago-annotated-bibliography.csl"]),("references",MetaList [MetaMap (fromList [("URL",MetaInlines [Str "https://www.worldcat.org/"]),("accessed",MetaMap (fromList [("date-parts",MetaList [MetaList [MetaString "2014",MetaString "9",MetaString "19"]])])),("author",MetaList [MetaMap (fromList [("literal",MetaInlines [Str "OCLC"])])]),("first-reference-note-number",MetaString "1"),("id",MetaInlines [Str "OCLC_i1099"]),("title",MetaInlines [Str "WorldCat"]),("type",MetaInlines [Str "webpage"])])])]}) 2 | [Header 1 ("title",[],[]) [Str "Title"] 3 | ,Para [Str "Some",Space,Str "text.",Note [Para [Str "Comment",Space,Str "regarding",Space,Str "text,",Space,Str "supported",Space,Str "by",Space,Str "citation",Space,Cite [Citation {citationId = "OCLC_i1099", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 0}] [Str "[@OCLC_i1099]"]]]]] 4 | -------------------------------------------------------------------------------- /tests/number-of-volumes.expected.native: -------------------------------------------------------------------------------- 1 | Pandoc (Meta {unMeta = fromList [("references",MetaList [MetaMap (fromList [("author",MetaMap (fromList [("family",MetaInlines [Str "Author"]),("given",MetaList [MetaInlines [Str "Al"]])])),("id",MetaInlines [Str "item1"]),("issued",MetaMap (fromList [("year",MetaString "2013")])),("language",MetaInlines [Str "en-US"]),("number-of-volumes",MetaString "2"),("publisher",MetaInlines [Str "Publisher"]),("publisher-place",MetaInlines [Str "Location"]),("title",MetaInlines [Str "Title"]),("type",MetaInlines [Str "book"])])])]}) 2 | [Para [Cite [Citation {citationId = "item1", citationPrefix = [], citationSuffix = [], citationMode = AuthorInText, citationNoteNum = 0, citationHash = 1}] [Str "Author",Space,Str "(2013)"]] 3 | ,Div ("refs",["references","hanging-indent"],[]) 4 | [Div ("ref-item1",[],[]) 5 | [Para [Str "Author,",Space,Str "Al.",Space,Str "2013.",Space,Emph [Str "Title"],Str ".",Space,Str "2",Space,Str "vols.",Space,Str "Location:",Space,Str "Publisher."]]]] 6 | -------------------------------------------------------------------------------- /tests/number-of-volumes.in.native: -------------------------------------------------------------------------------- 1 | Pandoc (Meta {unMeta = fromList [("references",MetaList [MetaMap (fromList [("author",MetaMap (fromList [("family",MetaInlines [Str "Author"]),("given",MetaList [MetaInlines [Str "Al"]])])),("id",MetaInlines [Str "item1"]),("issued",MetaMap (fromList [("year",MetaString "2013")])),("language",MetaInlines [Str "en-US"]),("number-of-volumes",MetaString "2"),("publisher",MetaInlines [Str "Publisher"]),("publisher-place",MetaInlines [Str "Location"]),("title",MetaInlines [Str "Title"]),("type",MetaInlines [Str "book"])])])]}) 2 | [Para [Cite [Citation {citationId = "item1", citationPrefix = [], citationSuffix = [], citationMode = AuthorInText, citationNoteNum = 0, citationHash = 0}] [Str "@item1"]]] 3 | -------------------------------------------------------------------------------- /tests/page-range.expected.native: -------------------------------------------------------------------------------- 1 | Pandoc (Meta {unMeta = fromList [("csl",MetaInlines [Str "tests/chicago-fullnote-bibliography.csl"]),("references",MetaList [MetaMap (fromList [("URL",MetaInlines [Str "https://johnmacfarlane.net/vagueness.pdf"]),("id",MetaInlines [Str "test1"])]),MetaMap (fromList [("URL",MetaInlines [Str "https://pandoc.org"]),("id",MetaInlines [Str "test2"])]),MetaMap (fromList [("URL",MetaInlines [Str "https://johnmacfarlane.net"]),("id",MetaInlines [Str "test3"])])]),("suppress-bibliography",MetaBool True)]}) 2 | [Para [Str "Test",Space,Str "1",Str ".",Cite [Citation {citationId = "test1", citationPrefix = [], citationSuffix = [Str ",",Space,Str "pp.\160\&93\8211\&101"], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 1}] [Note [Para [Str "N.d.,",Space,Str "93\8211\&101,",Space,Link ("",[],[]) [Str "https://johnmacfarlane.net/vagueness.pdf"] ("https://johnmacfarlane.net/vagueness.pdf",""),Str "."]]]] 3 | ,Para [Str "Test",Space,Str "2",Str ".",Cite [Citation {citationId = "test2", citationPrefix = [], citationSuffix = [Str ",",Space,Str "pp.\160\&93\8211\&101"], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 2}] [Note [Para [Str "N.d.,",Space,Str "93\8211\&101,",Space,Link ("",[],[]) [Str "https://pandoc.org"] ("https://pandoc.org",""),Str "."]]]] 4 | ,Para [Str "Test",Space,Str "3",Str ".",Cite [Citation {citationId = "test3", citationPrefix = [], citationSuffix = [Str ",",Space,Str "pp.\160\&93-101"], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 3}] [Note [Para [Str "N.d.,",Space,Str "93\8211\&101,",Space,Link ("",[],[]) [Str "https://johnmacfarlane.net"] ("https://johnmacfarlane.net",""),Str "."]]]]] 5 | -------------------------------------------------------------------------------- /tests/page-range.in.native: -------------------------------------------------------------------------------- 1 | Pandoc (Meta {unMeta = fromList [("csl",MetaInlines [Str "tests/chicago-fullnote-bibliography.csl"]),("references",MetaList [MetaMap (fromList [("URL",MetaInlines [Str "https://johnmacfarlane.net/vagueness.pdf"]),("id",MetaInlines [Str "test1"])]),MetaMap (fromList [("URL",MetaInlines [Str "https://pandoc.org"]),("id",MetaInlines [Str "test2"])]),MetaMap (fromList [("URL",MetaInlines [Str "https://johnmacfarlane.net"]),("id",MetaInlines [Str "test3"])])]),("suppress-bibliography",MetaBool True)]}) 2 | [Para [Str "Test",Space,Str "1",Space,Cite [Citation {citationId = "test1", citationPrefix = [], citationSuffix = [Str ",",Space,Str "pp.\160\&93\8211\&101"], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 0}] [Str "[@test1,",Space,Str "pp.",Space,Str "93--101]"],Str "."] 3 | ,Para [Str "Test",Space,Str "2",Space,Cite [Citation {citationId = "test2", citationPrefix = [], citationSuffix = [Str ",",Space,Str "pp.\160\&93\8211\&101"], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 0}] [Str "[@test2,",Space,Str "pp.",Space,Str "93\8211\&101]"],Str "."] 4 | ,Para [Str "Test",Space,Str "3",Space,Cite [Citation {citationId = "test3", citationPrefix = [], citationSuffix = [Str ",",Space,Str "pp.\160\&93-101"], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 0}] [Str "[@test3,",Space,Str "pp.",Space,Str "93-101]"],Str "."]] 5 | -------------------------------------------------------------------------------- /tests/style399.csl: -------------------------------------------------------------------------------- 1 | 2 | 12 | 13 | --------------------------------------------------------------------------------