From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/31888 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Albert Krewinkel 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 22:41:51 +0100 Message-ID: <87r0x1veyu.fsf@zeitkraut.de> References: <012001ad-be6d-48d9-b0e2-b3173fe5346bn@googlegroups.com> <25b0b6d4-63f5-4d13-9175-0ba85bc605e5n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28891"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCZJF7XJTILRBA4H5GOAMGQEHLMSKKQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Dec 14 22:43:36 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-wm1-f60.google.com ([209.85.128.60]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1p5ZXL-0007Ij-Ie for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 14 Dec 2022 22:43:35 +0100 Original-Received: by mail-wm1-f60.google.com with SMTP id f1-20020a1cc901000000b003cf703a4f08sf129638wmb.2 for ; Wed, 14 Dec 2022 13:43:35 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1671054215; cv=pass; d=google.com; s=arc-20160816; b=R7IVcS7G937LIlRWDGMCYcgpkHP7dBszhSIA52EsVQGGas5tle7xXYYCrN/IHlKI6Z 40H45wC1Wi8guKYw5yY5CnD3hZnkbh1bzBi7kCNzA23uC3kTpb9Iv1kLkw7SaFaN3FxI rW4JcmrQZ+jvVjIjfnHX0ozciQHDXqOHlWi6InoKxoKG6igEf/d1E+ZyYhOJL+UvJ30C jvMBWjAKzbX2JHLy9P+fbrntce4jMn9gHnxQ1uUQn6OJQ2vUtfxtO3qVZ1i7GqztRaLL ZQI+O5poQiM2tcQCgRG1ha0X7Tuc1xuzlZQSXUvPC7aqngeS6BY9zlUv+TeUNf8QLj9a OUtw== 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:content-transfer-encoding :mime-version:message-id:in-reply-to:date:subject:to:from:references :sender:dkim-signature; bh=H3ds3mXGFD4D4edKL7a2X0PQTiJEpiT8i4dIbM/n8lM=; b=q3V1JMrtiQ+Dwgy1o4xVdE2Obab6gEjJgMZ1DVINZUvM8FhPLV+a0aOMLnoA+6D/N7 Dqm+ATmzPndZEYQTlQwv4aty/K/Jjh9KtECQl0DXEMvFKZT8p93Xcn4BGIcMTbAsv2mp wDhuKMn5ggnIEZPeD0BaCkTWJtwBmxpq/0BqgWQAhUuExiIQ4DW+mXJ3ik1gMWZ1uP1o EpVT9oOa6BRoWwjTo7VSJ4iQ4gAS3XMIG4SptxRgvI1GeN0R6nOi1CJ6B971JTOyBl6r q+drrISENt4ZjuYyMtdvArhHFE/9vz1oXpVQZjVH4etf5CQpWK4NLxaJ5MmaQoD+zsse g3aQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 80.241.56.151 as permitted sender) smtp.mailfrom=albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org 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-authentication-results:x-original-sender :content-transfer-encoding:mime-version:message-id:in-reply-to:date :subject:to:from:references:sender:from:to:cc:subject:date :message-id:reply-to; bh=H3ds3mXGFD4D4edKL7a2X0PQTiJEpiT8i4dIbM/n8lM=; b=BkV6v+BAUvX6pYcNhLzIlXPmjMQYMWNlDicR0v0JscJ3Du3SNIE1I5Pc8oe0p5ZG99 KPL5Z0CbAOVpUkRisbLbffOgqKNhD3FwqbN59Bw9GgJldsOGJOraJlNspPIEjKTdoRzb r64MjG3tVzXP9BMfy+Zz+yNW3up5wHRaJPztDOdh1NyS7KrdpD8M66Wbm06nw58ny7mN fRumLcakgyj/xAecLX1Esc7i1GHCSfV/1VudPk2GUz+aTVEK0J7MRE+J3DEZxUHLMlqn BP1K9ii29UBbmVjwPk/6vMG86vC1iNf7MyHJxnLezV29t6OzDj9FmPbDh5Tc0w8q0 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-authentication-results:x-original-sender :content-transfer-encoding:mime-version:message-id:in-reply-to:date :subject:to:from:references:x-gm-message-state:sender:from:to:cc :subject:date:message-id:reply-to; bh=H3ds3mXGFD4D4edKL7a2X0PQTiJEpiT8i4dIbM/n8lM=; b=xnLAgq5/TJVzY/plms301l2rDZ1D5LQHZCXD3yhSp4wz7BZKD8H+r9YaMrSdbvjfQe tn3ajONGTzF43cRhExVD0Za7YM61I8UI5RKJ7P/v3xdCxWv3hCFORsL1862+DgRBs8j7 yf5BnIYlJJvSLgDDSIDzuSbr3Oy0AaxiAuznUlYAcYbQPLY9svNifOzgy724MY+LbnOY br4g7CVg/PsNr3tRGIKDJtbFZ+8FRJ7DeVphR+VywQ/6pxPGm10p17F2uJvCcX8Ck3Dr UABU6cNpFkhp/f6wY7Ls Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ANoB5plqQYCUPt9C+WVSgZCXumEp9tTj3mGANh9MGxP+vghc0bUnOlIq Ebp4KUO5hfL8mcXBXmRbdGs= X-Google-Smtp-Source: AA0mqf79OWwrUYdCoUh7KKTLhEGOTKXX3R33zxXAZ35WP06+ujANKA/k0EC+EmC4jmGyr8JKoRr7EQ== X-Received: by 2002:a05:600c:2295:b0:3d1:e710:9905 with SMTP id 21-20020a05600c229500b003d1e7109905mr181974wmf.81.1671054215107; Wed, 14 Dec 2022 13:43:35 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:600c:5120:b0:3cf:9be3:73dd with SMTP id o32-20020a05600c512000b003cf9be373ddls309231wms.3.-pod-canary-gmail; Wed, 14 Dec 2022 13:43:30 -0800 (PST) X-Received: by 2002:a05:600c:1e08:b0:3cf:8e62:f8fd with SMTP id ay8-20020a05600c1e0800b003cf8e62f8fdmr20269194wmb.8.1671054210757; Wed, 14 Dec 2022 13:43:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671054210; cv=none; d=google.com; s=arc-20160816; b=AWbf9FR88aOB5bvTFz1WZW2EkX69D3dGifohtiZagvkDEFCcOzDUdl1LKREmoxQHAu llX6S6HsY5usOK0k3/lhsleK8gCpVfsKWTpzy5XY32aYA1zVGdoCilSfee2XdBfUO1Cm wgsAqTRwV+z2E+NTp6Jwy2LDxnfNSvuScwioWqQOFVrJArZnRCtW2YNG44YiAdXxo/lc tDQSyaFMT5WpNn+W8PQUkOKpSYflMf0OyH6fJoic82PMkXFTdtMrSRVTqZ0Hy1CkuHaf NBjsA5ZrQstObr/LnV4O629gVoNe+c14bQtWAC0HA+Yf9CfjqXrD8xcYYqZONkRIVmEA qwhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:in-reply-to:date :subject:to:from:references; bh=Clo31Cay/Nsrkjl3DIERVJyk18Q/sYPET2HhYZu/dr4=; b=CQMrZpX80hPn9Wu7ckj6Abh+EsBqQfsSGfVKFHrgycUboEnnReQaNNPCxEXYDQ1jkx rP8cYlB7bAxobq0yKg4oAWCsy8N0eACoVs+f1wD6Tr4RyOlOEgHNEk18i+9ARwWYKDtB OIW1kUoVP9HWDSBqi5FMYJ/MSp5+ERP99ivRjcVrycHHCNTc0dgiv4tO7ETf7i9Sq0Of B1tJFugnXIiheBBqzCU4BMXnBDocb7nUnbg5XmdIHH3obu3glJWbxXqon/LLaLew4Xxz W/K/CYoy/H7TfqHn3hsElSLYM20MHwPfFwYeiKrPXwH4ZjTuWlCcmfYykRSmb69Sropg wjgA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 80.241.56.151 as permitted sender) smtp.mailfrom=albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org Original-Received: from mout-p-101.mailbox.org (mout-p-101.mailbox.org. [80.241.56.151]) by gmr-mx.google.com with ESMTPS id m65-20020a1ca344000000b003d1d8d3577dsi372548wme.2.2022.12.14.13.43.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Dec 2022 13:43:30 -0800 (PST) Received-SPF: pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 80.241.56.151 as permitted sender) client-ip=80.241.56.151; Original-Received: from smtp1.mailbox.org (smtp1.mailbox.org [IPv6:2001:67c:2050:b231:465::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4NXTPp10tlz9sby for ; Wed, 14 Dec 2022 22:43:26 +0100 (CET) In-reply-to: <25b0b6d4-63f5-4d13-9175-0ba85bc605e5n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Rspamd-Queue-Id: 4NXTPp10tlz9sby X-Original-Sender: albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 80.241.56.151 as permitted sender) smtp.mailfrom=albert+pandoc-9EawChwDxG8hFhg+JK9F0w@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:31888 Archived-At: 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=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 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 | > =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 markdown = =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-template.= tex > =20 > Output: > Error producing PDF. > ! Undefined control sequence. > @{} >{\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 --=20 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 e= mail 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/87r0x1veyu.fsf%40zeitkraut.de.