Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Lyx won't play nice with biblatex [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
ExecutorElassus
l33t
l33t


Joined: 11 Mar 2004
Posts: 747
Location: Stuttgart, Germany

PostPosted: Wed Mar 06, 2013 11:51 am    Post subject: Lyx won't play nice with biblatex [SOLVED] Reply with quote

So, I have a document in Lyx, which is written in German. The bibliography should then also render in German (so that the field "Volume," for example, will appear as "Band" in the bibliography). However, Lyx on its own won't do this, as the system language is English. I was advised to use biblatex for multilingual bibliographies. Below is my Lyx preamble:

Code:
\setkomafont{sectioning}{\rmfamily \bfseries}
\KOMAoptions{headings=small}
\usepackage{fontspec}
\usepackage{xunicode}
\usepackage{xltxtra}
\usepackage{polyglossia}
\usepackage{bidi}
\usepackage[style=numeric]{biblatex}
\usepackage[doublespacing]{setspace}
\deffootnote[0.75em]{0.5em}{1.25em}{\textsuperscript{\thefootnotemark}}
\setmainfont[Ligatures={Historic,Rare,Discretionary,TeX},Contextuals=Swash]{Linux Libertine}
\newfontfamily{\latinfont}[Script=Latin,Ligatures={Historic,Rare,Discretionary,TeX},Contextuals=Swash,Alternate=0,Style=Historic]{Linux Libertine}
\newfontfamily{\hebrewfont}[Script=Hebrew]{SBLHebrew}
\newfontfamily{\arabicfont}[Script=Arabic]{Lateef}
\errorcontextlines=10


When I try to render a test document (or my main document) I get a string of errors:

Code:
! LaTeX Error: Command \bibhang already defined.
               Or name \end... illegal, see p.192 of the manual.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                             
                                                 
l.398 \newlength{\bibhang}
                         
Your command was ignored.
Type  I <command> <return>  to replace it with another command,
or  <return>  to continue without it.

...

! LaTeX Error: Command \citename already defined.
               Or name \end... illegal, see p.192 of the manual.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                             
                                                 
l.7933 ...d*{\citename}{\blx@citexpunct{citename}}
                                                 
Your command was ignored.
Type  I <command> <return>  to replace it with another command,
or  <return>  to continue without it.
and the document fails to render.

Can anybody advise me on what's going on here?

The errors I get are two types: One, after every single footnote field, is a "undefined control sequence" error, due I suspect to xetex incorrectly parsing the footnotes. The other error, though, is the following type:

Code:
! Package biblatex Error: '\bibliographystyle' invalid.

See the biblatex package documentation for explanation.
Type  H <return>  for immediate help.
 ...                                             
                                                 
\GenericError  ...                               
                                                  \endgroup
\blx@error ...es \PackageError {biblatex}{#1}{#2.}
                                                  \endgroup
l.90 \bibliographystyle{plain}
                             
Use the package option 'style' instead.
I'm ignoring this command.


! LaTeX Error: Can be used only in preamble.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
These all occur where the bibliography is inserted by Lyx itself.

So, does Lyx simply not work with biblatex? Am I missing some package? Do I have one package too many?

Thanks for the help. This is a somewhat pressing matter, as the document is to be submitted as part of an application (and thus the languages have to be correct).

Cheers,

EE


Last edited by ExecutorElassus on Wed Mar 06, 2013 10:19 pm; edited 1 time in total
Back to top
View user's profile Send private message
Zagloj
Guru
Guru


Joined: 17 Jun 2005
Posts: 314

PostPosted: Wed Mar 06, 2013 6:55 pm    Post subject: Reply with quote

Hi, as the error message says, the bibliographystyle command is incorrect, use the style in the package options as it suggests:
\usepackage[style=numeric]{biblatex}

Look here for more in deep information: http://tex.stackexchange.com/questions/46334/bibliographystyle-invalid

Hope this helps ;)
_________________
Your ideology seems to be: "I hate the fanatics, we shoud kill them all" juantxorena dixit.
Back to top
View user's profile Send private message
ExecutorElassus
l33t
l33t


Joined: 11 Mar 2004
Posts: 747
Location: Stuttgart, Germany

PostPosted: Wed Mar 06, 2013 9:23 pm    Post subject: Reply with quote

Thing is, I'm not using a \bibliographystyle command. I'm using Lyx, and simply inserting a Bibtex bibliography using the menu. Lyx is the one inserting the invalid command into the tex file.

So, would I be right to assume that this is a bug, and that Lyx simply isn't adapting to the vagaries of the biblatex package? If that's the case, I should go submit a bug to the Lyx people.

Cheers,

EE
UPDATE: holy crap, there is a whole convoluted process to adapting Lyx to play nice with biblatex, which I didn't even know about. Check this mess out: http://wiki.lyx.org/BibTeX/Biblatex. So, because I didn't do any of that, Xetex/Tex was barfing on Lyx's generated bibliography output. That's all fixed now. Yikes!

PS, this really should be more explicit for the Lyx people to document, since biblatex is a really good package, but requires a lot of tweaking to work.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum