View previous topic :: View next topic |
Author |
Message |
ExecutorElassus Veteran
Joined: 11 Mar 2004 Posts: 1435 Location: Berlin, Germany
|
Posted: Wed Mar 06, 2013 11:51 am Post subject: Lyx won't play nice with biblatex [SOLVED] |
|
|
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 |
|
|
Zagloj Guru
Joined: 17 Jun 2005 Posts: 344
|
|
Back to top |
|
|
ExecutorElassus Veteran
Joined: 11 Mar 2004 Posts: 1435 Location: Berlin, Germany
|
Posted: Wed Mar 06, 2013 9:23 pm Post subject: |
|
|
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 |
|
|
|
|
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
|
|