Write a tensor with a bar or a tilde over it

math-modetensor

I'm trying to write a multi-index tensor with a bar or a tilde over it, usually I use:

    \usepackage{tensind}
    \tensordelimiter{?}
    \tensorformat{}

but when i write, for example:

$?\Tilde{R}_i^{jk}?$ 

the editor returns error. Could someone suggest me how to solve the issue? Thank you.

Best Answer

Use braces:

\documentclass{article}
\usepackage{amsmath}
\usepackage{tensind}

\tensordelimiter{?}
\tensorformat{}

\begin{document}

$?R_i^{jk}?$

$?{\tilde{R}}_i^{jk}?$

\end{document}

Note that \Tilde is provided by amsmath, but it just does the same thing as \tilde (it exists for back compatibility).

enter image description here

You get the same output with tensor:

\documentclass{article}
\usepackage{amsmath}
\usepackage{tensor}

\begin{document}

$\tensor{R}{_i^{jk}}$

$\tensor{\tilde{R}}{_i^{jk}}$

\end{document}
Related Question