2006-05-05 10:21:25 +00:00
|
|
|
|
#LyX 1.4.1 created this file. For more info see http://www.lyx.org/
|
|
|
|
|
\lyxformat 245
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\begin_document
|
|
|
|
|
\begin_header
|
2001-05-22 13:27:52 +00:00
|
|
|
|
\textclass article
|
|
|
|
|
\begin_preamble
|
2002-04-09 14:39:55 +00:00
|
|
|
|
\usepackage[eurosym]{eurofont}
|
2001-05-22 13:27:52 +00:00
|
|
|
|
\end_preamble
|
|
|
|
|
\language english
|
|
|
|
|
\inputencoding latin9
|
|
|
|
|
\fontscheme default
|
|
|
|
|
\graphics default
|
|
|
|
|
\paperfontsize default
|
2003-01-17 13:50:11 +00:00
|
|
|
|
\spacing single
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\papersize default
|
|
|
|
|
\use_geometry false
|
2001-05-22 13:27:52 +00:00
|
|
|
|
\use_amsmath 0
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\cite_engine basic
|
|
|
|
|
\use_bibtopic false
|
2001-05-22 13:27:52 +00:00
|
|
|
|
\paperorientation portrait
|
|
|
|
|
\secnumdepth 3
|
|
|
|
|
\tocdepth 3
|
|
|
|
|
\paragraph_separation indent
|
|
|
|
|
\defskip medskip
|
|
|
|
|
\quotes_language english
|
|
|
|
|
\papercolumns 1
|
|
|
|
|
\papersides 1
|
|
|
|
|
\paperpagestyle default
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\tracking_changes false
|
|
|
|
|
\output_changes true
|
|
|
|
|
\end_header
|
2001-05-22 13:27:52 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\begin_body
|
|
|
|
|
|
|
|
|
|
\begin_layout Title
|
2001-05-22 13:27:52 +00:00
|
|
|
|
|
|
|
|
|
Currency symbols and LyX
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Author
|
2001-05-22 13:27:52 +00:00
|
|
|
|
|
|
|
|
|
by Adrien Rebollo
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2001-05-22 13:27:52 +00:00
|
|
|
|
|
|
|
|
|
To obtain the main currency symbols with LaTeX, we need to use special packages.
|
|
|
|
|
Here we give a brief description of how to display and print the euro,
|
|
|
|
|
cent, yen and general currency symbols.
|
|
|
|
|
The dollar and the pound need no special trick, so we won't speak about
|
|
|
|
|
them.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Section
|
2001-05-22 13:27:52 +00:00
|
|
|
|
|
|
|
|
|
The euro symbol
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2001-05-22 13:27:52 +00:00
|
|
|
|
|
|
|
|
|
To print the euro symbol, you need to get the eurofont package, available
|
|
|
|
|
at
|
|
|
|
|
\begin_inset LatexCommand \url{/macros/latex/contrib/supported/eurofont}
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2001-05-22 13:27:52 +00:00
|
|
|
|
|
|
|
|
|
in the CTAN.
|
|
|
|
|
You'll need therefore to add to the LaTeX preamble of your LyX document
|
|
|
|
|
the command :
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family typewriter
|
2001-05-22 13:27:52 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\backslash
|
2001-05-22 13:27:52 +00:00
|
|
|
|
usepackage{eurofont}
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2001-05-22 13:27:52 +00:00
|
|
|
|
.
|
|
|
|
|
See the preamble of this document to figure out.
|
2002-04-09 14:39:55 +00:00
|
|
|
|
Then you can always obtain the euro symbol in your printed document by
|
|
|
|
|
typing
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family typewriter
|
2001-05-22 13:27:52 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\backslash
|
2001-05-22 13:27:52 +00:00
|
|
|
|
euro{}
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2001-05-22 13:27:52 +00:00
|
|
|
|
in TeX mode, like this :
|
2002-04-09 14:39:55 +00:00
|
|
|
|
\begin_inset ERT
|
2005-07-18 09:42:29 +00:00
|
|
|
|
status inlined
|
2002-04-09 14:39:55 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\begin_layout Standard
|
2001-05-22 13:27:52 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\backslash
|
2001-05-22 13:27:52 +00:00
|
|
|
|
euro{}
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\end_inset
|
2002-04-09 14:39:55 +00:00
|
|
|
|
|
2001-05-22 13:27:52 +00:00
|
|
|
|
.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2001-05-22 13:27:52 +00:00
|
|
|
|
|
2002-04-09 14:39:55 +00:00
|
|
|
|
The shape of the symbol in the printed version tends to be better when you
|
|
|
|
|
install the eurosym package too.
|
|
|
|
|
It is available at
|
|
|
|
|
\begin_inset LatexCommand \url{/fonts/eurosym}
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2002-04-09 14:39:55 +00:00
|
|
|
|
|
|
|
|
|
in the CTAN.
|
|
|
|
|
Then you declare eurofont with the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family typewriter
|
2002-04-09 14:39:55 +00:00
|
|
|
|
eurosym
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2002-04-09 14:39:55 +00:00
|
|
|
|
option, like this :
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family typewriter
|
2002-04-09 14:39:55 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\backslash
|
2002-04-09 14:39:55 +00:00
|
|
|
|
usepackage[eurosym]{eurofont}
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2002-04-09 14:39:55 +00:00
|
|
|
|
.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2002-04-09 14:39:55 +00:00
|
|
|
|
|
|
|
|
|
As a next step, we'll configure LyX to display a WYSIWYM euro symbol.
|
|
|
|
|
First you have to select latin9 screen fonts, as the euro is not in the
|
|
|
|
|
common latin1 encoding.
|
2001-05-22 13:27:52 +00:00
|
|
|
|
In the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2001-05-22 13:27:52 +00:00
|
|
|
|
Edit\SpecialChar \menuseparator
|
|
|
|
|
Preferences
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2002-04-09 14:39:55 +00:00
|
|
|
|
popup, enter
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family typewriter
|
2002-04-09 14:39:55 +00:00
|
|
|
|
iso8859-15
|
|
|
|
|
\begin_inset Foot
|
2005-07-18 09:42:29 +00:00
|
|
|
|
status collapsed
|
2002-04-09 14:39:55 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\begin_layout Standard
|
2002-04-09 14:39:55 +00:00
|
|
|
|
|
|
|
|
|
latin9 is the common name for the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family typewriter
|
2001-05-22 13:27:52 +00:00
|
|
|
|
iso8859-15
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2002-04-09 14:39:55 +00:00
|
|
|
|
encoding, and latin1 for
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family typewriter
|
2002-04-09 14:39:55 +00:00
|
|
|
|
iso8859-1
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2002-04-09 14:39:55 +00:00
|
|
|
|
.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\end_inset
|
2002-04-09 14:39:55 +00:00
|
|
|
|
|
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2001-05-22 13:27:52 +00:00
|
|
|
|
in the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
|
|
|
|
Screen\InsetSpace ~
|
2001-05-22 13:27:52 +00:00
|
|
|
|
fonts\SpecialChar \menuseparator
|
|
|
|
|
Encoding
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2001-05-22 13:27:52 +00:00
|
|
|
|
field, and of course you'll have to choose fonts that are available on
|
|
|
|
|
your system in this encoding.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2002-04-09 14:39:55 +00:00
|
|
|
|
|
|
|
|
|
You should properly configure your X server if you want the euro symbol
|
|
|
|
|
directly on your keyboard.
|
|
|
|
|
You can also try the keymap files in LyX :
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family typewriter
|
2001-05-22 13:27:52 +00:00
|
|
|
|
european.kmap
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2001-05-22 13:27:52 +00:00
|
|
|
|
and
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family typewriter
|
2001-05-22 13:27:52 +00:00
|
|
|
|
francais.kmap
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2001-05-22 13:27:52 +00:00
|
|
|
|
should normally support the euro symbol at its usual place.
|
|
|
|
|
Select your keymap in the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2001-05-22 13:27:52 +00:00
|
|
|
|
Language\SpecialChar \menuseparator
|
|
|
|
|
Keymap
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2001-05-22 13:27:52 +00:00
|
|
|
|
fields.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2001-05-22 13:27:52 +00:00
|
|
|
|
|
|
|
|
|
The last step is to tell LyX that the encoding of your document is latin9.
|
|
|
|
|
You do this in the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family sans
|
2001-05-22 13:27:52 +00:00
|
|
|
|
Format\SpecialChar \menuseparator
|
|
|
|
|
Document
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2001-05-22 13:27:52 +00:00
|
|
|
|
popup.
|
|
|
|
|
It requires your LaTeX distribution to have the appropriate
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family typewriter
|
2001-05-22 13:27:52 +00:00
|
|
|
|
latin9.def
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2001-05-22 13:27:52 +00:00
|
|
|
|
file for the
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family typewriter
|
2001-05-22 13:27:52 +00:00
|
|
|
|
inputenc
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2001-05-22 13:27:52 +00:00
|
|
|
|
package.
|
2002-04-09 14:39:55 +00:00
|
|
|
|
It is in the recent LaTeX distributions, and is available at
|
|
|
|
|
\begin_inset LatexCommand \url{/macros/latex/unpacked}
|
2001-05-22 13:27:52 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_inset
|
2001-05-22 13:27:52 +00:00
|
|
|
|
|
2002-04-09 14:39:55 +00:00
|
|
|
|
in the CTAN.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2001-05-22 13:27:52 +00:00
|
|
|
|
|
|
|
|
|
If you see an euro symbol here : <20>, and not some horrible glyph, that's
|
|
|
|
|
OK.
|
|
|
|
|
Now try to view the DVI file.
|
|
|
|
|
If LaTeX doesn't complain and the printed version seems fine, you're done.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Section
|
2001-05-22 13:27:52 +00:00
|
|
|
|
|
2002-04-09 14:39:55 +00:00
|
|
|
|
Other currency symbols
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Standard
|
2001-05-22 13:27:52 +00:00
|
|
|
|
|
2002-04-09 14:39:55 +00:00
|
|
|
|
All the symbols we present here are not available with LaTeX natively.
|
|
|
|
|
But including the eurofont package gives access to all of them.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Description
|
2001-05-22 13:27:52 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
The\InsetSpace ~
|
|
|
|
|
cent\InsetSpace ~
|
2002-04-09 14:39:55 +00:00
|
|
|
|
symbol If your keyboard allows the direct display of the cent symbol
|
|
|
|
|
<20>, great, if not you'll have to type
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family typewriter
|
2001-05-22 13:27:52 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\backslash
|
2002-04-09 14:39:55 +00:00
|
|
|
|
textcent{}
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2001-05-22 13:27:52 +00:00
|
|
|
|
in TeX mode, like this :
|
2002-04-09 14:39:55 +00:00
|
|
|
|
\begin_inset ERT
|
2005-07-18 09:42:29 +00:00
|
|
|
|
status inlined
|
2001-05-22 13:27:52 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\begin_layout Standard
|
2001-05-22 13:27:52 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\backslash
|
2002-04-09 14:39:55 +00:00
|
|
|
|
textcent{}
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\end_inset
|
2001-05-22 13:27:52 +00:00
|
|
|
|
|
2002-04-09 14:39:55 +00:00
|
|
|
|
.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Description
|
2002-04-09 14:39:55 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
The\InsetSpace ~
|
|
|
|
|
yen\InsetSpace ~
|
2002-04-09 14:39:55 +00:00
|
|
|
|
symbol Same story as above, typing
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family typewriter
|
2001-05-22 13:27:52 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\backslash
|
2001-05-22 13:27:52 +00:00
|
|
|
|
yen{}
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2001-05-22 13:27:52 +00:00
|
|
|
|
, like this :
|
2002-04-09 14:39:55 +00:00
|
|
|
|
\begin_inset ERT
|
2005-07-18 09:42:29 +00:00
|
|
|
|
status inlined
|
2002-04-09 14:39:55 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\begin_layout Standard
|
2001-05-22 13:27:52 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\backslash
|
2002-04-09 14:39:55 +00:00
|
|
|
|
textyen{}
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\end_inset
|
2001-05-22 13:27:52 +00:00
|
|
|
|
|
2002-04-09 14:39:55 +00:00
|
|
|
|
, or directly <20>.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
2001-05-22 13:27:52 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\begin_layout Description
|
|
|
|
|
|
|
|
|
|
The\InsetSpace ~
|
|
|
|
|
general\InsetSpace ~
|
|
|
|
|
currency\InsetSpace ~
|
2002-04-09 14:39:55 +00:00
|
|
|
|
symbol It is a horrible mix of cross and circle.
|
2001-05-22 13:27:52 +00:00
|
|
|
|
You cannot obtain it on screen together with the euro symbol, because it
|
2002-04-09 14:39:55 +00:00
|
|
|
|
is corresponding in latin1 to the euro in latin9.
|
|
|
|
|
You have just to type
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family typewriter
|
2001-05-22 13:27:52 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\backslash
|
2002-04-09 14:39:55 +00:00
|
|
|
|
textcurrency{}
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2001-05-22 13:27:52 +00:00
|
|
|
|
in TeX mode :
|
2002-04-09 14:39:55 +00:00
|
|
|
|
\begin_inset ERT
|
2005-07-18 09:42:29 +00:00
|
|
|
|
status inlined
|
2001-05-22 13:27:52 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\begin_layout Standard
|
2001-05-22 13:27:52 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\backslash
|
2002-04-09 14:39:55 +00:00
|
|
|
|
textcurrency{}
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\end_inset
|
2002-04-09 14:39:55 +00:00
|
|
|
|
|
|
|
|
|
.
|
|
|
|
|
If your screen fonts are latin1, you'll see it here : <20>.
|
|
|
|
|
If they are latin9, you'll have a euro symbol instead.
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\begin_layout Description
|
2002-04-09 14:39:55 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
The\InsetSpace ~
|
|
|
|
|
vertical\InsetSpace ~
|
|
|
|
|
broken\InsetSpace ~
|
2002-04-09 14:39:55 +00:00
|
|
|
|
bar Of course it is not a currency symbol, but it is one
|
|
|
|
|
that you can't obtain with plain LaTeX, but provided when you include eurofont.
|
|
|
|
|
You type
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family typewriter
|
2001-05-22 13:27:52 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\backslash
|
2002-04-09 14:39:55 +00:00
|
|
|
|
textbrokenbar{}
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\family default
|
2001-05-22 13:27:52 +00:00
|
|
|
|
in TeX mode :
|
2002-04-09 14:39:55 +00:00
|
|
|
|
\begin_inset ERT
|
2005-07-18 09:42:29 +00:00
|
|
|
|
status inlined
|
2001-05-22 13:27:52 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\begin_layout Standard
|
2001-05-22 13:27:52 +00:00
|
|
|
|
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\backslash
|
2002-04-09 14:39:55 +00:00
|
|
|
|
textbrokenbar{}
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\end_inset
|
2001-05-22 13:27:52 +00:00
|
|
|
|
|
2002-04-09 14:39:55 +00:00
|
|
|
|
.
|
|
|
|
|
You'll have it on your keyboard if your X configuration is real good, and
|
|
|
|
|
it will only display with latin1 screen fonts : <20> .
|
|
|
|
|
(With latin9 it is an s with a caron.)
|
2005-07-18 09:42:29 +00:00
|
|
|
|
\end_layout
|
|
|
|
|
|
|
|
|
|
\end_body
|
|
|
|
|
\end_document
|