- Questo topic ha 1 risposta, 2 partecipanti ed è stato aggiornato l'ultima volta 8 anni, 9 mesi fa da .
-
Topic
-
Buongiorno a tutti,
anche se è da un bel po’ che non mi faccio più viva sul forum, non ho smesso di usate LaTex!
Ho però qualche problema tentando di ricompilare un file che avevo creato un po’ di tempo fa.Si tratta di una rielaborazione del template per curriculum vitae messo a disposizione da Carmine Spagnuolo: https://github.com/spagnuolocarmine/TwentySecondsCurriculumVitae-LaTex
Quando l’avevo modificato (a parte i miei dati personali, i colori e qualche altro elemento) avevo inserito una seconda pagina con una seconda sidebar.
Per avere qualche informazione aggiuntiva sui cambiamenti apportati, si può vedere qui.
La compilazione andava a buon fine e avevo un ottimo cv.
Ora, invece, quando ritento la compilazione con PdfLaTex ottengo diversi errori, tra cui:
`! Missing number, treated as zero.
p
l.105 \makeprofileA 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.)! Undefined control sequence.
-\imagescale l.105 \makeprofile
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.`Sul TeXbook, a pagina 298, per “weird error” leggo:
Computers aren’t clairvoyant, and TEX can only explain what looks wrong from its own viewpoint; such an explanation
is bound to be mysterious unless you can understand the machine’s attitude.
The solution to this problem is, of course, to seek human counsel and advicequindi mi rivolgo a voi!!
Allora, benché sia un po’ difficile, ho provato a fare un esempio non proprio minimale, ma almeno ridotto rispetto all’originale.
Ecco qui:
` \documentclass{article}\RequirePackage[sfdefault]{ClearSans}
\RequirePackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\RequirePackage{tikz}
\RequirePackage{xcolor}
\RequirePackage[absolute,overlay]{textpos}
\RequirePackage{ragged2e}
\RequirePackage{etoolbox}
\RequirePackage{ifmtarg}
\RequirePackage{ifthen}
\RequirePackage{pgffor}
\RequirePackage{marvosym}
\RequirePackage{parskip}
\usepackage{fourier}\usepackage{tikz}
\definecolor{mainblue}{HTML}{0E5484}
\definecolor{maingray}{HTML}{B9B9B9}
\definecolor{white}{RGB}{255,255,255}
\definecolor{gray}{HTML}{4D4D4D}
\definecolor{sidecolor}{HTML}{E7E7E7}\newcommand{\cvdate}[1]{\renewcommand{\cvdate}{#1}}
\newcommand{\cvmail}[1]{\renewcommand{\cvmail}{#1}}
\newcommand{\cvnumberphone}[1]{\renewcommand{\cvnumberphone}{#1}}
\newcommand{\cvnumbercell}[1]{\renewcommand{\cvnumbercell}{#1}}
\newcommand{\cvaddress}[1]{\renewcommand{\cvaddress}{#1}}
\newcommand{\cvsite}[1]{\renewcommand{\cvsite}{#1}}
\newcommand{\aboutme}[1]{\renewcommand{\aboutme}{#1}}
\newcommand{\profilepic}[1]{\renewcommand{\profilepic}{#1}}
\newcommand{\cvname}[1]{\renewcommand{\cvname}{#1}}
\newcommand{\cvjobtitle}[1]{\renewcommand{\cvjobtitle}{#1}}
\newcommand{\grafico}[1]{\renewcommand{\grafico}{#1}}
\newcommand{\supporti}[1]{\renewcommand{\supporti}{#1}}
\newcommand{\settori}[1]{\renewcommand{\settori}{#1}}
\newcommand{\testo}[1]{\renewcommand{\testo}{#1}}\newcommand{\makeprofile}{
\begin{tikzpicture}[remember picture,overlay]
\node [rectangle, fill=sidecolor, anchor=north, minimum width=9cm, minimum height=\paperheight+1cm] (box) at (-5cm,0.5cm){};
\end{tikzpicture}%————————————————
\begin{textblock}{6}(0.5, 0.2)
%————————————————
\begin{center}
\begin{tikzpicture}[x=\imagescale,y=-\imagescale]
\clip (600/2, 567/2) circle (567/2);
\node[anchor=north west, inner sep=0pt, outer sep=0pt] at (0,0) {\includegraphics[width=\imagewidth]{\profilepic}};
\end{tikzpicture}
\end{center}%————————————————
{\Huge\color{mainblue}\cvname}
%————————————————
{\Large\color{black!80}\cvjobtitle}
%————————————————
\renewcommand{\arraystretch}{1.6}
\begin{tabular}{p{0.5cm} @{\hskip 0.5cm}p{5cm}}
\ifthenelse{\equal{\cvdate}{}}{}{\textsc{\Large\icon{\Info}} & \cvdate\\}
\ifthenelse{\equal{\cvaddress}{}}{}{\textsc{\Large\icon{\Letter}} & \cvaddress\\}
\ifthenelse{\equal{\cvnumberphone}{}}{}{\textsc{\Large\icon{\Telefon}} & \cvnumberphone\\}
\ifthenelse{\equal{\cvnumbercell}{}}{}{\textsc{\Large\icon{\Mobilefone}} & \cvnumbercell\\}
\ifthenelse{\equal{\cvsite}{}}{}{\textsc{\Large\icon{\Mundus}} & \cvsite\\}
\ifthenelse{\equal{\cvmail}{}}{}{\textsc{\large\icon{@}} & \href{mailto:\cvmail}{\cvmail}}
\end{tabular}%————————————————
\profilesection{Su di me}{2.2cm}
%\begin{flushleft}
\aboutme
%\end{flushleft}%————————————————
\profilesection{Lingue}{3.6cm}
\skills
\skillstext
\scriptsize
{\footnotesize
{}\\ Secondo il Quadro Europeo Comune di Riferimento per le lingue: da A1 a C2
}\\ {} \\
{ \Checkedbox \footnotesize Autorizzo il trattamento dei dati personali contenuti nel mio curriculum vitae in base art. 13 del D. Lgs. 196/2003.}
%————————————————\end{textblock}
}
\begin{document}
\makeprofile
\end{document}
`Non so se questi elementi vi bastino (per aggiungerne altri, uso TeXLIve2017 e TeXStudio, ma dubito che influisca perché ottengo lo stesso errore con una compilazione online su ShareLatex), ma resto completamente a disposizione per aggiungerne altri, dovessero servire.
In ogni caso, vi ringrazio anticipatamente per il supporto!
- Devi essere connesso per rispondere a questo topic.