Re: Problema con \fontsize

#60796
Up
0
Down
::

Salve a tutti,
il seguente esempio:
`
\documentclass[12pt]{article}
\usepackage[T1]{fontenc}
\usepackage{mathptmx}
\usepackage{lipsum}

\title{
\fontsize{18}{24}\selecfont
\bfseries
On Some Trim Strategies for Nonlinear Aircraft Flight Dynamics Models}
\author{
Agostino De Marco\\[-2pt]
Department of Aerospace Engineering\\[-2pt]
Universit\`a degli Studi di Napoli “Federico II''
}
\date{}

\begin{document}
\maketitle

\lipsum[1-2]

\end{document}
`
fornisce il seguente messaggio d’errore:
`
This is pdfTeX, Version 3.1415926-1.40.11 (Web2C 2010)
restricted \write18 enabled.
entering extended mode
(./prova1.tex
LaTeX2e <2009/09/24>
Babel and hyphenation patterns for english, dumylang, nohyphenation, uk
english, usenglishmax, italian, loaded.
(c:/texlive/2010/texmf-dist/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(c:/texlive/2010/texmf-dist/tex/latex/base/size12.clo))
(c:/texlive/2010/texmf-dist/tex/latex/base/fontenc.sty
(c:/texlive/2010/texmf-dist/tex/latex/base/t1enc.def))
(c:/texlive/2010/texmf-dist/tex/latex/psnfss/mathptmx.sty)
(c:/texlive/2010/texmf-dist/tex/latex/lipsum/lipsum.sty) (./prova1.aux)
(c:/texlive/2010/texmf-dist/tex/latex/psnfss/t1ptm.fd)
! Undefined control sequence.
\@title -> \fontsize {18}{24}\selecfont
\bfseries On Some Trim Strategies fo…
l.18 \maketitle
`
Il comando \fontsize non viene riconosciuto? 😕

Ciao,
Agostino

A me sembra che sia il comando \selecfont a non essere riconosciuto. Prova con \selectfont .

Sam Qasbah

Go to top