From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/31028 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Richard Huntsinger Newsgroups: gmane.text.pandoc Subject: Converting nested tables | Forbidden control sequence error Date: Tue, 19 Jul 2022 10:25:41 -0700 (PDT) Message-ID: <6bde11a6-701b-4ceb-8664-0f7348bd4b4fn@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_9726_1673270383.1658251541800" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36398"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCFYNC6M64FBBF6S3OLAMGQEXPCCQRQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Jul 19 19:25:47 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-yw1-f185.google.com ([209.85.128.185]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oDqyg-0009Ia-9w for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 19 Jul 2022 19:25:46 +0200 Original-Received: by mail-yw1-f185.google.com with SMTP id 00721157ae682-31cdce3ed04sf125590787b3.13 for ; Tue, 19 Jul 2022 10:25:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:date:from:to:message-id:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=pX9TIPlj/Q4472o592CGp9bFscGLObMfBgin31qdeYU=; b=fN2PnDVyi3dHUin7vkyekLVkqnRR8Q+t7qZ604SDhRld3/TTlQGa8iNdUq5NgDYyzt aOdOJKurwB+Cjyy57aMhNlX18/Eu6mDHYe23jxdop5fBwgW2w56FbdhYY1y/XHhc8MvY vdjyTjLRUIF4B5q3G9N2W6IB8UkC6iTUGxMDhRzZmTlIWZJoC2FWFk+pHxZ5LQexDj1O ZnwebJJckm6EY3yZSGdy13sPrR2n6Xpj4+oQfU8yWE7rM8+xfgn/lMCbZk3bNtphR8Fz 7gUZoS1gfgWSkZ6L0Chp0XlVRsc1Hw8nkseYGlSPZ34kJtLSX4nlDi+BQzNlwk/X2ma9 lyUQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=berkeley.edu; s=google; h=date:from:to:message-id:subject:mime-version:x-original-sender :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=pX9TIPlj/Q4472o592CGp9bFscGLObMfBgin31qdeYU=; b=onJWFf7eyKmtbTj1FmbCN9j58e1+1Qx7qXwtdKMhNRFbeCsi5cH4ahiOjPhLnRJDhC ql6cDi51vEcCIDfy9KX0cVFkOFgVZMtQ3kpZIxg3RlNbFQ8BXfjVmtavpjx0X50KSwfs kROTX9XPy4HHA6xpo7KOlnjf+4tfHnywnlEC+1QVNO6RO/8gQYEvfkw9ChAT01UBIKDC Gt3uTNd399NaEg64aPCV22oBl9U2Roo0JnFA6YNwJJgVCcK4b+JBGOR63cJ/TkGLX1lP Fwut6N7A5o+SJlXZQXKsDgVbUy5uN3CASRkfO5fo5A3tfixTxmvL96W92XetkDyjs22O srmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:date:from:to:message-id:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=pX9TIPlj/Q4472o592CGp9bFscGLObMfBgin31qdeYU=; b=vqlIxfdio3leC7DBVjtADzFFxCsMhPG9JbgM3305noDpKavN5es6AnoMZgYS9VJImi a9aI3JUZ1MWXn0WRJIefwB0Jp1lJZFv65HCkwL5l2bpne9wDWrV+q4hTnQIS1k52GsQE m6K2DKPdimHNAzNmUSoN4Se9cBNJS5YujGVdHEBMOlw0thsvP4wJrQLyntDDKc69BPSy TZT/hCw0tu9H9GRWCj7KonpC3pL5VIRESzcQxV9loVOrZFhXVvGVjaClJGXVIHZiQ9Bl umYPMTPsIGbg/oHceW9+10mDosc633xQzSLN1f6LDKFFuaXQpcfngLk6aNVC6pOXs6KG Q3sQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AJIora+hfUdJzmiuc7S1b6FAYeOTwj+CgOzxMjtEuqLClb+irOw7pCCg Eupy2Lc3nWJ4DL0TrpT+0js= X-Google-Smtp-Source: AGRyM1uqKn4JHbyYB6V6Rz0gMjO91fiMncTu1nv9P9ngBOvmY9XWfluqU4fJAXnAydZeTWQTOG2rCQ== X-Received: by 2002:a81:1d13:0:b0:31c:f77b:9d27 with SMTP id d19-20020a811d13000000b0031cf77b9d27mr37076369ywd.514.1658251545305; Tue, 19 Jul 2022 10:25:45 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:690c:291:b0:31e:53e0:a930 with SMTP id bf17-20020a05690c029100b0031e53e0a930ls386955ywb.10.-pod-prod-gmail; Tue, 19 Jul 2022 10:25:42 -0700 (PDT) X-Received: by 2002:a81:6d01:0:b0:31d:a153:ace0 with SMTP id i1-20020a816d01000000b0031da153ace0mr37098479ywc.260.1658251542525; Tue, 19 Jul 2022 10:25:42 -0700 (PDT) X-Original-Sender: rhuntsinger-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:31028 Archived-At: ------=_Part_9726_1673270383.1658251541800 Content-Type: multipart/alternative; boundary="----=_Part_9727_430945855.1658251541800" ------=_Part_9727_430945855.1658251541800 Content-Type: text/plain; charset="UTF-8" Here below are codes for two latex tables (generated by pandoc with a lua filter). The first table renders perfectly. The second nested table throws an error. Can you help diagnose the problem? THE LUA FILTER: function RawBlock (raw) if raw.format:match 'html' then return pandoc.read(raw.text, 'html').blocks end end THE ERROR MESSAGE: Runaway argument? \global \advance \c@LT@chunks \@ne \global \LT@rows \z@ \setbox \z@ \vbox \ETC. ! Forbidden control sequence found while scanning use of \LT@nofcols. \par l.176 \begin{longtable}[]{@{}rrr@{}} TABLE 1: \begin{longtable}[]{@{}rrr@{}} \caption{This is a Caption}\tabularnewline \toprule a & b & c \\ \midrule \endfirsthead \toprule a & b & c \\ \midrule \endhead 1 & 10 & 100 \\ 2 & 20 & 200 \\ 3 & 30 & 300 \\ \bottomrule \end{longtable} TABLE 2 (a table of 2 tables): \begin{longtable}[]{@{} >{\raggedright\arraybackslash}p{(\columnwidth - 2\tabcolsep) * \real{0.5000}} >{\raggedright\arraybackslash}p{(\columnwidth - 2\tabcolsep) * \real{0.5000}}@{}} \toprule \endhead \begin{minipage}[t]{\linewidth}\raggedright \begin{longtable}[]{@{}rrr@{}} \caption{\textbf{This is a Caption}}\tabularnewline \toprule a & b & c \\ \midrule \endfirsthead \toprule a & b & c \\ \midrule \endhead 1 & 10 & 100 \\ 2 & 20 & 200 \\ 3 & 30 & 300 \\ \bottomrule \end{longtable} \end{minipage} & \begin{minipage}[t]{\linewidth}\raggedright \begin{longtable}[]{@{}rrr@{}} \caption{\textbf{This is Another Caption}}\tabularnewline \toprule a & b & c \\ \midrule \endfirsthead \toprule a & b & c \\ \midrule \endhead 2 & 20 & 200 \\ 4 & 40 & 400 \\ 6 & 60 & 600 \\ \bottomrule \end{longtable} \end{minipage} \\ \bottomrule \end{longtable} -- 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/6bde11a6-701b-4ceb-8664-0f7348bd4b4fn%40googlegroups.com. ------=_Part_9727_430945855.1658251541800 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Here below are codes for two latex tables (generated by pandoc with a lua filter).  The first table renders perfectly.  The second nested table throws an error.  Can you help diagnose the problem?

THE LUA FILTER:
function RawBlock (raw)
  if raw.format:match 'html' then
    return pandoc.read(raw.text, 'html').blocks
  end
end

THE ERROR M= ESSAGE:
Runaway argument?
\global \advance \c@LT@chunks \@ne \global \LT@rows \z@ \setbox \z@ \vbox \ETC.
= ! Forbidden control sequence found while scanning use of \LT@nofcols.
<= inserted text>
\par
l.176 \begin{longtable}[]{@{}rrr@{}} 

TABLE 1:
\begin{longtable}[]{@{}rrr@{}}
\caption{This is a Caption}\tabularnewline
\toprule
a & b & c \\
\midrule
\endfirsthead
\toprule
a & b & c \\
\midrule
\endhead
1 & 10 & 100 \\
2 & 20 & 200 \\
3 & 30 & 300 \\
\bottomrule
\end{longtable} 

TABLE 2 (a table of 2 tables):
\begin{longtable}[]{@{}
  >= {\raggedright\arraybackslash}p{(\columnwidth - 2\tabcolsep) * \real{0.5000}}
  >{\raggedright\arraybackslash}= p{(\columnwidth - 2\tabcolsep) * \real{0.5000}}@{}}
\toprule
\endhead
\begin{minip= age}[t]{\linewidth}\raggedright
\begin{longtable}[]{@{}rrr@{}}
\capti= on{\textbf{This is a Caption}}\tabularnewline
\toprule
a & b & c \\
\midrule
\endfirsthead
\toprule
a & b & c \\
\midrule
\endhead
1 & 10 & 100 \\
2 & 20 & 200 \\
3 & 30 & 300 \\
\bottomrule
\end{longtable}
\end{minipage} & \begin{minipage}[t]{\linewidth}\raggedright
\begin{longtable}[]{@{= }rrr@{}}
\caption{\textbf{This is Another Caption}}\tabularnewline
\toprule
a & b & c \\
\midrule
\endfirsthead
\toprule
a & b & c \\
\midrule
\endhead
2 & 20 & 200 \\
4 & 40 & 400 \\
6 & 60 & 600 \\
\bottomrule
\end{longtable}
\end{minipage} \\
\bottomrule
\end{longtable}

 

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d= /msgid/pandoc-discuss/6bde11a6-701b-4ceb-8664-0f7348bd4b4fn%40googlegroups.= com.
------=_Part_9727_430945855.1658251541800-- ------=_Part_9726_1673270383.1658251541800--