Fonts & Character SetsA E F and T sized differently in lmodern pacakge?

Information and discussion about fonts and character sets (e.g. how to use language specific characters)
Post Reply
buster
Posts: 19
Joined: Thu Mar 04, 2010 5:49 pm

A E F and T sized differently in lmodern pacakge?

Post by buster »

I noticed today that some uppercase letters are slightly smaller than the rest. The A, E, F and T are all slightly smaller in my pdf document. This looks quite bad, but I have no idea what is causing it.
The only change I have made was to add the mhchem package. After removing it I was still getting the same problem. So I did a MWE, without the mhchem package, which I have copied below

Code: Select all

\documentclass[11pt,a4paper,english]{report}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{babel}
\usepackage{chapterbib}
\usepackage{lmodern}
\usepackage{blindtext}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{xcolor}
\usepackage{setspace}

\begin{document}
\include{chap}
\end{document}
the code for chap is just

Code: Select all

\chapter{Introduction}
ABCDEFGHIJKLMNOPQRSTUVWXYZ
the AEF and T are all still slightly smaller. I took away all the other packages one by one to see if there was any change.

Removing the lmodern package returned the font to what I assume is a default font? This is evenly sized, but doesn't look as good and appears faded in the pdf (although is not faded when printed)
Is the lmodern package supposed to look like that? If not, can I correct it? and if so, can anyone recommend an alternative font? (apparently I have terrible taste!)

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

A E F and T sized differently in lmodern pacakge?

Post by frabjous »

Could you add \listfiles to the beginning your document and compile, and post both the .log file and output .pdf here?

The lmodern (Latin Modern) and default (Computer Modern) fonts are very hard for me to tell apart. And even with lmodern, I don't see the problem you see. I hope it's not my eyesight:
lmodern.png
lmodern.png (5.53 KiB) Viewed 17539 times
buster
Posts: 19
Joined: Thu Mar 04, 2010 5:49 pm

A E F and T sized differently in lmodern pacakge?

Post by buster »

i was just about to post a lot of what was below. having restarted my computer (again) i went to reprint lmodern v computer modern to see exactly what else was different and it's now all normal. i'll leave what i wrote below in case anyone else has this weird problem but it looks like it was just my computer needing a restart.

Thanks very much for your help!

(edit: the worst part was my head kept rearranging those letters to spell out fate)

