Ehm scusate non avevo capito 🙂
Questo è il preambolo completo.
`
\documentclass[a4paper]{report}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[italian]{babel}
\usepackage[big]{layaureo}
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{pstricks}
\usepackage{babelbib}
\usepackage{verbatim}
\usepackage{listings}
\usepackage{xcolor,listings}
\lstset
{
basicstyle=\small\ttfamily,
breaklines,
numbers=left,
numberstyle=\tiny,
keywordstyle=\color{black}\bfseries,
commentstyle=\color{darkgray},
stringstyle=\color{black},
}
\graphicspath{{immagini/}}
\usepackage{fancyhdr}
\newcommand{\degree}{\ensuremath{^\circ}}
\renewcommand{\chaptermark}[1]{\markboth{\chaptername \ \thechapter.\ #1}{}}
\pagestyle{fancy}
\lhead{\nouppercase{\rightmark}}
\chead{}
\rhead{\thepage}
\lfoot{\textit{Nome Cognome}}
\cfoot{}
\rfoot{\textit{Matricola: ******}}
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0.4pt}
% \usepackage{hyperref}
% \hypersetup{colorlinks=true,linkcolor=blue}
`
Per inserire il codice ho usato il comando:
`
\lstinputlisting[language=C]{sorgenti_programma/TSOLAR.c}
`
Serve anche il codice sorgente del file *.c?
http://myfreefilehosting.com/f/eaccdb23da_0.02MB