On Mon, Oct 29, 2001 at 07:52:35PM -0800, Kayvan A. Sylvan wrote:
> Now that I added in the skak.sty support, I have a babel related issue.
> 
> LyX generates LaTeX that uses the babel package. There seems to be
> a bad interaction between babel and skak.sty. I have a small LaTeX file
> that demonstrates this. Can someone try it and tell me what to do
> to fix this?
> 
> Here is the test file (and its log file). Commenting out the
> \usepackage{babel} lets the file run through LaTeX.

As far as I can see, this is not a problem for the external inset, as the
problem happen only when you use PGN notation (the \mainline macro).

Looking at comp.text.tex, I found that the problem is that babel redefines
the \ifthenelse command (why??). The following will fix the problem (but
might cause other problems):
After \usepackage{babel}, put the following lines:

\let\oldifthenelse\ifthenelse
\AtBeginDocument{\let\ifthenelse\oldifthenelse}

You can also make a lyxskak.sty package as follows:
(lyxskak must be loaded after babel)

\RequirePackageWithOptions{skak}
\let\skak@ifthenelse\ifthenelse
\AtBeginDocument{\let\ifthenelse\skak@ifthenelse}

Try asking in comp.text.tex if there is a better fix.

Also note that lyx allows you to disable babel for the default language
(usually English) using the preferences dialog.




Reply via email to