Using \mathrm improves printing in complex formulae.
One reason is that it scales in fractions. [by Vladimir Kisil]
: name(initname), ef(efun), serial(next_serial++), domain(dm)
{
if (texname.empty())
- TeX_name = "\\mbox{" + name + "}";
+ TeX_name = "\\mathrm{" + name + "}";
else
TeX_name = texname;
setflag(status_flags::evaluated | status_flags::expanded);
: name(initname), ef(0), number(initnumber), serial(next_serial++), domain(dm)
{
if (texname.empty())
- TeX_name = "\\mbox{" + name + "}";
+ TeX_name = "\\mathrm{" + name + "}";
else
TeX_name = texname;
setflag(status_flags::evaluated | status_flags::expanded);
void constant::do_print_python_repr(const print_python_repr & c, unsigned level) const
{
c.s << class_name() << "('" << name << "'";
- if (TeX_name != "\\mbox{" + name + "}")
+ if (TeX_name != "\\mathrm{" + name + "}")
c.s << ",TeX_name='" << TeX_name << "'";
c.s << ')';
}
evalf_func(Li2_evalf).
derivative_func(Li2_deriv).
series_func(Li2_series).
- latex_name("\\mbox{Li}_2"));
+ latex_name("\\mathrm{Li}_2"));
//////////
// trilogarithm
}
REGISTER_FUNCTION(Li3, eval_func(Li3_eval).
- latex_name("\\mbox{Li}_3"));
+ latex_name("\\mathrm{Li}_3"));
//////////
// Derivatives of Riemann's Zeta-function zetaderiv(0,x)==zeta(x)
evalf_func(beta_evalf).
derivative_func(beta_deriv).
series_func(beta_series).
- latex_name("\\mbox{B}").
+ latex_name("\\mathrm{B}").
set_symmetry(sy_symm(0, 1)));
} else {
x = lst(x_);
}
- c.s << "\\mbox{Li}_{";
+ c.s << "\\mathrm{Li}_{";
lst::const_iterator itm = m.begin();
(*itm).print(c);
itm++;
static void S_print_latex(const ex& n, const ex& p, const ex& x, const print_context& c)
{
- c.s << "\\mbox{S}_{";
+ c.s << "\\mathrm{S}_{";
n.print(c);
c.s << ",";
p.print(c);
} else {
m = lst(m_);
}
- c.s << "\\mbox{H}_{";
+ c.s << "\\mathrm{H}_{";
lst::const_iterator itm = m.begin();
(*itm).print(c);
itm++;