From fbfcc0d5cf299bd1f024ff4b912eaf3c3d6ad35e Mon Sep 17 00:00:00 2001 From: Jacopo De Simoi Date: Thu, 27 Mar 2025 23:20:00 -0400 Subject: [PATCH] Turn warning about marginlength into a real warning (#29) --- todonotes.dtx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/todonotes.dtx b/todonotes.dtx index c4bd1e8..44bd05b 100644 --- a/todonotes.dtx +++ b/todonotes.dtx @@ -1218,7 +1218,7 @@ \newcommand{\phantomsection}{} \fi \ifdim \marginparwidth < 2cm -\todo[inline]{Warning. The length $\backslash$marginparwidth is +\PackageWarning{todonotes}{The length $\backslash$marginparwidth is less than 2cm and will most likely cause issues with the appearance of inserted todonotes. The issue can be solved by adding a line like