Awkee / pandoc

Automatically exported from code.google.com/p/pandoc
GNU General Public License v2.0
0 stars 0 forks source link

latex reader doesn't handle tables #257

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. pandoc -s --to=html tests/latex-reader.latex

What is the expected output? What do you see instead?
...
Para [Str "Here",Apostrophe,Str "s",Space,Str "a",Space,Str "LaTeX",Space,Str 
"table:"]
, BlockQuote
  [ Para [Str "Animal",Space,Str "&",Space,Str "Number",Space,LineBreak,Space,Str "Dog",Space,Str "&",Space,Str "2",Space,LineBreak,Space,Str "Cat",Space,Str "&",Space,Str "1",Space,LineBreak] ]
...

Expected (obtained by converting to a markdown table and parsing...):
[ Para [Str "Here",Str "'",Str "s",Space,Str "a",Space,Str "LaTeX",Space,Str 
"table:"]
, Table [] [AlignDefault,AlignDefault] [0.0,0.0]
  [ [ Plain [Str "Animal"] ]
  , [ Plain [Str "Number"] ] ] [
  [ [ Plain [Str "Dog"] ]
  , [ Plain [Str "2"] ] ],
  [ [ Plain [Str "Cat"] ]
  , [ Plain [Str "1"] ] ] ] ]

What version of the product are you using? On what operating system?
commit ca5217881de1be672ac855a1979e9436aa6ced35 on ubuntu.

Please provide any additional information below.
Not sure whether this is a defect or a feature request. I'm marking it as a 
defect since tests/latex-reader.latex has a table, which is not parsed as a 
table, as demonstrated above. Either way, it would be great if pandoc could 
parse latex tables.

Original issue reported on code.google.com by jdnews...@gmail.com on 15 Sep 2010 at 3:00

GoogleCodeExporter commented 9 years ago
Oops, the step to reproduce should be "pandoc --to=native latex-reader.latex", 
of course. I changed the example to output native instead of html to remove any 
ambiguity about whether the problem was in the latex reader vs the html writer.

Original comment by jdnews...@gmail.com on 15 Sep 2010 at 3:03

GoogleCodeExporter commented 9 years ago
Yes, remember that the latex reader, as documented, supports only a subset of 
latex. Tables haven't been implemented yet, so I'll reclassify this as an 
enhancement request.

Original comment by fiddloso...@gmail.com on 15 Sep 2010 at 5:38

GoogleCodeExporter commented 9 years ago
I've added support for simple tables.

Original comment by fiddloso...@gmail.com on 7 Jan 2011 at 7:10

GoogleCodeExporter commented 9 years ago

Original comment by fiddloso...@gmail.com on 7 Jan 2011 at 7:10