13

The symbol Voltampere VA should be printed without space between V and A, is there a way to correct that with siunitx?

 \documentclass{article}
 \usepackage{siunitx}
    \begin{document}
    \SI{10}{\volt\ampere}

    10 VA
  \end{document}

enter image description here

  • 6
    There is no difference between the multiplication here and in other cases (e.g. \volt\metre or \kilogram\ampere). Dealing with the kerning is a bit of a problem, but there certainly should be a space if you use one in other cases. – Joseph Wright Jun 7 '13 at 10:09
  • 1
    @JosephWright: Voltampere is a special unit for apparent power and so there shouldn't be a space. A normal engineer only writes \watt :-) – Marco Daniel Jun 7 '13 at 10:16
  • 6
    @MarcoDaniel Perhaps 'in use', but from a unit-analysis POV it's two units (one base, one named). As you indicate in your answer, the way to deal with these 'special cases' is to define a custom unit (see \kWh for example). – Joseph Wright Jun 7 '13 at 10:18
  • 3
    There's no symbol "voltampere" in the SI. – Luigi Jun 7 '13 at 10:19
  • 2
    I (and ISO 80000-6 sec.6-57a) agree with @JosephWright: it's correct to write \volt\ampere – Luigi Jun 7 '13 at 10:24
11

You can define your own units by \DeclareSIUnit. In your case I suggest:

\documentclass{article}
\usepackage{siunitx}
\DeclareSIUnit \voltampere { VA } %apparent power 
\DeclareSIUnit \var { var } %volt-ampere reactive - idle power 
\begin{document}
    \SI{10}{\voltampere}
\end{document}

I changed the document class from minimal to article. The drawbacks of the document class are described here: Why should the minimal class be avoided?

  • 1
    @doncherry: Changed. – Marco Daniel Jun 7 '13 at 11:45
  • 1
    At least in my case, Debian with texlive & texlive-science, I get to large of a space with this definition. It should be \DeclareSIUnit \voltampere {VA} %apparent power. Single spaces does matter. – evading Jan 28 '14 at 8:17
0

I had the same problem with TWh having a space between TW and h. To solve this I add an additional curly bracket at \tera\watt\hour:

\newcommand{\TWh}[1]{\SI{#1}{{\tera\watt\hour}}}

instead of

\newcommand{\TWh}[1]{\SI{#1}{\tera\watt\hour}}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.