Discussion:
Pound (currency) symbol in LaTeX???
(too old to reply)
n***@gmail.com
2015-08-20 08:44:51 UTC
Permalink
Just put it outside the $ signs of the mathmode.

For example

The spot exchange rate for dollars to pounds is $1.4 \$/$ \pounds .


But if you need to put inside a math environment, use as a text, for example:

\begin{align*}
F^P_{t,T}(\text{\pounds}) = x_0 e^{-r_f T}
\end{align*}
Peter Flynn
2015-08-20 23:04:03 UTC
Permalink
On 08/20/2015 09:44 AM, ***@gmail.com wrote:
> Just put it outside the $ signs of the mathmode.
>
> For example
>
> The spot exchange rate for dollars to pounds is $1.4 \$/$ \pounds .
>
>
> But if you need to put inside a math environment, use as a text, for example:
>
> \begin{align*}
> F^P_{t,T}(\text{\pounds}) = x_0 e^{-r_f T}
> \end{align*}

Use \textsterling from the textcomp package. \pounds is decades obsolete.

///Peter
Fritz Wuehler
2015-08-25 22:55:20 UTC
Permalink
> Use \textsterling from the textcomp package. \pounds is decades
> obsolete.

Might be too early to say \textsterling obsoletes \pounds. Bizarre
things happen when the datatool package encounters \textsterling.
Phillip Helbig (undress to reply)
2015-08-26 07:02:02 UTC
Permalink
> > Use \textsterling from the textcomp package. \pounds is decades
> > obsolete.

What is the difference?
Ulrike Fischer
2015-08-26 08:52:32 UTC
Permalink
Am Wed, 26 Aug 2015 07:02:02 +0000 (UTC) schrieb
***@asclothestro.multivax.dePhillip Helbig:

>>> Use \textsterling from the textcomp package. \pounds is decades
>>> obsolete.

> What is the difference?

\pounds is a robust command defined in the kernel as

\DeclareRobustCommand{\pounds}{%

\ifmmode\mathsterling\else\textsterling\fi}

So it works in math and text (with different output) and can be used
safely in moving arguments.

\mathsterling / \textsterling are defined in the kernel too and are
used in the definition of \pounds.

You don't need the textcomp package to use them, but loading either
textcomp or T1-encoding is a good idea as in OT1-encoding some fonts
put a dollar in the slot of the pound:

\documentclass{report}
%\usepackage[T1]{fontenc}
%\usepackage{textcomp}
\usepackage{tgtermes}
\begin{document}
1\pounds
1\textsterling
\end{document}



I don't see any reason to declare \pounds as "obsolete".



--
Ulrike Fischer
http://www.troubleshooting-tex.de/
Peter Flynn
2015-08-27 20:21:51 UTC
Permalink
On 08/25/2015 11:55 PM, Fritz Wuehler wrote:
>> Use \textsterling from the textcomp package. \pounds is decades
>> obsolete.
>
> Might be too early to say \textsterling obsoletes \pounds. Bizarre
> things happen when the datatool package encounters \textsterling.

Actually, far better to use UTF-8 and XeLaTeX and just type £

///Peter
Fritz Wuehler
2015-09-03 04:44:18 UTC
Permalink
> > Might be too early to say \textsterling obsoletes \pounds.
> > Bizarre things happen when the datatool package encounters
> > \textsterling.
>
> Actually, far better to use UTF-8 and XeLaTeX and just type £

I'm not familiar with XeLaTeX, and apparently I don't have it as part
of the texlive package. So I tried using "£" with the following two
includes, then fed to pdflatex:

\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}

It does not even compile when that symbol occurs in a CSV file that is
read by the datatool package:

! FP error: Illegal character ᅵ found in float number!.
\***@errmessage #1->\errmessage {FP error: #1!}

Also, according to Paulo Cereda(*) the "£" renders as a dollar sign
("$") in some cases if it's not italicised. Seems strange, but
probably a good enough reason to avoid it.

So \pounds seems to be the most reliable and predictable construct.

(*) ref:

https://tex.stackexchange.com/questions/17853/pounds-and-textsterling-produces-a-dollar-sign
Peter Flynn
2015-09-03 19:55:43 UTC
Permalink
On 09/03/2015 05:44 AM, Fritz Wuehler wrote:
>>> Might be too early to say \textsterling obsoletes \pounds.
>>> Bizarre things happen when the datatool package encounters
>>> \textsterling.
>>
>> Actually, far better to use UTF-8 and XeLaTeX and just type £
>
> I'm not familiar with XeLaTeX, and apparently I don't have it as part
> of the texlive package.

That sounds wrong. As far as I know it has been included in TeX Live for
some years now. What version are you using?

> So I tried using "£"

That came through here as two separate bytes, probably due to an
underlying Usenet transport encoding, or to Frell's anonymiser.

> with the following two
> includes, then fed to pdflatex:
>
> \usepackage[T1]{fontenc}
> \usepackage[utf8]{inputenc}

I use utf8x not utf8.

> It does not even compile when that symbol occurs in a CSV file that is
> read by the datatool package:
>
> ! FP error: Illegal character � found in float number!.
> \***@errmessage #1->\errmessage {FP error: #1!}

This looks like an encoding problem. If you're going to use UTF-8, *all*
your files *must* be in UTF-8 -- you cannot have some in UTF-8 and
others in different encodings (eg ISO 8859-1, ISO 8859-15, Windows-1252,
Mac Roman 8, Big5, DEC Multinational, or anything else [ASCII is OK]).

> Also, according to Paulo Cereda(*) the "£" renders as a dollar sign
> ("$") in some cases if it's not italicised. Seems strange, but
> probably a good enough reason to avoid it.

Not if you read the rest of the post you cited: his problem was caused
by a bogus font encoding.

> So \pounds seems to be the most reliable and predictable construct.

Whatever works for you.

///Peter
Continue reading on narkive:
Search results for 'Pound (currency) symbol in LaTeX???' (Questions and Answers)
11
replies
tell me somethin that i dont know!...........anything!?
started 2007-10-30 11:35:03 UTC
polls & surveys
Loading...