From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/31886 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mike Power Newsgroups: gmane.text.pandoc Subject: Trying to render markdown to pdf and a long table row is giving me a Undefined control sequence Date: Wed, 14 Dec 2022 12:51:05 -0800 (PST) Message-ID: <012001ad-be6d-48d9-b0e2-b3173fe5346bn@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_2756_570995038.1671051065307" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5260"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBD6NVPU3TUIRBOXO5COAMGQEDKJQ3SI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Dec 14 21:51:10 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ot1-f56.google.com ([209.85.210.56]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1p5Yic-00013U-0F for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 14 Dec 2022 21:51:10 +0100 Original-Received: by mail-ot1-f56.google.com with SMTP id l31-20020a9d1b22000000b0066c48e9249fsf2298771otl.5 for ; Wed, 14 Dec 2022 12:51:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:message-id:to:from:date:sender:from:to:cc :subject:date:message-id:reply-to; bh=KAez1hRX9Gfmbd8xAKyMOQhXFr4G55aT0lmeCjyGjrY=; b=C0Ey/eOPzU+qzz0y+NilLrkE82o6g09W7dmfaQEyJXzwZd0t770dFqedyfz4bYIm9S 2uhkbG5X3Kw7QgAiFdVvxgVG0Bgw/QfulXZYSlSl4WqrZhSNachfygkaIRmQHumw9QfB 6cXdf1epf2GLH+7uO7g2vNq/THtcWoR5hzZboOqnd5gf8pgYszkNlhu8UZqzLz5HiUUj pOpP+VE7WPPW6LuJwIN2OA+VRwtMBvPV8oyDwA7ljTRBZUh9ogkWI9UlLZyQIjftnYaS tlsvyVn2AoOPprVF71yLtXCrOqihQrTl2YX1UHnTMslSjS416PZH6Us5piwDAACES+pn Z6NQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:message-id:to:from:date:from:to:cc:subject :date:message-id:reply-to; bh=KAez1hRX9Gfmbd8xAKyMOQhXFr4G55aT0lmeCjyGjrY=; b=L2g0SmVciPE+rDovPwWuy0k/lteWKZfZBNif2hNa7x8gfFW4qVG657tBytL/9obMcB sjdf4zjBGvJMIuzvxKumfTBUCv1zpYql69JrXB0ytSBEvCsQ/clHIrJbawyKEr+M+n0d elCeUIC5DQICiWB0PAT9SKaCfty37txLJnoc4RJNwbR+FMiGrpqRnlHk7v5TCPfcJAKz wX/2Zl+DTMhxMt9FQhL79XGLKVEfj1CYzHQE09orDYRzorCkuYBDHJx9n3xjlyRSYNRb rK+x5P7gyoGdOyElklinWl3qehTz9h+ZcKDE6SrFVhxmSq8pbgr9rZlWc510byZAm6yo E+uA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-sender:mime-version:subject:message-id:to:from:date :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=KAez1hRX9Gfmbd8xAKyMOQhXFr4G55aT0lmeCjyGjrY=; b=yIYiy+r/DubvMj+wcsbxdckwH+QF1nx+2oDGGJNUtUeswGQeTSBkp868Eq0z8/EthH +r9kTVma0k+WBS0FXCvNMLHQPqWnipbRDhkL71ZClx/n2BUwoCVRu3bcBsGLX7nyzoip qh9P1FViNMP9O3tqsYWnw4TawHg0Zm/dD1l33JulzzHp6JhK2GkevB2+tZZgGLkfhpkt 5c3cfjLMlbDPVG45MT/tifBfrVawmvdJA8E5P7RP80NA0Io8FTM9PAFuQUmDxCaQ4AR3 g1FTeKxs6iL5eXSXT+xZJtNEvKsm4CqfNJcAxVMChqcfyH/FeqSRmfDxHJ5omy0yAjYP 5Wtw== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ANoB5pnLcSZhrHYY2LVVg3bLdhzh2gK0pSIfG3X/3j4mT19vy8FaViUs F4w7QlE0UqGAs16JLjDxPYc= X-Google-Smtp-Source: AA0mqf6BJYQi0BwhUgZzZDcv9+A4l5aBQs6ujTAN1NqzBLSWsX4m5rrotw10XwS9Ydjluoa3ZIieiQ== X-Received: by 2002:a05:6808:1aa7:b0:35e:9007:e647 with SMTP id bm39-20020a0568081aa700b0035e9007e647mr192953oib.268.1671051068862; Wed, 14 Dec 2022 12:51:08 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6808:1a98:b0:354:b362:347f with SMTP id bm24-20020a0568081a9800b00354b362347fls2171445oib.2.-pod-prod-gmail; Wed, 14 Dec 2022 12:51:06 -0800 (PST) X-Received: by 2002:a05:6808:2d4:b0:35c:76f:a52d with SMTP id a20-20020a05680802d400b0035c076fa52dmr227086oid.80.1671051066095; Wed, 14 Dec 2022 12:51:06 -0800 (PST) X-Original-Sender: dodtsair-Re5JQEeQqe8AvxtiuMwx3w@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:31886 Archived-At: ------=_Part_2756_570995038.1671051065307 Content-Type: multipart/alternative; boundary="----=_Part_2757_387316957.1671051065307" ------=_Part_2757_387316957.1671051065307 Content-Type: text/plain; charset="UTF-8" When rendering markdown with a template, and the markdown has a table with long rows, the rendering fails with Undefined control sequence Steps to reproduce: Create file named: i-am-a-file.md Contents: | HTTP | Usage | |--------|-------------------------------------------------------------------------------------------------------------------------------------------------------| | GET | Query Query Query Query Query Query Query Query Query Query Query Query Query Query Query Query Query Query Query Query Query Query Query Query Query | | POST | Create Create Create Create Create Create Create Create Create Create Create Create Create Create Create Create Create Create Create Create Create | | PUT | PUT PUT PUT PUT PUT PUT PUT PUT PUT PUT PUT PUT PUT PUT PUT PUT PUT PUT PUT PUT PUT PUT PUT PUT PUT PUT PUT PUT PUT PUT PUT PUT PUT PUT PUT PUT PUT | | DELETE | Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete | Create file named: i-am-a-template.tex Contents: \documentclass{$documentclass$} $if(tables)$ \usepackage{longtable} $endif$ \begin{document} $body$ \end{document} Then run the following command: pandoc i-am-a-file.md -f markdown -o i-am-a-pdf.pdf --template i-am-a-template.tex Output: Error producing PDF. ! Undefined control sequence. @{} >{\raggedright \arraybackslash }p{(\columnwidth - 2\tabcolsep... l.13 ...umnwidth - 2\tabcolsep) * \real{0.95}}@{}} If I shorten the table to: | HTTP | Usage | |--------|---------| | GET | Query | | POST | Create | | PUT | PUT PUT | | DELETE | Delete | Then I get the following output Error producing PDF. ! Undefined control sequence. l.12 \toprule Which I think is related to a missing package in my sample template because I tried to strip it down as much as possible to show only the code that is producing the error. Is this a known bug? Is there a workaround for it? -- 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/012001ad-be6d-48d9-b0e2-b3173fe5346bn%40googlegroups.com. ------=_Part_2757_387316957.1671051065307 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable When rendering markdown with a template, and the markdown has a table with = long rows, the rendering fails with Undefined control sequence

Steps to reproduce:

Create file named:&nb= sp;i-am-a-file.md
Contents:
| HTTP = | Usage = = |
|--------|--------------------------------------------------------= ---------------------------------------------------------------------------= --------------------|
| GET | Query Query Query Query Query Query Que= ry Query Query Query Query Query Query Query Query Query Query Query Query = Query Query Query Query Query Query |
| POST | Create Create Create Cr= eate Create Create Create Create Create Create Create Create Create Create = Create Create Create Create Create Create Create |
| PUT | PUT PUT= PUT PUT PUT PUT PUT PUT PUT PUT PUT PUT PUT PUT PUT PUT PUT PUT PUT PUT PU= T PUT PUT PUT PUT PUT PUT PUT PUT PUT PUT PUT PUT PUT PUT PUT PUT |
| = DELETE | Delete Delete Delete Delete Delete Delete Delete Delete Delete Del= ete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete D= elete |

Create file named: i-am= -a-template.tex
Contents:
\document= class{$documentclass$}

$if(tables)$
\usepackage{longtable}
$en= dif$




\begin{document}

$body$

\end{docu= ment}

Then run the following command:
 pandoc i-am-a-= file.md        -f markdown         =  -o i-am-a-pdf.pdf        --template i-am-a-templa= te.tex

Output:
Error producing PDF.! Undefined control sequence.
<argument> @{} >{\raggedright \a= rraybackslash
                &= nbsp;                    =         }p{(\columnwidth - 2\tabcolsep...
l.13 ...u= mnwidth - 2\tabcolsep) * \real{0.95}}@{}}


If I shorten th= e table to:
| HTTP | Usage |
|--------= |---------|
| GET | Query |
| POST | Create |
| PUT | P= UT PUT |
| DELETE | Delete |

Then I get the following out= put
Error producing PDF.
! Undefined contr= ol sequence.
l.12     \toprule
Which I think is rela= ted to a missing package in my sample template because I tried to strip it = down as much as possible to show only the code that is producing the error.=   


Is this a known bug?  Is there a workaround fo= r it?

--
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/012001ad-be6d-48d9-b0e2-b3173fe5346bn%40googlegroups.= com.
------=_Part_2757_387316957.1671051065307-- ------=_Part_2756_570995038.1671051065307--