Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

The following code:

\documentclass{report}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage[galician]{babel}
\usepackage[shortlabels]{enumitem}

\begin{document}
\chapter{Preguntas e respostas}
\begin{enumerate}
\item{}\textit{Non aparece a imaxe do fondo.}
Se construíches o KLettres.
\end{enumerate}
\end{document}

generates

Incomplete \iffalse; all text was ignored after line 11.

The code works if I replace enumitem with enumerate or galician with spanish. But enumitem is needed to have unboxed style for descriptions.

Is there any way to avoid this conflict?

share|improve this question
2  
I don't think it's possible; galician.ldf heavily redefines the enumerate and itemize environment counter representations, thus conflicting with what enumitem tries to do. –  egreg Mar 2 '12 at 20:36
    
@egreg: as I wrote in my answer, seemingly things look a bit better;). –  mbork Mar 2 '12 at 22:39
2  
@mbork One learns day by day. :) –  egreg Mar 2 '12 at 22:44
3  
@egreg: And it's an honour and pleasure for me to write here something you don't know:). –  mbork Mar 2 '12 at 22:55
add comment

2 Answers

up vote 6 down vote accepted

The enumitem package has a loadonly option, which does not redefine existing list environments (enumerate, itemize, description), but lets you define your own ones (see its documentation). For example:

\usepackage[shortlabels,loadonly]{enumitem}

\newlist{mydesc}{description}{2}
\setlist[mydesc]{style=unboxed}

not only works with galician, but defines a new mydesc environment, behaving like description (except that it is unboxed and has a maximum depth level of 2).

share|improve this answer
add comment

Add the following to the preamble, after loading babel:

\makeatletter
\let\savegl@listquot\gl@listquot
\def\gl@listquot{\protect\savegl@listquot}
\makeatletter
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.