我需要引用维基媒体图片,因此请按照https://en.wikipedia.org/wiki/Wikipedia:Citing_Wikipedia#BibTeX_entry,我创建了一个这样的围兜项目:
@misc{pict2,
author = "{Wikipedia contributors}",
title = "Plagiarism --- {W}ikipedia{,} The Free Encyclopedia",
year = "last accessed 2004/12/02",
url = "https://en.wikipedia.org/w/index.php?title=Plagiarism&oldid=5139350",
note = "[Online; accessed 22-July-2004]",
howpublished = "\url{https://en.wikipedia.org/w/index.php?title=Plagiarism&oldid=5139350}"
}
我使用\bibliographystyle{JHEP}
(可以在这里找到:https://jhep.sissa.it/jhep/help/JHEP_TeXclass.jsp)。现在,输出就像屏幕截图中的那样。
我想删除标题末尾的句号,并在其后添加逗号。我尝试了 \EatDot 方法 (如何删除引用结尾的句号),但它抱怨说
--line 28 of file biblio_MDN_CB.bib
I was expecting a `,' or a `}'---line 39 of file biblio_MDN_CB.bib
: title = "Plagiarism --- {W}ikipedia{,} The Free Encyclopedia"
: \EatDot,
I'm skipping whatever remains of this entry
另外:我怎样才能使标题变成斜体/强调并且不加引号?这是文章的工作方式,也是我希望维基媒体页面的工作方式:
干杯!
答案1
您可以修改 (的副本)JHEP.bst
,并将其称为JHEP-mod.bst
。
更改线路
383 FUNCTION {format.title.p}
384 { title empty$
385 { "" }
386 { "``" title "t" change.case$ * ".''" * }
387 if$
到
383 FUNCTION {format.title.p}
384 { title empty$
385 { "" }
386 { "``" title "t" change.case$ * "''" * } % <--- here
387 if$
和线条
75 FUNCTION {output.nonnull}
76 {
77 's :=
78 output.state mid.sentence =
79 { " " * write$ }
80 { output.state after.quote =
81 { ", " * write$ }
到
75 FUNCTION {output.nonnull}
76 {
77 's :=
78 output.state mid.sentence =
79 { ", " * write$ } % <--- here
80 { output.state after.quote =
81 { ", " * write$ }