Frecce problematiche [Risolto]

  • Creatore
    Topic
  • #40169
    Up
    0
    Down
    ::


    Perche’ questo codice`{\tt main()} \textrightarrow{} {\tt processBand()} \textrightarrow{} {\tt extractImage()}`mi restituisce il seguente errore?`Underfull \hbox (badness 10000) in paragraph at lines 52–54

    ! Undefined control sequence.
    l.55 main() \textrightarrow
    {} processBand()
    ? Error: PDF file is damaged – attempting to reconstruct xref table…
    Error: Couldn't find trailer dictionary
    Error: Couldn't read xref table
    Error: PDF file is damaged – attempting to reconstruct xref table…
    Error: Couldn't find trailer dictionary
    Error: Couldn't read xref table`

Visualizzazione 2 filoni di risposte
  • Autore
    Risposte
    • #40170
      robitex
      Amministratore del forum
        Up
        0
        Down
        ::

        Perche’ questo codice`{\tt main()} \textrightarrow{} {\tt processBand()} \textrightarrow{} {\tt extractImage()}`mi restituisce il seguente errore?`Underfull \hbox (badness 10000) in paragraph at lines 52–54

        ! Undefined control sequence.
        l.55 main() \textrightarrow
        {} processBand()
        ? Error: PDF file is damaged – attempting to reconstruct xref table…
        Error: Couldn't find trailer dictionary
        Error: Couldn't read xref table
        Error: PDF file is damaged – attempting to reconstruct xref table…
        Error: Couldn't find trailer dictionary
        Error: Couldn't read xref table`

        Caricando il pacchetto textcomp a me risulta tutto funzionante anche se cercherei una soluzione per scrivere più comodamente il tutto:`\documentclass{article}
        \usepackage{textcomp}
        \begin{document}
        {\tt main()} \textrightarrow{} {\tt processBand()} \textrightarrow{} {\tt extractImage()}
        \end{document}`

        Prova ad eliminare tutti i file ausiliari ed a ricompilare.
        Bye

      • #40171
        Up
        0
        Down
        ::

        Perche’ questo codice`{\tt main()} \textrightarrow{} {\tt processBand()} \textrightarrow{} {\tt extractImage()}`mi restituisce il seguente errore?`Underfull \hbox (badness 10000) in paragraph at lines 52–54

        ! Undefined control sequence.
        l.55 main() \textrightarrow
        {} processBand()
        ? Error: PDF file is damaged – attempting to reconstruct xref table…
        Error: Couldn't find trailer dictionary
        Error: Couldn't read xref table
        Error: PDF file is damaged – attempting to reconstruct xref table…
        Error: Couldn't find trailer dictionary
        Error: Couldn't read xref table`

        Forse perché non carichi il pacchetto textcomp, l’unico che definisca \textrightarrow, che io sappia.

        Il comando \tt è deprecato; meglio scrivere \texttt{main()} e similmente per gli altri. Meglio ancora, usa un comando definito nel preambolo:
        `\newcommand{\codeword}{\texttt}`
        e scrivi \codeword{main()}. Potrai così modificare l’aspetto di tutte quelle parti di testo cambiando solo la definizione \codeword.

        Ciao
        Enrico

      • #40172
        Up
        0
        Down
        ::


        Ok, problema risolto inserendo \usepackage{textcomp}.
        Grazie anche per la dritta su \tt, non sapevo fosse deprecato…ho fatto un nuovo comando, rinominando \texttt come mi hai suggerito.

    Visualizzazione 2 filoni di risposte
    • Devi essere connesso per rispondere a questo topic.

    Go to top