public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Pandoc Python filter + Table constructor
@ 2017-11-04 15:34 Nizamudheen Ahmed
       [not found] ` <1be02d85-bd95-4709-82f8-f6a5460930c6-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 8+ messages in thread
From: Nizamudheen Ahmed @ 2017-11-04 15:34 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 1703 bytes --]

Hi folks,

I am new to Pandoc. I am trying to write a filter using Python. I wanted to 
create and return a "Table" as part of the filter function. I understood 
that the Table constructor takes 5 arguments. But the details of them (at 
least from the Python parlance) are not available. 

My novice code to construct the Table looked like the following

            tab_le = Table ([Str("This is the title of the table")], # 
Table caption?
                            ["left", "left"], # Alignment?
                            [0.5, 0.5], # Relative width of the columns?
                            [Str("C1"), Str("C2")], #Column Header name?
                            [   # Table rows?
                               [Str("A1"), Str("B1")], 
                               [Str("A2"), Str("B2")], 
                               [Str("A3"), Str("B3")]

                            ] );

 With that code, i get the following error

>>>>
Error in $[373][0]: expected Object, encountered String
<<<<<

I am sure i am grossly off in the constructor. Can someone help me to 
create Table?


Thanks and with best regards,
Nizam



-- 
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/1be02d85-bd95-4709-82f8-f6a5460930c6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

[-- Attachment #1.2: Type: text/html, Size: 2757 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2017-12-11  7:51 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-04 15:34 Pandoc Python filter + Table constructor Nizamudheen Ahmed
     [not found] ` <1be02d85-bd95-4709-82f8-f6a5460930c6-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2017-11-04 19:34   ` Kolen Cheung
2017-11-04 23:05   ` John MacFarlane
     [not found]     ` <20171104230532.GC97257-9Rnp8PDaXcadBw3G0RLmbRFnWt+6NQIA@public.gmane.org>
2017-11-06  4:15       ` Nizamudheen Ahmed
     [not found]         ` <CA+zEWHCd+EGXRoWsJcxk0hb_fn2JpWsmVuCnmKJz5ge6FzFCjw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-11-06 11:03           ` Kolen Cheung
     [not found]             ` <ae54a6c7-f694-4337-87d6-15178ab3f18d-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2017-11-13  6:08               ` Nizamudheen Ahmed
     [not found]                 ` <CA+zEWHBcdnzHekVNY3Tdi4qZCkwbgqt4PWAQKYXOzyXmHtAn2Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-11-14 11:26                   ` Nizamudheen Ahmed
     [not found]                     ` <CA+zEWHBp2oiKbUVih9nM-LjVv_Kxti6t7uZ356_ScAdxkMMzUg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-12-11  7:51                       ` Kolen Cheung

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).