From e9a28f3148b7cfd8a878751b8f777e412ccb3b0f Mon Sep 17 00:00:00 2001 From: Malin Freeborn <malinfreeborn@posteo.net> Date: Mon, 6 May 2024 23:26:12 +0200 Subject: [PATCH] add \makeRule commands from core --- layout.sty | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/layout.sty b/layout.sty index c42166e0..940f95dc 100644 --- a/layout.sty +++ b/layout.sty @@ -1346,3 +1346,16 @@ interior code={ \path[tcb fill interior] ([xshift=-2mm]interior.west) {\small\textcolor{gray}{(#1)}} } +%%%%%%%%%%%%%%%%%%%% Rules to Reference %%%%%%%%%%%%%%%%%%%% + +\newcommand\makeRule[5]{ + \subsubsection[#2: \roll{#3}{#4}, \glsentrytext{tn} #5]{#2} + \label{#1}% + \textit{\roll{#3}{#4}, \glsentrytext{tn}~#5.}% +} + +\newcommand\makeAutoRule[3]{ + \subsubsection[#2: #3]{#2} + \label{#1}% +} + -- GitLab