Ian Jauslin
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'doc/libs/point.sty')
-rw-r--r--doc/libs/point.sty12
1 files changed, 10 insertions, 2 deletions
diff --git a/doc/libs/point.sty b/doc/libs/point.sty
index a396d1c..796e0d2 100644
--- a/doc/libs/point.sty
+++ b/doc/libs/point.sty
@@ -1,4 +1,4 @@
-%% Copyright 2021 Ian Jauslin
+%% Copyright 2021-2023 Ian Jauslin
%%
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
@@ -33,12 +33,15 @@
\newif\ifresetatsubsubsection
\DeclareOption{reset_at_subsubsection}{\resetatsubsubsectiontrue}
\DeclareOption{no_reset_at_subsubsection}{\resetatsubsubsectionfalse}
+\newif\ifresetatsubsubsubsection
+\DeclareOption{reset_at_subsubsubsection}{\resetatsubsubsubsectiontrue}
+\DeclareOption{no_reset_at_subsubsubsection}{\resetatsubsubsubsectionfalse}
\newif\ifresetattheo
\DeclareOption{reset_at_theo}{\resetattheotrue}
\DeclareOption{no_reset_at_theo}{\resetattheofalse}
\def\point@defaultoptions{
- \ExecuteOptions{reset_at_section, reset_at_subsection, reset_at_subsubsection, no_reset_at_theo}
+ \ExecuteOptions{reset_at_section, reset_at_subsection, reset_at_subsubsection, reset_at_subsubsubsection, no_reset_at_theo}
\ProcessOptions
%% reset at every new section
@@ -56,6 +59,11 @@
\let\point@oldsubsubsection\subsubsection
\gdef\subsubsection{\resetpointcounter\point@oldsubsubsection}
\fi
+ %% reset at every new subsubsubsection
+ \ifresetatsubsubsubsection
+ \let\point@oldsubsubsubsection\subsubsubsection
+ \gdef\subsubsubsection{\resetpointcounter\point@oldsubsubsubsection}
+ \fi
%% reset at every new theorem
\ifresetattheo