From fb80c61139a5b22a88cdf677421e8278acf1aca0 Mon Sep 17 00:00:00 2001 From: Jiri Kalvoda Date: Sat, 2 Mar 2024 19:06:29 +0100 Subject: [PATCH] =?UTF-8?q?UCWTeX=20seznam=20obr=C3=A1zk=C5=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/formatitko/tex_generator.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/formatitko/tex_generator.py b/src/formatitko/tex_generator.py index f73c74f..d307b21 100644 --- a/src/formatitko/tex_generator.py +++ b/src/formatitko/tex_generator.py @@ -170,6 +170,12 @@ class UCWTexGenerator(OutputGenerator): if 'number' in e.attributes: self.writeln(f"Obrázek {e.attributes['number']}:") self.generate(e.caption) + if 'number' in e.attributes: + self.writeln(r"\addtoc\tocpicture{"+str(e.attributes['number'])+"}{}{") + self.indent_more() + self.generate(e.caption.content) + self.indent_less() + self.writeln("}") self.indent_less() self.writeln(r"}{}") self.ensure_empty(2)