[tex-live] The adforn package.

cfrees at imapmail.org cfrees at imapmail.org
Tue Oct 5 20:43:32 CEST 2010


On Mon 4th Oct, 2010 at 12:55, Reinhard Kotucha seems to have written:

> On 4 October 2010 Robin Fairbairns wrote:
>
> > Karl Berry <karl at freefriends.org> wrote:
> >
> > >     Subject: [tex-live] The adforn package.
> > >
> > > Thanks for the report, but this bug needs to go to the package
> > > maintainer, ie, Clea.  I've forwarded it.
> >
> > istm this is a latex-on-mac bug rather than something of clea's.
>
> I can reproduce the problem on Linux too with the following file:
> ----------------------------------------
> \documentclass{article}
> \usepackage{adforn}
> %\input uOrnementsADF.fd
> \begin{document}
> \adforn{21}\quad\adforn{11}\quad\adforn{49}
> \end{document}
> ----------------------------------------
>
> Without loading the .fd file explicitly I get:
> ----------------------------------------
> (/usr/local/texlive/2010/texmf-dist/tex/latex/adforn/adforn.sty
> (/usr/local/texlive/2010/texmf-dist/tex/latex/psnfss/pifont.sty
> (/usr/local/texlive/2010/texmf-dist/tex/latex/psnfss/upzd.fd)
> (/usr/local/texlive/2010/texmf-dist/tex/latex/psnfss/upsy.fd))
>
> LaTeX Font Warning: Font shape `U/OrnementsADF/m/n' undefined
> (Font)              using `U/cmr/m/n' instead on input line 4.
>
> ) (./testadforn.aux) [1{/home/reinhard/.texlive2010/texmf-var/fonts/map/pdftex/updmap/pdftex.map}] (./testadforn.aux)
> ----------------------------------------
>
>
> When I remove the comment character in the file above, I get:
> ----------------------------------------
> (/usr/local/texlive/2010/texmf-dist/tex/latex/base/article.cls
> Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
> (/usr/local/texlive/2010/texmf-dist/tex/latex/base/size10.clo))
> (/usr/local/texlive/2010/texmf-dist/tex/latex/adforn/adforn.sty
> (/usr/local/texlive/2010/texmf-dist/tex/latex/psnfss/pifont.sty
> (/usr/local/texlive/2010/texmf-dist/tex/latex/psnfss/upzd.fd)
> (/usr/local/texlive/2010/texmf-dist/tex/latex/psnfss/upsy.fd))
>
> LaTeX Font Warning: Font shape `U/OrnementsADF/m/n' undefined
> (Font)              using `U/cmr/m/n' instead on input line 4.
>
> ) (/usr/local/texlive/2010/texmf-dist/tex/latex/adforn/uOrnementsADF.fd)
> (./testadforn.aux) [1{/home/reinhard/.texlive2010/texmf-var/fonts/map/pdftex/updmap/pdftex.map}] (./testadforn.aux)
> ----------------------------------------
>
> The warning is still there, it's obviuosly triggered by pifont.sty and
> disappears if uOrnementsADF.fd is loaded before adforn.sty.
>
> > some time back, in some contorted logic related to case-insensitive
> > file systems, it was decided that latex would accept fd files with
> > the coding name ("u" in this case) in either upper or lower case,
> > with lower case being the default.
>
> I remember that too, but there still seems to be an inconsistency in
> LaTeX.  If you need a particular font encoding, you have to load it in
> advance, like \usepackage[T5]{fontenc}.
>
> The relevant piece of code in fontenc.sty is:
> ----------------------------------------
> \DeclareOption*{%
>   \let\encodingdefault\CurrentOption
>   \edef\reserved at f{%
>     \lowercase{\def\noexpand\reserved at f{\CurrentOption enc.def}}}%
>   \reserved at f
>   \InputIfFileExists\reserved at f
>   [...stuff omitted...]
> ----------------------------------------
>
> But there is no <encoding>enc.def file for U (unknown) encodings.
> Thus, this piece of code is never executed here.
>
> In pifont.sty we have:
> ----------------------------------------
> \newcommand{\Pifont}[1]{\fontfamily{#1}\fontencoding{U}%
> \fontseries{m}\fontshape{n}\selectfont}
> \newcommand{\Pisymbol}[2]{{\Pifont{#1}\char#2}}
> ----------------------------------------
>
> I suppose that \fontencoding{U} assumes an uppercase U when the name
> of the the .fd file wasn't assembled by fontenc.sty already before.
> And fontenc.sty isn't and can't be used here because there is no file
> uenc.def.
>
> Instead of renaming the file, I recommend to apply the following
> patch:
>
> ----------------------------------------
> --- adforn.sty-orig	2010-09-24 18:24:36.000000000 +0200
> +++ adforn.sty	2010-10-04 11:59:46.000000000 +0200
> @@ -1,5 +1,6 @@
> \NeedsTeXFormat{LaTeX2e}
> \ProvidesPackage{adforn}[2010/07/25 v1.0 adforn CFR]
> +\InputIfFileExists{uOrnementsADF.fd}{}{}
> \RequirePackage{pifont}
> \Pifont{OrnementsADF}
> ----------------------------------------
>
> Then file name conventions will remain consistent.
>
> > is macos' file system case insensitive?  (i thought not, but i've
> > no easy way of testing.)
>
> AFAIK it's configurable, but it's case insensitive by default.  But I
> assume that it's case-preserving at least, like NT-based Windows.
>
> BTW, I wouldn't expect this problem on case-insensitive file systems
> because there, "uOrnementsADF.fd" and "UOrnementsADF.fd" is supposed
> to be one and the same file, isn't it?  You can't even have both files
> in the same directory.  Since I can reproduce the problem on Linux, I
> doubt that it's a file system issue at all.
>
> Furthermore, I suppose that Clea tested it on a case-insensitive file
> system and thus didn't encounter the problem.  Clea, can you confirm?

I tested it on Mac OS X with the default file system i.e. ~somewhat~
case-insensitive. What I did not do was install the files into the TL
system-wide tree and test that way. So it breaks for me now, too. If I
have the fd file in the same directory as my document, no problem. If I
have the fd file in my home texmf tree, also no problem. So I didn't
see the issue during testing - the documentation compiled fine etc.

Something like this came up for the arrows and bullets package, too. I
altered adfsymbols so that the fd files are entirely lower-case and
that seemed to work.

My instinct is therefore to rename the fd file to uornementsadf.fd.
However, I don't really understand what is going on here so this isn't
necessarily the best thing to do. It is complicated by the fact that in
the adfsymbols case, things which worked for me didn't work for a user
on a different system, so I can't just assume that if I fix it for OS
X, it will work generally.

fontinst seems to always use all lowercase for fd file names which
makes me think the solution should work generally. Is that correct?

Sorry for the delay - just as I disappear from email for a couple of
days, up crops a problem with something I'm responsible for!

Thanks,
Clea

> Regards,
>  Reinhard
>
>


More information about the tex-live mailing list