Skip to content

Commit

Permalink
CSL: add space delimiter across the style
Browse files Browse the repository at this point in the history
merges #346
closes #155
supersedes #158
tested via manubot/manubot#110
refs https://twitter.com/csl_styles/status/1270049414200074243

Add a space delimiter across the style.
Fixes some references where there is a missing space after the title,
when authors are missing.

Set second-field-align="flush"
This option is not supported by pandoc yet, but it more closely resembles
hanging-indent="true", which pandoc is currently using to layout the
bibliography.

Co-authored-by: Rintze M. Zelle <[email protected]>
  • Loading branch information
adam3smith and rmzelle authored Jun 11, 2020
1 parent d61267c commit adc7b8b
Showing 1 changed file with 23 additions and 21 deletions.
44 changes: 23 additions & 21 deletions build/assets/style.csl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="never" default-locale="en-US">
<!-- This style was edited with the Visual CSL Editor (http://editor.citationstyles.org/visualEditor/) -->
<info>
Expand Down Expand Up @@ -47,29 +47,31 @@
<text variable="citation-number"/>
</layout>
</citation>
<bibliography hanging-indent="true" second-field-align="margin">
<bibliography hanging-indent="true" second-field-align="flush">
<layout>
<text variable="citation-number" suffix=". "/>
<group>
<text variable="title" font-weight="bold"/>
</group>
<group display="block">
<text macro="author"/>
</group>
<group delimiter=" ">
<text macro="venue" font-style="italic"/>
<date variable="issued" prefix="(" suffix=")">
<date-part name="year"/>
<date-part name="month" form="numeric-leading-zeros" prefix="-"/>
<date-part name="day" form="numeric-leading-zeros" prefix="-"/>
</date>
<text variable="URL"/>
</group>
<group display="block" delimiter=" · ">
<text variable="DOI" text-case="lowercase" prefix="DOI: "/>
<text variable="PMID" prefix="PMID: "/>
<text variable="PMCID" prefix="PMCID: "/>
<text variable="ISBN" prefix="ISBN: "/>
<group>
<text variable="title" font-weight="bold"/>
</group>
<group display="block">
<text macro="author"/>
</group>
<group delimiter=" ">
<text macro="venue" font-style="italic"/>
<date variable="issued" prefix="(" suffix=")">
<date-part name="year"/>
<date-part name="month" form="numeric-leading-zeros" prefix="-"/>
<date-part name="day" form="numeric-leading-zeros" prefix="-"/>
</date>
<text variable="URL"/>
</group>
<group display="block" delimiter=" · ">
<text variable="DOI" text-case="lowercase" prefix="DOI: "/>
<text variable="PMID" prefix="PMID: "/>
<text variable="PMCID" prefix="PMCID: "/>
<text variable="ISBN" prefix="ISBN: "/>
</group>
</group>
</layout>
</bibliography>
Expand Down

0 comments on commit adc7b8b

Please sign in to comment.