Latest news 2024-07-03: Ebook sale (1st – 31st July 2024): short story cybercrime fiction Unsocial Media free; short story cybercrime fiction Smile for the Camera free; short story noir crime fiction I’ve Heard the Mermaid Sing free; crime fiction novel The Private Enemy US$1.99; illustrated children’s story The Foolish Hedgehog US$0.99.

Bug Tracker RSS feed

I’m currently working on a major new version of the datatool package. This may take a while. Please be patient. (Experimental version available for testing.)

ID 165🔗
Date: 2020-06-30 09:40:28
Status Closed (Fixed)
Category tracklang
Version v1.4
Summary Error message: ! Extra \else.

Sign in to subscribe to notifications about this report.


When one loads Sanskrit with polyglossia, and glossaries package, one gets the following error message:
! Extra \else.
\@tracklang@ifundef ...\relax #2\else #3\fi \else 
                                                  \expandafter \ifx \csname ...
l.13094 {}
It looks like a tracklang problem, possibly related to the fact that as Sanskrit can be written in a variety of scripts no script is defined for the Sanskrit language.

See also [TeX.SX Link].


Download (285B)

\newfontfamily\sanskritfont{Latin Modern Roman}[Ligatures=TeX]


This seems to be a problem with \IfTrackedLanguageFileExists. The problem can be demonstrated with a simpler LaTeX MWE:


Or Plain TeX:

\input tracklang


It looks like the problem stems from a spurious {\fi} in \@tracklang@test@if@file@exists@for@langII (within the generic TeX code tracklang.tex).

Now fixed in tracklang version 1.5 (2020-06-30).



Add Comment

Name (optional):

Are you human? Please confirm the bug report ID (which can be found at the top of this page) or login if you have an account.


You can use the following markup:


[pre]Displayed verbatim[/pre]
[quote]block quote[/quote]

In line:

[file]file/package/class name[/file]
[em]emphasized text[/em]
[b]bold text[/b]
[url]web address[/url] [sup]superscript[/sup]

Ordered list:
[li]first item[/li]
[li]second item[/li]

Unordered list:
[li]first item[/li]
[li]second item[/li]

You can use the Preview button to review your message formatting before submitting.

Page permalink: