For similar reasons last weekend I happened to set up my own test environment to see which CSL style resulted in which PDF output.

I'm using a Markdown'ed testfile and a *.bib sample file with three entries which where somehow inspired/copied/modified by other ones which I found somewhere around pandoc's or John's websites (I forgot to note the URL, can't find it anymore currently -- so I can't give full credit).

My Markdown file, my-csltest.mmd, looks like this (sorry, it's in German):

# `pandoc` mit `citeproc-hs` (Testen automatisch erzeugter Literaturverzeichnisse)

## Markdown-Quellcode der Seite

``` {.markdown}
i.  [@nonexistent]
i.  @nonexistent
i.  @z1 sagt blah.
i.  @z1 [p. 30] sagt blubb.
i.  @z1 [p. 30, mit Suffix] sagt blahblah.
i.  @z1 [-@z2 p. 30; siehe auch @z3] sagt blah-blubb.
i.  In einer Fußnote.[^1]
i.  Eine Zitat-Gruppe [siehe @z1 p. 34-35; ebenfalls @z3 chap. 3].
i.  Noch eine [siehe @z1 p. 34-35].
i.  Und noch eine, in einer Fußnote.[^2]
i.  Zitat mit einem *Suffix* und einem *Locator* [@z1 pp. 33, 35-37, und sonst nirgends].
i.  Zitat nur mit einem Locator [@z1 und sonst nirgends].
i.  Jetzt ein paar *Modifiers*[^3]...
i.  Mit etwas extra Markup [*siehe* @z1 p. **32**].

[^1]: Ein Zitat ohne Locators [@z3].

[^2]: Mehrere Zitate [siehe @z2 chap. 3; @z3; @z1].

[^3]: ...wie z.B. ein Zitat ohne Autor: [-@z1]. Und jetzt noch Doe mit einem Locator [-@z2 p. 44]. 
```
## PDF-Ergebnis des Markdown-Codes

i.  [@nonexistent]
i.  @nonexistent
i.  @z1 sagt blah.
i.  @z1 [p. 30] sagt blubb.
i.  @z1 [p. 30, mit Suffix] sagt blahblah.
i.  @z1 [-@z2 p. 30; siehe auch @z3] sagt blah-blubb.
i.  In einer Fußnote.[^1]
i.  Eine Zitat-Gruppe [siehe @z1 p. 34-35; ebenfalls @z3 chap. 3].
i.  Noch eine [siehe @z1 p. 34-35].
i.  Und noch eine, in einer Fußnote.[^2]
i.  Zitat mit einem *Suffix* und einem *Locator* [@z1 pp. 33, 35-37, und sonst nirgends].
i.  Zitat nur mit einem Locator [@z1 und sonst nirgends].
i.  Jetzt ein paar *Modifiers*[^3]...
i.  Mit etwas extra Markup [*siehe* @z1 p. **32**].

[^1]: Ein Zitat ohne Locators [@z3].

[^2]: Mehrere Zitate [siehe @z2 chap. 3; @z3; @z1].

[^3]: ...wie z.B. ein Zitat ohne Autor: [-@z1]. Und jetzt noch Doe mit einem Locator [-@z2 p. 44]. 

# Literaturverzeichnis

My sample my-dummy.bib file is this:

@Book{ref1,
author="Thales von Milet",
title="Doppelwinkel-Funktionen",
url="http://de.wikipedia.org/wiki/Formelsammlung_Trigonometrie#Doppelwinkelfunktionen",
year="600 v.Chr.",
address="Milet, Kleinasien",
publisher="Wikipedia"
}

@Article{ref2,
author="OStR Dr. math.nat. Oster",
title="Unterrichtsmaterialen für Klasse 9 (Mittelstufe)",
year="1969",
journal="Journal für Allgemeine Studien",
volume="8",
pages="44-53"
}

@InCollection{ref3,
author="Elvis Presley, Madonna and Pink Floyd",
title="Kombinatorik Hypergeometrischer Verteilungen",
booktitle="Wiederholungslose Auswahlprobleme",
editor="Cleopatra, Königin von Ägypten",
publisher="Steintafeln Moses GmbH & Co. KG",
address="Gizeh",
year="30 v.Chr."
}

My CSL files are a Git clone from https://github.com/citation-style-language/styles.git This gave me almost 10.000 CSL files -- but I found that all *.csl files which have a filesize smaller than 1900 Bytes are not usable, because they do not contain any style, only an XML header. The number of files above ~1.900 Bytes was only 865, all of which produced output with citations.

What I did was looping through all the CSL files I was interested in with a command like the following:

for csl in bluebook*.csl; do
pandoc  \
  -V geometry=paperwidth=21cm \
  -V geometry:paperheight=32cm \
  -V geometry:margin=0.5cm \
  -V language=de-DE -V lang=ngerman \
  --highlight-style=espresso \
  --filter=pandoc-citeproc \
  --standalone \
  --self-contained \
  --biblio=my-dummy.bib \
  --csl ${csl} \
   -o my-csltest---$(basename ${csl}).pdf \
    my-csltest.mmd
done

Note I used a non-standard paperheight in order to fit all my test-text onto a single page. The page also contains a copy of the source Markdown as a code block to make it more easy to check which type of citation source resulted in which type of citation target rendering.

Here is a link to my output PDF for bluebook-law-review.csl for your convenience:

https://www.dropbox.com/s/e1beympr4w2vmhu/my-csltest---bluebook-law-review.pdf


Am Dienstag, 21. Januar 2014 20:36:23 UTC+1 schrieb Pranesh Prakash:
Dear all,
I've been using pandoc-flavoured markdown for a while now to write blog posts, but I'm now trying it out to write an academic (legal) paper.  I'm having a tough time getting my head around how to do (non-inline) citations properly (which has to be in the Bluebook style[1]).  Would any of you have publicly-available files for finished academic papers written in markdown with footnotes and citations and the accompanying bibliography file?

Regards,
Pranesh

 [1]: https://raw2.github.com/citation-style-language/styles/master/bluebook-law-review.csl

--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/6a37b162-3f77-40a7-934c-ce9c0ba30ba8%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.