5

I have some problems using the package cmbright. It renders pixelated maths symbols. I don't understand since the package is installed in miktex. I compile using pdflatex

enter image description here

\documentclass[english]{article}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}

\makeatletter
\usepackage{cmbright}

\makeatother

\usepackage{babel}
\begin{document}
Hey!$\lambda\beta\gamma$
\end{document}

Here is the output of upmap --verbose

enter image description here

5
  • 2
    I guess it's the usual problem of MiKTeX not updating correctly the map files when Type1 fonts are installed.
    – egreg
    Commented Oct 12, 2014 at 9:37
  • Thanks. And how can I update the map file :)?
    – Fabien
    Commented Oct 12, 2014 at 9:44
  • 1
    Using TeX Live instead of MiKTeX? Just joking. ;-) Sorry, but I can't help you. Try tex.stackexchange.com/questions/108447/…
    – egreg
    Commented Oct 12, 2014 at 9:48
  • Run from the command line (as administrator and as user) updmap --verbose. The switch will let you see which fonts are mentioned in the psfonts databases (psfonts.map and its siblings).
    – Bernard
    Commented Oct 12, 2014 at 10:10
  • Hey, Thanks. I ran the command but it didn't change the pixelated effect. Do you want me to post the output?
    – Fabien
    Commented Oct 12, 2014 at 10:28

2 Answers 2

9

Your problem comes from the fact that the cmbright package doesn't include type 1 version of the fonts. The type 1 versions spread over the cm-super (for T1 and TS1 font encodings) and hfbrightpackages. Unfortunately hfbright.map is not mentioned in the default updmap.cfg. I'll report the problem to Christian Schenk. So for now, you'll have to mention it in your personal updmap.cfg. If you don't already have one, you'll to create one, with these lines (or add them if it exists):

# hfbright : type 1 version of cmbright (OT1 encoding and maths)
Map hfbright.map

This file should be located in C:\Users\Your_Name\AppData\Roaming\MiKTeX\2.9\miktex\conf\

Then run updmap, as I said in my comment. It works (note that the text part is pixellated, as I haven't installed cm-super):

enter image description here

8
  • If hfbright.map exists on the system, then adding \pdfmapfile{=htbright.map} to the document should work without requiring a run of updmap.
    – egreg
    Commented Oct 12, 2014 at 13:45
  • @egreg: I didn't know that. Thanks for the information. There remains however that hfbright.map should be mentioned in the system updmap.cfg.
    – Bernard
    Commented Oct 12, 2014 at 14:22
  • 1
    @Bernard Yes, of course. I've seen several problems with MiKTeX not updating the map files correctly on our site.
    – egreg
    Commented Oct 12, 2014 at 14:28
  • @egreg: I've mentioned some of them, I think. There are two kinds of problems: most of the time, the .map file is mentioned in the system updmap.cfg (even if the font is not installed, as is normal), but updmap.exe is not run at installation, for some reason. It suffices for the user to run it from the command line. The second case is when the .map file is not even mentioned, although it is installed. It's hard for a basic user to understand what's happening, and it should be reported to MiKTeX's site on SourceForge. I did it for this particular case.
    – Bernard
    Commented Oct 12, 2014 at 14:55
  • 1
    I had the same problem with MiKTeX 2.9 on Windows, but this was fixed when i installed the packages cm-super and hfbright of MiKTeX Package Manager. I don't need to modify any internal file.
    – skpblack
    Commented Oct 12, 2014 at 15:50
0

If you do not want to change the font (e.g. defined by a template). Install cm-super as written earlier: (do not edit the tex-file) MikTeX cm-super

source: https://tex.stackexchange.com/a/546882/110064

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .