Cadabra
Computer algebra system for field theory problems
LaTeXForm.hh
Go to the documentation of this file.
1 
2 #pragma once
3 
4 #include "Props.hh"
5 
6 namespace cadabra {
7 
8  class LaTeXForm : virtual public property {
9  public:
10  virtual std::string name() const override;
11  virtual bool parse(Kernel&, keyval_t&) override;
12  virtual std::string unnamed_argument() const override;
13 
18  std::string latex_form() const;
19 
20  std::vector<Ex> latex;
21  };
22 
23  }
cadabra::LaTeXForm::latex_form
std::string latex_form() const
Return the LaTeX string which should be used to display the object to which this property is associat...
Definition: LaTeXForm.cc:27
cadabra::Kernel
Definition: Kernel.hh:15
cadabra::LaTeXForm::name
virtual std::string name() const override
Definition: LaTeXForm.cc:6
cadabra::LaTeXForm::latex
std::vector< Ex > latex
Definition: LaTeXForm.hh:20
cadabra::property
FIXME: the above two need to be merged, because parse may need access to the actual pattern tree,...
Definition: Props.hh:127
cadabra::LaTeXForm::parse
virtual bool parse(Kernel &, keyval_t &) override
Definition: LaTeXForm.cc:16
Props.hh
cadabra
Functions to handle the exchange properties of two or more symbols in a product.
Definition: Adjform.cc:83
cadabra::keyval_t
Arguments to properties get parsed into a keyval_t structure.
Definition: Props.hh:68
cadabra::LaTeXForm::unnamed_argument
virtual std::string unnamed_argument() const override
Definition: LaTeXForm.cc:11
cadabra::LaTeXForm
Definition: LaTeXForm.hh:8