blob: 9474dd69a8d8413b00695efc046295aa39fac83b (
about) (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#ifndef TSTREAM__HH
#define TSTREAM__HH
#include <iostream.h>
#include "string.hh"
/// TeX output
struct Tex_stream {
bool outputting_comment;
ostream *os;
int nest_level;
/// open a file for writing
Tex_stream(String filename);
void header();
/// delegate conversion to string class.
Tex_stream &operator<<(String);
/// close the file
~Tex_stream();
};
/**
Use this class for writing to a TeX file.
It counts braces to prevent nesting errors, and
it will add a comment sign before each newline.
*/
#endif
|