|
@ -155,20 +155,17 @@ class UCWTexGenerator(OutputGenerator): |
|
|
|
|
|
|
|
|
def generate_Figure(self, e: Figure): |
|
|
def generate_Figure(self, e: Figure): |
|
|
self.ensure_empty(2) |
|
|
self.ensure_empty(2) |
|
|
self.writeln(r"\vskip5pt") |
|
|
self.writeln(r"\float{") |
|
|
self.writeln(r"\centerline{") |
|
|
|
|
|
self.indent_more() |
|
|
self.indent_more() |
|
|
self.generate(e.content) |
|
|
self.generate(e.content) |
|
|
self.indent_less() |
|
|
self.indent_less() |
|
|
self.writeln(r"}") |
|
|
self.writeln(r"}{") |
|
|
self.writeln(r"\centerline{") |
|
|
|
|
|
self.indent_more() |
|
|
self.indent_more() |
|
|
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) |
|
|
self.indent_less() |
|
|
self.indent_less() |
|
|
self.writeln(r"}") |
|
|
self.writeln(r"}{}") |
|
|
self.writeln(r"\vskip5pt{}") |
|
|
|
|
|
self.ensure_empty(2) |
|
|
self.ensure_empty(2) |
|
|
|
|
|
|
|
|
def generate_Emph(self, e: Emph): |
|
|
def generate_Emph(self, e: Emph): |
|
|