如何使用 BibTeX 用法语打印月份?
@Misc{url-site,
key = {site},
title = {\textit{site}},
month = jun,
year = {2012},
howpublished = {URL: \texttt{http://www. a web site.com/}}
}
它显示六月,但我想朱安
答案1
您没有指出您使用哪种书目样式文件,因此我假设它是“默认”文件,即。plain.bst
如果是这样,您面临的问题是该文件包含指令
MACRO {jun} {"June"}
因此,除非有明确的覆盖,否则 bib 文件中的字符串“jun”将被排版为“June”。您可以通过插入指令来提供此覆盖
@string{ jun = "Juin" }
在你的 bib 文件顶部。
另外,我还建议你改变一下
howpublished = {URL: \texttt{http://www.awebsite.com/}}
到
howpublished = {URL: \url{http://www.awebsite.com/}}
并加载url
包(提供命令\url
)。采用这种方法的优点是,url
包可以(几乎)始终为长而复杂的 url 字符串选择合适的换行符,让您避免大量行数不足或过满的情况。
综合考虑这些观察结果,您的.bib
文件(例如,urlcite.bib)应该包含:
@string{ jun = "Juin" }
@Misc{url-site,
key = {site},
title = {\textit{site}},
month = jun,
year = 2012,
howpublished = {URL: \url{http://www.awebsite.com/}}
}
完整的 MWE 可能看起来像这样:
\documentclass{article}
\usepackage{url} % for the \url command
\bibliographystyle{plain} % or whatever style file you prefer
\usepackage[french]{babel}
\begin{document}
\cite{url-site}
\bibliography{urlcite} % if bib entries are in the file "urlcite.bib"
\end{document}
答案2
您只需将以下部分之一添加到您的.bib
文件中:
英语
@STRING{ jan = "January" }
@STRING{ feb = "February" }
@STRING{ mar = "March" }
@STRING{ apr = "April" }
@STRING{ may = "May" }
@STRING{ jun = "June" }
@STRING{ jul = "July" }
@STRING{ aug = "August" }
@STRING{ sep = "September" }
@STRING{ oct = "October" }
@STRING{ nov = "November" }
@STRING{ dec = "December" }
法语
@STRING{ jan = "Janvier" }
@STRING{ feb = "F{\'e}vrier" }
@STRING{ mar = "Mars" }
@STRING{ apr = "Avril" }
@STRING{ may = "Mai" }
@STRING{ jun = "Juin" }
@STRING{ jul = "Juilliet" }
@STRING{ aug = "Ao{\^u}t" }
@STRING{ sep = "Septembre" }
@STRING{ oct = "Octobre" }
@STRING{ nov = "Novembre" }
@STRING{ dec = "D{\'e}cembre" }
德语
@STRING{ jan = "Januar" }
@STRING{ feb = "Februar" }
@STRING{ mar = "M{\"a}rz" }
@STRING{ apr = "April" }
@STRING{ may = "Mai" }
@STRING{ jun = "Juni" }
@STRING{ jul = "Juli" }
@STRING{ aug = "August" }
@STRING{ sep = "September" }
@STRING{ oct = "Oktober" }
@STRING{ nov = "November" }
@STRING{ dec = "Dezember" }