Re: Ambiente per codice

#10037
lorenzo.pantieri
Partecipante
    Up
    0
    Down
    ::


    Ti consiglio fortemente di usare il pacchetto listings. Per esempio,
    `
    \documentclass{article}

    \usepackage{listings}

    \lstset{language=Pascal,
    basicstyle=\footnotesize\ttfamily}

    \begin{document}

    \begin{lstlisting}[float,caption=A floating example,frame=lines]
    for i:=maxint to 0 do
    begin
    { do nothing }
    end;
    Write(’Case insensitive ’);
    WritE(’Pascal keywords.’);
    \end{lstlisting}

    \end{document}
    `

    Puoi anche leggere qui.

    Ciao,
    L.

    Go to top