This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013/Debian) (format=pdflatex 2014.7.25) 23 JUN 2015 12:28 entering extended mode restricted \write18 enabled. %&-line parsing enabled. **hal_latex_prefs.tex (./hal_latex_prefs.tex LaTeX2e <2011/06/27> Babel <3.9h> and hyphenation patterns for 3 languages loaded. ! LaTeX Error: \usepackage before \documentclass. See the LaTeX manual or LaTeX Companion for explanation. Type H for immediate help. ... l.3 \usepackage{ graphicx} \usepackage may only appear in the document preamble, i.e., between \documentclass and \begin{document}. ! LaTeX Error: \usepackage before \documentclass. See the LaTeX manual or LaTeX Companion for explanation. Type H for immediate help. ... l.4 \usepackage{ amsmath} \usepackage may only appear in the document preamble, i.e., between \documentclass and \begin{document}. ! LaTeX Error: \usepackage before \documentclass. See the LaTeX manual or LaTeX Companion for explanation. Type H for immediate help. ... l.10 \usepackage[italian]{ babel} \usepackage may only appear in the document preamble, i.e., between \documentclass and \begin{document}. ! LaTeX Error: \usepackage before \documentclass. See the LaTeX manual or LaTeX Companion for explanation. Type H for immediate help. ... l.11 \usepackage{ graphicx,psfrag,color,pst-grad} \usepackage may only appear in the document preamble, i.e., between \documentclass and \begin{document}. ! LaTeX Error: \usepackage before \documentclass. See the LaTeX manual or LaTeX Companion for explanation. Type H for immediate help. ... l.12 \usepackage{ latexsym} \usepackage may only appear in the document preamble, i.e., between \documentclass and \begin{document}. ! LaTeX Error: \usepackage before \documentclass. See the LaTeX manual or LaTeX Companion for explanation. Type H for immediate help. ... l.13 \usepackage{ psboxit,pstricks} \usepackage may only appear in the document preamble, i.e., between \documentclass and \begin{document}. ! LaTeX Error: \usepackage before \documentclass. See the LaTeX manual or LaTeX Companion for explanation. Type H for immediate help. ... l.14 \usepackage{ fancyhdr} \usepackage may only appear in the document preamble, i.e., between \documentclass and \begin{document}. ! LaTeX Error: \usepackage before \documentclass. See the LaTeX manual or LaTeX Companion for explanation. Type H for immediate help. ... l.15 \usepackage{ fancyvrb} \usepackage may only appear in the document preamble, i.e., between \documentclass and \begin{document}. ! LaTeX Error: \usepackage before \documentclass. See the LaTeX manual or LaTeX Companion for explanation. Type H for immediate help. ... l.17 \usepackage{ float} \usepackage may only appear in the document preamble, i.e., between \documentclass and \begin{document}. ! Undefined control sequence. l.18 \floatstyle {ruled} 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.18 \floatstyle{r uled} You're in trouble here. Try typing to proceed. If that doesn't work, type X to quit. Missing character: There is no r in font nullfont! Missing character: There is no u in font nullfont! Missing character: There is no l in font nullfont! Missing character: There is no e in font nullfont! Missing character: There is no d in font nullfont! ! Undefined control sequence. l.19 \newfloat {program}{thp}{lop} 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 character: There is no p in font nullfont! Missing character: There is no r in font nullfont! Missing character: There is no o in font nullfont! Missing character: There is no g in font nullfont! Missing character: There is no r in font nullfont! Missing character: There is no a in font nullfont! Missing character: There is no m in font nullfont! Missing character: There is no t in font nullfont! Missing character: There is no h in font nullfont! Missing character: There is no p in font nullfont! Missing character: There is no l in font nullfont! Missing character: There is no o in font nullfont! Missing character: There is no p in font nullfont! ! Undefined control sequence. l.20 \floatname {program}{Codice} 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 character: There is no p in font nullfont! Missing character: There is no r in font nullfont! Missing character: There is no o in font nullfont! Missing character: There is no g in font nullfont! Missing character: There is no r in font nullfont! Missing character: There is no a in font nullfont! Missing character: There is no m in font nullfont! Missing character: There is no C in font nullfont! Missing character: There is no o in font nullfont! Missing character: There is no d in font nullfont! Missing character: There is no i in font nullfont! Missing character: There is no c in font nullfont! Missing character: There is no e in font nullfont! Overfull \hbox (20.0pt too wide) in paragraph at lines 18--23 [] [] ! LaTeX Error: \usepackage before \documentclass. See the LaTeX manual or LaTeX Companion for explanation. Type H for immediate help. ... l.24 \usepackage{ calc} \usepackage may only appear in the document preamble, i.e., between \documentclass and \begin{document}. ! LaTeX Error: \usepackage before \documentclass. See the LaTeX manual or LaTeX Companion for explanation. Type H for immediate help. ... l.25 \usepackage{ multicol} \usepackage may only appear in the document preamble, i.e., between \documentclass and \begin{document}. ! LaTeX Error: \usepackage before \documentclass. See the LaTeX manual or LaTeX Companion for explanation. Type H for immediate help. ... l.27 \usepackage{ listings} \usepackage may only appear in the document preamble, i.e., between \documentclass and \begin{document}. ! LaTeX Error: \usepackage before \documentclass. See the LaTeX manual or LaTeX Companion for explanation. Type H for immediate help. ... l.28 \usepackage{ color} \usepackage may only appear in the document preamble, i.e., between \documentclass and \begin{document}. ! LaTeX Error: \usepackage before \documentclass. See the LaTeX manual or LaTeX Companion for explanation. Type H for immediate help. ... l.29 \usepackage{ textcomp} \usepackage may only appear in the document preamble, i.e., between \documentclass and \begin{document}. ! LaTeX Error: \usepackage before \documentclass. See the LaTeX manual or LaTeX Companion for explanation. Type H for immediate help. ... l.90 \usepackage{ latexsym,amssymb,amsmath,amsfonts, amsthm} \usepackage may only appear in the document preamble, i.e., between \documentclass and \begin{document}. \c@Theorem=\count79 \c@Proposition=\count80 \c@Definition=\count81 \c@Corollary=\count82 ! Font \ciccio=cmbx14 scaled 2074 not loadable: Metric (TFM) file not found. \relax l.139 \font\ciccio=cmbx14 scaled \magstep4 I wasn't able to read the size data for this font, so I will ignore the font specification. [Wizards can fix TFM files using TFtoPL/PLtoTF.] You might try inserting a different font spec; e.g., type `I\font='. ) ! Emergency stop. <*> hal_latex_prefs.tex *** (job aborted, no legal \end found) Here is how much of TeX's memory you used: 77 strings out of 495017 679 string characters out of 6181021 45976 words of memory out of 5000000 3387 multiletter control sequences out of 15000+600000 4855 words of font info for 18 fonts, out of 8000000 for 9000 14 hyphenation exceptions out of 8191 9i,0n,11p,143b,16s stack positions out of 5000i,500n,10000p,200000b,80000s ! ==> Fatal error occurred, no output PDF file produced!