#include "scalar.hh"
/// parameter substitution in TeXstrings
-String
-substitute_args(String source, Array<String> args);
/**
- this structure provides a simple macro mechanism:
+ this function provides a simple macro mechanism:
if source == "tex%bla%", then
- eval({"X","Y"}) == "texXblaY"
+ substitute_args(source, {"X","Y"}) == "texXblaY"
*/
+String
+substitute_args(String source, Array<String> args);
/// parameter substitution in TeXstrings
String
#include "string.hh"
/// TeX output
+/**
+ 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.
+ */
struct Tex_stream {
bool outputting_comment;
ostream *os;
private:
Tex_stream(Tex_stream const&);
};
-/**
- 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