如何去除参考文献部分的额外缩进?

huangapple go评论116阅读模式
英文:

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(&quot;bib.bib&quot;, style: &quot;apa&quot;, title: none)

[![well-formed bibliography][1]][1]


  [1]: https://i.stack.imgur.com/sDHJp.png

</details>



huangapple
  • 本文由 发表于 2023年6月19日 23:00:26
  • 转载请务必保留本文链接:https://go.coder-hub.com/76507864.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定