36 std::string
texify(std::string)
const;
55 virtual void dispatch(std::ostream&, Ex::iterator)
override;
63 void print_productlike(std::ostream&, Ex::iterator,
const std::string& inbetween);
79 void print_dots(std::ostream& str, Ex::iterator it);
80 void print_other(std::ostream& str, Ex::iterator it);
93 std::map<std::string, std::string>
symmap;
uint32_t kunichar
Definition: DisplayTeX.hh:9
std::string texify(std::string) const
Definition: DisplayTeX.cc:210
Basic storage class for symbolic mathemematical expressions.
Definition: Storage.hh:139
bool tight_star
Definition: DisplayTeX.hh:39
void print_children(std::ostream &, Ex::iterator, int skip=0)
Definition: DisplayTeX.cc:224
virtual bool needs_brackets(Ex::iterator it) override
Determine if a node needs extra brackets around it.
Definition: DisplayTeX.cc:29
virtual void dispatch(std::ostream &, Ex::iterator) override
For every object encountered, dispatch will figure out the most appropriate way to convert it into a ...
Definition: DisplayTeX.cc:358
void print_equalitylike(std::ostream &, Ex::iterator)
Definition: DisplayTeX.cc:611
void print_opening_bracket(std::ostream &, str_node::bracket_t, str_node::parent_rel_t)
Definition: DisplayTeX.cc:307
void print_closing_bracket(std::ostream &, str_node::bracket_t, str_node::parent_rel_t)
Definition: DisplayTeX.cc:323
void print_sumlike(std::ostream &, Ex::iterator)
Definition: DisplayTeX.cc:500
void print_indexbracket(std::ostream &, Ex::iterator)
Definition: DisplayTeX.cc:716
void print_intlike(std::ostream &, Ex::iterator)
Definition: DisplayTeX.cc:560
bool print_star
Definition: DisplayTeX.hh:38
Base class for all display classes.
Definition: DisplayBase.hh:18
void print_wedgeproduct(std::ostream &, Ex::iterator)
Definition: DisplayTeX.cc:397
void print_tableau(std::ostream &, Ex::iterator)
Definition: DisplayTeX.cc:145
uint32_t kunichar
Definition: DisplayMMA.hh:9
bool extra_brackets_for_symbols
Definition: DisplayTeX.hh:44
std::set< std::string > curly_bracket_operators
List of operators which need all arguments fed with curly brackets, not round ones (e....
Definition: DisplayTeX.hh:97
void print_commutator(std::ostream &str, Ex::iterator it, bool comm)
Definition: DisplayTeX.cc:624
bool tight_plus
Definition: DisplayTeX.hh:40
const char * unichar(kunichar c)
Definition: DisplayTeX.cc:777
void print_components(std::ostream &, Ex::iterator)
Definition: DisplayTeX.cc:655
bool latex_spacing
Definition: DisplayTeX.hh:42
void print_other(std::ostream &str, Ex::iterator it)
Definition: DisplayTeX.cc:103
Functions to handle the exchange properties of two or more symbols in a product.
Definition: Algorithm.cc:1030
DisplayTeX(const Kernel &, const Ex &)
Definition: DisplayTeX.cc:16
bool latex_linefeeds
Definition: DisplayTeX.hh:43
Class to handle display of expressions using LaTeX notation.
Definition: DisplayTeX.hh:21
int bracket_level
Definition: DisplayTeX.hh:46
void print_relation(std::ostream &, Ex::iterator)
Definition: DisplayTeX.cc:706
void print_parent_rel(std::ostream &, str_node::parent_rel_t, bool first)
Definition: DisplayTeX.cc:339
void print_ftableau(std::ostream &, Ex::iterator)
Definition: DisplayTeX.cc:171
void print_arrowlike(std::ostream &, Ex::iterator)
Definition: DisplayTeX.cc:419
void print_commalike(std::ostream &, Ex::iterator)
Definition: DisplayTeX.cc:381
void print_fraclike(std::ostream &, Ex::iterator)
Definition: DisplayTeX.cc:428
parent_rel_t
Child nodes are related to their parent node by a so-called parent relation, which can be one of thes...
Definition: Storage.hh:61
void print_powlike(std::ostream &, Ex::iterator)
Definition: DisplayTeX.cc:533
bracket_t
Definition: Storage.hh:57
std::map< std::string, std::string > symmap
Map from Cadabra symbols to LaTeX symbols (for some typographic cleanup).
Definition: DisplayTeX.hh:93
bool children_have_brackets(Ex::iterator ch) const
Definition: DisplayTeX.cc:728
bool utf8_output
Definition: DisplayTeX.hh:41
bool reads_as_operator(Ex::iterator obj, Ex::iterator arg) const
Determine whether the indicated object 'obj', when acting on the single argument 'arg',...
Definition: DisplayTeX.cc:81
void print_multiplier(std::ostream &, Ex::iterator, int mult=1)
Definition: DisplayTeX.cc:288
void print_productlike(std::ostream &, Ex::iterator, const std::string &inbetween)
Printing members for various standard constructions, e.g.
Definition: DisplayTeX.cc:449
void print_dots(std::ostream &str, Ex::iterator it)
Definition: DisplayTeX.cc:643
void print_conditional(std::ostream &, Ex::iterator)
Definition: DisplayTeX.cc:697