From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/29042 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: Converting nested tables [to latex ; from docx or odt] Date: Mon, 16 Aug 2021 09:54:05 -0700 Message-ID: References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19532"; mail-complaints-to="usenet@ciao.gmane.io" To: Yann Barsamian , pandoc-discuss Original-X-From: pandoc-discuss+bncBCJZJHG45QDBBONQ5KEAMGQEGVPJDOA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Aug 16 18:54:21 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-pl1-f191.google.com ([209.85.214.191]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mFfsS-0004hA-EN for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 16 Aug 2021 18:54:20 +0200 Original-Received: by mail-pl1-f191.google.com with SMTP id k3-20020a170902c403b029012d1b645e45sf11163394plk.4 for ; Mon, 16 Aug 2021 09:54:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1629132859; cv=pass; d=google.com; s=arc-20160816; b=H7OJ1GavOEIX/mvwtDkwOCaO8ViHDg8P73GfL25S6GybsDt4bj5LlCk1RFvmNuwA2a mJOMbDKoM8BkP09yEdzDeUOETPTtLVkEc2veKBWGGUbPAJhbSIoaBwxrX+YRC/tKZfGs X77oKN/coOtjuSQpULXDcTFNkL40rqUoaD8cbe7TZqWQbfABOj1s/2T9dK/pISwawKDr rDCuiWeq8iE6sCIG89y+mFWRm/qiC1CRaNsp4gN7w4vzzAg5KIP5Y88Rz5ECZcjKlP8k NqyKv5fGd+QSKDfEJMddrxRw3Ets8N8eI8h3HO2MqhvmlO8D9R1x6DzmkaPmC1Sr2xPC Efbw== 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:mime-version:message-id :date:references:in-reply-to:subject:to:from:sender:dkim-signature; bh=MGGxR5Gz30p03s7Tas5EspaoZFLVSzWGdPXuDok8Djk=; b=q5nq7iR0DqjmPRgBb4uAASp5v0kOzRLfC5+rhq8IhUc2HEfcvGRylBbJK6rPAwNPFr Ew88ECmD+Hj+XysPXAZtGgR7Dcn9rgtKAAp67OXzLAy4/iqhNIJVsQ/Z8PMwvREIhMgP 8fysxJz07NvVyCFPx+rGBExJ6kZxcVANUKgo/Se8pftryvv/5lzoIh19neCul5kaD490 /wlQl3P88urNhHT52oCy541q9kqpWGGTCZHaQm/6vZoBrZbtftCpRdPKONuoBP66sOUo S1cd1KvdNyHSRrfQXmzV6qqA9BCkhzTRXXrYCAsz94uMTTaj+rxaDFR9it7E+ooYHBp/ VpoA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=ZDn2QDRM; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::632 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:to:subject:in-reply-to:references:date:message-id :mime-version: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=MGGxR5Gz30p03s7Tas5EspaoZFLVSzWGdPXuDok8Djk=; b=eb/HdxvDzAQVKedFjXxDCcly6BfKNRnT5RiVLfLwX3rNYk4amWZ1+cjH6MNm/OHtpH 2dzURgKjO661avVMJqiVW2oIe+sb8cKcmY+4C9cCqRCOUjHq0Pc3WjcDUMH5N1qCpcDy bip0tpPYX6thT2177KDEJODVN5D6OxJg17/uBumV6wNe7SVNwlSelzFTzxwwFe0yzAfA ulSdgLCQACaV7e+nj2X2dI78URJm8HLtxASn3djBFi3jI+3geME+R8rx4LHnQiO8d8MB 4jss080ecfi7iHuQau6vcVwVqLE7ZISyBZ18Q9ympkblJ7ynoorTIjKkyL/j573cjqo2 zejQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:subject:in-reply-to:references :date:message-id:mime-version: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=MGGxR5Gz30p03s7Tas5EspaoZFLVSzWGdPXuDok8Djk=; b=QRI8rEl/SYk+olTJ81Ch5rqa6LPWFYzT0zG/LhhnJNjVMTTwA1lSjKXYSYURBh0ncA gx2n6fFnKZfUiwAX6NPhq6HNKyK2SJ6ixT0i7+0tgkaNBTiD7X93UAaOxsYiuZBJKs9G HtM/DwCavunBv6/k/vIQm0L+ujsCDKhIzAI5inpRjjsusXi4LlG5L9no9u1HDiU76Y3s gzECyQt+gSaSayaaOtV0HdoRRxQ1rsr2Zj4942J1jDJQkSe1p5hBKApMZLEUUXRGt497 hJLdLFRxtYZR7sox+ZGle3KyVrKJQU6ZAK+uZ1O3eOaZjLMoUjXGT1GCS4TtryR0673I ETrg== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM532bK/BLBVZcryTRH4/rpZAwyeK9g3cmvzgIBRs81swaNw1hnk+W HKlmBVXMEMzY0PT/6ctXhok= X-Google-Smtp-Source: ABdhPJxn6BBHK3OJOrFGb6OCI+jn04KYXchzEZGyrL7XyTal7zRKp/2xF3PvQXIMrFJCc9AmkESv8g== X-Received: by 2002:a17:902:e84f:b0:12d:c616:a402 with SMTP id t15-20020a170902e84f00b0012dc616a402mr3246664plg.77.1629132859172; Mon, 16 Aug 2021 09:54:19 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a17:902:bb8f:: with SMTP id m15ls4407242pls.3.gmail; Mon, 16 Aug 2021 09:54:17 -0700 (PDT) X-Received: by 2002:a17:90b:230d:: with SMTP id mt13mr42318pjb.185.1629132857296; Mon, 16 Aug 2021 09:54:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629132857; cv=none; d=google.com; s=arc-20160816; b=EhG445LtWxNx4taZVWgLZ4TyjdajA3OOOOd/cdUrZOU3A6+PYXkFYlsg3KBF2WM9mW AacX88/QZnYvU2pPxcxFIHmObLOtA4fpzZ8wZfQiYm7lzztWpFV/ZImffKTGxssPEUw0 jWP/42PYudEIiPOPSTCVdmuLL29FEEv8Lgts8T27BCDkKkMgTR8ENMSDSCe1Wiuuotm2 HIE0orFivOfX1wxmGvfESfTH5EOkLX1NOpq2bnkK+GWZ82hqJP4iKRLi4Dc/at3mxp/Y 4yEq+2405jxtqRPD8J7KmUw3RUGnrM4exLGoijj4gUNWXKeKmspZVvuN7bD7xow8yoZ2 cPaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:message-id:date:references:in-reply-to:subject:to:from :dkim-signature; bh=+t0eDNZs19/fuF7GwamkJ1nUvm3tTR8ryHJxKrqB/dg=; b=aZM3S1Oq5fyJZFnBP26+hONYXMBQIbY7Dv8sXpPqT35mBNEsKqEsThpdFVeslOTpOL UsnbcUH3t2dfldzrKpB9j6drFE8/0PSMEXtTzEP8MFO2mZj1KHjDFaSpvRYpFViGvimv ZpnElmjeirL1L/65IJW23H7PHcFglFliU6gwU5wRNW8cXmVxZirXaLe6oskTkRS6vF0/ pE+jFrOPkV2UdbJPwYQwKs6ujCDzVChWMQaeuWMw0vnJEsseTVu3kxyj+9MJwEgtf46M 569Anpo1vcntbmX5zSNA/OGkRX0FXnNNzBbteZ7/2skgFaE0P2Lw7QDyoTaHenkxEdT/ EcTQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=ZDn2QDRM; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::632 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pl1-x632.google.com (mail-pl1-x632.google.com. [2607:f8b0:4864:20::632]) by gmr-mx.google.com with ESMTPS id e11si332361pgm.0.2021.08.16.09.54.17 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 16 Aug 2021 09:54:17 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::632 as permitted sender) client-ip=2607:f8b0:4864:20::632; Original-Received: by mail-pl1-x632.google.com with SMTP id e19so21375952pla.10 for ; Mon, 16 Aug 2021 09:54:17 -0700 (PDT) X-Received: by 2002:a62:7e41:0:b029:3e0:9c3f:ab50 with SMTP id z62-20020a627e410000b02903e09c3fab50mr17095368pfc.57.1629132856877; Mon, 16 Aug 2021 09:54:16 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id d19sm37436pjz.26.2021.08.16.09.54.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Aug 2021 09:54:16 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id 5A77EA2BC; Mon, 16 Aug 2021 12:54:05 -0400 (EDT) In-Reply-To: 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=ZDn2QDRM; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::632 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.io gmane.text.pandoc:29042 Archived-At: In general I don't think we have very good support for nested tables. I'm sorry, I don't have any particular suggestions that can help. But feel free to file a bug report or two if you like. Yann Barsamian writes: > Dear all, > > I am new to pandoc, and searched this forum of discussion without finding > any similar issue. Here is a bug I think I found. I reduced the input > document to an almost minimal form, and it is attached to this message. > > I am working under ubuntu 20.04, and downloaded the latest pandoc 2.14.1. > > The issue is related to a document that contains an array, and inside one > of the cells of this array, there is another array. > > > 1. Bug from .docx to latex > > Here is the conversion line I used : > > pandoc --standalone --extract-media=. -t latex -f docx Nested_arrays.docx > -o Nested_arrays.tex > > When doing this conversion, pandoc sees that there is a table inside the > table. Hence, pandoc produces a longtable nested inside another longtable. > And this produces a latex error > > ! Forbidden control sequence found while scanning use of \LT@nofcols. > > I'm not using longtables usually in my latex code, but after some search on > the internet, maybe the problem comes from an impossibility to nest a > longtable inside another longtable, hence the output should be changed ? > Here is how I fixed this error, by modifying the .tex output by pandoc: > > * changing the longtable inside the bigger one to a tabular > * and, of course, removing \endhead of this inner array because tabulars do > not have \endhead > > > 2. Bug from .odt (to latex, to markdown...) > > I thought that maybe the bug was linked to the .docx document I received > from my colleague, so I saved the document to a .odt document. And this is > way worse ! This time, the line containing the nested array is simply not > output at all, neither if I ask to produce latex, nor if I ask pandoc to > produce markdown. > > pandoc --standalone --extract-media=. -t latex -f odt Nested_arrays.odt -o > Nested_arrays.tex > > > 3. Finally, but this time I saw that this has already been discussed : as > you can see, the inner table would be clearer for pupils with all lines > drawn, because it is intended to be a clear array that pupils have to fill. > If there was a way to specify that "I want to keep all those ugly lines > inside the output latex code please, whatever you think of this design > choice", this would be awesome :) > > > Thanks in advance for your replies, and have a nice day. > > Yann > > -- > 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 view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/b1e18482-a9ec-4f53-8453-b765fb199cc4n%40googlegroups.com.