Skip to content

Instantly share code, notes, and snippets.

@andriusvelykis
Created January 27, 2014 18:36
Show Gist options
  • Save andriusvelykis/d522716335bd9a66577d to your computer and use it in GitHub Desktop.
Save andriusvelykis/d522716335bd9a66577d to your computer and use it in GitHub Desktop.
Page label issue in citeproc-ruby
<?xml version="1.0" encoding="UTF-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" version="1.0"
class="in-text">
<info>
<title>Output just pages</title>
<id>pages-test</id>
<updated>2014-01-27T18:01:24+00:00</updated>
</info>
<macro name="author-short">
<names variable="author">
<name form="short"/>
</names>
</macro>
<macro name="author">
<names variable="author">
<name name-as-sort-order="all" initialize-with=". "/>
</names>
</macro>
<macro name="issued">
<date variable="issued">
<date-part name="year"/>
</date>
</macro>
<citation>
<sort>
<key macro="issued"/>
<key macro="author-short"/>
</sort>
<layout prefix="(" suffix=")" delimiter="; ">
<text macro="author-short"/>
<text macro="issued" prefix=" "/>
</layout>
</citation>
<bibliography>
<layout suffix=".">
<group delimiter=" ">
<label variable="page"/>
<text variable="page"/>
</group>
</layout>
</bibliography>
</style>
@article{greenwade93,
author = "George D. Greenwade",
title = "The {C}omprehensive {T}ex {A}rchive {N}etwork ({CTAN})",
year = "1993",
journal = "TUGBoat",
volume = "14",
number = "3",
pages = "342--351"
}
@inukshuk
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment