File ended while scanning use of \new@command

  • Creatore
    Topic
  • #5490
    Up
    0
    Down
    ::


    Ciao a tutti!

    Da un po’ di tempo a questa parte non riesco più a compilare file che fino a quale tempo fa non mi hanno mai dato problemi 🙁

    Innanzitutto uso Latex su Linux, per la precisione Kubuntu (derivata da Debian), con il programma Kile.

    Riporto il preambolo del file

    `\documentclass[12pt,a4paper,openany]{mwbk}
    \usepackage[T1]{fontenc}
    \usepackage[latin1]{inputenc}
    \usepackage[italian]{babel}
    \frenchspacing
    \usepackage{hyperref}
    \hypersetup{pdftitle={P S I},
    pdfauthor={Luca Di Gialleonardo},
    pdfsubject={Romanzo},
    colorlinks=true,
    linkcolor=blue,
    bookmarksopen=true}
    %\usepackage[active]{srcltx}

    \setcounter{tocdepth}{0}
    \addto\captionsitalian{\renewcommand{\partname}{Libro}}

    \usepackage{epigraph}
    \renewcommand{\textflush}{flushepinormal}
    \renewcommand{\epigraphsize}{\footnotesize}
    \addtolength{\epigraphwidth}{1.5in}

    \usepackage{fancyhdr}
    \pagestyle{fancy}

    \fancyhead{}
    \fancyhead[LE]{Luca Di Gialleonardo}
    \fancyhead[RE]{P~S~I}
    \fancyhead[LO]{\leftmark}
    \fancyhead[RO]{\rightmark}
    \cfoot{\thepage}

    \renewcommand{\chaptermark}[1]{\markboth{\chaptername\ \thechapter}{#1}}
    \renewcommand{\sectionmark}[1]{}{}

    \newcommand{\e}[1]{\emph{#1}} % Per creare del testo enfatizzato
    \newcommand{\spazio}{\bigskip \noindent}
    \newcommand{\è{\`E}

    \usepackage[rilegatura=1cm]{layaureo} % Disattiva cartella

    %%% Title Page
    \title{~$\Psi$\\
    \textsc{p~s~i}}
    \author{Luca Di Gialleonardo}
    \date{\small Romanzo}

    \begin{document}
    %%%%% Titolo
    \frontmatter
    \maketitle
    %%%%% Indice
    \tableofcontents
    \mainmatter
    %%%%% Prologo
    \include{00prologo}
    %%%%% PARTE I
    \part{Tramonti fittizi}
    %%%%% Capitolo 1
    \include{01reseigan}

    `

    e così via. Quando compilo ottengo i messaggi

    `This is e-TeX, Version 3.14159-2.1 (Web2C 7.4.5)
    entering extended mode
    (./psi.tex
    LaTeX2e <2001/06/01>
    Babel and hyphenation patterns for american, french, german, ngerman, b
    ahasa, basque, catalan, croatian, czech, danish, dutch, finnish, greek, iceland
    ic, irish, italian, latin, magyar, norsk, norsk, portuges, romanian, russian, s
    lovak, slovene, spanish, swedish, turkish, ukrainian, nohyphenation, loaded.
    (/usr/share/texmf/tex/latex/mwcls/mwbk.cls
    Document Class: mwbk 2003/01/30 v0.60 A LaTeX document class (MW)
    *** Beta version. Formatting may change
    *** in future versions of this class.
    (/usr/share/texmf/tex/latex/mwcls/mwbk12.clo))
    (/usr/share/texmf/tex/latex/base/fontenc.sty
    (/usr/share/texmf/tex/latex/base/t1enc.def))
    (/usr/share/texmf/tex/latex/base/inputenc.sty
    (/usr/share/texmf/tex/latex/base/latin1.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)))
    (/usr/share/texmf/tex/latex/hyperref/hyperref.sty
    (/usr/share/texmf/tex/latex/graphics/keyval.sty)
    (/usr/share/texmf/tex/latex/hyperref/pd1enc.def)
    (/usr/share/texmf/tex/latex/config/hyperref.cfg)
    Implicit mode ON; LaTeX internals redefined
    (/usr/share/texmf/tex/latex/misc/url.sty))
    *hyperref using default driver hdvips*
    (/usr/share/texmf/tex/latex/hyperref/hdvips.def
    (/usr/share/texmf/tex/latex/hyperref/pdfmark.def))
    (/usr/share/texmf/tex/latex/local/epigraph.sty)
    (/usr/share/texmf/tex/latex/fancyhdr/fancyhdr.sty))
    Runaway argument?
    {\^^e8{\`E} \addtolength {\headwidth }{1cm} \usepackage [rilegatura=1\ETC.
    ! File ended while scanning use of \new@command.

    \par
    <*> psi.tex

    ?
    `

    Già qui non so cosa rispondere. Se compilo usando il tasto apposito di Kile mi dà il messaggio di errore in oggetto del topic (che tra l’altro vedo anche tra le ultime righe dei messaggi che riporto.
    Su Google non ho trovato nulla e non so cosa pensare.
    Come dicevo, questi file non mi hanno mai dato problemi (con altre installazioni di Linux, però).
    Consigli? Grazie mille a tutti!

    Luca.

Visualizzazione 1 filone di risposte
  • Autore
    Risposte
    • #5491
      Up
      0
      Down
      ::

      Ciao a tutti!
      Da un po’ di tempo a questa parte non riesco più a compilare file che fino a quale tempo fa non mi hanno mai dato problemi 🙁
      Innanzitutto uso Latex su Linux, per la precisione Kubuntu (derivata da Debian), con il programma Kile.
      Riporto il preambolo del file`\documentclass[12pt,a4paper,openany]{mwbk}
      \usepackage[T1]{fontenc}
      \usepackage[latin1]{inputenc}
      \usepackage[italian]{babel}
      \frenchspacing
      \usepackage{hyperref}
      <...OMISSIS...>
      \newcommand{\è{\`E}
      <...OMISSIS...>`
      e così via. Quando compilo ottengo i messaggi`This is e-TeX, Version 3.14159-2.1 (Web2C 7.4.5)
      entering extended mode
      (./psi.tex
      LaTeX2e <2001/06/01>
      Babel and hyphenation patterns for american, french, german, ngerman, b
      ahasa, basque, catalan, croatian, czech, danish, dutch, finnish, greek, iceland
      ic, irish, italian, latin, magyar, norsk, norsk, portuges, romanian, russian, s
      lovak, slovene, spanish, swedish, turkish, ukrainian, nohyphenation, loaded.
      (/usr/share/texmf/tex/latex/mwcls/mwbk.cls
      Document Class: mwbk 2003/01/30 v0.60 A LaTeX document class (MW)
      *** Beta version. Formatting may change
      *** in future versions of this class.
      (/usr/share/texmf/tex/latex/mwcls/mwbk12.clo))
      (/usr/share/texmf/tex/latex/base/fontenc.sty
      (/usr/share/texmf/tex/latex/base/t1enc.def))
      (/usr/share/texmf/tex/latex/base/inputenc.sty
      (/usr/share/texmf/tex/latex/base/latin1.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)))
      (/usr/share/texmf/tex/latex/hyperref/hyperref.sty
      (/usr/share/texmf/tex/latex/graphics/keyval.sty)
      (/usr/share/texmf/tex/latex/hyperref/pd1enc.def)
      (/usr/share/texmf/tex/latex/config/hyperref.cfg)
      Implicit mode ON; LaTeX internals redefined
      (/usr/share/texmf/tex/latex/misc/url.sty))
      *hyperref using default driver hdvips*
      (/usr/share/texmf/tex/latex/hyperref/hdvips.def
      (/usr/share/texmf/tex/latex/hyperref/pdfmark.def))
      (/usr/share/texmf/tex/latex/local/epigraph.sty)
      (/usr/share/texmf/tex/latex/fancyhdr/fancyhdr.sty))
      Runaway argument?
      {\^^e8{\`E} \addtolength {\headwidth }{1cm} \usepackage [rilegatura=1\ETC.
      ! File ended while scanning use of \new@command.

      \par
      <*> psi.tex

      ?`Già qui non so cosa rispondere. Se compilo usando il tasto apposito di Kile mi dà il messaggio di errore in oggetto del topic (che tra l’altro vedo anche tra le ultime righe dei messaggi che riporto.
      Su Google non ho trovato nulla e non so cosa pensare.
      Come dicevo, questi file non mi hanno mai dato problemi (con altre installazioni di Linux, però).
      Consigli? Grazie mille a tutti!
      Luca.

      Hai provato a chiudere la graffa nella riga che ho lasciato indicata?
      Ciao
      Enrico

    • #5492
      Up
      0
      Down
      ::


      😯 e la graffa come diavolo è sparita da lì?

      Beh, immagino che debba ammettere una mia disattenzione 😳 , anche se sono certo di non aver mai modificato quel file (sarò sonnambulo?). Visto che l’errore è emerso dopo una installazione del sistema operativo immaginavo che mi mancasse qualche pacchetto.

      Grazie mille e scusate della banalità del problema! 🙄

      Ciao, Luca.

Visualizzazione 1 filone di risposte
  • Devi essere connesso per rispondere a questo topic.

Go to top