[LaTeX] Problema in compilazione
Daniele Masini
d.masini@tiscali.it
Mon May 3 10:27:51 CEST 2004
Recentemente ho provato a cambiare distribuzione, passando da RH 9 a Fedora Core
1. Il fatto è che precedentemente, la compilazione di un file LaTeX funzionva
senza alcun problema, mentre adesso lo stesso file mi visualizza i seguenti errori:
[daniele@Zeus ~/Book]$ pdflatex MyLinux
This is pdfTeX, Version 3.14159-1.10b (Web2C 7.4.5)
(./MyLinux.tex{/usr/share/texmf/pdftex/config/pdftex.cfg}
LaTeX2e <2001/06/01>
Babel <v3.7h> and hyphenation patterns for american, french, german, ngerman, n
ohyphenation, loaded.
(/usr/share/texmf/tex/latex/base/book.cls
Document Class: book 2001/04/21 v1.4e Standard LaTeX document class
(/usr/share/texmf/tex/latex/base/bk10.clo))
(/usr/share/texmf/tex/latex/base/inputenc.sty
(/usr/share/texmf/tex/latex/base/latin1.def))
(/usr/share/texmf/tex/latex/base/makeidx.sty)
(/usr/share/texmf/tex/latex/graphics/graphicx.sty
(/usr/share/texmf/tex/latex/graphics/keyval.sty)
(/usr/share/texmf/tex/latex/graphics/graphics.sty
(/usr/share/texmf/tex/latex/graphics/trig.sty)
(/usr/share/texmf/tex/latex/config/graphics.cfg)
(/usr/share/texmf/tex/latex/graphics/pdftex.def)))
(/usr/share/texmf/tex/generic/babel/babel.sty
(/usr/share/texmf/tex/generic/babel/italian.ldf
(/usr/share/texmf/tex/generic/babel/babel.def)
Package babel Warning: No hyphenation patterns were loaded for
(babel) the language `Italian'
(babel) I will use the patterns loaded for \language=0 instead.
)) (/usr/share/texmf/tex/latex/cite/cite.sty)
(/usr/share/texmf/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(/usr/share/texmf/tex/latex/amsmath/amstext.sty
(/usr/share/texmf/tex/latex/amsmath/amsgen.sty))
(/usr/share/texmf/tex/latex/amsmath/amsbsy.sty)
(/usr/share/texmf/tex/latex/amsmath/amsopn.sty))
(/usr/share/texmf/tex/latex/amsfonts/amsfonts.sty)
(/usr/share/texmf/tex/latex/caption/caption2.sty)
! LaTeX Error: File `listings.sty' not found.
Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)
Enter file name:
Il file MyLinux.tex contiene le righe seguenti:
% MyLinux.tex
% File principale che include tutti gli altri.
\documentclass[a4paper,10pt,twoside,italian,titlepage,openright]{book}
\usepackage[latin1]{inputenc}
\usepackage{makeidx}
\usepackage{graphicx}
\usepackage{babel}
\usepackage{cite}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage[hang,bf,footnotesize,it]{caption2}
\usepackage{listings}
\lstloadlanguages{C++}
\usepackage{color}
\usepackage{mdwlist}
\usepackage{boxedminipage}
\usepackage{multirow}
\newcommand{\includecodesnip}[1]{\lstinputlisting[stepnumber=0,frame=]{#1}}{}
\newcommand{\includestruct}[1]{\lstinputlisting[stepnumber=0]{#1}}{}
\newcommand{\includecodesample}[1]{\lstinputlisting{#1}}{}
\pagestyle{headings}
\setlength{\voffset}{-1.3cm}
\addtolength{\headsep}{.3cm}
\setlength{\hoffset}{-16pt}
\setlength{\textwidth}{380pt}
\setlength{\textheight}{24cm}
\setlength{\marginparsep}{10pt}
\addtolength{\evensidemargin}{-15pt}
\addtolength{\oddsidemargin}{15pt}
\setlength{\marginparwidth}{83pt}
\def\DocTitle{Informatica e GNU/Linux} % Document Title
\def\DocAuthor{Daniele Masini} % Document Author
\newcommand{\DocVersion}{\number\year.\number\month.\number\day}
\def\DocDate{\today} % Document Date
\def\StartDocDate{Ottobre 2002}
\def\PrefDate{Dicembre 2003} % Preface Date
\title{\huge{\textbf{\DocTitle}}\\~\\\normalsize{- \DocVersion{} -}} %
Title in bold
\author{\Large{\textsc{\DocAuthor}}} % Author in small capitals
\date{\small{\DocDate}} % Date inside '-'
\pagenumbering{arabic} % Page numbers in arabic format
\linespread{1} % Inter-line spacing
\def\DocKeywords{} % PDF Document Keywords
\def\DocSubject{Informatica e GNU/Linux} % PDF Document Subject
\def\DocCreator{\DocAuthor} % PDF Document Creator
\indquotes{}, \aE, ...
\def\ldquotes{``} % left double quotes
\def\rdquotes{''} % right double quotes
\def\lapostrophe{`} % left apostrophe
\newcommand{\laccent}[1]{\`#1} % left accented word
\newcommand{\raccent}[1]{\'#1} % right accented word
\newcommand{\insquotes}[1]{`#1'} % in single quotes word
\newcommand{\indquotes}[1]{\ldquotes{}#1\rdquotes{}} % in double quotes word
\def\aA{\laccent{A}}
\def\aE{\laccent{E}{}}
\def\aEr{\raccent{E}}
\def\aI{\laccent{I}}
\def\aO{\laccent{O}}
\def\aU{\laccent{U}}
\newcommand{\Upper}[1]{\MakeUppercase{#1}}
\newcommand{\Lower}[1]{\MakeLowercase{#1}}
\newcommand{\hexval}[1]{$\mathrm{#1}_{\mathrm{H}}$}
\newcommand{\mhexval}[1]{\mathrm{#1}_{\mathrm{H}}}
\newcommand{\userinput}[1]{\ttfamily\bfseries{#1}\normalfont\mdseries}
\newenvironment{incise}{\begin{quotation} \small}{\normalsize \end{quotation}}
\newcommand{\marginnote}[1]{\marginpar{\footnotesize{\textit{#1}}}}
\usepackage{ifthen}
\newcommand{\idx}[2][]{%
\ifthenelse{\equal{#1}{}}{%
\index{#2}%
}%
{%
\index{#1!#2}%
}%
}
\newcommand{\nterm}[2][]{%
\ifthenelse{\equal{#1}{}}{%
\index{#2}%
}%
{%
\index{#1!#2}%
}%
#2%
}
\newcommand{\ntermx}[3][]{%
\ifthenelse{\equal{#1}{}}{%
\index{#3@#2}%
}%
{%
\index{#1!#3@#2}%
}%
#3%
}
\newcommand{\term}[2][]{%
\ifthenelse{\equal{#1}{}}{%
\index{#2}%
}%
{%
\index{#1!#2}%
}%
\textbf{#2}%
}
\newcommand{\termx}[3][]{%
\ifthenelse{\equal{#1}{}}{%
\index{#3@#2}%
}%
{%
\index{#1!#3@#2}%
}%
\textbf{#3}%
}
\newcommand{\newterm}[2][]{%
\marginnote{#2}%
\ifthenelse{\equal{#1}{}}{%
\index{#2}%
}%
{%
\index{#1!#2}%
}%
\textbf{#2}%
}
\newcommand{\newtermx}[3][]{%
\marginnote{#3}%
\ifthenelse{\equal{#1}{}}{%
\index{#3@#2}%
}%
{%
\index{#1!#3@#2}%
}%
\textbf{#3}%
}
\newcommand{\newtermi}[2][]{%
\marginnote{#2}%
\textbf{#2}%
}
\newcommand{\textemph}[2][]{%
\ifthenelse{\equal{#1}{}}{%
\index{#2}%
}%
{%
\index{#1!#2}%
}%
\textsl{#2}%
}
\newcommand{\textemphx}[3][]{%
\ifthenelse{\equal{#1}{}}{%
\index{#3@#2}%
}%
{%
\index{#1!#3@#2}%
}%
\textsl{#3}%
}
\newcommand{\command}[2][]{%
\ifthenelse{\equal{#1}{}}{%
\index{#2@\texttt{#2}}%
}%
{%
\index{#1!#2@\texttt{#2}}%
}%
\texttt{#2}%
}
\newcommand{\cidx}[2][]{%
\ifthenelse{\equal{#1}{}}{%
\index{\texttt{#2}}%
}%
{%
\index{#1!\texttt{#2}}%
}%
}
\newcommand{\procname}[2][]{%
\ifthenelse{\equal{#1}{}}{%
\index{#2@\texttt{#2}}%
}%
{%
\index{#1!#2@\texttt{#2}}%
}%
\textsl{\texttt{#2}}%
}
\newcommand{\signame}[2][]{%
\ifthenelse{\equal{#1}{}}{%
\index{#2@\texttt{#2}\footnotesize{(segnale)}}%
}%
{%
\index{#1!#2@\texttt{#2}\footnotesize{(segnale)}}%
}%
\texttt{#2}%
}
\newcommand{\envname}[2][]{%
\ifthenelse{\equal{#1}{}}{%
\index{#2@\texttt{#2}\footnotesize{(var. d'ambiente)}}%
}%
{%
\index{#1!#2@\texttt{#2}\footnotesize{(var. d'ambiente)}}%
}%
\texttt{#2}%
}
\newcommand{\webref}[2][]{%
\ifthenelse{\equal{#1}{}}{%
\href{#2}%
}%
{%
\href{#1}%
}%
{#2}%
}
\newcommand{\website}[2][]{%
\ifthenelse{\equal{#1}{}}{%
\protect{\small\rm\texttt{\href{#2}{#2}}\normalsize}%
}%
{%
\protect{\small\rm\texttt{\href{#1}{#2}}\normalsize}%
}%
}
\newcommand{\swebsite}[2][]{%
\ifthenelse{\equal{#1}{}}{%
\protect{\footnotesize\rm\texttt{\href{#2}{#2}}\normalsize}%
}%
{%
\protect{\footnotesize\rm\texttt{\href{#1}{#2}}\normalsize}%
}%
}
\newcommand{\name}[1]{\textit{#1}}
\newcommand{\comment}[1]{\textit{#1}}
\newcommand{\compname}[1]{\textsf{#1}}
\newcommand{\code}[1]{\texttt{#1}}
\newcommand{\compoutput}[1]{\texttt{#1}}
\newcommand{\manpage}[1]{\texttt{#1}}
\newcommand{\proc}[1]{\textsl{\texttt{#1}}}
\newcommand{\filename}[1]{\protect{\rm\texttt{#1}}}
\newcommand{\fullchapref}[1]{capitolo~\ref{#1}}
\newcommand{\fullpartref}[1]{parte~\ref{#1}}
\newcommand{\fullfigref}[1]{figura~\ref{#1}}
\newcommand{\fullref}[1]{tabella~\ref{#1}}
\newcommand{\fullsectref}[1]{sezione~\ref{#1}}
\newcommand{\fullappref}[1]{appendice~\ref{#1}}
\newcommand{\partref}[1]{parte~\ref{#1}}
\newcommand{\chapref}[1]{cap.~\ref{#1}}
\newcommand{\figref}[1]{fig.~\ref{#1}}
\newcommand{\tabref}[1]{tab.~\ref{#1}}
\newcommand{\sectref}[1]{sez.~\ref{#1}}
\newcommand{\appref}[1]{app.~\ref{#1}}
\newcommand{\remark}[1]{\textsl{#1}}
\newcommand{\key}[1]{\protect{\rm\scriptsize{\framebox[1.2\width]{~\phantom{}\textsf{#1}~}}\normalsize}}
\newcommand{\skey}[1]{\protect{\rm\scriptsize{\framebox[1.2\width]{~\rm\tiny{\phantom{}\textsf{#1}}~}}\normalsize}}
\newcommand{\syntax}[1]{\texttt{#1}}
\newcommand{\ssyntax}[1]{\protect{\small\rm\syntax{#1}\normalsize}}
\newenvironment{cmd}{\small ~\\ \tt}{~\\ \normalsize}
\newenvironment{cmdnlf}{\small \tt}{\normalsize}
\newenvironment{syn}{\begin{quote}\small}{\normalsize\end{quote}}
\newcommand{\opt}[1]{\textit{\textsf{#1}}}
\newcommand{\sopt}[1]{\protect{\small\rm\opt{#1}\normalsize}}
\newcommand{\soopt}[1]{\protect{\textsf{[\small\rm\opt{#1}\normalsize]}}}
\newcommand{\soptopt}[1]{\textsf{[\syntax{#1}]}}
\newcommand{\optopt}[1]{\textsf{[\syntax{#1}]}}
\newcommand{\choice}[1]{\textsf{\{\syntax{#1}\}}}
\def\chor{\textsf{$|$}}
\newcommand{\oopt}[1]{\textsf{[\opt{#1}]}}
\newcommand{\synopt}[1]{\sopt{#1}}
\newcommand{\synoopt}[1]{\soopt{#1}}
\newcommand{\synoptopt}[1]{\soptopt{#1}}
\def\nline{\syntax{~\tiny{$\triangleright$}}\newline {\tiny{$\triangleright$}}~~}
\def\cursor{\rule[-.5mm]{1.8mm}{.3mm}}
\def\home{\protect{\char126}} % ~
\def\bs{\protect{\char92}} % \
\def\cap{\protect{\char94}} % ^
\def\at{\protect{\char64}} % @
\def\dq{\protect{\char34}} % "
\def\dol{\protect{\char36}} % $
\def\no{\protect{\char35}} % #
\def\perc{\protect{\char37}} % %
\def\amp{\protect{\char38}} % &
\def\lt{\protect{\char60}} % <
\def\gt{\protect{\char62}} % >
\def\lcb{\protect{\char123}} % {
\def\pipe{\protect{\char124}} % |
\def\rcb{\protect{\char125}} % }
\def\lsb{\protect{\char91}} % [
\def\rsb{\protect{\char93}} % ]
\def\us{\protect{\char95}} % _
\def\mmod{\,\mathrm{mod}\,}
\newenvironment{descr}[1]{\begin{basedescript}{\desclabelwidth{#1}\desclabelstyle{\nextlinelabel}}}{\end{basedescript}}
\newenvironment{descrm}[1]{\begin{basedescript}{\desclabelwidth{#1}\desclabelstyle{\multilinelabel}}}{\end{basedescript}}
\newcommand{\fig}[3]{
\begin{figure}[htb]
\begin{center}
\resizebox{0.95\textwidth}{!}{\includegraphics{#1}}
\caption{#2}
\label{#3}
\end{center}
\end{figure}
}
\newenvironment{tab}{\begin{table}[!htb]\begin{center}\footnotesize}{\end{center}\end{table}}
\newcommand{\tabhead}[1]{\hline #1 \\ \hline}
\def\sys{GNU/Li\-nux}
\def\todo{[\textcolor{red}{da completare ...}]}
\makeindex
\usepackage[bookmarks=true,pdfauthor={Daniele Masini},pdftitle={Informatica e
GNU/Linux},pdfsubject={Informatica e GNU/Linux},pdfkeywords={Informatica,
GNU/Linux},pdftex]{hyperref}
\begin{document} % Beginning of the Document
\pagenumbering{roman}
\maketitle
...
\end{document}
(spero che il copia e incolla non abbia creato qualche errore nel file :-))
Perché l'hyphenation in italiano non la trova?
Perché il file listings.sty non lo trova?
In quali directory dovrebbe stare?
Qualcuno sa aiutarmi?
Grazie mille.
Saluti,
Daniele
More information about the latex
mailing list