4

This is the document:

\documentclass{article}
\renewcommand\familydefault{\sfdefault}
\renewcommand\sfdefault{phv}
\normalfont
\begin{document}
The jacket costs \pounds{}50.
\end{document}

I see a dollar sign in italic. Why? How to fix?

2
  • You have a typo in your code: \end{end} should probably be \end{document} ;) Commented Nov 17, 2010 at 16:34
  • 1
    Since when are phv (Helvetica/Nimbus Sans L) and Verdana the same?
    – frabjous
    Commented Nov 17, 2010 at 19:28

2 Answers 2

9

Well that's one of the reasons not to use OT1-encoding. As there is not enough space pound and dollar share a glyph position. In the cm-fonts the dollar is e.g. in the slshape variant and the pound in italic. With helvet (phv is not verdana) this can't work as there is no specific italic font.

To fix it, use \usepackage[T1]{fontenc}.

0

It's probably not a "good" fix, but a quick fix is to output the pounds symbol in a roman font instead:

\textrm{\pounds{}}50

gives the expected results (unless you're extremely picky about the font of the pounds symbol...)

Since you don't want to do this every time you need this symbol in the document, you probably want to store this in a macro:

\newcommand\rmpounds{\textrm{\pounds{}}

and then you use \rmpounds instead of \pounds everywhere.

(There's probably a nice way to hide this away in a package so you can use \pounds and get the same results as I do with \rmpounds, i.e. not forcing you to use a different command, but I can't figure out how to do it without getting capacity exceeded errors...)

4
  • 1
    I'd not consider wanting to use pound symbol from the same text font "extremely picky"; it is like using an "A" from CM in text set in Helvetica. Commented Nov 18, 2010 at 0:30
  • You might want to have a look here to figure out how to do it without getting capacity exceeded errors. Commented Nov 18, 2010 at 9:26
  • @Khaled Hosny: Well, extremely picky was probably an exaggeration, but since the pound symbol is not a standard letter (like A), but just a "symbol", setting it in a different font makes a lot less difference than to do the same thing for other characters. But I do admit that it's not an ideal solution (thus the remark in the answer). Commented Nov 19, 2010 at 16:02
  • @Hendrik: Thanks! I learn something every day =) Commented Nov 19, 2010 at 16:02

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .