Skip to main content
Tweeted twitter.com/StackTeX/status/697302219889250304
added 178 characters in body
Source Link
Cancara
  • 93
  • 1
  • 7

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{}}}

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} \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 t: MW t (don't know how to post it here?).
How can I get rid of that space?
What is it with the original preamble that causes the error?
Thanks again for helping and reading so far!

EDIT: Full minimal example

\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} 

Error message:

! Missing } inserted. <inserted text> } l.23 \SI{3200}{\mega\watt\thermal} ? 

Update: I get an error if I include
\sisetup{inter-unit-product =$\cdot$}
I also deleted it from my original preamble and it works now.

Thank you all for helping, here is the line that I'm using now (for those who might encounter the same problem as me):
\sisetup{inter-unit-product=\ensuremath{{}\cdot{}}}

deleted 9 characters in body
Source Link
Cancara
  • 93
  • 1
  • 7

EDIT: Full minimal example (I hope this is it?). The error does not occur if I have only these packages in the preamble:

Now I've got an output where there is a space between MW and t: MW t (don't know how to post it here?).
In any case, there must be somethingHow can I get rid of that hinders the compilation and I'd like to understandspace?
What is it. Thanks with the original preamble that causes the error?
Thanks again for helping and reading so far!

EDIT: Full minimal example (I hope this is it?)

Now I've got an output where there is a space between MW and t: MW t (don't know how to post it here?).
In any case, there must be something that hinders the compilation and I'd like to understand it. Thanks again for helping and reading so far!

EDIT: Full minimal example. The error does not occur if I have only these packages in the preamble:

Now I've got an output where there is a space between MW and t: MW t (don't know how to post it here?).
How can I get rid of that space?
What is it with the original preamble that causes the error?
Thanks again for helping and reading so far!

added 974 characters in body
Source Link
Cancara
  • 93
  • 1
  • 7

EDIT: Full minimal example (I hope this is it?)

\documentclass{scrartcl} \usepackage[utf8]{inputenc} \usepackage{siunitx} \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 t: MW t (don't know how to post it here?).
In any case, there must be something that hinders the compilation and I'd like to understand it. Thanks again for helping and reading so far!

EDIT: Full minimal example (I hope this is it?)

\documentclass{scrartcl} \usepackage[utf8]{inputenc} \usepackage{siunitx} \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 t: MW t (don't know how to post it here?).
In any case, there must be something that hinders the compilation and I'd like to understand it. Thanks again for helping and reading so far!

Source Link
Cancara
  • 93
  • 1
  • 7
Loading