(btw I have already tried surrounding the tikz code in the preamble with $ $ and the spacing remains unchanged)
Code: Select all
{$#1$};}}
Also I am trying to stay away from manually changing horizontal lengths because that would mean changing this for every equation I am going to type up.
This is my MWE for one of the type of formatting:
Code: Select all
\documentclass{article}
\usepackage[version=3]{mhchem}
\usepackage{tikz}
\newcommand{\ci}[1]{\tikz[baseline=(char.base)]{\node[shape=circle,draw,inner sep=1pt] (char) {$#1$};}}
\begin{document}
$\begin{array}[t]{@{}l@{}}
\left(-1\right)\times\ci{1}
\end{array}$
\end{document}