CTAN masthead graphic CTAN lion sketch

Directory: CTAN home / tex-archive/ support/ C++2LaTeX-1_1pl1

Subdirectories of this one

There are no subdirectories here.

Files in this directory

NameDateSize Description
COPYING 1995-08-21 9 Kbyte download
ChangeLog 1995-09-02 1 Kbyte download
Makefile 1995-08-21 575 bytes download
README 1995-08-21 2 Kbyte download Shown below
c++2latex 1995-09-02 59 Kbyte download
c++2latex.1 1995-08-21 3 Kbyte download
c++2latex.c 1995-09-02 68 Kbyte download
c++2latex.c.rebuild 1995-08-21 59 Kbyte download
c++2latex.l 1995-09-02 10 Kbyte download
c++2latex.o 1995-09-02 47 Kbyte download
flex-patch 1995-08-21 607 bytes download
getopt.aux 1995-09-02 8 bytes download
getopt.c 1995-08-21 15 Kbyte download
getopt.dvi 1995-09-02 24 Kbyte download
getopt.h 1995-08-21 3 Kbyte download
getopt.log 1995-09-02 4 Kbyte download
getopt.o 1995-08-21 9 Kbyte download
getopt.tex 1995-09-02 31 Kbyte download
getopt1.c 1995-08-21 3 Kbyte download
getopt1.o 1995-08-21 2 Kbyte download
version.c 1995-09-02 62 bytes download
version.o 1995-08-21 1 Kbyte download

Contents of the README file

This is the README for C++2LaTeX Version 1.1 Patchlevel 0.

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


Small print: This listing is regenerated periodically so there is a small chance that the directory has changed from what is shown here; to be sure, check the FTP listing.