使 biber/biblatex/XeLaTeX/TeXworks 协同工作时出现问题

使 biber/biblatex/XeLaTeX/TeXworks 协同工作时出现问题

好的,我的情况是这样的:我正在为我的课程写一篇论文,我想包括一个双语参考书目,因为我的一些资料是韩文的,我希望参考书目显示原始的韩文名称以及英文标题等等。

起初我是从 pdflatex 开始的,但我发现如果我想包含 UTF 字母,使用 XeLaTeX 会更容易,所以我换了个方式,但到目前为止它还不能与 biblatex/biber 一起使用...所以我希望这里有人知道如何让它工作,因为我已经在这个问题上浪费了 2 天时间,而不是真正写我的论文 ^^ 这是我的主文件 BT.tex - 在 TeXworks 中我使用编译器 XeLaTex+MakeIndex+BibTex。

\documentclass[a4paper,12pt]{article}
\usepackage{polyglossia}
\usepackage{csquotes}
\usepackage[backend=biber]{biblatex}
\addbibresource{BT.bib}
\usepackage{fontspec}
\usepackage{xeCJK}  % package for Korean fonts
\setmainlanguage{english}
\setCJKmainfont{Dotum}      % For Korean font
\setmainfont{Times New Roman}   % Standard font
\begin{document}
\section{Asymmetric Information Theory}
See \textcite{CaMa90}.
See \textcite{Ch99}.
See \textcite{BoCh96}.
See \textcite{BeSp89}.
\printbibliography
\end{document}

这是我的书目文件:

@article{CaMa90,
author = {R. B. Carter and S. Manaster},
title = {Initial Public Offerings and Underwriter Reputation},
journaltitle = {Journal of Finance},
jourvol = {45},
year = {1990},
pages = {1045-1067}
}

@article{Ch99,
author = {M.-S. Choi},
title = {A Study on Initial Returns and Underpricing of {IPOs}},
journaltitle = {The Korean Journal of Finance},
jourvol = {12},
year = {1999},
pages = {197-226},
origlanguage = {Korean},
origtitle = {신규공모주의 공모가격 할인과 초기성과에 대한 연구},
origpublisher = {재무연구}
}

@article{BoCh96,
author = {J. R. Booth and I. Chua},
title = {Ownership Dispersion, Costly Information and {IPO} Underpricing},
journaltitle = {Journal of Financial Economics},
jourvol = {41},
year = {1996},
pages = {291-310}
}

@article{BeSp89,
author = {L. M. Benveniste and P. A. Spindt},
title = {How Investment Bankers Determine the Offer Price and Allocation of New Issues},
journaltitle = {Journal of Financial Economics},
jourvol = {24},
year = {1989},
pages = {343-361}
}

当我将代码从 改为 时[backend=biber][backend=bibtex8]编译器可以工作,但第 99 章文章不以韩语显示,而当我将其改回 时[backend=biber],编译器对我不起作用。希望有人能解决这个问题!

编辑:我刚刚发现其他人也有类似的问题,但我不知道该如何回答......但我想它无论如何对你都有帮助! 如何使用 biblatex、biber 和 polyglossia 创建多语言(英语、日语)书目

编辑 2:是的,当我使用 [backend=biber,style=apa] 编译文件时,没有出现参考文献列表,并且引用不起作用。当我将其更改为 [backend=bibtex8] 时,引用起作用了,只是我不知道必须使用哪种样式才能包含参考文献列表中的韩语部分。如果我随后将其改回 [backend=biber, style=apa](即在使用 bibtex8 创建 .bbl 文件后更改为 biber),参考文献会以韩语和英语正确显示,但期刊的卷数和年份不再显示。我不知道发生了什么。

编辑3:当我尝试使用 biber 编译我的 BT.bib 时(不知道这是否正确),出现以下控制台输出:

File/Copy.pm did not return a true value at C:/strawberry/perl/site/lib/Archive/Zip/Archive.pm line 9.
BEGIN failed--compilation aborted at C:/strawberry/perl/site/lib/Archive/Zip/Archive.pm line 9.
Compilation failed in require at C:/strawberry/perl/site/lib/Archive/Zip.pm line 254.
Compilation failed in require at -e line 358.

编辑4:此外,我的日志文件显示:

Package biblatex Warning: Please (re)run Biber on the file:
(biblatex)                BT
(biblatex)                and rerun LaTeX afterwards.

我该怎么做?我尝试打开 BT.bib 文件,使用 TeXworks 选择 biber,但不起作用(参见编辑 3)。当我将 BiBtex 与 TeXWorks 一起使用时,创建的 .bbl 文件是空的。创建非空 .bbl 文件的唯一方法是在我的 BT.tex 中使用 [backend=bibtex8],但这对我没有任何帮助,因为我想使用 biber 而不是 bibtex8。

编辑 5:此外,我甚至无法从我的 Windows 命令行运行我的 biber.exe - 当我尝试这样做时出现以下错误:

File/Copy.pm did not return a true value at C:/strawberry/per/site/lib/archive/zip/archive.pm line 9.
BEGIN failed--compilation aborted at C:/strawberry/perl/site/lib/archive/zip/archive.pm line 9.
Compilation failed in require at C:/strawberry/perl/site/lib/archive/zip.pm line 254.
Compilation failed in require at -e line 358.

答案1

您可能需要更改 Texworks 调用 Biber 的方式。我能够通过让 Biber 知道输入和输出是 unicode 来让韩文文本顺利显示。

要修改 Texworks 发送给 Biber 的参数,请打开排版首选项:Edit->Preferences->Typesetting。在Processing Tools框中选择Biber然后单击edit。在弹出的窗口中,您可以添加参数。我有-U -u$basename,全部作为单独的条目。“U/u”条目告诉 Biber 输入和输出都是 utf8。

biblatex如果您经常使用非 utf8 .bib 文件,那么您可以通过以下方式调用来实现相同的功能:

\usepackage[backend=biber,texencoding=utf8,bibencoding=utf8]{biblatex}

没有这些参数的默认行为是 Biblatex 应该自动检测 .tex 文档的编码并假设 .bib 文件是相同的。可能的情况是,就像我的情况一样,biblatex 需要一点提醒,它应该使用 utf8。

使用此设置,我在编译您上面提供的 MWE 时没有遇到任何问题。我确实遇到了使用时没有出现参考书目或引文的问题style=apabiblatex我不熟悉这种风格,所以我无法解决这里发生的问题。但我在设置时能够让韩语出现style=mla。我意识到这可能不是您想要的风格或您需要使用的风格,但它至少表明使用 Biblatex 和 Biber 的 Texworks 可以处理您要求它编译的韩语文本。

相关内容