Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Euro sign support in LaTeX
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
Chris Finch
Tux's lil' helper
Tux's lil' helper


Joined: 10 Mar 2003
Posts: 106
Location: Darmstadt, Germany

PostPosted: Sat Sep 27, 2003 11:50 am    Post subject: Euro sign support in LaTeX Reply with quote

Euro sign support in LaTeX

Just recently I had to write a bill and noticed that support for the euro currency symbol is neither built into the TeTeX package nor does a look into the internationalization guide or a search on the forums or on gentoo bugzilla bring up much. There is an ebuild for the eurosym package, but I wasn't too lucky with it. What did the trick for me (and very well at that) is this howto at http://devcorner.schlenker-webdesign.de. It is in German, which is why I shall try to give a translation here. Once I find the time, I'll probably submit an ebuild. If you have suggestions, enhancements or corrections, please do post them.


Adobe's Eurosymbol in LaTeX

Of all the numerous extensions in order to make the euro symbol usable under LaTeX, europs is certainly the most useful. Europs is being incuded by adding \usepackage{europs} and provides \EUR\ as a command for a € symbol matching the current font and \EURofc\ for the official € symbol. However, the package requires the twelve euro symbol fonts by Adobe, which for licensing reasons have to be downloaded and installed manually.

Adobe's euro-fonts consist of twelve fonts, which at any positions contain the euro symbol.

Before proceeding with the installation, the following files have to be downloaded:



After having unpacked euro.tar.gz , one finds an install script, which is however incomplete. It is more advisable to exercise the following steps one by one:


  • unpack euro.tar.gz
    Code:
    tar xvzf euro.tar.gz; cd euro


  • set some environment variables

    Code:
    export TETEXDIR=/usr/share
    export DVIPSDIR=$TETEXDIR/texmf/dvips/config
    export TFMDIR=$TETEXDIR/texmf/fonts/tfm/adobe/eurofont
    export TYPE1DIR=$TETEXDIR/texmf/fonts/type1/adobe/eurofont

    TETEXDIR must point to the directory which contains texmf. Under Linux this is mostly /usr/share, under BSD /usr/local/share.

  • copy the metrics for the euro symbol
    Code:
    mkdir -p $TFMDIR
    cp -p tfm/* $TFMDIR/

    cp -p dvips/zpeu.map $DVIPSDIR/
    cat dvips/zpeu.map >>$DVIPSDIR/psfonts.map
    cat dvips/zpeu.map >>$DVIPSDIR/pdftex.map


  • unpack and copy the fonts
    Code:
    unzip ../eurofont.exe

    mkdir -p $TYPE1DIR
    cp -p eurofont/_1______.PFB  ${TYPE1DIR}/zpeurs.pfb
    cp -p eurofont/_1B_____.PFB  ${TYPE1DIR}/zpeubs.pfb
    cp -p eurofont/_1I_____.PFB  ${TYPE1DIR}/zpeuris.pfb
    cp -p eurofont/_1BI____.PFB  ${TYPE1DIR}/zpeubis.pfb
    cp -p eurofont/_2______.PFB  ${TYPE1DIR}/zpeurt.pfb
    cp -p eurofont/_2B_____.PFB  ${TYPE1DIR}/zpeubt.pfb
    cp -p eurofont/_2I_____.PFB  ${TYPE1DIR}/zpeurit.pfb
    cp -p eurofont/_2BI____.PFB  ${TYPE1DIR}/zpeubit.pfb
    cp -p eurofont/_3______.PFB  ${TYPE1DIR}/zpeur.pfb
    cp -p eurofont/_3B_____.PFB  ${TYPE1DIR}/zpeub.pfb
    cp -p eurofont/_3I_____.PFB  ${TYPE1DIR}/zpeuri.pfb
    cp -p eurofont/_3BI____.PFB  ${TYPE1DIR}/zpeubi.pfb


  • install the .sty file
    Code:
    cd latex/europs
    latex europs.dtx
    latex europs.ins
    cp europs.* *.fd ${TETEXDIR}/texmf/tex/latex/


  • rebuild LaTeX configuration
    While we're at it, we can also enable type 1 versions of the CM fonts. These are standardly disabled, as their copyright belongs to the AMS (American Mathematical Society) and the fonts are only free for scientific, personal or universitary use.

    In order to do so, change to $DVIPSDIR and therein open the file updmap with an editor. In this file, change the line
    Code:
    type1_default=false

    to
    Code:
    type1_default=true

    and the lines
    Code:
    extra_modules="
        "

    to
    Code:
    extra_modules="zpeu.map
        "

    and execute
    Code:
    ./updmap


    After this,
    Code:
    texhash

    must be executed at any rate, as otherwise the settings are not updated!

  • test the configuration
    back to the euro/latex/europs directory, you can try to compile the example file eutest.tex
    Code:
    latex eutest.tex


    The result should look like this.





Last edited by Chris Finch on Sun Sep 28, 2003 8:30 am; edited 1 time in total
Back to top
View user's profile Send private message
cvk
Guru
Guru


Joined: 06 Jan 2003
Posts: 314
Location: Our house, in the middle of our street

PostPosted: Sat Sep 27, 2003 3:39 pm    Post subject: Reply with quote

Thanks for the info. Works like a charm now.

cvk
_________________
Adopt an unanswered post now.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum