LyXLyx-2.2.0 fails on Biblatex/natbib

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
ExecutorElassus
Posts: 94
Joined: Wed Sep 07, 2011 3:14 pm

Lyx-2.2.0 fails on Biblatex/natbib

Post by ExecutorElassus »

Furthermore: I've gone through my document and re-set all instances of foreign words in Chapter or Section blocks to the default language, and now the document compiles without failure. So, there's something wrong with how Lyx is processing foreign language setting within those blocks that's causing it to fail. Still trying to isolate it.

However, there's also the following problem, still with the bibliography. Even though most of the entries are formatted properly, many of them aren't. The following entry:

Code: Select all

@InBook{knessl2003musiktheatralischefruehgeburt,
  chapter   = {5: Eine musiktheatralische Frühgeburt: Anmerkungen zu Amerika von Roman Haubenstock-Ramati},
  pages     = {65--75},
  title     = {Bühne, Film, Raum und Zeit in der Musik des 20. Jahrhunderts},
  publisher = {B\"ohlau},
  year      = {2003},
  author    = {Knessl, Lothar},
  editor    = {Krones, Hartmut},
  series    = {Wiener Schriften zur Stilkunde und Auff\"uhrungspraxis. - Sonderreihe Symposien zu Wien Modern},
  address   = {Wien},
}
when I include a page number with Lyx's dialog, just gives the page number and the entry key, without processing it into a proper entry. This is using biblatex-chicago. I'll check with the MWE and see if it happens there as well. They are correctly formatted in the bibliography itself, so maybe it's just including the page numbers?

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

ExecutorElassus
Posts: 94
Joined: Wed Sep 07, 2011 3:14 pm

Lyx-2.2.0 fails on Biblatex/natbib

Post by ExecutorElassus »

More weirdness: I've found that a lot of times, if I use the "update master" command from within Lyx, xetex will fail out with an error (though the log will say that xetex finished successfully and output a document with the right number of pages). However, if I then select "Reconfigure" from the menu (and then re-set mupdf as my pdf viewer, because "Reconfigure" resets this option), I can then re-run the preview without problem.

In the Latex log, the only errors I see are like this:

Code: Select all

[14]
! Missing $ inserted.
<inserted text> 
                $
<to be read again> 
                   \endgroup 
\blx@endunit ->\endgroup 
                         \global \toggletrue {blx@insert}\global \toggletrue...
<argument> \printfield [tnoformat]{title}
                                         \setunit {\addcolon \addspace }\pri...

\emph  ...roup \text@command {#1}\em \check@icl #1
                                                  \check@icr \expandafter \e...

\mkbibemph #1->\emph {#1}
                         \blx@imc@setpunctfont \emph 
\blx@theformat #1->\mkbibemph {#1}
                                  \isdot 
<argument> ...}\printfield [stnoformat]{subtitle}}
                                                  \blx@endunit 
\@secondoftwo #1#2->#2
                      
\abx@macro@citaltitle+stitle ...ormat]{subtitle}}}
                                                  \setunit {\ctitleaddonpunc...

\blx@bbx@cite:book ...bibmacro {citaltitle+stitle}
                                                  \setunit {\addspace }\useb...
...
l.645 ...zky2010game}, and \citet{montfort201210}.
                                                  
I've inserted something that you may have forgotten.
(See the <inserted text> above.)
With luck, this will get me unwedged. But if you
really didn't forget anything, try typing `2' now; then
my insertion and my current dilemma will both disappear.
and a warning that I should update polyglossia.

Furthermore, I have the following entry in my .bib file:

Code: Select all

@Misc{drees2010wienmodern-rhr,
  author       = {Drees, Stefan},
  title        = {Zwischen abstrakter Grafik und musikalischer Notation},
  year         = {2010},
  address      = {Wien},
  date         = {2010-10-30},
  entrysubtype = {program notes},
}
If I delete the entrysubtype, I can also compile without error. Am I formatting that incorrectly?

My distribution is still using texlive-xetex-2015 (which is apparently where polyglossia is included). Might this be causing some problems?

Cheers,

EE
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Re: Lyx-2.2.0 fails on Biblatex/natbib

Post by Johannes_B »

I cannot reproduce the behaviour you are descrbing. Please post a minimal working example.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
ExecutorElassus
Posts: 94
Joined: Wed Sep 07, 2011 3:14 pm

Re: Lyx-2.2.0 fails on Biblatex/natbib

Post by ExecutorElassus »

The attached .lyx file (used together with the .bib file also uploaded) fails with "undefined control sequence" errors. Can you reproduce that?

Cheers,

EE
Attachments
bibliography-biblatex-biber.lyx
(3.98 KiB) Downloaded 366 times
ExecutorElassus
Posts: 94
Joined: Wed Sep 07, 2011 3:14 pm

Re: Lyx-2.2.0 fails on Biblatex/natbib

Post by ExecutorElassus »

here's the .bib file
Attachments
bibliography.bib
(653 Bytes) Downloaded 329 times
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Re: Lyx-2.2.0 fails on Biblatex/natbib

Post by Johannes_B »

I don't have LyX installed. I don't need it, i don't use it. Please convert/export your code to LaTeX.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
ExecutorElassus
Posts: 94
Joined: Wed Sep 07, 2011 3:14 pm

Re: Lyx-2.2.0 fails on Biblatex/natbib

Post by ExecutorElassus »

/o

I posted this problem to the Lyx forum, specifically because I suspected that some of the problems I'm having are due to the newest version of Lyx (noted in the title of the topic) formatting things strangely and outputting to .tex (which is how I assume it hands off to xetex) incorrectly.

But very well. Here's the .tex exported by Lyx of that .lyx file. Do you see anything here that shouldn't be formatted the way it is?

Cheers,

EE
Attachments
bibliography-biblatex-biber.tex
(1.68 KiB) Downloaded 420 times
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Re: Lyx-2.2.0 fails on Biblatex/natbib

Post by Johannes_B »

Which error message is that producing on your machine? (From the small example.)
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
ExecutorElassus
Posts: 94
Joined: Wed Sep 07, 2011 3:14 pm

Lyx-2.2.0 fails on Biblatex/natbib

Post by ExecutorElassus »

Hi Johannes,

this is the only error in the log (compiling the .lyx file using biber and xetex):

Code: Select all

LaTeX Font Info:    ... okay on input line 33.
! Undefined control sequence.
\@begindocumenthook ...dafter {\bbl@main@language 
                                                  }\bbl@clear@ttribs \Declar...
l.33 \begin{document}
                     
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.


Package polyglossia Warning: File gloss-.ldf does not exist!
(polyglossia)                I will nevertheless try to use hyphenation pattern
s for . on input line 33.


Package polyglossia Warning: \setlocalhyphenmin useless for unknown language  o
n input line 33.


Package polyglossia Warning: No hyphenation patterns were loaded for `
(polyglossia)                I will use \language=\l@nohyphenation instead on i
nput line 33.
I also see these warnings:

Code: Select all

Package polyglossia Warning: File gloss-usenglish.ldf does not exist!
(polyglossia)                I will nevertheless try to use hyphenation pattern
s for usenglish. on input line 22.


Package biblatex Warning: Upgrade package 'polyglossia' to >v1.42.0 recommended
Do you not see similar errors?

Cheers,

EE
Last edited by ExecutorElassus on Sun Jul 03, 2016 8:33 pm, edited 2 times in total.
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Re: Lyx-2.2.0 fails on Biblatex/natbib

Post by Johannes_B »

Yes i do, the error comes from using babel [t]and[/i] polyglossia, and worse, polyglossia doesn't have a definition for USenglish. Personally, i would drop the two lines.

If you do, the problem you first stated doesn't come up, and the language error is not related to the math error (as far as i can tell).
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply