From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/31889 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mike Power Newsgroups: gmane.text.pandoc Subject: Re: Trying to render markdown to pdf and a long table row is giving me a Undefined control sequence Date: Wed, 14 Dec 2022 14:11:47 -0800 (PST) Message-ID: <7f22f6a5-708b-4914-9c33-1988fedb676en@googlegroups.com> References: <012001ad-be6d-48d9-b0e2-b3173fe5346bn@googlegroups.com> <25b0b6d4-63f5-4d13-9175-0ba85bc605e5n@googlegroups.com> <87r0x1veyu.fsf@zeitkraut.de> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_3076_1377373797.1671055907229" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6444"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBD6NVPU3TUIRBJEU5GOAMGQEEO7WXPQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Dec 14 23:11:53 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oa1-f56.google.com ([209.85.160.56]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1p5Zyi-0001Vb-Ho for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 14 Dec 2022 23:11:52 +0100 Original-Received: by mail-oa1-f56.google.com with SMTP id 586e51a60fabf-143c7a3da8asf6135269fac.23 for ; Wed, 14 Dec 2022 14:11:52 -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:references:in-reply-to:message-id:to:from:date :sender:from:to:cc:subject:date:message-id:reply-to; bh=gtFj5sgAVMvuzU8tZjebo/KyAn9kTTPz9/OHNa2bgds=; b=K0Hu/7q+voPphGjfTYMb5MU3c6hIVR0mswQujOrrMbjQKIkOQct/vVW/bMvT/UCkpL IBT85ZfA6Ha3O/R9hc07MZUwritYAfypBV2WofjmTKhg3EbtOYo3DI89mFMZp3oEl89t iDSvk5lr6O6FofUCwqI9+b9Xaip1E7g2LZFhW/BI1nYyNTb6A4UDQ/UU6RhVtUcFOwas bZV6ahBrUpqYsSmkFrNHQ3AKPdNgqeaUFdQnIh13Qys7RBffKxeqZBcdJBQN4ZC2tBph 4QGJsz2ebt2vMfiODet+N9BO4yJ0BtfzGELsqN18wmfI/iMrorPda7Rm661aczdbPiTb h29Q== 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:references:in-reply-to:message-id:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=gtFj5sgAVMvuzU8tZjebo/KyAn9kTTPz9/OHNa2bgds=; b=RkVCmmkEdhPUITkj7l9dfxa0x3+mlzvgicHPdQts/BAvfnnA1C24185+dGzdE+lFH3 WuZ6N0r69CbD/KYbAOSNCtux/oMfePMOmeNMlr5uxIlY6slztqYbrbfjNY35Rio7yST7 kAB5vRQ+T4A8urXYX/oD13zDndby31eqjERMLUFXBwYm/nJEf1XJOV/VBzS9OmBZY2Jy RqkMiOwjqVT9oIaSV+06t2C3ww5LJsdcskBiPKgoaynK3A82wNKScaKibjYL82FwMVcc A0VEJgD4/W83GT+5IFP0IweBSynbEnbaLOnFUxwlbTkJmxBF9po4TVKUqnV0rku90wlB HOsA== 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:references:in-reply-to :message-id:to:from:date:x-gm-message-state:sender:from:to:cc :subject:date:message-id:reply-to; bh=gtFj5sgAVMvuzU8tZjebo/KyAn9kTTPz9/OHNa2bgds=; b=qoWEbKQ89Ft+748eQ/15tZs6wdHipBTNTRphOgdOC9hn4rn11MCzZkD4BFhhx49rI2 VAMvDFu7QlXVBuC5rv8L0eY/s9I8/mw9MASv2bW3/vQ7/SOTSBzUvh1+2MzlruOeq15m yzKnN9y/u+ndDJ/MCSWnNADxfSOkXkeKiaNdTCwxR3zbJVuK9/UflN0v2SbekgZCtSWo nRQ6VeFLmPi7GEbIJQWvPMVVAXb55dftCfrv6QY/LoQT82mwKlePyWPHJ+ZSMXv1qe++ MWOMpnGJnhFaUONDuiRfvg/nC/v4XPSfLMiWm2fOj3lpxJM1TbE+23eSO5tpZ4FY/RK/ LY6g== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ANoB5pl9J9V1F8lX350RHjxF7wHKYmt9yhaMumFkIrYpxal6ZIGWmOdd 4W6njHhVSn7SQLQy3SAV+6I= X-Google-Smtp-Source: AA0mqf71E9J8ebYFRG8yQmi3hUw8ItI8lImKNwhOGWPdgPDL5uJ6km48yJ0BFD924346I5XUUplXXA== X-Received: by 2002:a05:6830:608:b0:66e:293d:93e4 with SMTP id w8-20020a056830060800b0066e293d93e4mr33111461oti.241.1671055911438; Wed, 14 Dec 2022 14:11:51 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:aca:1906:0:b0:345:9a88:c799 with SMTP id l6-20020aca1906000000b003459a88c799ls1617050oii.5.-pod-prod-gmail; Wed, 14 Dec 2022 14:11:48 -0800 (PST) X-Received: by 2002:a05:6808:da:b0:354:94a9:be86 with SMTP id t26-20020a05680800da00b0035494a9be86mr220406oic.166.1671055908080; Wed, 14 Dec 2022 14:11:48 -0800 (PST) In-Reply-To: <87r0x1veyu.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org> 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:31889 Archived-At: ------=_Part_3076_1377373797.1671055907229 Content-Type: multipart/alternative; boundary="----=_Part_3077_673896237.1671055907229" ------=_Part_3077_673896237.1671055907229 Content-Type: text/plain; charset="UTF-8" That fixed it. Thank you On Wednesday, December 14, 2022 at 3:43:35 PM UTC-6 Albert Krewinkel wrote: > It looks like required packages missing from the template. Try with > > \usepackage{longtable,booktabs,array,calc} > > > Mike Power writes: > > > $ pandoc --version > > > > pandoc 2.12 > > > > Compiled with pandoc-types 1.22, texmath 0.12.1.1, skylighting > > 0.10.4, > > > > citeproc 0.3.0.8, ipynb 0.1.0.1 > > > > User data directory: /Users/mpower/.local/share/pandoc > > > > Copyright (C) 2006-2021 John MacFarlane. Web: https://pandoc.org > > > > This is free software; see the source for copying conditions. There > > is no > > > > warranty, not even for merchantability or fitness for a particular > > purpose. > > > > > > On Wednesday, December 14, 2022 at 2:51:05 PM UTC-6 Mike Power wrote: > > > > 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? > > > -- > Albert Krewinkel > GPG: 8eed e3e2 e8c5 6f18 81fe e836 388d c0b2 1f63 1124 > -- 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/7f22f6a5-708b-4914-9c33-1988fedb676en%40googlegroups.com. ------=_Part_3077_673896237.1671055907229 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable That fixed it.  Thank you

On Wednesday, December 14, 2022 at 3:43:35 P= M UTC-6 Albert Krewinkel wrote:
It looks like required packages missing from the templat= e. Try with

\usepackage{longtable,booktabs,array,calc}


Mike Power <dodt...@gmail= .com> writes:

> $ pandoc --version
>
> pandoc 2.12
>
> Compiled with pandoc-types 1.22, texmath 0.12.1.1, skylighting
> 0.10.4,
>
> citeproc 0.3.0.8, ipynb 0.1.0.1
>
> User data directory: /Users/mpower/.local/share/pandoc
>
> Copyright (C) 2006-2021 John MacFarlane. Web: https:= //pandoc.org
>
> This is free software; see the source for copying conditions. Ther= e
> is no
>
> warranty, not even for merchantability or fitness for a particular
> purpose.
>
>
> On Wednesday, December 14, 2022 at 2:51:05 PM UTC-6 Mike Power wro= te:
>
> When rendering markdown with a template, and the markdown has = a
> table with long rows, the rendering fails with=C2=A0Undefined = control
> sequence
> =20
> Steps to reproduce:
> =20
> Create file named:=C2=A0i-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 Qu= ery
> Query Query Query Query Query |
> | POST | Create Create Create Create Create Create Create Crea= te
> 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 PU= T
> PUT PUT PUT PUT PUT PUT PUT PUT PUT PUT PUT PUT PUT PUT PUT PU= T
> 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 |
> =20
> Create file named:=C2=A0i-am-a-template.tex
> Contents:
> \documentclass{$documentclass$}
> =20
> $if(tables)$
> \usepackage{longtable}
> $endif$
> =20
> =20
> =20
> =20
> \begin{document}
> =20
> $body$
> =20
> \end{document}
> =20
> Then run the following command:
> =C2=A0pandoc i-am-a-file.md =C2=A0 =C2=A0 =C2=A0 =C2=A0-f mark= down =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0-o
> i-am-a-pdf.pdf =C2=A0 =C2=A0 =C2=A0 =C2=A0--template i-am-a-te= mplate.tex
> =20
> Output:
> Error producing PDF.
> ! Undefined control sequence.
> <argument> @{} >{\raggedright \arraybackslash
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 }p{(\columnwidth -
> 2\tabcolsep...
> l.13 ...umnwidth - 2\tabcolsep) * \real{0.95}}@{}}
> =20
> =20
> If I shorten the table to:
> | HTTP | Usage |
> |--------|---------|
> | GET | Query |
> | POST | Create |
> | PUT | PUT PUT |
> | DELETE | Delete |
> =20
> Then I get the following output
> Error producing PDF.
> ! Undefined control sequence.
> l.12 =C2=A0 =C2=A0 \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.=C2=A0=C2=A0
> =20
> =20
> Is this a known bug?=C2=A0 Is there a workaround for it?


--=20
Albert Krewinkel
GPG: 8eed e3e2 e8c5 6f18 81fe e836 388d c0b2 1f63 1124

--
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/7f22f6a5-708b-4914-9c33-1988fedb676en%40googlegroups.= com.
------=_Part_3077_673896237.1671055907229-- ------=_Part_3076_1377373797.1671055907229--