public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* variable layout grid table ("advanced grid table syntax")
@ 2017-08-20  1:25 sjm324-HmMyXyqgL2CVc3sceRu5cw
       [not found] ` <55e9790b-5e1b-4ae7-bd64-3e5d26ef9bbf-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: sjm324-HmMyXyqgL2CVc3sceRu5cw @ 2017-08-20  1:25 UTC (permalink / raw)
  To: pandoc-discuss


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

Hello!

I searched and searched but perhaps was using the wrong terms.  I played 
around a lot with using rules, whether or not "single column rows" have 
three or two *+* characters (both above and below, depending on what is 
below it), but I'm not sure I'm getting the grid table syntax right for 
pandoc.  Or perhaps this is not supported?

I would like to be able to layout a grid table with variable number of 
columns per row.  The following is what I am working with:

*test.md* contents:

The Grid Table
========================================================================================

This table works in reStructuredText (tested with Sphinx).  Is there a way 
to support
this in `pandoc`?

+-------------------------------------------+------------------------------------------+
|                  Raw Camera Data Range: 20 --- 120cm (8in --- 4ft)       
            |
+===========================================+==========================================+
|                                   Face recognition                       
            |
+-------------------------------------------+------------------------------------------+
| Detection                                 | 25 --- 75 cm                 
            |
+-------------------------------------------+------------------------------------------+
| Landmark                                  | 30 --- 100 cm                 
           |
+-------------------------------------------+------------------------------------------+
| Recognition                               | 30 --- 80 cm                 
            |
+-------------------------------------------+------------------------------------------+
| Expression                                | 30 --- 100 cm                 
           |
+-------------------------------------------+------------------------------------------+
| Pulse                                     | 30 --- 60 cm                 
            |
+-------------------------------------------+------------------------------------------+
| Pose                                      | 30 --- 100 cm                 
           |
+-------------------------------------------+------------------------------------------+
|                                   Hand Recognition                       
            |
+-------------------------------------------+------------------------------------------+
| Blob Segmentation                         | 20 --- 85 cm                 
            |
+-------------------------------------------+------------------------------------------+
| Hand Segmentation                         | 20 --- 80 cm                 
            |
+-------------------------------------------+------------------------------------------+
| Tracking                                  | 20 --- 60 cm                 
            |
+-------------------------------------------+------------------------------------------+
| Gesture                                   | 20 --- 60 cm                 
            |
+-------------------------------------------+------------------------------------------+

Option 2
========================================================================================

With rules for `pandoc`, to avoid centered rows being turned into verbatim (which 
makes
sense):

+-------------------------------------------+------------------------------------------+
| Raw Camera Data Range: 20 --- 120cm (8in --- 4ft)                         
           |
+:=========================================:+:========================================:+
| Face recognition                                                         
            |
+-------------------------------------------+------------------------------------------+
| Detection                                 | 25 --- 75 cm                 
            |
+-------------------------------------------+------------------------------------------+
| Landmark                                  | 30 --- 100 cm                 
           |
+-------------------------------------------+------------------------------------------+
| Recognition                               | 30 --- 80 cm                 
            |
+-------------------------------------------+------------------------------------------+
| Expression                                | 30 --- 100 cm                 
           |
+-------------------------------------------+------------------------------------------+
| Pulse                                     | 30 --- 60 cm                 
            |
+-------------------------------------------+------------------------------------------+
| Pose                                      | 30 --- 100 cm                 
           |
+-------------------------------------------+------------------------------------------+
| Hand recognition                                                         
            |
+-------------------------------------------+------------------------------------------+
| Blob Segmentation                         | 20 --- 85 cm                 
            |
+-------------------------------------------+------------------------------------------+
| Hand Segmentation                         | 20 --- 80 cm                 
            |
+-------------------------------------------+------------------------------------------+
| Tracking                                  | 20 --- 60 cm                 
            |
+-------------------------------------------+------------------------------------------+
| Gesture                                   | 20 --- 60 cm                 
            |
+-------------------------------------------+------------------------------------------+












*to generate (grid_table.sh as executable file in same directory as 
test.md):#!/usr/bin/env bashmarkdown_configs="-f 
markdown+grid_tables+pipe_tables+simple_tables+multiline_tables+tex_math_dollars 
--column=88"doctype="-t latex --latex-engine=xelatex"inputs="test.md"pandoc 
$markdown_configs $doctype $inputs -o test.pdfrendered output*
see attached 

*test.pdfNote*: same results regardless of latex engine, but included 
because the actual thing I am working with must be xelatex.

Thanks for explaining what should change or if this cannot be supported.  
Extra thanks, if unsupported, for a (brief!) explanation of why -- I'm 
genuinely interested ;)

-Stephen


-- 
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/55e9790b-5e1b-4ae7-bd64-3e5d26ef9bbf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

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

[-- Attachment #2: test.pdf --]
[-- Type: application/pdf, Size: 14125 bytes --]

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

end of thread, other threads:[~2017-08-21 21:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-20  1:25 variable layout grid table ("advanced grid table syntax") sjm324-HmMyXyqgL2CVc3sceRu5cw
     [not found] ` <55e9790b-5e1b-4ae7-bd64-3e5d26ef9bbf-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2017-08-20  2:05   ` John MacFarlane
     [not found]     ` <20170820020519.GA72907-9Rnp8PDaXcadBw3G0RLmbRFnWt+6NQIA@public.gmane.org>
2017-08-21 16:24       ` sjm324-HmMyXyqgL2CVc3sceRu5cw
     [not found]         ` <ca7cabb9-1b14-43d1-a314-9244f79a32ff-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2017-08-21 21:01           ` John MACFARLANE

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).