
감쇠 계수(힘/속도)를 다음과 같이 조판하고 싶습니다.
c = 100 N/(m/s)
또는
-1
c = 100 N (m/s)
LaTeX와 siunitx
패키지를 사용하고 있지만 내가 원하는 종류의 그룹화를 수행하는 것이 가능한지 모르겠습니다.
당신이 나를 도울 수?
답변1
\documentclass[12pt]{article}
\usepackage{siunitx}
% \usepackage{amsmath}
\begin{document}
First method, from @Sebastiano:
\begin{verbatim}
$c=100\, \unit{N \per(\meter\per\second)}$ or $c=\,100 \unit{N (m\per s)^{-1}}$
\end{verbatim}
$c=100\, \unit{N \per(\meter\per\second)}$ or $c=\,100 \unit{N (m\per s)^{-1}}$
\vspace{1ex}
Same, but with the thin space separating the number from the units in the second case corrected:
\begin{verbatim}
$c=100\, \unit{N \per(\meter\per\second)}$ or $c=100 \, \unit{N (m\per s)^{-1}}$
\end{verbatim}
$c=100\, \unit{N \per(\meter\per\second)}$ or $c=100 \, \unit{N (m\per s)^{-1}}$
\vspace{1ex}
Another approach which uses a fractional form. This wasn't requested by the original poster, but I personally find it more readable:
\begin{verbatim}
$c = \qty{100}{\frac{N}{m/s}}$
\end{verbatim}
$c = \qty{100}{\frac{N}{m/s}}$
\end{document}