C++2LATEX

Section: User Commands (1)
Updated: 27 Juni 1991
Index Return to Main Contents
 

NAME

c++2latex - a C++ to LaTeX converter  

SYNOPSIS

c++2latex [-a] [-b size] [-c] [-h] [-i length] [-n] [-o file] [-p] [-s fontsize] [-C font] [-H font] [-K font] [-P font] [-S font] [-T width] [-V] [+ansi-c] [+brace-tab size] [+complete-file] [+header] [+indentation length] [+output file] [+font-size size] [+pipe] [+comment-font font] [+keyword-font font] [+cpp-font font] [+header-font font] [+string-font font] [+tabstop width] [+version] file  

DESCRIPTION

c++2latex is a tool for generating LaTeX sources from ANSI-C or C++ programs. It recogizes all keywords, strings, and comments. These recognized parts can be typeset in different fonts. c++2latex can generate complete LaTeX files which can pass directly through latex(1) or parts of LaTeX files which can be included in other files (either direct or by the \\input or \\include commands).

The output filename is searched in various steps. First, if the {-o,+output} flag is given, the output is written to the file pointed to by the value of this flag. If the {-p,+pipe} option is given, the output is written to stdout. (It is an error to specify both options together.) If none of these options but an input filename is given, the output is written to a file who's name is the last component of the input filename with the added suffix '.tex'.  

OPTIONS

c++2latex recognizes the following options:
{-a,+ansi-c}
The input is an ANSI-C program. Default is C++, so don't give this option for C++ programs and always give this option for ANSI-C programs.
{-b,+brace-tab}
This changes the tabulator size of a comment belonging to a closing brace. Default is 4*indentation (see -i option).
{-c,+complete-file}
The output is enveloped in commands which produce a complete LaTeX source.
{-h,+header}
Each page of output has a header giving the input file name. This option implies the {-c,+complete-file} option.
{-i,+indentation} length
Gives the amount of indentation for each leading blank (tabs are converted to blanks). Default is `0.5em'.
{-n,+no-alignment}
Comments belonging to statements are aligned to the right paper side by default. You can turn off this behaviour using this switch.
{-o,+output} file
The output is written in the file pointed to by file.
{-s,+font-size} size
The LaTeX source is set in sizept. Default is `10'.
{-p,+pipe}
The output is written to stdout.
{-C,+comment-font} font
The comments are set in the given font. Default is `it'.
{-H,+header-font} font
The headers are set in the given font. Default is `sl'.
{-K,+keyword-font} font
The keywords are set in the given font. Default is `bf'.
{-P,+cpp-font} font
The preprocessor directives are set in the given font. Default is `tt'.
{-S,+string-font} font
The string and character constants are set in the given font. Default is `tt'.
{-T,+tabstop} width
The width of tabs is width. Default is `8'.
{-V,+version}
Prints the version number on stderr.
 

OPTION SUMMARY

To give no option at all is the same as to give the options
-i 0.5em -s 10 -C it -H sl -K bf -P tt -S tt -T 8
 

SEE ALSO

latex(1).  

DIAGNOSTICS

Can't use {-p,+pipe} and {-o,+output} together.
At most one of this options may be given.

Can't open `<file>' for reading
The program failed to open <file> for reading.

Can't open `<file>' for writing
The program failed to open <file> for writing. All output is written in the current directory if not explicitly changed by {-o,+output}.

Virtual memory exhausted
The program failed to allocate storage. As this is only done for the construction of filenames, this error will normally indicate a program error.
 

AUTHOR(S)

Original program by Norbert Kiesel.

Version 2.0 by Joerg Heitkoetter (heitkoet@gorbi.informatik.uni-dortmund.de).

 

BUGS

The program should be completly rewitten to understand language descriptions ala tgrind.


 

Index

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
OPTION SUMMARY
SEE ALSO
DIAGNOSTICS
AUTHOR(S)
BUGS

This document was created by man2html, using the manual pages.
Time: 17:37:46 GMT, December 06, 2024