hkaufman@inf.ethz.ch (Helmut Ludwig Kaufmann) (01/15/91)
Does anybody know where to get a C++ to LaTeX converter. I have seen such a program, but I can't remember where. Thanks a lot Helmut Kaufmann
av@kielo.uta.fi (Arto V. Viitanen) (01/15/91)
>>>>> On 14 Jan 91 18:09:34 GMT, hkaufman@inf.ethz.ch (Helmut Ludwig Kaufmann) said:
Helmut> Does anybody know where to get a C++ to LaTeX converter.
Helmut> I have seen such a program, but I can't remember where.
Following information is from C++List Jean-Christophe Collet, aka "Jessie",
jcc@axis-design.fr :
----------------------------------------------------------------------
C++2LaTeX
Sort of 'pretty printer' for C and C++ that generates LaTeX source.
PD
It can be FTP'ed from tupac-amaru.informatik.rwth-aachen.de [192.35.229.9]
in file C++2LaTeX-1.1-PL3.tar.Z .
----------------------------------------------------------------------
Or, you can use tgrind, but it generates TeX code (there is some .sty for it,
but still...)
--
Arto V. Viitanen email: av@kielo.uta.fi
University Of Tampere, av@ohdake.cs.uta.fi
Finland
norbert@ikki.informatik.rwth-aachen.de (Norbert Kiesel) (01/15/91)
hkaufman@inf.ethz.ch (Helmut Ludwig Kaufmann) writes: >Does anybody know where to get a C++ to LaTeX converter. >I have seen such a program, but I can't remember where. You can use C++2LaTeX. Another release of C++2LaTeX called C++2LaTeX-1.1-PL4.tar.Z has found it's way to tupac-amaru.informatik.rwth-aachen.de [192.35.229.9]. FYI, I include the README -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= This is the README for C++2LaTeX Version 1.1 Patchlevel 4. See ChangeLog for a list of changes from Version 1.0. The program c++2latex converts ANSI-C/C++ programs into LaTeX source. It requires flex which can be found on various ftp sites, e.g. prep.ai.mit.edu. For those without flex and without the possibility to get one, I can email the flex'ed program. Contrary to the manual, flex (2.1-beta and 2.2-alpha) doesn't ignore lines starting with '#' in the definition section. Either patch your flex with the unofficial patch flex-patch or first type `make workaround'. This will strip the comment lines from c++2latex.l. There are three mutually exclusive compile options for c++2latex: C_PLUSPLUS generates a converter called c++2latex that expects C++ input. ANSI_C generates a converter called c2latex that expects ANSI-C input. USE_NAME generates a converter called c++2latex that expects C++ input if the program name (i.e. the name under which the converter is called) contains a '+', else it expects ANSI-C input. This saves disk-space as you can 'ln c++2latex c2latex' and get virtually the same result as with the two other options (which create two independent binaries). However, this is not the default option as changing the behavior (even only the default behavoir) of a program by reaming it might be confusing. Please note that these options only specify the default behavoir which can be overridden by the run-time options [-a,+ansi-c] and [-p,+c-plusplus]. The default option is C_PLUSPLUS. This can be changed by calling either ``make ANSI_C'' or make ``USE_NAME''. Simply calling ``make'' is the same as calling ``make C_PLUSPLUS''. The resulting program c{,++}2latex is standalone and uses no environment variables. It can be installed in your default location without any problems. Please notice that this program is under GNU Copyleft. have fun Norbert -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= >Thanks a lot >Helmut Kaufmann so long Norbert ******************************************************************************* * Norbert Kiesel Institut f. Informatik III NN NN KK KK * * RWTH Aachen Ahornstr. 55 NNN NN KK KK * * West Germany D-5100 Aachen NN N NN KK KK * * +49 241 80-7266 NN N NN KKKK * * NN N NN KKKK * * EUNET: norbert@rwthi3.uucp NN N NN KK KK * * USENET: ...!mcvax!unido!rwthi3!norbert NN N NN KK KK * * INTERNET: norbert@rwthi3.informatik.rwth-aachen.de NN NNN KK KK * ******************************************************************************* -- so long Norbert