From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,960147d582f71ae6 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-06-04 12:00:05 PST Message-ID: <3EDE41A1.7578080D@somewhere.nil> Date: Wed, 04 Jun 2003 20:59:45 +0200 From: Gautier Write-only X-Mailer: Mozilla 4.8 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Ada2latex Converter available? References: <3EDDDFBA.644E991@konad.de> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 80.218.89.178 X-Trace: news.swissonline.ch 1054753203 80.218.89.178 (4 Jun 2003 21:00:03 +0200) X-Complaints-To: abuse@swissonline.ch Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!elnk-nf2-pas!newsfeed.earthlink.net!in.100proofnews.com!in.100proofnews.com!nntp.infostrada.it!news.mailgate.org!news-zh.switch.ch!news.swissonline.ch!not-for-mail Xref: archiver1.google.com comp.lang.ada:38636 Date: 2003-06-04T20:59:45+02:00 List-Id: Frank Piron: > is there a free Ada2latex - Converter available like Ada2html? You mean for "pretty-printing" or really convert your Ada program in TeX code ? For the first purpose you don't need a converter, there is listings.sty whose \lstinputlisting command reads your sources and includes it with a nice formatting. There is also an escape character you can define for putting LaTeX parts among your Ada comments (formulas, \cite, \ref, hyperlinks,...). All you need is (after downloading listings at CTAN): \usepackage{listings} \lstloadlanguages{Ada} \lstset{language=Ada} % Example: \def\adalist#1{ {\sf % Standard TeX Helvetica {\footnotesize \lstinputlisting[stringspaces=false, commentstyle=\sl, % escapechar=`, mathescape=true]{#1} } } } ... \adalist{source.ads} \adalist{source.adb} ... Example of "escape"-ism in the Ada code: if eq=trans then -- Modification de la fonction-test de base $\psi_i$ case meth_trans is when Streamline => -- `formule (\ref{psistreamline})` psi_i_corr:= psi(i) + delt1 * stream_psi(i); HTH ________________________________________________________ Gautier -- http://www.mysunrise.ch/users/gdm/gsoft.htm NB: For a direct answer, e-mail address on the Web site!