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

Re: Lyx-2.2.0 fails on Biblatex/natbib

Post by ExecutorElassus »

commented them out. Packages bidi, biblatex, and csquotes (this is back in my main document) all report that they need polyglossia. That seems bogus, especially for csquotes (which explicitly mentions babel on the ctan page).

Also, my main document uses Hebrew, extended Greek, Chinese, German, and Japanese. The Hebrew especially suggests I need the bidi package.

But why might biblatex be insisting on polyglossia? I'll have to dig around Lyx and see where I set that.

Cheers,

EE

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

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

Lyx-2.2.0 fails on Biblatex/natbib

Post by Johannes_B »

Ah, bidi. That is the keyord here. bidirectional typesetting is something very special and it is quite likely that polyglossia is needed for that (and other packages recognize it).

Try to put together a minimal working example with bidi and polyglossia, exported to LaTeX. I suggest to ask as a new question at tex.stackexchange.com (with a backlink to here and a link here to there); it will give you a faster result as we are a bit short on bidi experts (well, we don't have any bidi expert here).

If the problem is well stated and the minimal working example is minimal and shows the problem, you will get a good answer. Of course, preparing the example might take a bit of time.
If you happen to only reproduce it with LyX (so it really is LyX dependant), LyX-users mailing list might be the best hit.
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 »

I'll see what I can get done.

Meanwhile, here's some progress: it turns out that my language definitions for polyglossia are insufficient. I now have the following in my preamble:

Code: Select all

\setdefaultlanguage[variant=american]{english}
\setotherlanguage[variant=german]{german}
\setotherlanguage{ancientgreek}
\setotherlanguage{hebrew}
\setotherlanguage{french}
\setotherlanguage[variant=classic]{latin}
This now compiles (usually) without error. However, I now still occasionally see compiling failing with an unspecified xetex error and the suggestion to "check the logs." Weird thing is, if I wait a few minutes and try again, it goes through.

Anyway, I'll see if I can dig down into getting an MWE going. I'll also see if all my new polyglossia defs enable me to have foreign languages in chapter and section headings again.

Weirdly, since my title is in Latin, the date is now also in Latin, which is behavior that is … not entirely optimal, especially since there are other languages in the subtitle.

I'll keep you posted.

Cheers,

EE
Addendum: here's another issue I just ran into: polyglossia now defines "new german" with simply "german" and does not recognize "ngerman" as a language string. However, Lyx still sets new-orthography German with the "ngerman" flag, which I think is leading to a lot of my German-language footnotes disappearing.
ExecutorElassus
Posts: 94
Joined: Wed Sep 07, 2011 3:14 pm

Lyx-2.2.0 fails on Biblatex/natbib

Post by ExecutorElassus »

Addendum: I'm beginning to think Lyx's polyglossia handling is completely børked. Here's another case:

If the first word(s) of a the last paragraph in a chapter is/are in a new language, then the rest of that paragraph is not typeset at all. Just that word or words. THEN, the headers in the next chapter are set in that language as well, but only the identifiers, NOT the content of the chapter heading (which are all, inexplicably, set in Latin, which is only used for the title of the entire document).

This is some devilry. For example, I have this as the beginning of the last paragraph of a chapter:

Musique concrète belonged to a revolution in æsthetics…

The italicized part is set as French. Then:

Chapter 10: Information Theory and the Arts

is on the next page. But in that chapter, the headers read:

Chapitre 10: Information Theory and the Arts

and then the next section:
10.1: Stunde Null

Appears in the header as "10.1: STVNDE NVLL"

So my headers are being rendered in both French and Latin, and whole blocks of text are not being typeset at all. If I have, for example, German in a footnote, that text doesn't appear; I just see the quotation marks that enclose it, with nothing in between.

This is some devilry. I'll try to produce an MWE that manages to screw up the language settings this spectacularly.

Cheers,

EE
scottkosty
Site Moderator
Posts: 542
Joined: Sat Sep 01, 2012 6:38 am

Lyx-2.2.0 fails on Biblatex/natbib

Post by scottkosty »

ExecutorElassus wrote:
This is some devilry. I'll try to produce an MWE that manages to screw up the language settings this spectacularly.
Great! This could help the development team fix the possible bug. If you are able to come up with a reproducible minimal example, please make a bug report at http://www.lyx.org/trac

Thanks a lot for you time in helping make LyX better.
ExecutorElassus
Posts: 94
Joined: Wed Sep 07, 2011 3:14 pm

Lyx-2.2.0 fails on Biblatex/natbib

Post by ExecutorElassus »

I have the closest I could get to "minimal" for the document in question, now using Lyx 2.2.1.

Please bear in mind, as a lot of the errors are of the sort "if X, then the next chapter/part exhibits failure Y," that I necessarily had to add a lot of filler text to cause page breaks, chapter headings, and the like.

Also, for some reason I can't yet figure out, the MWE does not exhibit one error behavior that my main document still does: if I use the "after citation" dialog in Lyx, it fails to format the citation properly with the text/page numbers following, instead showing the text/page numbers in brackets before the unprocessed bibtex key.

In any event, I'll upload the file, along with my bibtex file, to your tracker. Hope it helps!

Cheers,

EE
UPDATE: the ticket is now here.
Post Reply