Using pandoc to create a csl catalog

There are hundreds of CSL bibliography styles (including a github repository) but its not easy to browse or search them -- the Zotero Style Repository uses annoying javascript popups. Fortunately, pandoc can easily create such a catalog.

rm catalog.md; 
for f in ~/.csl/*.csl; 
    do echo $f; echo -e "\n# $f \n" >> catalog.md ; 
    pandoc -f markdown -t markdown --bibliography=refs.bib 
    --csl=$f cites.md >> catalog.md; 
done; 
pandoc catalog.md -s -o catalog.html

I opened an issue for this at the CSL github repository.

Comments !

blogroll

social