[Mac OS X TeX] Euros in TeX

Uwe Schmock schmock at math.ethz.ch
Thu Jan 3 16:45:10 CET 2002



>A silly off-topic question: does anybody know how to get the Euro 
>currency symbol ¤ in plain TeX and/or LaTeX? It's present in Mac 
>fonts, and I saw a modified version in tcrm1200 at position "BF, but 
>I'm not aware of any macro similar to \pounds for pounds sterling.

Hi Bruno,

for a pure plain TeX solution (using a LaTeX Postscript Type 1 font) 
you can try the sample file below. The macro should also work in 
LaTeX. For normal text it should be good enough.

Best regards,

Uwe

http://www.math.ethz.ch/~schmock/



\def\euro{\hbox{\def\eurorule##1##2##3{\raise##1ex\hbox{\kern##2em
  \vrule height.03ex depth0pt width##3em}}\lcmsseuro\kern.05em
  \ooalign{C\cr
  \eurorule{.41}0{.455}\cr\eurorule{.44}{.005}{.455}\cr
  \eurorule{.47}{.01}{.455}\cr\eurorule{.5}{.015}{.455}\cr
  \eurorule{.71}0{.5}\cr\eurorule{.74}{.005}{.5}\cr
  \eurorule{.77}{.01}{.5}\cr\eurorule{.8}{.015}{.5}}}}

%Choose one of these:
\font\lcmsseuro=lcmss8 at 9pt  % For 10pt style
%\font\lcmsseuro=lcmss8 at 10pt % For 11pt style
%\font\lcmsseuro=lcmss8 at 11pt % For 12pt style

% Test
10\euro

\end

-----------------------------------------------------------------
To UNSUBSCRIBE, send email to <info at email.esm.psu.edu> with
"unsubscribe macosx-tex" (no quotes) in the body.
For additional HELP, send email to <info at email.esm.psu.edu> with
"help" (no quotes) in the body.
This list is not moderated, and I am not responsible for
messages posted by third parties.
-----------------------------------------------------------------





More information about the macostex-archives mailing list