32 using classdesc::enum_keysData;
53 if (x.substr(0,3)==
"<i>")
55 if (x.length()>=4 && x.substr(x.length()-4)==
"</i>")
56 return x.substr(0,x.length()-4);
64 for (
unsigned i=1; i<g.
cols(); ++i)
70 for (
unsigned i=1; i<g.
cols(); ++i)
71 s<<
","<<enum_keysData<GodleyAssetClass::AssetClass>::
75 for (
unsigned r=1; r<g.
rows(); ++r)
78 for (
unsigned c=1; c<g.
cols(); ++c)
86 f<<
"\\documentclass{article}\n\\begin{document}\n";
87 f<<
"\\begin{tabular}{|c|";
88 for (
unsigned i=1; i<g.
cols(); ++i)
91 f<<
"Flows $\\downarrow$ / Stock Variables $\\rightarrow$";
92 for (
unsigned i=1; i<g.
cols(); ++i)
98 f<<
"\\\\\\cline{2-"<<g.
cols()<<
"}Asset Class";
102 auto outputAC=[&]() {
104 f<<
"&\\multicolumn{"<<repeat<<
"}{|c|}{"<<
105 enum_keysData<GodleyAssetClass::AssetClass>::
106 keysData[asset].name<<
'}';
109 for (
unsigned i=1; i<g.
cols(); ++i)
124 for (
unsigned r=1; r<g.
rows(); ++r)
127 for (
unsigned c=1; c<g.
cols(); ++c)
131 f<<
"\\hline\n\\end{tabular}\n";
132 f<<
"\\end{document}\n";
std::string latexToPango(const char *s)
void exportToLaTeX(std::ostream &f, const GodleyTable &g)
bool doubleEntryCompliant
std::string uqName(const std::string &name)
extract unqualified portion of name
string getCell(unsigned row, unsigned col) const
Creation and access to the minskyTCL_obj object, which has code to record whenever Minsky's state cha...
string fcStr(const FlowCoef &fc)
std::string str(T x)
utility function to create a string representation of a numeric type
represents a numerical coefficient times a variable (a "flow")
const vector< AssetClass > & _assetClass() const
class of each column (used in DE compliant mode)
void exportToCSV(std::ostream &s, const GodleyTable &g)