From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/18054 Path: news.gmane.org!.POSTED!not-for-mail From: John MACFARLANE Newsgroups: gmane.text.pandoc Subject: Re: variable layout grid table ("advanced grid table syntax") Date: Mon, 21 Aug 2017 14:01:06 -0700 Message-ID: <20170821210106.GE9940@protagoras.berkeley.edu> References: <55e9790b-5e1b-4ae7-bd64-3e5d26ef9bbf@googlegroups.com> <20170820020519.GA72907@Johns-MacBook-Pro.local> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8"; format=flowed X-Trace: blaine.gmane.org 1503349279 13427 195.159.176.226 (21 Aug 2017 21:01:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 21 Aug 2017 21:01:19 +0000 (UTC) User-Agent: Mutt/1.5.24 (2015-08-30) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCJZJHG45QDBBHEU5XGAKGQEEAFEA2Y-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Aug 21 23:01:13 2017 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-ua0-f186.google.com ([209.85.217.186]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1djtos-0002yd-E4 for gtp-pandoc-discuss@m.gmane.org; Mon, 21 Aug 2017 23:01:10 +0200 Original-Received: by mail-ua0-f186.google.com with SMTP id k12sf1766401uag.1 for ; Mon, 21 Aug 2017 14:01:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1503349277; cv=pass; d=google.com; s=arc-20160816; b=x4raaiLFkQRr5rINxRl4wCGSAzJbV3lBHubM3e8k8EhTVx5T8fZmASk65spoP97BtZ aoWTPXLnQ6Xrf1tonCOiOMQ3xWVg6FVfe/6Cpit/ambNAUKXBoWgov4mJZMFIyxMxAIf tx60OEN5pHEparjYVK4kDOpO6jTNKoiOaBIqZcuzEEIZ+dsRyN9XXoG41XGWgVBfT/sF 353ZDjEc3M5YtqE81BjKagEnIwdqRw50CeaKVXOOQHxgNH0pqvV6NPVpBGHphufgH5Fm ijgMOhtEtEsNMHCmvM9AvZ1z8a7b9LfnCRmV/0eP4ItDsVQEwI6e6dsZT3+Qb+fzL2xn cg8A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:to :date:from:arc-authentication-results:arc-message-signature:sender :dkim-signature:arc-authentication-results; bh=X6V8vzcbbRnQocdE8SqYkUpwrV2q0QXke7fsldVWYMM=; b=LY5oeaOMQrEV//MWTimoVdmMcksOWqKqcENdl9qolxNZqf9z32sPOZYI8SZ/oVVGt8 Rw4AwbA7SBft2xv3IFhAinJPoBCNh0QGEgN5p9NYisJOQrGmFlqqXXQqZgNdcmoiG9jM jdAzD4NFUXtQdgMHI/UBjsLOjh0h+3n/iVA09wuW1st6BdOZwcd1akfW20Qn6crnT5ZP jY+UiUE+wMMDJNPDIqgzX/y+mOFPw8+KDQTXDyaeXGeYkM8aKxeVELuvQvxgWqRd/Qyg HSBIjmuotssBwXvV0Gs+A7dwNb0Xq6IFl+iMZPG9qagxhmJQ10wY1ag1soGL2zjro2xq ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=zJS+RdV5; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c05::234 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:date:to:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=X6V8vzcbbRnQocdE8SqYkUpwrV2q0QXke7fsldVWYMM=; b=aXlbocztc5LKaoIXBIO5rZRqDS4Poo1qytCAFhBfD2T+L8LiRuey3ERDXcC0t0RCqX x3LO72pNavsQmgk3tpZHWno1x1yzRJC7RQSev9m/MSUX0MXL9I1DYOQK50l3oTBbdqDT rVlMgq3+le0dGfd5ALZduAu7FBKJec7opFq2m4sADvcN9iDCMp06gAT1lZD1wyUBnCrw JKV/QQPj1dn+1BUN6MvHvkmu6FTpIjpWKddlXHVJDCzpodEUerfBa4R8YosUMomKAAuu MAzfqhz8a5N4iEoW6F4itC89d+EBchuGOwG9Bf+h52GZEN52ErPYdgp/+QjywbK2+JW6 viNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:date:to:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=X6V8vzcbbRnQocdE8SqYkUpwrV2q0QXke7fsldVWYMM=; b=B3usPZgZ79DOsw0Bc6frusOKdjzhwbQ8kBvd2M4QTHUuHiyN9a9ZrgIlYqQHO03mzf Hqxct1mxFkflo1p/0Eu79IbF3iYzD1twAVoE2ywp5K+j924RXI46zuxZmrrT/qdlDoEY yaAfrqsudinLiCwQ3ljQ7KtwRkMmy0gPC6BAwt+UmV3RIysONCNXVRoJBW7B9sB77/Oc zu6tbVNBVgBi93VKILd/X4JBMN1GrRggFQwy4M6qqSPPgExG9gRGNZRPSbhbtTr46hrl afl3ttmvcigAIzTlHO6mjXASUNjWYnOgGeXMdnig88i+7Rz5LPnOTHzOiWR/vWuJZOEr Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AHYfb5i7JHscl6e/1yHLgapSucVpR+ml7HEY7+1v4dnNC8YNmNLhaEUU MQ1XW0bPgkriYg== X-Received: by 10.36.34.3 with SMTP id o3mr494168ito.0.1503349276988; Mon, 21 Aug 2017 14:01:16 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.36.71.85 with SMTP id t82ls6165879itb.1.gmail; Mon, 21 Aug 2017 14:01:15 -0700 (PDT) X-Received: by 10.36.29.141 with SMTP id 135mr8209083itj.21.1503349275368; Mon, 21 Aug 2017 14:01:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1503349275; cv=none; d=google.com; s=arc-20160816; b=WqHXlBNWx2qL4DCKNtLeGjfUZUe/eNILTfGZtC1fYaO+NYpRmR4A5lhorlYwgemgtb AXKXFi746MfUHtfmkvttH7IOoDNvFS1MPkiD3Y15cfNQdsHp/9eoHzhyZGcnK8QrzJSz G5DZF+8MZugXp/av1UAzZtDdv8biNa7Icm7fUKQ+eg/sbtI4VLtpQ/Yfn06CkLFMBJcZ z9DD0V/xeOl8Hqy99o36aNRAaS5yXKApenMx+u+8kbb/Uyjb/PiE1K5X5Z3QyjGx1R60 h3NNWEXVIMGFIlnUf4UZ/6xeyi0OM+N3wGjPJEXHNYd0fIAOwcQgK08A0dfkdZnuvDlD rE7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:to:date:from:dkim-signature :arc-authentication-results; bh=4ZrIH830i1OQrnnq/EzuxZwr6/w6U5nr3eno+pwuxUs=; b=r8FzYlHu4MqJIDXUBv5K6WsuOPRNv24gV+GeOqscfsztVlQwrNlYV3dFmJpHT3pvqY PBZ0TP7t6cXZlxpPUG/W5kelHgFGc4kfny1arjysa8097HXyP7GM5LKk8eBqkX8ohGUH a47IiheraIBsZjiCDD1xI9/MYHchvPUO1N2w3Fs+09LbF0gSbk03RlvmI9W7Pg6Z5aW2 jv66gb4HuvZA9tWAs1aTBHrdbaNrESS5Yofu5qsAR4/ZMvM7ystJr8JAzal5Ub/XJNPV BxId9WHnU25u42WGF7XGy+xuRQgLSz66Vg6IInn41viI8jy+Sx+wurumMpKSN6ygnw9O UEJw== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=zJS+RdV5; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c05::234 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pg0-x234.google.com (mail-pg0-x234.google.com. [2607:f8b0:400e:c05::234]) by gmr-mx.google.com with ESMTPS id b9si2326933pfm.20.2017.08.21.14.01.15 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 21 Aug 2017 14:01:15 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c05::234 as permitted sender) client-ip=2607:f8b0:400e:c05::234; Original-Received: by mail-pg0-x234.google.com with SMTP id i12so106335336pgr.3 for ; Mon, 21 Aug 2017 14:01:15 -0700 (PDT) X-Received: by 10.101.70.197 with SMTP id n5mr17969875pgr.251.1503349274708; Mon, 21 Aug 2017 14:01:14 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id w81sm8963133pfk.169.2017.08.21.14.01.13 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 21 Aug 2017 14:01:13 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id 4D8C3A1C5; Mon, 21 Aug 2017 17:01:03 -0400 (EDT) Content-Disposition: inline In-Reply-To: X-PGP-Key: http://johnmacfarlane.net/jgm.asc X-Original-Sender: jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=zJS+RdV5; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c05::234 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.org gmane.text.pandoc:18054 Archived-At: 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