Re: Modificare allineamenti: errore?

#42651
Up
0
Down
::


Ti ringrazio.

Ho provato ad inserire nel preambolo, ma questo è il risultato del log…7 errori:

    ! Undefined control sequence.
    \maketitlenamewidth

    l.2 …length{\maketitlenamewidth}{.425\textwidth}

    The control sequence at the end of the top line
    of your error message was never \def’ed. If you have
    misspelled it (e.g., `\hobx’), type `I’ and the correct
    spelling (e.g., `I\hbox’). Otherwise just continue,
    and I’ll forget about whatever was undefined.

    ! LaTeX Error: Missing \begin{document}.

    See the LaTeX manual or LaTeX Companion for explanation.
    Type H for immediate help.

    l.2 …length{\maketitlenamewidth}{.425\textwidth}

    You’re in trouble here. Try typing to proceed.
    If that doesn’t work, type X
    to quit.

    ! Missing number, treated as zero.

    \relax
    l.2 …length{\maketitlenamewidth}{.425\textwidth}

    A number should have been here; I inserted `0′.
    (If you can’t figure out why I needed to see a number,
    look up `weird error’ in the index to The TeXbook.)

    ! Illegal unit of measure (pt inserted).

    \relax
    l.2 …length{\maketitlenamewidth}{.425\textwidth}

    Dimensions can be in units of em, ex, in, pt, pc,
    cm, mm, dd, cc, nd, nc, bp, or sp; but yours is a new one!
    I’ll assume that you meant to say pt, for printer’s points.
    To recover gracefully from this error, it’s best to
    delete the erroneous units; e.g., type `2′ to delete
    two letters. (See Chapter 27 of The TeXbook.)

    ! Undefined control sequence.
    \maketitledetailswidth

    l.3 …gth{\maketitledetailswidth}{.325\textwidth}

    The control sequence at the end of the top line
    of your error message was never \def’ed. If you have
    misspelled it (e.g., `\hobx’), type `I’ and the correct
    spelling (e.g., `I\hbox’). Otherwise just continue,
    and I’ll forget about whatever was undefined.

    ! Missing number, treated as zero.

    \relax
    l.3 …gth{\maketitledetailswidth}{.325\textwidth}

    A number should have been here; I inserted `0′.
    (If you can’t figure out why I needed to see a number,
    look up `weird error’ in the index to The TeXbook.)

    ! Illegal unit of measure (pt inserted).

    \relax
    l.3 …gth{\maketitledetailswidth}{.325\textwidth}

Questo è il mio preambolo:
`
\documentclass[10pt,a4paper]{moderncv}
\setlength{\maketitlenamewidth}{.425\textwidth}
\setlength{\maketitledetailswidth}{.325\textwidth}
\moderncvtheme[blue]{classic}

%\setlength{\maketitlenamewidth}{.425\textwidth}
%\setlength{\maketitledetailswidth}{.325\textwidth}

\usepackage[italian]{babel}

\usepackage[latin1]{inputenc} % imposta la codifica di input;

\usepackage[T1]{fontenc} % la codifica dei font

\usepackage{lmodern}

\usepackage{textcomp}

\usepackage{microtype}

\usepackage[scale=0.8]{geometry}
\AtBeginDocument{\recomputelengths} % required when changes are made to page layout lengths

\title{Curriculum Vit\ae}
\firstname{\textsc{Nome}}
\familyname{\textsc{Cognome}}
\address{\textbf{Indirizzo:} ***}{***}
\mobile{***}
\phone{***}
\email{\mbox{***}}
\extrainfo{\textbf{Nationalità:} Italiana}
\extrainfo{\textbf{Luogo di nascita:} ***}
\extrainfo{\textbf{Data di nascita:} ***}
\photo[64pt]{picture}
\quote{
\begin{center}
\scriptsize{DICHIARO}
\end{center}
\scriptsize{di aver preso visione dell'informativa attinente la raccolta e il trattamento dei dati personali ai sensi del Decreto Legislativo 30 giugno 2003, n. 196 – “Codice in materia di protezione dei dati personali'' e autorizzo l'impiego degli stessi secondo gli usi consentiti dalla legge.}}

%\nopagenumbers{} % uncomment to suppress automatic page numbering for CVs longer than one page

\begin{document}
\maketitle

`

Tra l’altro delle tre:
`
\extrainfo{\textbf{Nationalità:} Italiana}
\extrainfo{\textbf{Luogo di nascita:} ***}
\extrainfo{\textbf{Data di nascita:} ***}
`

me ne fa inserire solo una, come mai?

Ancora grazie per il prezioso aiuto.

Go to top