[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [DOK] Java-kode og LaTeX



Jacob Bunk Nielsen skrev:

> Jeg har selv haft meget glæde af listings til at
> inkludere C-kode i mine rapporter.

Og det virker også fint med Ada:

\documentclass[a4paper,12pt]{article}
  \usepackage{listings}
  \lstloadlanguages{Ada}
  \lstset{language=Ada}
\begin{document}
  \section{Hej Verden}

  \begin{lstlisting}{Hej Verden}
    with Ada.Text_IO;

    procedure Hello is
       use Ada.Text_IO;
    begin
       Put_Line ("Hej Verden");
    end Hello;
  \end{lstlisting}
\end{document}

Det er formodentlig nok at erstatte "Ada" med "Java", for at
få korrekt syntaksfremhævning af Java-kode.

Jacob
-- 
"You've got to build bypasses!"



 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 18:57 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *