italic font doesn't show in citations

edited February 1, 2018
Hello

I have recently updated the "University College Lillebælt - Harvard" style, and have tried and failed to show law titles in italic in citations. I use the following code:

<macro name="author-citation">
<choose>
<if type="legislation">
<names variable="author">
<name name-as-sort-order="all" initialize-with="."/>
<substitute>
<text variable="title" font-style="italic"/>
</substitute>
</names>
</if>
<else-if type="entry-dictionary entry-encyclopedia article-newspaper chapter broadcast motion_picture" match="any">
<text macro="author-special"/>
</else-if>
<else>
<names variable="author">
<name name-as-sort-order="all" initialize-with="."/>
<substitute>
<names variable="editor"/>
<names variable="composer"/>
<text term="anonymous"/>
</substitute>
</names>
</else>
</choose>
</macro>

The title is written as wanted, except it isn't italicized, and I can't figure out why not.

PS: I'm using LibreOffice.

This is an old discussion that has not been active in a long time. Before commenting here, you should strongly consider starting a new discussion instead. If you think the content of this discussion is still relevant, you can link to it from your new discussion.

This discussion has been closed.