Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions siunitx-sexagesimal.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -229,15 +229,15 @@
% (or components) may be given as expressions. The \meta{duration} should be a
% number as understood by \cs{siunitx_format_number:nN}, with no uncertainty,
% exponent or imaginary part. The unit symbols for hours, minutes and
% seconds are |\degree|, |\arcminute| and |\arcsecond|, respectively.
% seconds are |\hour|, |\minute| and |\second|, respectively.
% \end{function}
%
% \begin{function}{component-separator}
% \begin{function}{duration-separator}
% \begin{syntax}
% |component-separator| = \meta{separator}
% |duration-separator| = \meta{separator}
% \end{syntax}
% Inserted between arc parts (degree, minute and second components).
% The standard setting is |\,|.
% Inserted between duration parts (hour, minute and second components).
% The standard setting is an interword space.
% \end{function}
%
% \begin{function}{duration-mode}
Expand All @@ -262,7 +262,7 @@
% \begin{syntax}
% |duration-unit-hour| = \meta{unit}
% \end{syntax}
% Sets the symbol used for component hours, minutes or seconds, respectively.
% Sets the unit used for component hours, minutes or seconds, respectively.
% \end{function}
%
% \begin{function}
Expand All @@ -282,7 +282,7 @@
%
% \begin{implementation}
%
% \section{\pkg{siunitx-angle} implementation}
% \section{\pkg{siunitx-sexagesimal} implementation}
%
% Start the \pkg{DocStrip} guards.
% \begin{macrocode}
Expand Down
26 changes: 13 additions & 13 deletions siunitx.tex
Original file line number Diff line number Diff line change
Expand Up @@ -2495,7 +2495,7 @@ \subsection{Durations}
duration-symbol-hour & Literal & \cs{hour} \\
duration-symbol-minute & Literal & \cs{minute} \\
duration-symbol-second & Literal & \cs{second} \\
duration-separator & Literal & \meta{empty} \\
duration-separator & Literal & \verb*"\ " \\
fill-duration-hours & Switch & false \\
fill-duration-minutes & Switch & false \\
fill-duration-seconds & Switch & false \\
Expand All @@ -2504,10 +2504,10 @@ \subsection{Durations}
\end{table}

\DescribeOption{duration-mode}
The format in which angles are printed can be set using the \opt{angle-mode}
The format in which durations are printed can be set using the \opt{duration-mode}
option. With the standard setting (\opt{input}), the angle is printed as-given.
Comment thread
schtandard marked this conversation as resolved.
Outdated
By setting the option to \opt{arc} or \opt{decimal}, the output format can
be set to an arc (degrees/minutes/seconds) or decimal value. Conversion uses
By setting the option to \opt{component} or \opt{decimal}, the output format can
be set to a component (hours/minutes/seconds) or decimal value. Conversion uses
the \LaTeX3 floating-point unit, so is limited to $16$ decimal places.
\begin{LaTeXdemo}
\duration{8.56} \\
Expand All @@ -2517,24 +2517,24 @@ \subsection{Durations}
\duration[duration-mode = decimal]{8.56} \\
\duration[duration-mode = decimal]{8;33;36} \\
\end{LaTeXdemo}
When integer angles are converted to component format, the presence of minute
When integer durations are converted to component format, the presence of minute
and second components is controlled by the options \opt{fill-duration-minutes}
and \opt{fill-duration-seconds} (see below).

\DescribeOption{duration-separator}
When angles are printed in component format, the separation of the different
When durations are printed in component format, the separation of the different
parts is set up using the \opt{duration-separator} option.
\begin{LaTeXdemo}
\duration{6;7;6.5} \\
\duration[duration-separator = \,]{6;7;6.5}
\duration[duration-separator = {, }]{6;7;6.5}
\end{LaTeXdemo}

\DescribeOption{fill-duration-hours}
\DescribeOption{fill-duration-minutes}
\DescribeOption{fill-duration-seconds}
Zero-filling for the hour, minute or second parts of components is controlled
using the \opt{fill-angle-degrees}, \opt{fill-angle-minutes} and
\opt{fill-angle-seconds} options. All are off as standard.
Zero-filling for the hour, minute or second components of durations is controlled
using the \opt{fill-duration-hours}, \opt{fill-duration-minutes} and
\opt{fill-duration-seconds} options. All are off as standard.
\begin{LaTeXdemo}
\duration{1;;} \\
\duration{;2;} \\
Expand Down Expand Up @@ -2562,9 +2562,9 @@ \subsection{Durations}
\DescribeOption{duration-unit-hour}
\DescribeOption{duration-unit-minute}
\DescribeOption{duration-unit-second}
With the standard settings, the symbols used for arc angles are the unit
commands \cs{hour}, \cs{minute} and \cs{second}. These can be altered using
\opt{duration-unit-degree}, \opt{duration-unit-minute} and
With the standard settings, the units used for durations are the commands
\cs{hour}, \cs{minute} and \cs{second}. These can be altered using
\opt{duration-unit-hour}, \opt{duration-unit-minute} and
\opt{duration-unit-second}.
\begin{LaTeXdemo}
\duration{1;3;4.5} \\
Expand Down