|
From: <moh...@st...> - 2003-10-03 16:07:02
|
On Fri, 03 Oct 2003 17:22:23 +0200, Francesco Del Citto <delcitto@tin=
.it>=20
wrote:
> I have discoverd that a document like:
>
> ----begin tex-----
> \documentclass[12pt]{article}
> \usepackage{amsmath, amssymb, euscript}
> \usepackage[dvips]{graphics}
> \usepackage[italian]{babel}
> \usepackage[OT1]{fontenc}
> \usepackage[latin1]{inputenc}
> \usepackage{fancyhdr}
>
> \begin{document}
> \^{}
> \end{document}
> ----end tex-----
>
> dosn't work.
> But, if I comment out the babel package, it works correctly. The sa=
me=20
> thing happens with the new command \textasciicircum.
>
> Anyone knows why does it happen?
>
Bug in the Italian Babel support. It has been reported as #3543 in th=
e=20
LaTeX Bugs Database - read more about it there. This works just fine:
\documentclass{minimal}
\usepackage[italian]{babel}
\makeatletter
%% Fix by Heiko Oberdiek
\renewcommand*{\add@accent}[2]{%
{\ifx#2i\let\bbl@tempa\i\else\def\bbl@tempa{#2}\fi
\setbox\@tempboxa\hbox{\bbl@tempa%
\global\mathchardef\accent@spacefactor\spacefactor}%
\accent#1\bbl@tempa}\spacefactor\accent@spacefactor}%
\makeatother
\begin{document}
\^{} \~{} \t{ts}
\end{document}
BTW it's always good to keep the examples simple. E.g.,
\documentclass{minimal}
\usepackage[italian]{babel}
\begin{document}
\^{}
\end{document}
would have shown the problem.
--=20
Morten H=F8gholm
|