[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#507652: texlive: does not print math symbols



On Fri, Feb 6, 2009 at 9:56 PM, Paul Menzel wrote:
> Am Freitag, den 06.02.2009, 18:55 +0100 schrieb Mojca Miklavec:
>> On Fri, Feb 6, 2009 at 5:22 PM, Paul Menzel wrote:
>> > Am Donnerstag, den 18.12.2008, 01:33 +0200 schrieb Vasilis
>> > Papavasileiou:
>> >> I have narrowed the problem down to the fontspec package. If we pass the
>> >> cm-default value to fontspec:
>> >>
>> >>   \usepackage[cm-default]{fontspec}
>> >>
>> >> the example provided by Antonis works.
>> >>
>> >> Math symbols used to work without cm-default. If we remove the lm-default
>> >> value from ExecuteOptions in fontspec.sty everything works fine. The problem
>> >> is probably lack of LModern math fonts in OpenType format as stated in their
>> >> README (/usr/share/doc/lmodern/README.gz).
>> >
>> > Thanks for the hint.
>> >
>> > Now I have the problem that Umlaute (ÜÖÄüöä) are not displayed. Minimal
>> > example (also attached).
>> >
>> >
>> > \documentclass{scrartcl}
>> >
>> > \usepackage[cm-default]{fontspec}
>> >
>> > \usepackage{ngerman}
>> > \usepackage{amsmath}
>> > \usepackage[standard]{ntheorem}
>> >
>> > \begin{document}
>> > \begin{definition}
>> > Übung, Test $\sum$.
>> > \end{definition}
>> > \end{document}
>> >
>> > Is there a fix available?
>>
>> Yes. You have two options:
>> a) Remove [cm-default] from your test file and add lm-math.map to the
>> distribution (see
>> http://www.ctan.org/tex-archive/fonts/ps-type1/lm/fonts/map/dvipdfm/lm/).
>
> That did not work for me.
>
> /usr/share/texmf/fonts/map/dvips/lm$ sudo wget http://www.ctan.org/tex-archive/fonts/ps-type1/lm/fonts/map/dvipdfm/lm/lm-math.map
> […]
> 2009-02-06 21:48:41 (96,5 MB/s) - »lm-math.map.1« gespeichert [820/820]
> /usr/share/texmf/fonts/map/dvips/lm$ ls -l
> insgesamt 128
> […]
> -rw-r--r-- 1 root root 2203 16. Jan 2007  lm-math.map
> -rw-r--r-- 1 root root  820 22. Jan 2008  lm-math.map.1
> […]
> /usr/share/texmf/fonts/map/dvips/lm$ sudo mv lm-math.map.1 lm-math.map
>
> If I remove the option cm-default for fontspec the math symbols are not
> displayed.

Below I describe a few corrections to what you should have done above,
but it the middle of writing I remembered that I was giving you
instructions for enabling the fonts in ConTeXt instead of LaTeX
(sorry, that has been on a list of way-too-frequently-asked-questions
on the ConTeXt list and I forgot what I was writing).

Try this:
    > kpsewhich dvipdfm.map

It should give you something like
    /usr/local/texlive/2007/texmf-var/fonts/map/dvipdfm/updmap/dvipdfm.map

Then take a look at the following file:
    http://www.ctan.org/tex-archive/fonts/ps-type1/lm/fonts/map/dvipdfm/lm/lm-math.map
and check if all the entries are contained in dvipdfm.map mentioned
above (I guess they are not, else it would work OK).

In theory you could add them there manually, but this is not the
suggested way to do it. Please ask other TeX gurus or follow
instructions how to add entries there. I never use updmap myself and I
have no idea why the entries are missing. Also, Debian might have a
different way of handling map files and configuration files in
general.

---------------

What I ment with previous mail was (but this won't solve your problem,
so do not read any further):

you need to respect both filename (lm-math.map.1 won't work) *and*
path. This is *not* needed with the latest [x]dvipdfmx plus I have no
idea why updmap didn't add the enties into the right map file.

> mkdir /usr/share/texmf/fonts/map/dvipdfm/lm
> cd /usr/share/texmf/fonts/map/dvipdfm/lm
> wget http://www.ctan.org/tex-archive/fonts/ps-type1/lm/fonts/map/dvipdfm/lm/lm-math.map
> mktexlsr

It will solve your problem if you add a special to load lm-math.map
map file on top of your file, but you probably don't want to have ugly
future-incompatible code there.

>> b) Ask Don Knuth to add umlauts to cmr.
>
> Well, maybe another time.

I didn't mean it seriously of course.

Mojca



Reply to: