UCWTeX seznam obrázků

This commit is contained in:
Jiří Kalvoda 2024-03-02 19:06:29 +01:00
parent 7230d87f6b
commit fb80c61139

View file

@ -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)