EDIT: Full minimal example. The error does not occur if I have only these packages in the preamble:
\documentclass{scrartcl} \usepackage[utf8]{inputenc} \usepackage{siunitx} \sisetup{inter-unit-product =$\cdot$} \usepackage{amsmath} \usepackage{booktabs} \usepackage{cancel} \usepackage{caption} \usepackage{cleveref} \usepackage{colortbl} \usepackage{csquotes} \usepackage{helvet} \usepackage{mathpazo} \usepackage{multirow} \usepackage{listings} \usepackage{pgfplots} \usepackage{xcolor} \DeclareSIUnit{\thermal}{t} \DeclareSIUnit{\electrical}{e} \begin{document} \SI{3200}{\mega\watt} \\ \SI{3200}{\mega\watt\thermal} \end{document} Now I've got an output where there is a space between MW and tError message: MW t (don't know how to post it here?).
How can
! Missing } inserted. <inserted text> } l.23 \SI{3200}{\mega\watt\thermal} ? Update: I get rid of that space?an error if I include
What is\sisetup{inter-unit-product =$\cdot$}
I also deleted it with thefrom my original preamble and it works now.
Thank you all for helping, here is the line that causesI'm using now (for those who might encounter the error?same problem as me):
Thanks again for helping and reading so far!\sisetup{inter-unit-product=\ensuremath{{}\cdot{}}}