Re: Installazioen Adobe Garamond

#50063
Up
0
Down
::

Elliminato Texlive 2009 di Debian e installato Texlive 2010 “vanilla”,
dovrei reinstallare un Garamond di Adobe. Per automatizzare
il processo e non dover fare tutto a mano ho innazitutto creato
(copiando in parte, e qui forse sta il guaio) un fle .map
e creato uno script di installazione. Il file garamond.sty è il seguente:
`\ProvidesPackage{garamond}
\RequirePackage{keyval}
\newif\ifpad@osf
\define@key{Pad}{scaled}[1.05]{%
\def\pad@Scale{#1}}
\define@key{Pad}{osf}[true]{%
\csname pad@osf#1\endcsname}
\def\ProcessOptionsWithKV#1{%
\let\@tempc\relax
\let\Pad@tempa\@empty
\@for\CurrentOption:=\@classoptionslist\do{%
\@ifundefined{KV@#1@\CurrentOption}%
{}%
{%
\edef\Pad@tempa{\Pad@tempa,\CurrentOption,}%
\@expandtwoargs\@removeelement\CurrentOption
\@unusedoptionlist\@unusedoptionlist
}%
}%
\edef\Pad@tempa{%
\noexpand\setkeys{#1}{%
\Pad@tempa\@ptionlist{\@currname.\@currext}%
}%
}%
\Pad@tempa
\let\CurrentOption\@empty
}
\ProcessOptionsWithKV{Pad}
\AtEndOfPackage{%
\let\@unprocessedoptions\relax
}
\ifpad@osf
\renewcommand{\rmdefault}{padj}
\else
\renewcommand{\rmdefault}{padx}
\fi
\normalfont
\endinput
\renewcommand{\sfdefault}{phv} % helvetica
%\renewcommand{\rmdefault}{pad} % garamond
\renewcommand{\ttdefault}{pcr} % courier
\endinput`
Lo script install.sh è invece il seguente:
`#!/bin/bash
FONT=garamond
FOUNDRY=adobe

BASEDIR=/usr/local/texlive/2010/texmf-dist
AFM=/fonts/afm/$FOUNDRY/
TFM=/fonts/tfm/$FOUNDRY/
VF=/fonts/vf/$FOUNDRY/
FD=/fonts/fd/$FOUNDRY/
TYPE1=/fonts/type1/$FOUNDRY/
FD=/tex/latex/psfonts/

mkdir -p $BASEDIR$AFM$FONT
rm -f $BASEDIR$AFM$FONT/*
cp *.afm $BASEDIR$AFM$FONT
chmod 644 $BASEDIR$AFM$FONT/*

mkdir -p $BASEDIR$TFM$FONT
rm -f $BASEDIR$TFM$FONT/*
cp *.tfm $BASEDIR$TFM$FONT
chmod 644 $BASEDIR$TFM$FONT/*

#mkdir -p $BASEDIR$TYPE1$FONT
#rm -f $BASEDIR$TYPE1$FONT/*
#cp *.pfa $BASEDIR$TYPE1$FONT
#chmod 644 $BASEDIR$TYPE1$FONT/*

mkdir -p $BASEDIR$VF$FONT
rm -f $BASEDIR$VF$FONT/*
cp *.vf $BASEDIR$VF$FONT
chmod 644 $BASEDIR$VF$FONT/*

mkdir -p $BASEDIR$FD$FONT
rm -f $BASEDIR$FD$FONT/*
cp *.fd $BASEDIR$FD$FONT
chmod 644 $BASEDIR$FD$FONT/*

mkdir -p $BASEDIR/fonts/map/dvips/$FONT
cp ./garamond.map $BASEDIR/fonts/map/dvips/$FONT

mkdir -p $BASEDIR/tex/latex/psnfss
cp ./garamond.sty $BASEDIR/tex/latex/psnfss

texhash
updmap-sys –enable Map garamond.map
update-updmap`
Lanciando il script ricevo tuttavia questo output:
`
!!! ERROR! The map file `pad.map' has not been found at all.

Either put this file into the right place or remove the
reference from the configuration file. An automatic way
to disable unavailable map files is to call
updmap –syncwithtrees

For manual editing, call
updmap –edit

install.sh: 48: update-updmap: not found`
Ma dove sta la chiamata a pad.sty?? Non riesco a trovarla….
Inoltre non so se sia necessario installare anche i .pfa
E il comando update-updmap: non esiste più?

Grazie
M.

Non mettere mai nulla di tuo in /usr/local/texlive/2010/texmf-dist. Mai. Il posto giusto è

/usr/local/texlive/texmf-local

Se cerchi l’ultimo filone su MinionPro, trovi anche spiegato come inserire il tuo .map fra quelli letti da updmap-sys

Ciao
Enrico

Go to top