Text Formattingproblem with font size

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

problem with font size

Post by dragonspirit »

Hi, I have a problem with these packages:

Code: Select all

\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.

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Re: problem with font size

Post by Stefan Kottwitz »

Welcome to the forum!

Can you tell us the error message?

Stefan
LaTeX.org admin
dragonspirit
Posts: 3
Joined: Sat Jun 27, 2015 6:12 pm

problem with font size

Post by dragonspirit »

Code: Select all

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.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

problem with font size

Post by Stefan Kottwitz »

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
LaTeX.org admin
User avatar
Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

problem with font size

Post by Stefan Kottwitz »

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
LaTeX.org admin
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

problem with font size

Post by Johannes_B »

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

Re: problem with font size

Post by dragonspirit »

thank you for yours advices.
Can I re-install MikTex without unistall Texstudio? Or have I to unistall everything?
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

problem with font size

Post by Johannes_B »

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.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

problem with font size

Post by Stefan Kottwitz »

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

Code: Select all

\usepackage{lmodern}
If you would not like it, remove the line then.

Stefan
LaTeX.org admin
Post Reply