X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginac%2Fsymbol.cpp;h=b7241d52778721e7908eeff350626c00601a382b;hp=bedcff4a1f230f48c838036304949c76c834c94a;hb=f2051c351d8f9791a4afcc8d03465bf100a8088d;hpb=47ecb72dce5ea9c917d1e1e77863c45a8b2b1bba diff --git a/ginac/symbol.cpp b/ginac/symbol.cpp index bedcff4a..b7241d52 100644 --- a/ginac/symbol.cpp +++ b/ginac/symbol.cpp @@ -3,7 +3,7 @@ * Implementation of GiNaC's symbolic objects. */ /* - * GiNaC Copyright (C) 1999-2016 Johannes Gutenberg University Mainz, Germany + * GiNaC Copyright (C) 1999-2019 Johannes Gutenberg University Mainz, Germany * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -157,6 +157,14 @@ std::string symbol::get_name() const return name; } +std::string symbol::get_TeX_name() const +{ + if (TeX_name.empty()) { + return get_default_TeX_name(get_name()); + } + return TeX_name; +} + // protected void symbol::do_print(const print_context & c, unsigned level) const