Merge pull request #4291 from hmenke/xtables
ConTeXt writer: xtables: correct wrong usage of caption
This commit is contained in:
commit
be929bcc80
3 changed files with 5 additions and 5 deletions
|
@ -267,7 +267,7 @@ blockToConTeXt (Table caption aligns widths heads rows) = do
|
||||||
return $ "\\startplacetable" <> brackets (
|
return $ "\\startplacetable" <> brackets (
|
||||||
if null caption
|
if null caption
|
||||||
then "location=none"
|
then "location=none"
|
||||||
else "caption=" <> braces captionText
|
else "title=" <> braces captionText
|
||||||
) $$ body $$ "\\stopplacetable" <> blankline
|
) $$ body $$ "\\stopplacetable" <> blankline
|
||||||
|
|
||||||
tableToConTeXt :: PandocMonad m => Tabl -> Doc -> [Doc] -> WM m Doc
|
tableToConTeXt :: PandocMonad m => Tabl -> Doc -> [Doc] -> WM m Doc
|
||||||
|
|
|
@ -92,7 +92,7 @@ tests = [ testGroup "inline code"
|
||||||
plain $ text "3.3",
|
plain $ text "3.3",
|
||||||
plain $ text "3.4"]]
|
plain $ text "3.4"]]
|
||||||
in table caption aligns headers rows
|
in table caption aligns headers rows
|
||||||
=?> unlines [ "\\startplacetable[caption={Table 1}]"
|
=?> unlines [ "\\startplacetable[title={Table 1}]"
|
||||||
, "\\startTABLE"
|
, "\\startTABLE"
|
||||||
, "\\startTABLEhead"
|
, "\\startTABLEhead"
|
||||||
, "\\NC[align=left] Right"
|
, "\\NC[align=left] Right"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
Simple table with caption:
|
Simple table with caption:
|
||||||
|
|
||||||
\startplacetable[caption={Demonstration of simple table syntax.}]
|
\startplacetable[title={Demonstration of simple table syntax.}]
|
||||||
\startxtable
|
\startxtable
|
||||||
\startxtablehead[head]
|
\startxtablehead[head]
|
||||||
\startxrow
|
\startxrow
|
||||||
|
@ -74,7 +74,7 @@ Simple table without caption:
|
||||||
|
|
||||||
Simple table indented two spaces:
|
Simple table indented two spaces:
|
||||||
|
|
||||||
\startplacetable[caption={Demonstration of simple table syntax.}]
|
\startplacetable[title={Demonstration of simple table syntax.}]
|
||||||
\startxtable
|
\startxtable
|
||||||
\startxtablehead[head]
|
\startxtablehead[head]
|
||||||
\startxrow
|
\startxrow
|
||||||
|
@ -111,7 +111,7 @@ Simple table indented two spaces:
|
||||||
|
|
||||||
Multiline table with caption:
|
Multiline table with caption:
|
||||||
|
|
||||||
\startplacetable[caption={Here's the caption. It may span multiple lines.}]
|
\startplacetable[title={Here's the caption. It may span multiple lines.}]
|
||||||
\startxtable
|
\startxtable
|
||||||
\startxtablehead[head]
|
\startxtablehead[head]
|
||||||
\startxrow
|
\startxrow
|
||||||
|
|
Loading…
Reference in a new issue