Fonts & Character Setslmodern | Font apparently not working

Information and discussion about fonts and character sets (e.g. how to use language specific characters)
Post Reply
jorogotti
Posts: 2
Joined: Wed Feb 29, 2012 9:56 pm

lmodern | Font apparently not working

Post by jorogotti »

I'm trying to change from computer modern to lmodern. The following is my preamble.

Code: Select all

\documentclass[11pt]{article}
\usepackage{geometry}            
\geometry{letterpaper}                  
\usepackage{amssymb}
\usepackage{epstopdf}
\usepackage{setspace}
\usepackage{natbib}

\usepackage{lmodern}
\usepackage[T1]{fontenc}
\usepackage{textcomp}

\interfootnotelinepenalty=1000
I do not see the difference I believe I am supposed to see when using this package. Can anyone help?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

lmodern | Font apparently not working

Post by localghost »

Since T1 font encoding (Cork Encoding) has to be turned on first, you have to swap the packages fontenc and lmodern.

Next time please prepare a proper minimal example to give an adequate problem description. It will increase your chance of answers in case problems become more complicated.


Best regards and welcome to the board
Thorsten
jorogotti
Posts: 2
Joined: Wed Feb 29, 2012 9:56 pm

lmodern | Font apparently not working

Post by jorogotti »

Sorry for failing in my first post.

Code: Select all

\documentclass[11pt]{article}
\usepackage{geometry}
\geometry{letterpaper}
\usepackage{amssymb}
\usepackage{epstopdf}
\usepackage{setspace}
\usepackage{natbib}

\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{textcomp}

\interfootnotelinepenalty=1000

\title{Title}

\author{Name}
\date{31 August 2011}

\begin{document}

\maketitle
%
%INTRODUCTION
%%%%%%%%%%%%%%%
\section{Introduction}
%%%%%%%%%%%%%%%
This is the body of my document.
\end{document}
I'm not sure if replacing the order of the fontenc and the lmodern package did anything. Try replacing them and let me know if anything changes. Thank you. I do not see any difference. Perhaps I shouldn't be expecting one?

This image is with fontenc first.
fontenc-first.png
fontenc-first.png (42.76 KiB) Viewed 5692 times
this image is with lmodern first.
lmodern-first.png
lmodern-first.png (42.04 KiB) Viewed 5692 times
This image is with neither in the preamble.
none.png
none.png (50.57 KiB) Viewed 5692 times
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

lmodern | Font apparently not working

Post by localghost »

At first two important points.
  • Code is tagged by using the »Code« button.
  • Attachments are uploaded to the forum server instead of using external links.
jorogotti wrote:I'm not sure if replacing the order of the fontenc and the lmodern package did anything.
Of course the load sequence is important. Otherwise I wouldn't have written that. And for me the difference in quality is clear to see with turned on T1 font encoding. For further information please refer to the respective package manuals.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

lmodern | Font apparently not working

Post by Stefan Kottwitz »

Hi,
jorogotti wrote:I do not see the difference I believe I am supposed to see when using this package.
perhaps check the PDF document properties with your pdf reader or the pdffonts tool, there you could see and compare the font names.

Or attach the example PDF files to a forum post here, so we could see that. Just PNG images don't show much, as the quality is changed by conversion or depends on the PDF viewer software which is used for making the copy.

Stefan
LaTeX.org admin
Post Reply