[texworks] Typesetting

Herbert Schulz herbs at wideopenwest.com
Thu May 27 02:18:49 CEST 2010


On May 26, 2010, at 4:50 PM, Ferguson, Don wrote:

> Greetings  "Joseph Wright" <joseph.wright at morningstar2.co.uk>
> On 22/05/2010 at 05:43 you wrote concerning
> Re: [texworks] Typesetting
> 
> 
> Hello Joseph,
> 
> <<snip>> 
> JW> ..... Soemthing like
> 
> JW> \documentclass{article}
> JW> \usepackage[T1]{fontenc}
> JW> \usepackage{lmodern}
> JW> \begin{document}
> JW> \title{My title}
> JW> \author{A.N. Other}
> JW> \maketitle
> 
> JW> Some text for the paper here
> JW> \end{document}
> 
> What is the purpose of including the line
>   \usepackage{lmodern}
> ?
> Thank you and 
> 
> 
> Cheers  Don (Green Dragon)

Howdy,

The lines

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

tell TeX to use the Latin Modern fonts (an extension of the default Computer Modern fonts with accented characters [rather than building them]) using the T1 font encoding which makes those accented characters available directly. If you want to type with the accented characters directly (e.g., é instead of \'e) you also need to save the file as a special encoding (e.g., latin1 or utf-8) and tell TeX that the input file is in that special encoding by using the line

\usepackage[latin1]{inputenc}

or

\usepackage[utf8]{inputenc}

respectively.

Good Luck,

Herb Schulz
(herbs at wideopenwest dot com)






More information about the texworks mailing list