[MacPorts] #29750: texlive-latex: babel is unusable as is (\iflanguage does not work)

MacPorts noreply at macports.org
Wed Jun 8 07:57:32 PDT 2011


#29750: texlive-latex: babel is unusable as is (\iflanguage does not work)
-------------------------------------+--------------------------------------
 Reporter:  akim.demaille@…          |       Owner:  macports-tickets@…                   
     Type:  defect                   |      Status:  new                                  
 Priority:  Normal                   |   Milestone:                                       
Component:  ports                    |     Version:  1.9.2                                
 Keywords:                           |        Port:  texlive-latex                        
-------------------------------------+--------------------------------------
 Hi!

 I have lost hours on this issue (together with a friend of mine on whose
 machine everything worked fine, to understand where the difference was).

 The following document, on my MacPorts:

 {{{
 \documentclass{article}
 \usepackage[francais,english]{babel}
 \begin{document}
 \iflanguage{francais}{FR}{}
 \iflanguage{english}{EN}{}
 \end{document}
 }}}

 displays

 {{{
 FR EN
 }}}

 Yes, both.  Where, of course, one expects only "EN".  The problem was
 tracked down to the fact that I don't have the package "texlive-lang-
 french" installed!!!  Thanks to diff between log files, this was guessed
 when we saw the "warning" that follows:

 {{{
 -
 -Package babel Warning: No hyphenation patterns were loaded for
 -(babel)                the language `French'
 -(babel)                I will use the patterns loaded for \language=0
 instead.
 -
 -\l at french = a dialect from \language0
 }}}

 It turns out I also have others:

 {{{
  Language: english 2005/03/30 v3.3o English support from the babel system
 -\l at british = a dialect from \language\l at english
 -\l at UKenglish = a dialect from \language\l at english
  \l at canadian = a dialect from \language\l at american
  \l at australian = a dialect from \language\l at british
  \l at newzealand = a dialect from \language\l at british
 }}}

 which is suspicious.

 The TeX document started to behave properly when I installex texlive-lang-
 french.

 Bottom line is: my document should *not* compile when the said package is
 not installed.  This is really asking for troubles, on behalf of the
 users.  Babel should frankly die when I ask

 {{{
 \usepackage[francais]{babel}
 }}}

 when texlive-lang-french is not installed.

 Thanks!

-- 
Ticket URL: <https://trac.macports.org/ticket/29750>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list