From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/30865 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "John Gabriele" Newsgroups: gmane.text.pandoc Subject: Re: how to use a tabular in my markdown (any special considerations?) Date: Tue, 28 Jun 2022 19:38:36 -0400 Message-ID: <4e90f216-b857-4101-9d1d-27dc699f6297@www.fastmail.com> References: <2c8ee7b9-3c91-452f-8e31-5c6c40c46d3d@www.fastmail.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="8842"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Cyrus-JMAP/3.7.0-alpha0-713-g1f035dc716-fm-20220617.001-g1f035dc7 To: "John MacFarlane" , pandoc-discuss Original-X-From: pandoc-discuss+bncBDAMTAXN2AJRBHFC52KQMGQE5DG27PY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Jun 29 01:39:12 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-wm1-f64.google.com ([209.85.128.64]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1o6KnX-00028U-Uc for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 29 Jun 2022 01:39:11 +0200 Original-Received: by mail-wm1-f64.google.com with SMTP id az40-20020a05600c602800b003a048edf007sf3382366wmb.5 for ; Tue, 28 Jun 2022 16:39:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1656459551; cv=pass; d=google.com; s=arc-20160816; b=jbSQm12xusnOPIThWIj9rYmzwxwQNsv8YYLhZzdW6dNl7DV4gddIRxheNbl6dUX6w6 cVcgij/A8b7mXmL4DK6eLAmXrofBNFjnCOQC/T2qttCJhs6Wfr93q0ynDSkc+1sPsxCJ k4yj8DY6kmRUJFZB2QnmCEg8sKmep9W5CuBrDIqx18uDjeIu2qB+w2pMOxQSJy/Klgfc JExztjeOgf70Z0cGie3/6XXhmosHJXd+TnBDhyT/ShrhoTQ36dpVbEUsFGAJi7Cg96up u+zWme92OX8+Q+f+P3b6KgNHY1Q72pt5yvB1+wjMXDeY6YDywc7SVUBbUIMbtp2xsdgJ xZdQ== 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 :subject:to:from:date:references:in-reply-to:message-id:mime-version :user-agent:feedback-id:sender:dkim-signature; bh=ueq0L2dRmi7QYtQ7PlmHVmAN5d1Zyq29SVZ/b1tWN1w=; b=suoQcTMfZTZJn4bfuPC9ZNQZOvmTOniPUlVGkHTbj39rGNz0ddF9zt8aiC9fC/JN8N XZIp47mbeUS5t+TN02407txUw1y0y+NdL4VkUdXeiOT+yf4wtGC7mJrmTnaMOFnzqVRU PNx6+tcOMY/IUoZgTrhCR2jsmI5+PhqQGhFqVBrl1WYk6Jqy6NWWOzDcwIpS3bGveffF TVXRUL1yGSJLNYoiHh4rhabZxcRLwps+XbKjFf5GXNHGQH6tGeVlWCkwyyVcHVab2lDO 4tRUFx6v9QlXk2gllYhPC3Vz75J9UW9OCRZVnwia2f42bOL3Sc5MZFnDo7k6sOSxsZ9u fmaA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@fastmail.fm header.s=fm2 header.b=WPc3RURZ; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=Zh8ISK4Q; spf=pass (google.com: domain of jgabriele-97jfqw80gc6171pxa8y+qA@public.gmane.org designates 64.147.123.20 as permitted sender) smtp.mailfrom=jgabriele-97jfqw80gc6171pxa8y+qA@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fastmail.fm DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:feedback-id:user-agent:mime-version:message-id:in-reply-to :references:date:from:to:subject:content-transfer-encoding :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=ueq0L2dRmi7QYtQ7PlmHVmAN5d1Zyq29SVZ/b1tWN1w=; b=Z2jBr0eatItoVEVi9h9SkkE8IvcClQAYz/vum/sr1GtdG9kGRtGnDnhXpUyRDgYmvZ cy0vHBbM0aSfAKlDR8L2pqU2JS3p819OtED1UrgZ0iQi3YHDtKfpaV1tSwT0U8MsdB97 TMKpEmYEfHmV+0Su6NMDqmdWwdBisT7tDPL7UySKE7nDEltBIzf5dGWsIfm8CMhm60gs 4mk/3Xu0cEfzIdOHByUHgzaALO1u59pe7smvP/HlMYk7zkas22Lqf5gwDHrAbNg/kc2d V9NIflYmbVO5mCQxrt95hbmbEfa4+OH2Fd7utNJXmLqvSaUtvh0YLe9jk04EvtvLNgIL slog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:feedback-id:user-agent:mime-version :message-id:in-reply-to:references:date:from:to:subject :content-transfer-encoding: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=ueq0L2dRmi7QYtQ7PlmHVmAN5d1Zyq29SVZ/b1tWN1w=; b=bET3zScKkOzm2VZmqYyiF7+EN681RX6qpm3qB1YgKj3Spi0ep5Y+77SHyGM07kg/bb 3JJwVhrDjcBP7cxjof9xDkurj3mU0ammTIXPB21AksdPvwCyooFZ2j/ig2i872WX0Lwx GKu6qAaSLdG+HGpVexEacjykYhbazkBJ6gTrqolbXt+sFcq+pS1D7KS406co17DiX1Tc pCUvVaSuAvbOkocjMv78bfP6aFcRQQk2Ojo6NET/brcxLHH7rs3EwDuVW9yUY8O1dCxu iks5f95h+3cTjL+0tut5B11w2w1Iunptn2++rIm4m Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AJIora+XUMp9hm5/PQN+cLQQFFFR+uQVqts84haQmzEa5OtxPGAURL25 iNH+A9P0WmXNuKlsgESPdg8= X-Google-Smtp-Source: AGRyM1u4rFhUvnYX2OsJQWGwygAFOHuWzYGccu35T90egVCNjyCWha4FpdFLCOM+1SytE9bM+Exb9A== X-Received: by 2002:a05:600c:5120:b0:3a0:5738:eea3 with SMTP id o32-20020a05600c512000b003a05738eea3mr367198wms.81.1656459551410; Tue, 28 Jun 2022 16:39:11 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6000:184a:b0:21d:2802:2675 with SMTP id c10-20020a056000184a00b0021d28022675ls398165wri.1.gmail; Tue, 28 Jun 2022 16:39:07 -0700 (PDT) X-Received: by 2002:a5d:6b8c:0:b0:21b:8f2b:cbdf with SMTP id n12-20020a5d6b8c000000b0021b8f2bcbdfmr278940wrx.518.1656459547358; Tue, 28 Jun 2022 16:39:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656459547; cv=none; d=google.com; s=arc-20160816; b=s7aQzVke/65azAnyY3+wYsOXUlFTmSjygV0DWSpsgIJJfKTVpRyhf3IiAHeJGemaw7 RJP5NO4qMjcxHe0ZQKFmIOBuGdD0sPOV4BxiIpfq4RzBxtAAb/GSPRTuJGTNB7cuKp7Z Af4liy+7+6FMzBSPiIrJ9Mc/MBBmP/KIM7rQ1g7L8sAWRzjceMEs943RdXxuBjSzKuQx PfmM7HHnXzoqxOI6uHzR0FCBGPVSXiA0+GMEm1pKca5IwSCoZUflx0GVvdOis7szgXng b/JZuJm/Jx/uxIj9aRmDCRq/U8U0qz1XNuWp5oMN70ggIGYaCEbHLu8HSdHxkMqbMfm0 TegQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:subject:to:from:date:references :in-reply-to:message-id:mime-version:user-agent:feedback-id :dkim-signature:dkim-signature; bh=+9UwsLiHTpfrBZjRREE2pulh3bkt3CHKfa563f4r/PE=; b=yuA7iIer3AzpwhkR58DE7YT99A2cIUe0Pb+i9mkNpvzs1xpyG+fHAHE1g6xnzmuzsi 6dHp1bytjIxxKrtRvtGtTBJjPumJ495dFKWJ8NxNEQPCEIb8P6ap7Nm+7i8p0vg9AOJa iD7nSLKy6Lp+eGAEMu5WiOSBjsoUtJ20UzzvsMGT+DnvElia/8LV3YgMBWIS+3YkHPJH i1Sgo2w8MO5gH5ZDBTuAPv5bV2bOZkAWbgcEWqquuZkqtXjSN+kGaRjki8VGF9WdDtWn F0puUI566cmizjuRW3RUk086NvTvnGz6xJIMxll9PgUMn0RqrDGCnAMCZVa0UOxyopwU IttQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@fastmail.fm header.s=fm2 header.b=WPc3RURZ; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=Zh8ISK4Q; spf=pass (google.com: domain of jgabriele-97jfqw80gc6171pxa8y+qA@public.gmane.org designates 64.147.123.20 as permitted sender) smtp.mailfrom=jgabriele-97jfqw80gc6171pxa8y+qA@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fastmail.fm Original-Received: from wout4-smtp.messagingengine.com (wout4-smtp.messagingengine.com. [64.147.123.20]) by gmr-mx.google.com with ESMTPS id ay14-20020a05600c1e0e00b003a04819672csi210902wmb.0.2022.06.28.16.39.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Jun 2022 16:39:07 -0700 (PDT) Received-SPF: pass (google.com: domain of jgabriele-97jfqw80gc6171pxa8y+qA@public.gmane.org designates 64.147.123.20 as permitted sender) client-ip=64.147.123.20; Original-Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 62D6432008C3; Tue, 28 Jun 2022 19:39:05 -0400 (EDT) Original-Received: from imap46 ([10.202.2.96]) by compute1.internal (MEProxy); Tue, 28 Jun 2022 19:39:05 -0400 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrudegkedgvddvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucgoufhushhpvggtthffohhmrghinhculdegledmne cujfgurhepofgfggfkjghffffhvffutgfgsehtqhertderreejnecuhfhrohhmpedflfho hhhnucfirggsrhhivghlvgdfuceojhhgrggsrhhivghlvgesfhgrshhtmhgrihhlrdhfmh eqnecuggftrfgrthhtvghrnhepgeehffevtdekjedvtdehjeelteehffeijeejgeeiffff udfhfffhteejteevgfdtnecuffhomhgrihhnpehgihhthhhusgdrtghomhdpghhoohhglh gvrdgtohhmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhho mhepjhhgrggsrhhivghlvgesfhgrshhtmhgrihhlrdhfmh X-ME-Proxy: Feedback-ID: ifd0840a3:Fastmail Original-Received: by mailuser.nyi.internal (Postfix, from userid 501) id 9DC7A2A20075; Tue, 28 Jun 2022 19:39:04 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface In-Reply-To: X-Original-Sender: jgabriele-97jfqw80gc6171pxa8y+qA@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@fastmail.fm header.s=fm2 header.b=WPc3RURZ; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=Zh8ISK4Q; spf=pass (google.com: domain of jgabriele-97jfqw80gc6171pxa8y+qA@public.gmane.org designates 64.147.123.20 as permitted sender) smtp.mailfrom=jgabriele-97jfqw80gc6171pxa8y+qA@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fastmail.fm 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:30865 Archived-At: Ah! I'd forgotten that *in LaTeX*: * `^` is special --- and you can't just backslash-escape it to get that c= haracter (since that would give you a hat) * `<` and `>` are also special in plain text, yielding =C2=A1 (upside-dow= n bang) and =C2=BF (upside-down question mark) for some reason (!?). * you can put stuff like that into `\verb|...|` so they come out verbatim= . So, `\verb` worked fine for me. Thank you! And thanks for the tip about debugging by looking at Pandoc's la= tex output. -- John On Sat, Jun 25, 2022, at 4:10 PM, John MacFarlane wrote: > You can debug some problems like this by using > pandoc -t latex > > For example > > pandoc -t latex > ^\ > > yields > > \^{}\textless Up/Down/Left/Right\textgreater{} > > which tells you that ^ and < and > need to > be treated specially in LaTeX. > > > > "John Gabriele" writes: > >> Hi all, >> >> I'm trying to put a tabular element in my markdown file. My LaTeX is a l= ittle rusty, but here's what I have >> >> ~~~ >> hi >> >> \begin{tabular}{l l} >> ^ & move by word/para \\ >> & what you expect \\ >> [a/e & beginning/end of doc \\ >> ^] & go to matching bracket \\ >> ^j & jump to line number \\ >> \end{tabular} >> >> bye >> ~~~ >> >> This fails with: >> >> ~~~ >> Error producing PDF. >> ! Missing $ inserted. >> =20 >> $ >> l.70 ^ >> ~~~ >> >> I thought maybe it was those carets (^), so I backslash-escaped them, bu= t then still got this error: >> >> ~~~ >> Error producing PDF. >> ! Missing number, treated as zero. >> =20 >> a >> l.73 \^] >> ~~~ >> >> What special text rules must I follow in the content of my tabular field= s? >> >> *** >> >> Background: BTW, the reason I want to do this is because I'm writing a t= wocolumn landscape pdf, and it turns out that tables don't work in 2-column= (see https://github.com/jgm/pandoc/issues/1023 ). I thought maybe it would= work because my output pdf is landscape rather than portrait: >> >> pandoc -t pdf -o foo.pdf -V geometry=3D"margin=3D0.8in,landscape,two= column" -V fontsize=3D12pt foo.txt >> >> but alas that is not the case. So, I figured I'd get my tables by writin= g raw latex tabular blocks. >> >> Thanks, >> -- John >> >> --=20 >> You received this message because you are subscribed to the Google Group= s "pandoc-discuss" group. >> To unsubscribe from this group and stop receiving emails from it, send a= n email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To view this discussion on the web visit https://groups.google.com/d/msg= id/pandoc-discuss/2c8ee7b9-3c91-452f-8e31-5c6c40c46d3d%40www.fastmail.com. --=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/4e90f216-b857-4101-9d1d-27dc699f6297%40www.fastmail.com.