Occasionally I have use bibtex in Estonian locale. An annoying feature there is that tilde '~' is active, e.g. by typing '~s' you get Å¡ (scaron). It really annoys me when it happens with bibligraphies, because several bib styles use '~' as the space.
Is it easy to make tilde to a normal character (space)?
General ⇒ remove '~' as active character
NEW: TikZ book now 40% off at Amazon.com for a short time.
- countbela666
- Posts: 64
- Joined: Thu Apr 26, 2007 2:44 pm
remove '~' as active character
Hi,
for the following considerations I assume that you are using the babel package with option estonian loaded to achieve Estonian language functionality.
If you only want to use the tilde in its original meaning, babel provides the shortcut ~~ for that purpose. Otherwise you could try the following:Regards
Marcel
for the following considerations I assume that you are using the babel package with option estonian loaded to achieve Estonian language functionality.
If you only want to use the tilde in its original meaning, babel provides the shortcut ~~ for that purpose. Otherwise you could try the following:
Code: Select all
\documentclass{article}
\usepackage[estonian]{babel}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\makeatletter
\def\tildeon{% switch on the "normal" tilde
\let\orgtilde\@tilde
\def\@tilde{~~}
}
\def\tildeoff{% switch back to estonian style
\def\@tilde{\orgtilde}
}
\makeatother
\begin{document}
foo~bar~olf\par
\tildeon
foo~bar~olf\par
\tildeoff
foo~bar~olf
\end{document}
Marcel
Listen to me children of the night, beyond the doors of darkness you will find
a thousand worlds for you to see here, take my hand and follow me...
a thousand worlds for you to see here, take my hand and follow me...
Re: remove '~' as active character
Yess! Thank you!
The problem was that I haven't control over the way the bibliograpy is formatted by bibtex.
The problem was that I haven't control over the way the bibliograpy is formatted by bibtex.