英文:
How do I remove the extra indentation in the bibliography section?
问题
在Typst(0.5.0)中创建参考文献时,如果选择除IEEE样式以外的任何样式,第一行缺少缩进。如何修复格式,以防止此问题发生?
= References
#bibliography("bib.bib", style: "apa", title: none)
bib.bib 文件的示例内容:
@Article{Einstein:1911:RGT,
author = "A. Einstein",
title = "{Die Relativit{\"a}tstheorie}. (German) [The Theory of Relativity]",
journal = j-VJSCHR-NATURF-GES-ZURICH,
volume = "56",
pages = "1--14",
year = "1911",
ZMnumber = "42.0720.02",
acknowledgement = ack-nhfb,
author-dates = "Albert Einstein (1879--1955)",
Calaprice-number = "31",
language = "German",
Schilpp-number = "43",
ZMreviewer = "Prof. Lampe (Berlin)",
}
与正常文本相比,所有其他行都略有缩进:
我期望所有项目都具有一致的缩进。如何实现这一点?
英文:
When I create a bibliography in Typst (0.5.0) in anything but the IEEE style, the first line is missing its indent. How do I fix the formatting so this does not occur?
= References
#bibliography("bib.bib", style: "apa", title: none)
Sample content for the file bib.bib:
@Article{Einstein:1911:RGT,
author = "A. Einstein",
title = "{Die Relativit{\"a}tstheorie}. ({German}) [{The} Theory of Relativity]",
journal = j-VJSCHR-NATURF-GES-ZURICH,
volume = "56",
pages = "1--14",
year = "1911",
ZMnumber = "42.0720.02",
acknowledgement = ack-nhfb,
author-dates = "Albert Einstein (1879--1955)",
Calaprice-number = "31",
language = "German",
Schilpp-number = "43",
ZMreviewer = "Prof. Lampe (Berlin)",
}
All other lines are slightly indented compared to normal text:
I would have expected all items to be consistently indented. How do I achieve this?
答案1
得分: 0
一个解决方法是在标题和参考文献之间创建一个空的“box”作为一条线。这会增加垂直空间,但会消除缩进:
= 参考文献
#box[]
#bibliography("bib.bib", style: "apa", title: none)
<details>
<summary>英文:</summary>
A workaround is to create an empty `box` as a line between the header and the bibliography. This creates more vertical space, but eliminates the indent:
= References
#box[]
#bibliography("bib.bib", style: "apa", title: none)
[![well-formed bibliography][1]][1]
[1]: https://i.stack.imgur.com/sDHJp.png
</details>
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。




评论