|
@ -170,14 +170,17 @@ class UCWTexGenerator(OutputGenerator): |
|
|
self.writeln(r"}{") |
|
|
self.writeln(r"}{") |
|
|
self.indent_more() |
|
|
self.indent_more() |
|
|
if 'number' in e.attributes: |
|
|
if 'number' in e.attributes: |
|
|
self.writeln(f"Obrázek {e.attributes['number']}:") |
|
|
type_text = e.attributes.get("type_text", "Obrázek") |
|
|
|
|
|
self.writeln(f"{type_text} {e.attributes['number']}:") |
|
|
self.generate(e.caption) |
|
|
self.generate(e.caption) |
|
|
if 'number' in e.attributes: |
|
|
if 'number' in e.attributes: |
|
|
self.writeln(r"\addtoc\tocpicture{"+str(e.attributes['number'])+"}{}{") |
|
|
tocmac = e.attributes.get("tocmac", "tocpicture") |
|
|
self.indent_more() |
|
|
if tocmac: |
|
|
self.generate(e.caption.content) |
|
|
self.writeln("\\addtoc\\"+tocmac+r"{"+str(e.attributes['number'])+"}{}{") |
|
|
self.indent_less() |
|
|
self.indent_more() |
|
|
self.writeln("}") |
|
|
self.generate(e.caption.content) |
|
|
|
|
|
self.indent_less() |
|
|
|
|
|
self.writeln("}") |
|
|
self.indent_less() |
|
|
self.indent_less() |
|
|
self.writeln(r"}{}{}") |
|
|
self.writeln(r"}{}{}") |
|
|
|
|
|
|
|
|