LaTeX writer: Avoid extra space at start/end of table cell.
Thanks to Nick Bart for the suggestion of using @{}.
This commit is contained in:
parent
c50af7341e
commit
229c22582f
1 changed files with 3 additions and 1 deletions
|
@ -422,7 +422,9 @@ blockToLaTeX (Table caption aligns widths heads rows) = do
|
|||
let notes = vcat $ map toNote tableNotes
|
||||
let colDescriptors = text $ concat $ map toColDescriptor aligns
|
||||
modify $ \s -> s{ stTable = True, stInTable = False, stTableNotes = [] }
|
||||
return $ "\\begin{longtable}[c]" <> braces colDescriptors
|
||||
return $ "\\begin{longtable}[c]" <>
|
||||
braces ("@{}" <> colDescriptors <> "@{}")
|
||||
-- the @{} removes extra space at beginning and end
|
||||
$$ "\\hline\\noalign{\\medskip}"
|
||||
$$ headers
|
||||
$$ vcat rows'
|
||||
|
|
Loading…
Reference in a new issue