public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: John MACFARLANE <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org>
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: Re: variable layout grid table ("advanced grid table syntax")
Date: Mon, 21 Aug 2017 14:01:06 -0700	[thread overview]
Message-ID: <20170821210106.GE9940@protagoras.berkeley.edu> (raw)
In-Reply-To: <ca7cabb9-1b14-43d1-a314-9244f79a32ff-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>

Sure.

+++ sjm324-HmMyXyqgL2CVc3sceRu5cw@public.gmane.org [Aug 21 17 09:24 ]:
>   Hi John,
>   Thanks for the response!  Would a PR against the docs making a small
>   note explaining this be welcome?
>   -Stephen
>   On Saturday, August 19, 2017 at 7:05:35 PM UTC-7, John MacFarlane
>   wrote:
>
>     Currently there's no support for rowspans (i.e., variable
>     number of columns per row).
>     +++ [1]sjm...-HmMyXyqgL2CVc3sceRu5cw@public.gmane.org [Aug 19 17 18:25 ]:
>     >   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:
>     >   [2]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
>     >   [3]test.md):
>     >   #!/usr/bin/env bash
>     >   markdown_configs="-f
>     >   markdown+grid_tables+pipe_tables+simple_tables+
>     multiline_tables+tex_mat
>     >   h_dollars --column=88"
>     >   doctype="-t latex --latex-engine=xelatex"
>     >   inputs="[4]test.md"
>     >   pandoc $markdown_configs $doctype $inputs -o test.pdf
>     >   rendered output
>     >   see attached test.pdf
>     >   Note: 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 [1][5]pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>     >   To post to this group, send email to
>     >   [2][6]pandoc-...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>     >   To view this discussion on the web visit
>     >   [3][7]https://groups.google.com/d/msgid/pandoc-discuss/
>     55e9790b-5e1b-4ae7-
>     >   bd64-3e5d26ef9bbf%[8]40googlegroups.com.
>     >   For more options, visit [4][9]https://groups.google.com/
>     d/optout.
>     >
>     >References
>     >
>     >   1. mailto:[10]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
>     >   2. mailto:[11]pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
>     >   3. [12]https://groups.google.com/d/
>     msgid/pandoc-discuss/55e9790b-5e1b-4ae7-bd64-3e5d26ef9bbf@
>     googlegroups.com?utm_medium=email&utm_source=footer
>     >   4. [13]https://groups.google.com/d/optout
>
>   --
>   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 [14]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>   To post to this group, send email to
>   [15]pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>   To view this discussion on the web visit
>   [16]https://groups.google.com/d/msgid/pandoc-discuss/ca7cabb9-1b14-43d1
>   -a314-9244f79a32ff%40googlegroups.com.
>   For more options, visit [17]https://groups.google.com/d/optout.
>
>References
>
>   1. javascript:/
>   2. http://test.md/
>   3. http://test.md/
>   4. http://test.md/
>   5. javascript:/
>   6. javascript:/
>   7. https://groups.google.com/d/msgid/pandoc-discuss/55e9790b-5e1b-4ae7-
>   8. http://40googlegroups.com/
>   9. https://groups.google.com/d/optout
>  10. javascript:/
>  11. javascript:/
>  12. https://groups.google.com/d/msgid/pandoc-discuss/55e9790b-5e1b-4ae7-bd64-3e5d26ef9bbf-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org?utm_medium=email&utm_source=footer
>  13. https://groups.google.com/d/optout
>  14. mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
>  15. mailto:pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
>  16. https://groups.google.com/d/msgid/pandoc-discuss/ca7cabb9-1b14-43d1-a314-9244f79a32ff-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org?utm_medium=email&utm_source=footer
>  17. https://groups.google.com/d/optout


      parent reply	other threads:[~2017-08-21 21:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-20  1:25 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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170821210106.GE9940@protagoras.berkeley.edu \
    --to=jgm-tvlzxgkolnx2fbvcvol8/a@public.gmane.org \
    --cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).