In my country, instead of tan, we use tg (this is just one of them). I want to be able to type
\tg{x}
and possibly
\tgx
So that Latex recognizes them. I tried defining them like this:
\DeclareMathOperator{\tg}{\text{tg}}
That seemed to work until I used in a block of bold text and it was bold as well, while \sin
and \cos
where not bold. So how can I define them correctly?
Edit:
I use this new operator in math blocks, like
The use of $ \tg{x} $
Or even in \subsection
(which has a bold formatting in my document):
\subsection{The use od $ \tg{x} $}
\text
(it will use the right \mathrm font automatically)\sin
so\DeclareMathOperator{\tg}{tg}
tg
. As you may know, we have been for years in a bad period in France, and especially pessimistic people are characterized as "declinologists", of whom I am probably a representant. What's the relation? the fact that the French more and more usetan
for no other reason that it is how it appears on the pocket calculators. Long live thetg
of the bygone past!