[Tex/LaTex] Problem getting biber/biblatex/XeLaTeX/TeXworks working together

biberbiblatexxetex

OK, here my situation: I'm writing a paper for my class, and I want to include a bilingual bibliography since some of my sources are in Korean and I want the bibliography to show the original Korean name as well as the English title and so on.

At first I started with pdflatex, but I figured that if I want to include UTF letters it would be easier to work with XeLaTeX, so I switched over but it just doesn't want to work with biblatex/biber so far..so I hope somebody here knows how to get it working, as I've already wasted 2 days on this problem instead of actually writing my paper ^^
Heres my main file, BT.tex – in TeXworks I use the compiler 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}

Here's my bibliography file:

@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}
}

When I change the code from [backend=biber] to [backend=bibtex8] the compiler works, except that the Article Ch99 is not shown in Korean, and when I change it back to [backend=biber], the compiler does not work for me.
Hope anyone can figure this one out!

Edit: I just found somebody else had (kind of) a similar problem, but I don't know how to make head and tails out of the answer..but I guess it could be helpful for you anyways!
How to create multilingual (English, Japanese) bibliographies with biblatex, biber and polyglossia

Edit2: Yeah, when I compile the file using [backend=biber,style=apa], no reference list appears and the citations dont work. When I change it to [backend=bibtex8], the citations work, except that I don't know which style I have to use to include the Korean language part of the reference list. If I then change it back to [backend=biber, style=apa] (i.e. changing to biber after the .bbl file has been created using bibtex8), the reference is shown correctly in korean and english, but the volume and year of the journal are not shown anymore. I have no clue what is happening.

Edit3: When I try to compile my BT.bib using biber (don't know if that is even correct), the following console output comes up:

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.

Edit 4: Also, my log file says:

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

How do I do that? I tried opening the BT.bib file, selecting biber with TeXworks, but that doesn't work (see edit 3). When I use BiBtex with TeXWorks, the created .bbl file is empty. The only method that created a .bbl file that is not empty was using [backend=bibtex8] inside my BT.tex, but that doesn't help me at all since I want to use biber and not bibtex8..

Edit 5: Furthermore, I can't even run my biber.exe from my windows command line – following error comes when I try to do so:

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.

Best Answer

You might need to change how Texworks calls Biber. I was able to get the Korean text to appear without any issue by letting Biber know that the input and output were unicode.

To modify the arugments Texworks sends to Biber open up the typesetting preferences: Edit->Preferences->Typesetting. In the Processing Tools box, select Biber then click on edit. In the window that pops up, you can add arguments. I have -U -u and $basename, all as separate entries. The "U/u" entries tell Biber that the input and the ouput are utf8.

If you routinely use non-utf8 .bib files then you can achieve the same functionality by calling biblatex in the following manner:

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

The default behavior without those arguments is that Biblatex is supposed to detect automatically the encoding of the .tex document and assume that the .bib file is the same. It might be the case, as it was for me, that biblatex needs a little reminder that it should be using utf8.

Using this set up, the I had no problems compiling the MWE you provided above. I did run into the issue of no bibliography or citations appearing when using style=apa in biblatex. I am not familiar with this style so I cannot troubleshoot what is happening here. But I was able to get Korean to appear when I set style=mla. I realize that this might not be your desired style or the style you are required to use, but it at least demonstrates that Texworks using Biblatex and Biber can process the Korean text you ask it to compile.

Related Question