5

My friend and I are working on the same subject and I asked her to see her work. I noticed that her pdf rendering (if it's really that) is a lot different than mine even though we use the same "template". We both use TexMaker with MikTeX, hers is on Mac, mine is on Windows.

Left is mine, right is hers.

enter image description here

If anyone knows what cause the difference here and could help me getting the same thing that would be great.

Thank you.

AdrienNK
  • 385
  • The difference is purely due to using different PDF viewers. – ChrisS Apr 07 '14 at 07:44
  • 1
    This question appears to be off-topic because it is about how the PDF is rendered in a PDF viewer, which is not a TeX problem. – ChrisS Apr 07 '14 at 07:45
  • It's the same pdf viewer for both. – AdrienNK Apr 07 '14 at 07:45
  • Macs default to 72 dpi whereas Windows defaults to 96 dpi; fitting the rather spindly CM fonts to different pixel grids will probably produce this difference. – ChrisS Apr 07 '14 at 07:48
  • 4
    It's quite improbable your friend uses MiKTeX on the Mac. More probable is that you (on MiKTeX) don't have the CMSuper fonts. Try adding \usepackage{lmodern} and see if the difference is still so striking. – egreg Apr 07 '14 at 07:49
  • That was it, thank you egreg. One last thing, but it's kinda nitpicking, her font seems still a little "darker" any ideas why? – AdrienNK Apr 07 '14 at 07:51
  • @egreg Make that an answer, please. – lockstep Apr 07 '14 at 08:51

1 Answers1

10

MiKTeX doesn't run on Mac OS X, so probably your friend has installed MacTeX, which by default includes the CMSuper font package which provides Type1 renderings of the European Modern fonts that are used in documents that have

\usepackage[T1]{fontenc}

that's recommended when writing in French or another European language.

The fact is that the basic installation of MiKTeX doesn't include this font package (see Why are Bitmap-Fonts used automatically?). Install it with MiKTeX's package manager, otherwise the machine running MiKTeX will display bitmap fonts created at 600dpi, which is the most probable cause of the difference you see.

You can avoid this installation by adding to your document

\usepackage{lmodern}

that makes LaTeX use a different set of fonts that, however, are almost indistinguishable from the Computer/European Modern fonts. See Latin Modern vs cm-super? for more information.

Just to show what happens

Image with CMSuper fonts disabled

enter image description here

Image with CMSuper fonts enabled

enter image description here

Image with the Latin Modern fonts (\usepackage{lmodern})

enter image description here

egreg
  • 1,121,712
  • all of which show (on my screen, at least) that a bitmap copy of a printed page isn't really a good reading medium. (admittedly the three do show differently. – wasteofspace Apr 07 '14 at 09:42
  • @wasteofspace They don't render well on screen in PDF viewers. They should print fine, though. Metafont wasn't designed for this use... – cfr Apr 07 '14 at 16:40
  • @cfr On that note, in you opinion what should be use for .pdf that will only be read on computers? – AdrienNK Apr 08 '14 at 11:51
  • @AdrienNK You just need to make sure you are using type1, truetype or opentype fonts. This is recommended whether you want the PDF for printing or on-screen use. egreg's answer explains how to assure type1 fonts and this will work well for (pdf)LaTeX. – cfr Apr 08 '14 at 12:42
  • What needs to be done to achieve the result visible on the left of the original question? That is, how to supress CM Super fonts using T1 fonts on a Mac TexShop in a particular file (not globally)? – oliver Nov 13 '17 at 14:14
  • @oliver I think I added \pdfmapfile{} at the start of the document, which disables loading pdftex.map, so forcing pdftex to build the bitmap versions. – egreg Nov 13 '17 at 14:18
  • @egreg Hm... Doesn't seem to work for my files (tried LaTeX or XeLaTeX). Might be some settings that I have that prohibit bitmaps globally (I use various packages for graphics, etc.). Not an urgent problem, I was simply wondering if it is (effortlessly) possible to switch between "poor" and nice font rendering for particular files on a Mac. – oliver Nov 13 '17 at 14:28