|
@ -254,11 +254,12 @@ class UCWTexGenerator(OutputGenerator): |
|
|
self.write(r"}") |
|
|
self.write(r"}") |
|
|
|
|
|
|
|
|
def generate_Table(self, e: Table): |
|
|
def generate_Table(self, e: Table): |
|
|
|
|
|
hskip = r"\hskip 0.6em\relax" |
|
|
aligns = { |
|
|
aligns = { |
|
|
"AlignLeft": r"\quad#\quad\hfil", |
|
|
"AlignLeft": hskip+r"\relax#\hfil"+hskip, |
|
|
"AlignRight": r"\quad\hfil#\quad", |
|
|
"AlignRight": hskip+r"\hfil#"+hskip, |
|
|
"AlignCenter": r"\quad\hfil#\hfil\quad", |
|
|
"AlignCenter": hskip+r"\hfil#\hfil"+hskip, |
|
|
"AlignDefault": r"\quad#\quad\hfil" |
|
|
"AlignDefault": hskip+r"#\hfil"+hskip, |
|
|
} |
|
|
} |
|
|
self.writeln(r"\vskip1em") |
|
|
self.writeln(r"\vskip1em") |
|
|
self.writeln(r"\leavevmode\vbox{\halign{\strut"+"&".join([aligns[col[0]] for col in e.colspec])+r"\cr") |
|
|
self.writeln(r"\leavevmode\vbox{\halign{\strut"+"&".join([aligns[col[0]] for col in e.colspec])+r"\cr") |
|
|