0

I am close to giving up now: I am desperately trying to accomplish a supposedly simple thing: I manage the references for my work with Mendeley. I want to format the bibliography so that I have:

[author]
      [title] etc.

means, after the element author I would like to have a simple line break. However, this seems to be a major problem. I came across these ways:

However none of the worked at all. I can't believe that it is that hard. I tried to surround the author by a <group> with delimiter="&#10;" as well, but this had not effect.

Can anyone help me or point me a direction or is this not possible at all? Can't believe that this is so hard...

Thanks a lot!

Peter

4

3 回答 3

2

&#10;如您的第一个链接中所述,将转义的 HTML 代码用于换行符 ( ) 对我有用。

https://gist.github.com/rmzelle/b9bc934521ff7c5b4fb7上使用 APA 的修改版本,它使用<text macro="author" suffix="&#10;"/>(以及一些清理,比如在作者宏之后删除悬挂缩进和分隔符),我得到如下参考:

Alberty, R. A.
(2006). Thermodynamics and kinetics of the glyoxylate cycle. Biochemistry, 45(51), 15838–15843. doi:10.1021/bi061829e

(使用 Zotero 参考测试窗格进行测试)

于 2014-07-25T01:59:39.970 回答
1

我正在使用 pandoc-citeproc 来生成 HTML。上面的技巧不起作用,因为 pandoc 没有正确地取消字符: https ://github.com/jgm/pandoc-citeproc/issues/120

最后我求助于 CSS 来完成这个技巧:

中超:

<text macro="title" font-weight="bold"/>

CSS:

.citation strong {
   display: block;
}

这将在其自己的行上显示标题。

于 2015-03-25T15:05:07.267 回答
1

至少从 2018 年(版本 0.14.18)开始,有一种受支持的方法可以做到这一点。

您可以通过将其包装在前缀、后缀、分隔符或术语中来定义特定于作者的原始内容

{{<writer-name>}}<raw-content>{{/writer-name}}

例如,如果您有一个用于列出作者的文本宏“author”,并且您希望在此之后为带有“.”的乳胶和 HTML 编写器添加一个换行符,在其他情况下,您可以编写:

<text macro="author" suffix=".{{latex}}\\{{/latex}}{{html}}&#10;{{/html}} "

参考: https://github.com/jgm/pandoc-citeproc/blob/master/man/pandoc-citeproc.1.md中的“原始内容”部分

于 2018-11-09T10:23:54.277 回答