1 #ifndef PAPER_STREAM_HH
2 #define PAPER_STREAM_HH
7 Baseclass for writing to a PostScript or TeX file.
8 It counts braces to prevent nesting errors, and
9 it will add a comment sign before each newline.
16 bool outputting_comment_b_;
19 /// to check linelen in output. TeX has limits.
22 /// open a file for writing
23 Paper_stream (String filename);
25 /// delegate conversion to scalar class
26 Paper_stream &operator << (String);
32 Paper_stream (Paper_stream const&);
37 #include <streambuf.h>
38 ostream *open_file_stream (String filename, int mode=ios::out);
39 void close_file_stream (ostream *os);
42 #endif // PAPER_STREAM_HH