answered 14 years ago
I'm not exactly sure how this is a Sage question but in your LaTeX preamble you can write
\DeclareMathOperator*{\tg}{tan}
so that whenever you write "\tg" in the LaTeX code is will appear as "tan" in the document.
\tg