[OS X TeX] Font management with MacTeX 2013
Murray Eisenberg
murrayeisenberg at gmail.com
Sat Jun 22 21:12:44 CEST 2013
When upgrading to a new TeXLive, why is it necessary to run manually any command for causing TeX to recognize fonts in ~/Library/texmf -- provided, of course, that one already has the appropriate updmap.cfg in ~/Library/web2c and in the TeXLive Utility sets the "Automatically enable fonts in my home directory".
Unless I am mistaken, as soon as I installed TeXLive 2013, with TeXLive 2012 previously installed, I was able to process source files using fonts from my home directory, including lucida and mtpro2.
(Or was I OK merely because I may have first run the TeXLive Utility, which with that preference set automatically ran updmap for me?)
On Fri, 21 Jun 2013 16:48:58 -0500, Herbert Schulz <herbs at wideopenwest.com> wrote:
> Date: Fri, 21 Jun 2013 16:48:58 -0500
> From:
> To: TeX on Mac OS X Mailing List <macosx-tex at email.esm.psu.edu>
> Subject:
> Message-ID: <54D72D13-FD07-4471-B223-B7FFA4A401A6 at wideopenwest.com>
> Content-Type: text/plain; charset=windows-1252
>
>
> On Jun 21, 2013, at 4:20 PM, "Gary L. Gray" <gray at psu.edu> wrote:
>
>> On Jun 20, 2013, at 2:02 AM, Michael Sharpe <msharpe at ucsd.edu> wrote:
>>
>>> On Jun 19, 2013, at 6:15 PM, Herbert Schulz <herbs at wideopenwest.com> wrote:
>>>
>>>> Or... just put all the fonts in one location, e.g., .../texmf-local, and still live with one updmap.cfg file. :-)
>>>
>>> That works very well as long as you don't use the --enable/--disable options to updmap-sys, perhaps inadvertently, which will create an updmap.cfg in texmf-config. (This happens when you install fonts with scripts like getnonfreefonts-sys, for example.) Then you have two updmap.cfg files, one trumping the other for the remainder of the current TeXLive year. That's not to say that keeping as much as you can in texmf-local doesn't have some serious advantages---it does not need to be reinstalled with every new TeXLive year. To me, having one updmap.cfg that lasts forever even when using --enable/--disable, with the proper initiation each year, is worth a lot.
>>
>> Thank you for posting this Michael. Your post made me think about how I deal with font files since I am not a disciple of Herb's "hidden font and files" strategy. Here is my setup...
>>
>> I keep everything I install in:
>>
>> ~/Library/texmf
>>
>> and subdirectories therein, i.e.,
>>
>> ~/Library/texmf/bibtex
>> ~/Library/texmf/doc
>> ~/Library/texmf/dvips
>> ~/Library/texmf/fonts
>> ~/Library/texmf/source
>> ~/Library/texmf/tex
>> ~/Library/texmf/tpm
>> ~/Library/texmf/web2c
>>
>> Each time I install a new version of TeX Live, which is essentially once per year, I run a script I keep around that contains:
>>
>> #!/bin/bash
>> updmap --nohash --nomkmap --syncwithtrees
>> updmap --nohash --nomkmap --enable Map mtpro2.map
>> updmap --nohash --nomkmap --enable Map lucida.map
>> updmap --nohash --nomkmap --enable Map iffonts.map
>> updmap --nohash --nomkmap --enable Map MinionPro.map
>> updmap --nohash --nomkmap --enable Map pmy.map
>> updmap
>>
>> This gets my fonts working again as I expect.
>>
>> In TeX Live Utility, I have "Automaticall enable fonts in my home directory." checked.
>>
>> As far as I can tell (which may not be very far), this has worked well for about three years now (maybe a year or so longer than that). My question is, should I be doing something differently? Am I missing something essential with this strategy?
>>
>> Thank you.
>>
>> Gary
>
>
> Howdy,
>
> If you have only one user account on your system that works fine; although I'd do it in a slightly more ``modern'' way (see below). I have more than one user on my system in case something I play with needs to be isolated for testing and I'd still like all my TeX fonts available from either user.
>
> The more ``modern'' way of doing what you want is to create an updmap.cfg file which contains the lines (for your example case)
>
> Map mtpro2.map
> Map lucida.map
> Map iffonts.map
> Map MinionPro.map
> Map pmy.map
>
> with at least one blank line at the end of the file and place that file in ~/Library/texmf/web2c. Then your shell script can simply become
>
> #!/bin/bash
> updmap
>
> and you're done. One advantage of this method is that if, for one reason or another, the map file in your HOME folder gets out of sync you simply run
>
> updmap
>
> to get it all working again. Not that what you do doesn't work... for you.
---
Murray Eisenberg murrayeisenberg at gmail.com
80 Fearing Street phone 413 549-1020 (H)
Amherst, MA 01002-1912
More information about the macostex-archives
mailing list