From 873b5eed825171dec026a2d88f30ed48326e3f4b Mon Sep 17 00:00:00 2001 From: Mike Solomon Date: Thu, 28 Jul 2011 17:39:03 +0200 Subject: [PATCH] Adds NOT_SMART rule for auto-footnote numbering. --- python/convertrules.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/python/convertrules.py b/python/convertrules.py index 56bdb9cc76..bedfaaaf54 100644 --- a/python/convertrules.py +++ b/python/convertrules.py @@ -3215,6 +3215,15 @@ def conv (str): stderr_write (UPDATE_MANUALLY) return str +@rule ((2, 15, 8), + _ ("Handling of non-automatic footnotes.")) +def conv(str): + if re.search (r'\\footnote', str): + stderr_write ("\n") + stderr_write (NOT_SMART % _("If you are using non-automatic footnotes, make sure to set footnote-auto-numbering = ##f in the paper block.\n")) + stderr_write (UPDATE_MANUALLY) + return str + # Guidelines to write rules (please keep this at the end of this file) # -- 2.39.5