Add \convertto command

This commit is contained in:
2024-08-27 17:13:34 +02:00
parent 499ced80b7
commit ce97c72c7f

View File

@@ -209,6 +209,10 @@
%% Other
\newcommand{\horizontalrule}{\par\noindent\rule{\textwidth}{0.4pt}} % Horizontal line
\makeatletter
\def\convertto#1#2{\strip@pt\dimexpr #2*65536/\number\dimexpr 1#1} % Convert units. Usage: \convertto{cm}{1pt}. From: https://tex.stackexchange.com/a/8337
\makeatother
%% User studies
\newcommand{\factor}[1]{\textsc{#1}}