Skip to content

Commit

Permalink
Sync siunitx v3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
zepinglee committed May 24, 2021
1 parent 1a1e049 commit b129fb2
Show file tree
Hide file tree
Showing 4 changed files with 672 additions and 427 deletions.
2 changes: 0 additions & 2 deletions chapters/math.tex
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,7 @@ \section{量和单位}
宏包 \pkg{siunitx} 提供了更好的数字和单位支持:
\begin{itemize}
\item \num{12345.67890}
\item \num{1+-2i}
\item \num{.3e45}
\item \num{1.654 x 2.34 x 3.430}
\item \si{kg.m.s^{-1}}
\item \si{\micro\meter} $\si{\micro\meter}$
\item \si{\ohm} $\si{\ohm}$
Expand Down
37 changes: 24 additions & 13 deletions test/testfiles/package-siunitx.tex
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,34 @@

\usepackage{siunitx}

\pagestyle{empty}

\newcommand\test{\par
\num{12345.67890} \par
\num{1.234(5)} \par
\qty{1.234(5)e-4}{\metre} \par
% https://github.com/sjtug/SJTUThesis/issues/439
\unit{\kelvin\per\square\um\degreeCelsius\per\ohm} \par
$\unit{\kelvin\per\square\um\degreeCelsius\per\ohm}$ \par
\numlist{10;20} \par
\numlist{10;20;30} \par
\qtylist{0.13;0.67;0.80}{\milli\metre} \par
\numrange{10}{20} \par
\qtyrange{10}{20}{\degreeCelsius} \par
}


\begin{document}
\START
\showoutput

\noindent
\num{12345.67890} \\
\num{1+-2i} \\
\num{.3e45} \\
\num{1.654 x 2.34 x 3.430} \\
\si{kg.m.s^{-1}} \\
\si{\micro\meter} $\si{\micro\meter}$ \\
\si{\ohm} $\si{\ohm}$ \\
\numlist{10;20} \\
\numlist{10;20;30} \\
\SIlist{0.13;0.67;0.80}{\milli\metre} \\
\numrange{10}{20} \\
\SIrange{10}{20}{\degreeCelsius}
\ustcsetup{language=chinese}
\noindent 中文:
\test

\ustcsetup{language=english}
\noindent English:
\test

\clearpage
\end{document}
Expand Down

0 comments on commit b129fb2

Please sign in to comment.