Browse Source

UCWTeX seznam obrázků

jk-bakalarka
Jiří Kalvoda 9 months ago
parent
commit
fb80c61139
  1. 6
      src/formatitko/tex_generator.py

6
src/formatitko/tex_generator.py

@ -170,6 +170,12 @@ class UCWTexGenerator(OutputGenerator):
if 'number' in e.attributes: if 'number' in e.attributes:
self.writeln(f"Obrázek {e.attributes['number']}:") self.writeln(f"Obrázek {e.attributes['number']}:")
self.generate(e.caption) 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.indent_less()
self.writeln(r"}{}") self.writeln(r"}{}")
self.ensure_empty(2) self.ensure_empty(2)

Loading…
Cancel
Save