comp.lang.ada
 help / color / mirror / Atom feed
* Re: Ada2latex Converter available?
  2003-06-04 12:02 Ada2latex Converter available? Frank Piron
@ 2003-06-04 11:28 ` Preben Randhol
  2003-06-06  9:53   ` Frank Piron
  2003-06-04 15:41 ` Mário Amado Alves
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 11+ messages in thread
From: Preben Randhol @ 2003-06-04 11:28 UTC (permalink / raw)


Frank Piron wrote:
> Hi,
> 
> is there a free Ada2latex - Converter available
> like Ada2html?

Look at highlight at => http://www.andre-simon.de/

-- 
Preben Randhol                    http://www.pvv.org/~randhol/



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Ada2latex Converter available?
@ 2003-06-04 12:02 Frank Piron
  2003-06-04 11:28 ` Preben Randhol
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Frank Piron @ 2003-06-04 12:02 UTC (permalink / raw)


Hi,

is there a free Ada2latex - Converter available
like Ada2html?

Greetings,
Frank Piron



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Ada2latex Converter available?
  2003-06-04 12:02 Ada2latex Converter available? Frank Piron
  2003-06-04 11:28 ` Preben Randhol
@ 2003-06-04 15:41 ` Mário Amado Alves
  2003-06-04 18:46 ` Luke A. Guest
  2003-06-04 18:59 ` Gautier Write-only
  3 siblings, 0 replies; 11+ messages in thread
From: Mário Amado Alves @ 2003-06-04 15:41 UTC (permalink / raw)


> is there a free Ada2latex - Converter available

Ben-Ari has one on his book Ada for Software Engineers, published by Wilew.
If there is a companion webpage, you're serviced :-)



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Ada2latex Converter available?
  2003-06-04 12:02 Ada2latex Converter available? Frank Piron
  2003-06-04 11:28 ` Preben Randhol
  2003-06-04 15:41 ` Mário Amado Alves
@ 2003-06-04 18:46 ` Luke A. Guest
  2003-06-06  9:25   ` Frank Piron
  2003-06-04 18:59 ` Gautier Write-only
  3 siblings, 1 reply; 11+ messages in thread
From: Luke A. Guest @ 2003-06-04 18:46 UTC (permalink / raw)


On Wed, 04 Jun 2003 13:02:02 +0100, Frank Piron wrote:

> Hi,
> 
> is there a free Ada2latex - Converter available
> like Ada2html?

You could just include the file into a verbatim environment, that would
work.

Luke.




^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Ada2latex Converter available?
  2003-06-04 12:02 Ada2latex Converter available? Frank Piron
                   ` (2 preceding siblings ...)
  2003-06-04 18:46 ` Luke A. Guest
@ 2003-06-04 18:59 ` Gautier Write-only
  2003-06-06  9:28   ` Frank Piron
  3 siblings, 1 reply; 11+ messages in thread
From: Gautier Write-only @ 2003-06-04 18:59 UTC (permalink / raw)


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!



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Ada2latex Converter available?
  2003-06-04 18:46 ` Luke A. Guest
@ 2003-06-06  9:25   ` Frank Piron
  0 siblings, 0 replies; 11+ messages in thread
From: Frank Piron @ 2003-06-06  9:25 UTC (permalink / raw)


"Luke A. Guest" schrieb:

> You could just include the file into a verbatim environment, that would
> work.

Ok, that's what i have done in the past, but it is not so 
beautiful.

Thanks and regards, Frank



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Ada2latex Converter available?
  2003-06-04 18:59 ` Gautier Write-only
@ 2003-06-06  9:28   ` Frank Piron
  0 siblings, 0 replies; 11+ messages in thread
From: Frank Piron @ 2003-06-06  9:28 UTC (permalink / raw)


Thank you much, i will try.

Greetings, Frank Piron



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Ada2latex Converter available?
  2003-06-04 11:28 ` Preben Randhol
@ 2003-06-06  9:53   ` Frank Piron
  2003-06-06 10:25     ` Preben Randhol
  0 siblings, 1 reply; 11+ messages in thread
From: Frank Piron @ 2003-06-06  9:53 UTC (permalink / raw)


Preben Randhol schrieb:

> Look at highlight at => http://www.andre-simon.de/

Great!

I changed the ada.lang - config-file, since the '
is configured as a string delimiter, which causes
problems with ada-attributes.

After that i copied ada.lang to new files adb.lang and 
ads.lang, to enable the filename-extensions (adb,ads) for
winhighlight.

Finally i translated the generated tex-file with latex-
pdf on windows (miktex-distribution). Very good result!

Thanks a lot,
Frank Piron



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Ada2latex Converter available?
  2003-06-06  9:53   ` Frank Piron
@ 2003-06-06 10:25     ` Preben Randhol
  2003-06-13 12:51       ` Frank Piron
  0 siblings, 1 reply; 11+ messages in thread
From: Preben Randhol @ 2003-06-06 10:25 UTC (permalink / raw)


Frank Piron wrote:
> Preben Randhol schrieb:
> 
>> Look at highlight at => http://www.andre-simon.de/
> 
> Great!
> 
> I changed the ada.lang - config-file, since the '
> is configured as a string delimiter, which causes
> problems with ada-attributes.
> 
> After that i copied ada.lang to new files adb.lang and 
> ads.lang, to enable the filename-extensions (adb,ads) for
> winhighlight.
> 
> Finally i translated the generated tex-file with latex-
> pdf on windows (miktex-distribution). Very good result!

Good! Please please send patches to the developer so that the program
gets corrected.

-- 
Preben Randhol                    http://www.pvv.org/~randhol/



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Ada2latex Converter available?
  2003-06-13 12:51       ` Frank Piron
@ 2003-06-13 12:44         ` Preben Randhol
  0 siblings, 0 replies; 11+ messages in thread
From: Preben Randhol @ 2003-06-13 12:44 UTC (permalink / raw)


Frank Piron skrev:
> Done,

Thanks!

-- 
Preben Randhol                    http://www.pvv.org/~randhol/



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Ada2latex Converter available?
  2003-06-06 10:25     ` Preben Randhol
@ 2003-06-13 12:51       ` Frank Piron
  2003-06-13 12:44         ` Preben Randhol
  0 siblings, 1 reply; 11+ messages in thread
From: Frank Piron @ 2003-06-13 12:51 UTC (permalink / raw)


Preben Randhol schrieb:

> Please please send patches to the developer so that the program
> gets corrected.

Done,
Frank



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2003-06-13 12:51 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-04 12:02 Ada2latex Converter available? Frank Piron
2003-06-04 11:28 ` Preben Randhol
2003-06-06  9:53   ` Frank Piron
2003-06-06 10:25     ` Preben Randhol
2003-06-13 12:51       ` Frank Piron
2003-06-13 12:44         ` Preben Randhol
2003-06-04 15:41 ` Mário Amado Alves
2003-06-04 18:46 ` Luke A. Guest
2003-06-06  9:25   ` Frank Piron
2003-06-04 18:59 ` Gautier Write-only
2003-06-06  9:28   ` Frank Piron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox