BibTeX, biblatex and biberdifferent citation styles in one document

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
selang
Posts: 3
Joined: Sat Nov 13, 2010 1:14 pm

different citation styles in one document

Post by selang »

Hello,
I have a document in Chinese which has citations both of Chinese works (of course using Chinese characters) and of Western books (mainly English) in original. I know how to create a style only for Chinese, but then Latin script citations will look bad because commas and points are Chinese, and the same the other way around.
I hope it is clear, if not, please ask.
So, would it be possible to use two different styles filtered on .bib file's keyword? (I already use keywords to print two separate bibliographies, one for Chinese characters and one for Latin script).

I'm on texlive using xelatex/biblatex/biber

Thank you in advance for any hints

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

selang
Posts: 3
Joined: Sat Nov 13, 2010 1:14 pm

different citation styles in one document

Post by selang »

I finally managed to make it work, I hope it will usefull for someone else, it's very simple in fact:

I have modified the standard.bbx (make a backup copy first!) adding this where needed (this is what's needed in Chinese bibliography style after the author name, a colon; I had to add a backward half space because biblatex seems to ignore xeCJK spacing instructions):

Code: Select all

\iffieldequalstr{keywords}{zh}{%
   \setunit{\hspace*{-.5em}:}\newblock}{}
\iffieldequalstr{keywords}{en}{%
\setunit{\labelnamepunct}\newblock}{}
Of course, in the .bib entry, you need a keywords field with a value of your choice.

When I will have the all file done, I will post it back.

Thank you anyway, I know you all wanted to help but maybe did not know how.
A happy man
:D
Post Reply