partially implement webpage

This commit is contained in:
2025-11-04 22:14:24 +01:00
parent 34ac2e0b7d
commit b7062eabd7
2 changed files with 23 additions and 41 deletions

View File

@@ -54,18 +54,8 @@
</choose>
</macro>
<macro name="published-in">
<choose>
<if type="article-journal article-magazine" match="any">
<choose>
<if variable="container-title">
<!-- TODO: FIX: Doesn't work for webpage -->
<text variable="container-title"/>
</if>
<else-if variable="container-title-short">
<text variable="container-title-short"/>
</else-if>
</choose>
</if>
</choose>
</macro>
<macro name="publisher">
<choose>
@@ -164,23 +154,11 @@
<bibliography>
<layout>
<text variable="citation-number" display="left-margin" prefix="[" suffix="]"/>
<group>
<text macro="author" suffix=". "/>
<text macro="title" suffix=". " font-style="italic"/>
<choose>
<if type="article-journal article-magazine" match="any">
<group>
<text macro="author" suffix=". "/>
<text macro="title" suffix=". " font-style="italic"/>
<text macro="format" suffix=". "/>
<text macro="published-in" suffix=". "/>
<text macro="published" suffix=". "/>
<text macro="id" suffix=". "/>
<text macro="url" suffix=". "/>
<text macro="accessed"/>
</group>
</if>
<else-if type="book">
<group>
<text macro="author" suffix=". "/>
<text macro="title" suffix=". " font-style="italic"/>
<if type="book">
<text macro="numbering-paging" suffix=". "/>
<text macro="publisher"/>
<choose>
@@ -191,16 +169,20 @@
<text value=". "/>
</else>
</choose>
<text macro="published" suffix=". "/>
<text macro="id" suffix=". "/>
<text macro="url" suffix=". "/>
<text macro="accessed"/>
</group>
</if>
<else-if type="article-journal article-magazine article-newspaper post-weblog webpage" match="any">
<text macro="format" suffix=". "/>
<text macro="published-in" suffix=". "/>
<text macro="publisher" suffix=". "/>
</else-if>
<else>
<text value="TODO"/>
<text value=" TODO "/>
</else>
</choose>
<text macro="published" suffix=". "/>
<text macro="id" suffix=". "/>
<text macro="accessed"/>
</group>
</layout>
</bibliography>
</style>

View File

@@ -9,14 +9,14 @@
issn = {0092-8674}
}
@misc{csl,
@online{csl,
title = {Citation Style Language},
year = {2025},
urldate = {2025-06-10},
URL = {https://citationstyles.org/},
}
@misc{linux,
@online{linux,
journal = {Blog | Linux Foundation},
title = {Classic SysAdmin: Vim 101: A Beginners Guide to Vim},
year = {2025},