mirror of
https://github.com/mpusz/mp-units.git
synced 2025-06-25 01:01:33 +02:00
docs(ref): document most of mp_units.core
This commit is contained in:
@ -5,8 +5,8 @@ include(JEGPAddStandardeseSources)
|
||||
|
||||
set(pdf_title "mp-units Library")
|
||||
set(page_license "MIT License")
|
||||
set(first_library_chapter "qties")
|
||||
set(last_library_chapter "qties")
|
||||
set(first_library_chapter "quantities")
|
||||
set(last_library_chapter "quantities")
|
||||
set(cover_title "mp-units Library Reference Documentations")
|
||||
set(reply_to "\\href{${PROJECT_HOMEPAGE_URL}/discussions}{Discussions}, \\href{${PROJECT_HOMEPAGE_URL}/issues}{issues}")
|
||||
jegp_add_standardese_sources(
|
||||
@ -21,6 +21,7 @@ jegp_add_standardese_sources(
|
||||
# Latex commands.
|
||||
[[\\href{([^}]+)}{([^}]+)};HREF(\1)(\2)]]
|
||||
# Macros extensions.
|
||||
[[\\txtrm;\\textrm]]
|
||||
[[\\refcpp{([^}]+)};REFCPP(\1)]]
|
||||
[[\\irefcpp{([^}]+)};~(REFCPP(\1))]]
|
||||
[[\\refcppx{([^}]+)}{([^}]+)};REFCPPX(\1)(\2)]]
|
||||
|
@ -38,6 +38,11 @@ Edited by Thomas K\"{o}ppe.
|
||||
Available from: \url{https://wg21.link/\IsoCpp{}}
|
||||
\item
|
||||
The \Cpp{} Standards Committee.
|
||||
P3094R5: \doccite{\tcode{std::basic_fixed_string}}.
|
||||
Edited by Mateusz Pusz.
|
||||
Available from: \url{https://wg21.link/P3094R5}
|
||||
\item
|
||||
The \Cpp{} Standards Committee.
|
||||
SD-8: \doccite{Standard Library Compatibility}.
|
||||
Edited by Bryce Lelbach.
|
||||
Available from: \url{https://wg21.link/SD8}
|
||||
@ -102,11 +107,11 @@ as shown in \tref{lib.cats}.
|
||||
{ll}
|
||||
\topline
|
||||
\hdstyle{Clause} & \hdstyle{Category} \\ \capsep
|
||||
\ref{qties} & Quantities library \\
|
||||
\ref{quantities} & Quantities library \\
|
||||
\end{floattable}
|
||||
|
||||
\pnum
|
||||
The quantities library\iref{qties}
|
||||
The quantities library\iref{quantities}
|
||||
describes components for dealing with quantities.
|
||||
|
||||
\rSec1[spec.mods]{Modules}
|
||||
|
@ -1,5 +1,13 @@
|
||||
\newcommand{\IsoCpp}{N4971}
|
||||
|
||||
\newcommand{\txtrm}[1]{\textnormal{\textrm{#1}}}
|
||||
|
||||
\newcommand{\stdconcept}[1]{#1}
|
||||
|
||||
\newcommand{\indexlibraryglobalexpos}[1]{\indexlibrary{#1@\exposid{#1}}}
|
||||
\newcommand{\indexlibraryctorexpos}[1]{\indexlibrarymisc{#1@\exposid{#1}}{constructor}}
|
||||
\newcommand{\indexlibraryexposmemberexpos}[2]{\indexlibraryboth{#1@\exposid{#1}}{#2@\exposid{#2}}}
|
||||
|
||||
%% Inline non-parenthesized C++ reference
|
||||
\newcommand{\refcpp}[1]{\href{https://wg21.link/#1}{\IsoCpp{}, [#1]}}
|
||||
\newcommand{\irefcpp}[1]{\nolinebreak[3] (\refcpp{#1})}
|
||||
@ -8,4 +16,15 @@
|
||||
|
||||
%% Inline IEV reference
|
||||
\newcommand{\refiev}[1]{\href{https://www.electropedia.org/iev/iev.nsf/display?openform&ievref=#1}{IEC 60050, #1}}
|
||||
\newcommand{\irefiev}[1]{\nolinebreak[3] (\refiev{#1})}
|
||||
\ExplSyntaxOn
|
||||
\NewDocumentCommand \irefiev { m } {
|
||||
\clist_set:Nx \l_tmpa_clist { #1 }
|
||||
\nolinebreak[3] ~ (
|
||||
\clist_map_inline:Nn \l_tmpa_clist {
|
||||
\clist_put_right:Nn \g_tmpa_clist { \refiev{##1} }
|
||||
}
|
||||
\clist_use:Nn \g_tmpa_clist { ,~ }
|
||||
)
|
||||
\clist_clear:N \g_tmpa_clist
|
||||
}
|
||||
\ExplSyntaxOff
|
||||
|
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user