latex truth table: fix table spec length
This commit is contained in:
parent
aeb4266118
commit
f044938d74
1 changed files with 3 additions and 2 deletions
5
Main.hs
5
Main.hs
|
@ -281,7 +281,8 @@ truthtable s = open <> header <> "\\hline\n" <> body <> close
|
|||
|
||||
close = "\\end{tabular}\n\n"
|
||||
|
||||
serial = serialize Latex s
|
||||
serial :: [Cell]
|
||||
serial = serializeCells Latex s
|
||||
|
||||
atomsList :: [String]
|
||||
atomsList = S.toAscList $ atoms s
|
||||
|
@ -290,7 +291,7 @@ truthtable s = open <> header <> "\\hline\n" <> body <> close
|
|||
header =
|
||||
intercalate " & " (map dollars atomsList) <>
|
||||
" & " <>
|
||||
intercalate " & " (map dollars $ map fromCell $ serializeCells Latex s) <>
|
||||
intercalate " & " (map dollars $ map fromCell serial) <>
|
||||
" \\\\\n"
|
||||
|
||||
dollars :: String -> String
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue