The LaTeX command for tan is \tan (tangent).
\tanWriting a paper? The table generator and the BibTeX cleaner are one click away, no account.
Write \tan inside math mode, that is between $…$ for inline math or in a \[ … \] or equation block for display math. It is part of core LaTeX math, so no extra package is required.
\tan sets the name upright with operator spacing; typed as plain letters it would print in italics, as a product of variables.
$\tan_{i=1}^{n} x_i$Open this example in the live preview: it renders as you type, with no compiler and no signup.
\operatorname{diag}\operatorname{span}\operatorname*{argmax}\operatorname*{argmin}\operatorname{lcm}\sin\cos\arcsin\arccos\arctan\sinh\cosh\tanh\cotMath operators in LaTeX: the full table or search all 350+ LaTeX symbols.
Use \tan in math mode; it needs no extra package. For example, $\tan_{i=1}^{n} x_i$.
None: \tan is built into LaTeX, so no extra package is required.