forked from mpusz/mp-units
31 lines
1.1 KiB
TeX
31 lines
1.1 KiB
TeX
\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})}
|
|
\newcommand{\refcppx}[2]{\href{https://wg21.link/#1\##2}{\IsoCpp{}, [#1]}}
|
|
\newcommand{\irefcppx}[2]{\nolinebreak[3] (\refcppx{#1}{#2})}
|
|
|
|
%% Inline IEV reference
|
|
\newcommand{\refiev}[1]{\href{https://www.electropedia.org/iev/iev.nsf/display?openform&ievref=#1}{IEC 60050, #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
|