i'm preparing a beamer-presentation-template for our institution. We want to use --citeproc
and a specific csl style. So far, everything went fine. The file is processed without problems and inline-citations, as well as the bibliography is rendered as wanted.
Only one problem occured: Entries with an URL or an DOI are also rendered correctly, except for the line feed character. It should insert a linebreak before URLs/DOIs but instead is rendered verbatim.
The csl style I use is of the German Archaeological Institute (full source code).
The corresponding code part is the following:
<macro name="url">
<choose>
<if match="any" variable="URL">
<group display="block" prefix=",&#10;"> <!-- Here the line feed character -->
<text variable="URL" text-case="lowercase" prefix="<" suffix=">"/>
<choose>
<if match="none" is-uncertain-date="accessed">
<date form="text" variable="accessed" prefix=" (" suffix=")"/>
</if>
</choose>
</group>
</if>
</choose>
</macro>
<macro name="doi">
<choose>
<if match="any" variable="DOI">
<group display="block" prefix=",&#10;"> <!-- Here the line feed character -->
<text value="doi: " font-variant="small-caps"/>
<text variable="DOI"/>
</group>
</if>
</choose>
</macro>
But if i run my pandoc comman pandoc -t beamer -H header.tex --citeproc conference.md -o conference.pdf
it renders as on the image, without inserting a linebreak and showing the character verbatim. There also appears an unnecessary space in front of the comma befor the DOI:
My knowledge of xml is very rudimentary. Does somebody knows what the problem could be?
Edit:
The wanted output is simple a linebreak after the comma and before the DOI. That is how the bibliographic style of the institution describes it. That is how it should look like:
M. D. Wilkinson – M. Dumontier et al., The FAIR guiding principles for scientific data management and stewardship, Sci Data 3, 1, 2016,
doi: 10.1038/sdata.2016.18.
The xml code is the original downloaded from the Zotero Style Repository without changes from my site.
Best