## LaTeX forum ⇒ Text Formatting ⇒ problem with font size

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
dragonspirit
Posts: 3
Joined: Sat Jun 27, 2015 6:12 pm

### problem with font size

Hi, I have a problem with these packages:

`\documentclass[11pt,a4paper]{article}  %definisce la classe del documento\usepackage[OT2,T1]{fontenc}\usepackage[latin1]{inputenc}\usepackage[italian]{babel}\usepackage{graphicx}% elimina l'indentazione all'inizio del capoverso\usepackage[parfill]{parskip}\usepackage[width=17.00cm, height=24.00cm]{geometry}`

I'm unable to set the size of the main font in the document class declaration. TexStudio give me an error if I use the `fontenc` package with a font size declaration different from 10pt.

Can anyone help me?
Last edited by Stefan Kottwitz on Sat Jun 27, 2015 6:38 pm, edited 1 time in total.
Reason: code marked

Tags:

Stefan Kottwitz
Posts: 8954
Joined: Mon Mar 10, 2008 9:44 pm
Welcome to the forum!

Can you tell us the error message?

Stefan

dragonspirit
Posts: 3
Joined: Sat Jun 27, 2015 6:12 pm
`Processo avviato: pdflatex.exe -synctex=1 -interaction=nonstopmode "frontespizio (1)".tex Trying to make PK font ecrm1095 at 600 DPI... miktex-makepk.exe : Permission denied: C:\Users\Matteo\AppData\Local\Temp\mik51320 miktex-makepk.exe: Data: C:\Users\Matteo\AppData\Local\Temp\mik51320 Il processo è terminato con uno o più errori`

this is the error message
Last edited by cgnieder on Sat Jun 27, 2015 9:42 pm, edited 1 time in total.

Stefan Kottwitz
Posts: 8954
Joined: Mon Mar 10, 2008 9:44 pm
It looks like a problem of the MiKTeX installation, a permission issue. The compiler cannot write there. MiKTeX can be installed in admin mode and user mode, which are different, perhaps you chose the wrong way. I don't use MiKTeX, so I just can guess. I use TeX Live. I remember there was a recommendation to install MiKTeX in user mode into the user space, to avoid all issues. Makes no difference anyway on a single user PC.

Stefan

Stefan Kottwitz
Posts: 8954
Joined: Mon Mar 10, 2008 9:44 pm
By the way, the newest MiKTeX version 2.9 is nearly 5 years old (Oct 2010), whereas TeX Live 2015 has been published this month. No problem, MiKTeX is stable and maintained, just a remark, if you consider a re-installation in case it still doesn't work anyway.

Stefan

Johannes_B
Site Moderator
Posts: 3795
Joined: Thu Nov 01, 2012 4:08 pm
Please load package lmodern after `\documentclass{article}`.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

dragonspirit
Posts: 3
Joined: Sat Jun 27, 2015 6:12 pm
Can I re-install MikTex without unistall Texstudio? Or have I to unistall everything?

Johannes_B
Site Moderator
Posts: 3795
Joined: Thu Nov 01, 2012 4:08 pm
Before making drastic changes to your system, i would check out if loading package lmodern suffices to take care of the problem.
If not, get your MikTeX package manager and install package cm-super.

If the behaviour still persists, reinstall MikTeX. The complete version is several Gigabytes large, TeXstudio a few Megabytes. Be sure and reinstall both.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

Stefan Kottwitz
Posts: 8954
Joined: Mon Mar 10, 2008 9:44 pm
I agree with Johannes. The problem here is, according to the error message, with the `ecrm` font. The long name of this font is `European Computer Modern Roman Medium`. Installing `cm-super` could fix it, as this is an extended version of the (default) Computer Modern font. No change in the document necessary. However, changing to `lmodern` instead is the smallest step, and this is intended as a high quality replacement of the Computer Modern, so very similar. I use it very often. You could simply insert into the preamble

`\usepackage{lmodern}`

If you would not like it, remove the line then.

Stefan