Re: listings e ClassicThesis

#34083
Antonio Ledda
Partecipante
    Up
    0
    Down
    ::

    Salve a tutti,

    sto scrivendo la tesi di laurea in Latex utilizzando lo stile classicthesis. Uso miktex e TeXnicCenter e necessito di inserire del codice Matlab.

    Mi da un errore che presento dopo. Mi chiedevo se vi potessero essere delle incompatibilità tra classicthesis e listings.

    Ho prodotto un codice minimale che contiene l’errore:

    `
    \documentclass{scrreprt}
    \usepackage{classicthesis-ldpkg}
    \usepackage[eulerchapternumbers,subfig,beramono,eulermath,pdfspacing,parts]{classicthesis}
    \usepackage{listings}
    \lstset{language=Matlab}

    \begin{document}
    ciao come stai?

    \begin{lstlisting}
    [signals, pc, v] = pca2(data);
    \end{lstlisting}

    \end{document}
    `

    l’errore che viene fuori è il seguente:

    `
    LaTeX Font Info: Try loading font information for T1+fvm on input line 10.

    (“C:\Program Files\MiKTeX 2.7\tex\latex\bera\t1fvm.fd”
    File: t1fvm.fd 2004/09/07 scalable font definitions for T1/fvm.
    )
    LaTeX Font Info: Font shape `T1/fvm/m/n' will be
    (Font) scaled to size 8.50006pt on input line 10.
    [1

    {C:/ProgramData/MiKTeX/2.7/pdftex/config/pdftex.map}] (listato.aux) )
    Here is how much of TeX's memory you used:
    11637 strings out of 95321
    171593 string characters out of 1183901
    341484 words of memory out of 1500000
    14671 multiletter control sequences out of 110000
    10809 words of font info for 24 fonts, out of 1200000 for 2000
    14 hyphenation exceptions out of 8191
    54i,7n,73p,396b,1493s stack positions out of 5000i,500n,10000p,200000b,5000s
    {C:/Progra
    m Files/MiKTeX 2.7/fonts/enc/dvips/8r.enc}
    !pdfTeX error: (file fvmr8r): Font fvmr8r at 510 not found
    ==> Fatal error occurred, no output PDF file produced!
    `

    Sulla console di TeXnicCenter compaiono anche altre indicazioni:
    `
    Trying to make PK font fvmr8r at 510 DPI…
    Running makemf…
    makemf: The fvmr8r source file could not be found.
    Running ttf2pk…
    makepk: PK font fvmr8r could not be created.
    `

    Ho notato che mi da un errore molto simile se carico soltanto classicThesis e cerco di inserire del testo formattato come typewriter con \texttt{} (senza listing ovviamente).

    Vi ringrazio anticipatamente.

    Cloud

    A me dà solo un warning relativo a natbib: mi avvisa che non è stato caricato.

    Per il resto, funziona (uso MiKTeX 2.7 e TeXnicCenter anche io).

    Sembra un problema relativo ai font.

    💡 Meglio aspettare gli esperti. 😉

    Ciao,
    Antonio

    Modifica

    `!pdfTeX error: (file fvmr8r): Font fvmr8r at 510 not found`

    Pare abbia a che fare coi font Bera (Mono?); forse li devi installare.

    Go to top