[when i print it out using the default font (computer modern) it looks mostly similar other than the aforementioned letters. though the pdf on screen looks very different. aside from those letters the spacing looks different, (the title pages especially) and it appears to be more faded, but that is just on screen where its hard to read.

i put \listfiles after the packages and before the \document
i hope that's the right place?

can't find a way to copy the output part from latex - is there a way to do this? i cant even copy one line at a time.
there are no errors or warnings and this does appear
lmodern.sty 2009/10/30 v1.6 Latin Modern Fonts

the log file is quoted below

any help very much appreciated

Code: Select all

This is pdfTeX, Version 3.1415926-1.40.10 (MiKTeX 2.8) (preloaded format=pdflatex 2010.12.22)  22 DEC 2010 21:57
entering extended mode
**C:/Users/Dave/Desktop/Uni*home/mwe/test.tex
("C:/Users/Dave/Desktop/Uni home/mwe/test.tex"
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, dumylang, nohyphenation, ge
rman, ngerman, german-x-2009-06-19, ngerman-x-2009-06-19, french, loaded.
("C:\Program Files\MiKTeX 2.8\tex\latex\base\report.cls"
Document Class: report 2007/10/19 v1.4h Standard LaTeX document class
("C:\Program Files\MiKTeX 2.8\tex\latex\base\size11.clo"
File: size11.clo 2007/10/19 v1.4h Standard LaTeX file (size option)
)
\c@part=\count79
\c@chapter=\count80
\c@section=\count81
\c@subsection=\count82
\c@subsubsection=\count83
\c@paragraph=\count84
\c@subparagraph=\count85
\c@figure=\count86
\c@table=\count87
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
)
("C:\Program Files\MiKTeX 2.8\tex\latex\base\fontenc.sty"
Package: fontenc 2005/09/27 v1.99g Standard LaTeX package

("C:\Program Files\MiKTeX 2.8\tex\latex\base\t1enc.def"
File: t1enc.def 2005/09/27 v1.99g Standard LaTeX file
LaTeX Font Info:    Redeclaring font encoding T1 on input line 43.
))
("C:\Program Files\MiKTeX 2.8\tex\latex\base\inputenc.sty"
Package: inputenc 2008/03/30 v1.1d Input encoding file
\inpenc@prehook=\toks14
\inpenc@posthook=\toks15

("C:\Program Files\MiKTeX 2.8\tex\latex\base\latin1.def"
File: latin1.def 2008/03/30 v1.1d Input encoding file
))
("C:\Program Files\MiKTeX 2.8\tex\generic\babel\babel.sty"
Package: babel 2008/07/06 v3.8l The Babel package

*************************************
* Local config file bblopts.cfg used
*
("C:\Program Files\MiKTeX 2.8\tex\latex\00miktex\bblopts.cfg"
File: bblopts.cfg 2006/07/31 v1.0 MiKTeX 'babel' configuration
)
("C:\Program Files\MiKTeX 2.8\tex\generic\babel\english.ldf"
Language: english 2005/03/30 v3.3o English support from the babel system

("C:\Program Files\MiKTeX 2.8\tex\generic\babel\babel.def"
File: babel.def 2008/07/06 v3.8l Babel common definitions
\babel@savecnt=\count88
\U@D=\dimen103
)
\l@canadian = a dialect from \language\l@american 
\l@australian = a dialect from \language\l@british 
\l@newzealand = a dialect from \language\l@british 
))
(C:\Users\Dave\AppData\Roaming\MiKTeX\2.8\tex\latex\cite\chapterbib.sty
\c@inputfile=\count89
Package: chapterbib 2010/09/18  v 1.17
)
("C:\Program Files\MiKTeX 2.8\tex\latex\lm\lmodern.sty"
Package: lmodern 2009/10/30 v1.6 Latin Modern Fonts
LaTeX Font Info:    Overwriting symbol font `operators' in version `normal'
(Font)                  OT1/cmr/m/n --> OT1/lmr/m/n on input line 22.
LaTeX Font Info:    Overwriting symbol font `letters' in version `normal'
(Font)                  OML/cmm/m/it --> OML/lmm/m/it on input line 23.
LaTeX Font Info:    Overwriting symbol font `symbols' in version `normal'
(Font)                  OMS/cmsy/m/n --> OMS/lmsy/m/n on input line 24.
LaTeX Font Info:    Overwriting symbol font `largesymbols' in version `normal'
(Font)                  OMX/cmex/m/n --> OMX/lmex/m/n on input line 25.
LaTeX Font Info:    Overwriting symbol font `operators' in version `bold'
(Font)                  OT1/cmr/bx/n --> OT1/lmr/bx/n on input line 26.
LaTeX Font Info:    Overwriting symbol font `letters' in version `bold'
(Font)                  OML/cmm/b/it --> OML/lmm/b/it on input line 27.
LaTeX Font Info:    Overwriting symbol font `symbols' in version `bold'
(Font)                  OMS/cmsy/b/n --> OMS/lmsy/b/n on input line 28.
LaTeX Font Info:    Overwriting symbol font `largesymbols' in version `bold'
(Font)                  OMX/cmex/m/n --> OMX/lmex/m/n on input line 29.
LaTeX Font Info:    Overwriting math alphabet `\mathbf' in version `normal'
(Font)                  OT1/cmr/bx/n --> OT1/lmr/bx/n on input line 31.
LaTeX Font Info:    Overwriting math alphabet `\mathsf' in version `normal'
(Font)                  OT1/cmss/m/n --> OT1/lmss/m/n on input line 32.
LaTeX Font Info:    Overwriting math alphabet `\mathit' in version `normal'
(Font)                  OT1/cmr/m/it --> OT1/lmr/m/it on input line 33.
LaTeX Font Info:    Overwriting math alphabet `\mathtt' in version `normal'
(Font)                  OT1/cmtt/m/n --> OT1/lmtt/m/n on input line 34.
LaTeX Font Info:    Overwriting math alphabet `\mathbf' in version `bold'
(Font)                  OT1/cmr/bx/n --> OT1/lmr/bx/n on input line 35.
LaTeX Font Info:    Overwriting math alphabet `\mathsf' in version `bold'
(Font)                  OT1/cmss/bx/n --> OT1/lmss/bx/n on input line 36.
LaTeX Font Info:    Overwriting math alphabet `\mathit' in version `bold'
(Font)                  OT1/cmr/bx/it --> OT1/lmr/bx/it on input line 37.
LaTeX Font Info:    Overwriting math alphabet `\mathtt' in version `bold'
(Font)                  OT1/cmtt/m/n --> OT1/lmtt/m/n on input line 38.
)
(C:\Users\Dave\AppData\Roaming\MiKTeX\2.8\tex\latex\blindtext\blindtext.sty
Package: blindtext 2009/12/29 V1.9c blindtext-Package

("C:\Program Files\MiKTeX 2.8\tex\latex\tools\xspace.sty"
Package: xspace 2006/05/08 v1.12 Space after command names (DPC,MH)
)
\c@blindtext=\count90
\c@Blindtext=\count91
\blind@countxx=\count92
\blindtext@numBlindtext=\count93
\blind@countyy=\count94
\c@blindlist=\count95
\c@blindlistlevel=\count96
\c@blindlist@level=\count97
\blind@listitem=\count98
\c@blind@listcount=\count99
\c@blind@levelcount=\count100
\blind@mathformula=\count101
\blind@Mathformula=\count102
)
("C:\Program Files\MiKTeX 2.8\tex\latex\ams\math\amsmath.sty"
Package: amsmath 2000/07/18 v2.13 AMS math features
\@mathmargin=\skip43

For additional information on amsmath, use the `?' option.
("C:\Program Files\MiKTeX 2.8\tex\latex\ams\math\amstext.sty"
Package: amstext 2000/06/29 v2.01

("C:\Program Files\MiKTeX 2.8\tex\latex\ams\math\amsgen.sty"
File: amsgen.sty 1999/11/30 v2.0
\@emptytoks=\toks16
\ex@=\dimen104
))
("C:\Program Files\MiKTeX 2.8\tex\latex\ams\math\amsbsy.sty"
Package: amsbsy 1999/11/29 v1.2d
\pmbraise@=\dimen105
)
("C:\Program Files\MiKTeX 2.8\tex\latex\ams\math\amsopn.sty"
Package: amsopn 1999/12/14 v2.01 operator names
)
\inf@bad=\count103
LaTeX Info: Redefining \frac on input line 211.
\uproot@=\count104
\leftroot@=\count105
LaTeX Info: Redefining \overline on input line 307.
\classnum@=\count106
\DOTSCASE@=\count107
LaTeX Info: Redefining \ldots on input line 379.
LaTeX Info: Redefining \dots on input line 382.
LaTeX Info: Redefining \cdots on input line 467.
\Mathstrutbox@=\box26
\strutbox@=\box27
\big@size=\dimen106
LaTeX Font Info:    Redeclaring font encoding OML on input line 567.
LaTeX Font Info:    Redeclaring font encoding OMS on input line 568.
\macc@depth=\count108
\c@MaxMatrixCols=\count109
\dotsspace@=\muskip10
\c@parentequation=\count110
\dspbrk@lvl=\count111
\tag@help=\toks17
\row@=\count112
\column@=\count113
\maxfields@=\count114
\andhelp@=\toks18
\eqnshift@=\dimen107
\alignsep@=\dimen108
\tagshift@=\dimen109
\tagwidth@=\dimen110
\totwidth@=\dimen111
\lineht@=\dimen112
\@envbody=\toks19
\multlinegap=\skip44
\multlinetaggap=\skip45
\mathdisplay@stack=\toks20
LaTeX Info: Redefining \[ on input line 2666.
LaTeX Info: Redefining \] on input line 2667.
)
("C:\Program Files\MiKTeX 2.8\tex\latex\graphics\graphicx.sty"
Package: graphicx 1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)

("C:\Program Files\MiKTeX 2.8\tex\latex\graphics\keyval.sty"
Package: keyval 1999/03/16 v1.13 key=value parser (DPC)
\KV@toks@=\toks21
)
("C:\Program Files\MiKTeX 2.8\tex\latex\graphics\graphics.sty"
Package: graphics 2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR)

("C:\Program Files\MiKTeX 2.8\tex\latex\graphics\trig.sty"
Package: trig 1999/03/16 v1.09 sin cos tan (DPC)
)
("C:\Program Files\MiKTeX 2.8\tex\latex\00miktex\graphics.cfg"
File: graphics.cfg 2007/01/18 v1.5 graphics configuration of teTeX/TeXLive
)
Package graphics Info: Driver file: pdftex.def on input line 91.

("C:\Program Files\MiKTeX 2.8\tex\latex\pdftex-def\pdftex.def"
File: pdftex.def 2010/02/14 v0.04n Graphics/color for pdfTeX
\Gread@gobject=\count115
))
\Gin@req@height=\dimen113
\Gin@req@width=\dimen114
)
(C:\Users\Dave\AppData\Roaming\MiKTeX\2.8\tex\latex\xcolor\xcolor.sty
Package: xcolor 2007/01/21 v2.11 LaTeX color extensions (UK)

("C:\Program Files\MiKTeX 2.8\tex\latex\00miktex\color.cfg"
File: color.cfg 2007/01/18 v1.5 color configuration of teTeX/TeXLive
)
Package xcolor Info: Driver file: pdftex.def on input line 225.
Package xcolor Info: Model `cmy' substituted by `cmy0' on input line 1337.
Package xcolor Info: Model `hsb' substituted by `rgb' on input line 1341.
Package xcolor Info: Model `RGB' extended on input line 1353.
Package xcolor Info: Model `HTML' substituted by `rgb' on input line 1355.
Package xcolor Info: Model `Hsb' substituted by `hsb' on input line 1356.
Package xcolor Info: Model `tHsb' substituted by `hsb' on input line 1357.
Package xcolor Info: Model `HSB' substituted by `hsb' on input line 1358.
Package xcolor Info: Model `Gray' substituted by `gray' on input line 1359.
Package xcolor Info: Model `wave' substituted by `hsb' on input line 1360.
)
(C:\Users\Dave\AppData\Roaming\MiKTeX\2.8\tex\latex\setspace\setspace.sty
Package: setspace 2000/12/01 6.7 Contributed and Supported LaTeX2e package

Package: `setspace' 6.7 <2000/12/01>
) ("C:\Users\Dave\Desktop\Uni home\mwe\test.aux"
("C:\Users\Dave\Desktop\Uni home\mwe\chap.aux"))
LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 15.
LaTeX Font Info:    ... okay on input line 15.
LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 15.
LaTeX Font Info:    ... okay on input line 15.
LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 15.
LaTeX Font Info:    ... okay on input line 15.
LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 15.
LaTeX Font Info:    ... okay on input line 15.
LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 15.
LaTeX Font Info:    ... okay on input line 15.
LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 15.
LaTeX Font Info:    ... okay on input line 15.
LaTeX Font Info:    Try loading font information for T1+lmr on input line 15.

("C:\Program Files\MiKTeX 2.8\tex\latex\lm\t1lmr.fd"
File: t1lmr.fd 2009/10/30 v1.6 Font defs for Latin Modern
)
("C:\Program Files\MiKTeX 2.8\tex\context\base\supp-pdf.tex"
[Loading MPS to PDF converter (version 2006.09.02).]
\scratchcounter=\count116
\scratchdimen=\dimen115
\scratchbox=\box28
\nofMPsegments=\count117
\nofMParguments=\count118
\everyMPshowfont=\toks22
\MPscratchCnt=\count119
\MPscratchDim=\dimen116
\MPnumerator=\count120
\everyMPtoPDFconversion=\toks23
) ("C:\Users\Dave\Desktop\Uni home\mwe\chap.tex"
Chapter 1.
) [1




{C:/Users/Dave/AppData/Local/MiKTeX/2.8/pdftex/config/pdftex.map}]
("C:\Users\Dave\Desktop\Uni home\mwe\test.aux"
("C:\Users\Dave\Desktop\Uni home\mwe\chap.aux"))

 *File List*
  report.cls    2007/10/19 v1.4h Standard LaTeX document class
  size11.clo    2007/10/19 v1.4h Standard LaTeX file (size option)
 fontenc.sty
   t1enc.def    2005/09/27 v1.99g Standard LaTeX file
inputenc.sty    2008/03/30 v1.1d Input encoding file
  latin1.def    2008/03/30 v1.1d Input encoding file
   babel.sty    2008/07/06 v3.8l The Babel package
 bblopts.cfg    2006/07/31 v1.0 MiKTeX 'babel' configuration
 english.ldf    2005/03/30 v3.3o English support from the babel system
chapterbib.sty    2010/09/18  v 1.17
 lmodern.sty    2009/10/30 v1.6 Latin Modern Fonts
blindtext.sty    2009/12/29 V1.9c blindtext-Package
  xspace.sty    2006/05/08 v1.12 Space after command names (DPC,MH)
 amsmath.sty    2000/07/18 v2.13 AMS math features
 amstext.sty    2000/06/29 v2.01
  amsgen.sty    1999/11/30 v2.0
  amsbsy.sty    1999/11/29 v1.2d
  amsopn.sty    1999/12/14 v2.01 operator names
graphicx.sty    1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)
  keyval.sty    1999/03/16 v1.13 key=value parser (DPC)
graphics.sty    2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR)
    trig.sty    1999/03/16 v1.09 sin cos tan (DPC)
graphics.cfg    2007/01/18 v1.5 graphics configuration of teTeX/TeXLive
  pdftex.def    2010/02/14 v0.04n Graphics/color for pdfTeX
  xcolor.sty    2007/01/21 v2.11 LaTeX color extensions (UK)
   color.cfg    2007/01/18 v1.5 color configuration of teTeX/TeXLive
setspace.sty    2000/12/01 6.7 Contributed and Supported LaTeX2e package
   t1lmr.fd    2009/10/30 v1.6 Font defs for Latin Modern
supp-pdf.tex
    chap.tex
 ***********

 ) 
Here is how much of TeX's memory you used:
 2813 strings out of 495285
 34696 string characters out of 3180396
 96305 words of memory out of 3000000
 5993 multiletter control sequences out of 15000+200000
 16710 words of font info for 20 fonts, out of 3000000 for 9000
 14 hyphenation exceptions out of 8191
 27i,5n,35p,259b,131s stack positions out of 5000i,500n,10000p,200000b,50000s
{C:/Program Files/MiKTeX 2.8/fonts/enc/dvips/lm/lm-ec.enc}<C:/Program Files/M
iKTeX 2.8/fonts/type1/public/lm/lmbx12.pfb><C:/Program Files/MiKTeX 2.8/fonts/t
ype1/public/lm/lmr10.pfb>
Output written on test.pdf (1 page, 51225 bytes).
PDF statistics:
 15 PDF objects out of 1000 (max. 8388607)
 0 named destinations out of 1000 (max. 500000)
 1 words of extra memory for PDF output out of 10000 (max. 10000000)
buster
Posts: 19
Joined: Thu Mar 04, 2010 5:49 pm

A E F and T sized differently in lmodern pacakge?

Post by buster »

so this happened again (apart from A's now being fine) and upon more investigation it seems the letters appear to change depending on the zoom applied in the pdf reader (adobe)
eg
only the bold E is affected here
200% zoom
200% zoom
200.jpg (7.58 KiB) Viewed 17450 times
the bold E is not affected, the other is
177% zoom
177% zoom
177.jpg (7.05 KiB) Viewed 17450 times
both are affected here
150% zoom
150% zoom
150.jpg (5.81 KiB) Viewed 17450 times
at >=300% its fine
at 100% it's fine
at 75% it's not

this is completely harmless as it prints out fine, though it does really annoy me when i look at it. just thought i'd post in case it drove anyone else to distraction.

SERENITY NOW.
Post Reply