There are a few problems with your table:
- You shouldn't use
\hline
. Instead, use \...rule
from the booktabs
package.
- Putting
\textbf
around a math expression has no effect; if you want bold math, use \mtathbf
.
- If you use
\ce
from the mhchem
package when typesetting chemical elements, you get the correct output.
- Here, use
\unit{<unit>}
instead of \SI{<number>}{<unit>}
.
- The subscripts, say
(O_{1} - \ce{Zn}/\ce{Mg})
(after my edit), look wierd. What is the exact meaning of this? (It depends on how it should be typeset.)
Here is how I would typeset the table:
\documentclass{article}
\usepackage[margin = 3cm]{geometry} % to avoid `overfull \hbox'
\usepackage[version = 4]{mhchem}
\usepackage{booktabs}
\usepackage{siunitx}
\begin{document}
\begin{tabular}{l *{4}{c}}
\toprule
& $d_{(O_{1} - \ce{Zn}/\ce{Mg})}(\unit{\angstrom})$
& $d_{(O_{2} - \ce{Zn}/\ce{Mg})}(\unit{\angstrom})$
& $d_{(O_{3} - \ce{Zn}/\ce{Mg})}(\unit{\angstrom})$
& $d_{(O_{\bot} - \ce{Zn}/\ce{Mg})}(\unit{\angstrom})$ \\
\midrule
\textbf{Pure HB-NWs} & & & & \\
\bottomrule
\end{tabular}
\end{document}
Or maybe
\documentclass{article}
\usepackage[margin = 4cm]{geometry} % to avoid `overfull \hbox'
\usepackage[version = 3]{mhchem}
\usepackage{booktabs}
\usepackage{siunitx}
\begin{document}
\begin{tabular}{l *{4}{c}}
\toprule
& $d_{(O_{1} - \ce{Zn}/\ce{Mg})}$
& $d_{(O_{2} - \ce{Zn}/\ce{Mg})}$
& $d_{(O_{3} - \ce{Zn}/\ce{Mg})}$
& $d_{(O_{\bot} - \ce{Zn}/\ce{Mg})}$ \\[0.5ex]
& \unit{\angstrom}
& \unit{\angstrom}
& \unit{\angstrom}
& \unit{\angstrom} \\
\midrule
\textbf{Pure HB-NWs} & & & & \\
\bottomrule
\end{tabular}
\end{document}
P.S. TeXstudio is the editor; that has nothing to do with your table.