UCWTeX: Užší tabulka
This commit is contained in:
parent
5a61ea5fac
commit
17920077da
1 changed files with 5 additions and 4 deletions
|
@ -254,11 +254,12 @@ class UCWTexGenerator(OutputGenerator):
|
|||
self.write(r"}")
|
||||
|
||||
def generate_Table(self, e: Table):
|
||||
hskip = r"\hskip 0.6em\relax"
|
||||
aligns = {
|
||||
"AlignLeft": r"\quad#\quad\hfil",
|
||||
"AlignRight": r"\quad\hfil#\quad",
|
||||
"AlignCenter": r"\quad\hfil#\hfil\quad",
|
||||
"AlignDefault": r"\quad#\quad\hfil"
|
||||
"AlignLeft": hskip+r"\relax#\hfil"+hskip,
|
||||
"AlignRight": hskip+r"\hfil#"+hskip,
|
||||
"AlignCenter": hskip+r"\hfil#\hfil"+hskip,
|
||||
"AlignDefault": hskip+r"#\hfil"+hskip,
|
||||
}
|
||||
self.writeln(r"\vskip1em")
|
||||
self.writeln(r"\leavevmode\vbox{\halign{\strut"+"&".join([aligns[col[0]] for col in e.colspec])+r"\cr")
|
||||
|
|
Loading…
Reference in a new issue