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.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

There seems to be a incompatibility between the OT4 font encoding and the tgpagella package. When I load either of the packages, the pound sign comes out as $ (a dangarous thing since we are in a financial crisis already =;-). I have these two packages pre-loaded by a journal file. Can I do anything about this?






15€ + \$17 = 13£?

share|improve this question
why can't you use \usepackage[OT4,T1]{fontenc} ? – Herbert Sep 20 '12 at 8:39
OK. This helps. Thanks! I will suggest this to the journal, because it is their style that has to be changed. – Stefan Müller Sep 20 '12 at 9:00
@StefanMüller OT4 is really an outdated encoding; Polish has full support in the T1 encoding. – egreg Sep 20 '12 at 9:50
up vote 7 down vote accepted

The OT* font encodings have the problem that the they have 128 slot positions only. There is no place in the OT4 encoding for the sterling. The symbol is supported by a crude hack. The symbols sterling and dollar share the same slot. The italics shape it and a special shape for the upright form ui contains the sterling and the other shapes the dollar:

   \ifdim \fontdimen\@ne\font >\z@

   \ifdim \fontdimen\@ne\font >\z@

However, TeX Gyre Pagella does not support this and always uses the dollar sign. The font shape ui is not even defined:

LaTeX Font Warning: Font shape `OT4/qpl/m/ui' undefined
(Font)              using `OT4/qpl/m/n' instead on input line 12.

As solution \textsterling can be redefined for the OT4 encoding to use a different encoding without such trouble:


A better solution is to use a better encoding like T1 as suggested by Herbert. This can also be done after the class is loaded:


Package fontenc is the exception in the package management system of LaTeX. It can be loaded several times with different options.

For the case that some text is still using OT4, I would add the redefinition of \textsterling for OT4 and use a better encoding like T1.

share|improve this answer

Your Answer


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.