From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32730 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "'RM' via pandoc-discuss" Newsgroups: gmane.text.pandoc Subject: Cleaner Table Formatting when converting from Markdown to Latex? Date: Wed, 31 May 2023 12:08:53 -0700 (PDT) Message-ID: <532e15c3-6027-45bd-b0ba-7393632f2dc9n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_66_1676683478.1685560133220" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11624"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCPPTX562AERBSFW32RQMGQEDZWWPZI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed May 31 21:09:00 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-qt1-f187.google.com ([209.85.160.187]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1q4RBr-0002iS-I5 for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 31 May 2023 21:08:59 +0200 Original-Received: by mail-qt1-f187.google.com with SMTP id d75a77b69052e-3f6a71e8321sf94701611cf.2 for ; Wed, 31 May 2023 12:08:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1685560138; cv=pass; d=google.com; s=arc-20160816; b=LGlvhwZArEb3XVWIUF6SJ7XGJw19EmgRBtiwYJ+ptG1/gIO+RPuhgsVDKgwxji6esG 5bQPl1HjN1efmZZqtZb39FbOuQQgRLaKTVCeA0EcUoTbUKOY4gFCvM7adEibxfwBC3zi OgbID8VM4e3QzYM7XCRJ101YsIYmeNiiVV2yIrqCBmenIo7zBfkGeyKQkvBk8rkmhIym aGSb93KLy22loFb/CZ78HstR4uPtm/CZL4c/YJO76xHqm9YT0zd/CBGfd0/tVNnz03q+ ix96T8YzbZVbwk9M1goJ6xuh5GLhmRI7gT9sTCuXq6pYgUPvxqY+H+NtfVKqZqgL/iLG Q9fg== 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:mime-version:subject :message-id:to:from:date:dkim-filter:dmarc-filter:dkim-signature; bh=90gnZskUx7Jy6BAURbLc/y5cctL7S+Co4L3SR5ZDgsY=; b=PLPnAuBWdnVEmcVUkOni0JIMgEz/HcAPmHVmh/e9EnKrBjl7hsgkumUoXQvZPsYefO 8P3ZdbEfG0CM/8dUbwukFk1LVB1aptIT+cKV84GxIxKUSinSyIxer37WygOS3j7xODlK fod0rYPixrHGmzgP+4j/OwAL/s/hsTqMd3OpLjWn8BXcvHVNZ01bY6sIRzrsWn81yMI5 8srpNw2KyxgL6cv4Et+Qkyy2spXsUUePN4LvU2FwSwFDv9UumrkffwDXctZTkYBU24vQ Wix+I0HvqUQ6HGS/WR67X0bu3J/84BcwWRnxdRkclEKcWooVGwRDQFK4vaw5X4bxTJ9S sV3A== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@umn.edu header.s=google header.b=SeQeN4FS; spf=pass (google.com: domain of winsl055-OJFnDUYgAso@public.gmane.org designates 134.84.196.206 as permitted sender) smtp.mailfrom=winsl055-OJFnDUYgAso@public.gmane.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=umn.edu DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20221208; t=1685560138; x=1688152138; 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:mime-version :subject:message-id:to:from:date:dkim-filter:dmarc-filter:from:to:cc :subject:date:message-id:reply-to; bh=90gnZskUx7Jy6BAURbLc/y5cctL7S+Co4L3SR5ZDgsY=; b=NGSxzQwgOfcmRnPckJlc6P8B0/VDumg3UxcW4ZpSl6AfRqngViq0t5r2Y0kSMPizXw lfh8CBumXPQxoDHk9F/q5CAa3qkaEfugUqf7UOD0hXjhYSlJ1IV1Qv59xvw/Rd5IYGts h+s4vv8GYqv3CbwtoNnkbXhXS+rRXmeuI7mfT688BoxEzZEQI86mp/OQU5plYEho4iMH rylRb8Bserlr+FnIcJxFcea5KJnpbNIlCwY9lRUZ/L2ebkHN9bYDGTw3CokFYXk1fgnc T1ONJgQSq1+ifOkom/IGMOOlG74LnRYGUa8ZgVJMgaerQty3DHVwXx1ZzJmDs9JydL6j X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685560138; x=1688152138; 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:mime-version :subject:message-id:to:from:date:dkim-filter:dmarc-filter :x-beenthere:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=90gnZskUx7Jy6BAURbLc/y5cctL7S+Co4L3SR5ZDgsY=; b=lVWncYMq+eK6K0IRYLju/0fcAmvZK9G61BvYKETb2vJsI8o/BpSJmmvxJJu8U7zOmw mXhHMBYAFGwAa6v8PNaCd2o43MWOjBpISb3Ejab+NnnTzYTFQzMa/B/nqQ5cxRjE9jK8 nTSlbaQ3kepqkpdd7n5teboR0HQvVXrTYycvPS7DRSJur9SkbONYoR6pVrU8oHYB1mct xqSWEN9KUUbRCKq0g7TJRdBjhrAHLYmp9YLw1PZdyJEKlgKjBBAS7TWK55sewDcLXrJ0 Gcfx4APpFR+ X-Gm-Message-State: AC+VfDw6xAcJ+lZ9/3v84X27qA2Z3csB8nCr0gp46CQ92zpmAhGmsTew WpYRWTc9OAfSp+AFV5WVWos= X-Google-Smtp-Source: ACHHUZ5737S9YcLES4J7NnMTIJ8J6zDyPftQdJWsmXaR4Q9Trg5YvAab/137yMnOhmYZQ6BMqQut1A== X-Received: by 2002:a05:622a:1982:b0:3f6:a0fc:2c7d with SMTP id u2-20020a05622a198200b003f6a0fc2c7dmr1787354qtc.6.1685560138554; Wed, 31 May 2023 12:08:58 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:ad4:4aeb:0:b0:626:1995:bd01 with SMTP id cp11-20020ad44aeb000000b006261995bd01ls4559086qvb.1.-pod-prod-03-us; Wed, 31 May 2023 12:08:55 -0700 (PDT) X-Received: by 2002:a05:6214:48e:b0:626:1898:ee3 with SMTP id pt14-20020a056214048e00b0062618980ee3mr9246560qvb.31.1685560135733; Wed, 31 May 2023 12:08:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685560135; cv=none; d=google.com; s=arc-20160816; b=kmEk8ZXJS34oGirCCtU3IIllgAJy6nDDdZtcdZYiJYnNoM9ZZUgs8kuh0wXqcuOrZj GI0cNKFo0HFyIuPUJAy9Q3+jveSEMVbHIbwBN6B9InxmlkyBSf1P4kGp8AJw+nTv8eps zY1HwD94HA0tdnxVs9uUZwbMwHkOuD+T7STEKSpgRDzoEtCpsXm89UDO3N1iDYheayl6 sUSQS4keXsL8MliyqPFLIDo27kNbmk9KoYKUkJhLbz5IyknIza57LuSqKDBRkHpJ1K/p Msd7t5aDLSR7C9DZtnlCekqzt08nUNVLWq2adAYBgNDk5AhY3HgnqxV4wTQX0QpRT0pE yKkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:subject:message-id:to:from:date:dkim-signature :dkim-filter:dmarc-filter; bh=sZQp/PldVYHjd8gdmV/oo++3z+7AU112cW/1mP8C4Mc=; b=1DLfmMDIvOnWyAe5M5DDjkm0K9viqbvY/p52e6l9jFD018Pz6/Cb9mzViX9czLA00m GgRDNDLAtHVs12C/Zf4x0lAD8sc4HebHMgTA3coAty+8JwXuDxsyeJn9yhhbPRX8Vncg sfBWYQPI5HCpgrQPeCG2HcP3FPc557DHEqyxqgOlFjLsGTXiIsFUg50Qsz1HTGfk3a8X 6v764EsJuHxQXNDmqnFc9ue4TIZNxe+9W1ujItUinwmcrjehTsvMRkDOSTG5Jbvs2j77 dvv9iCYx+Pq8lgQDEFIJjHnMiV8wJ+bnI/Vt/+z6RaiiehXrV6ubtJRlahWJe0Mw3Mz5 nBrQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@umn.edu header.s=google header.b=SeQeN4FS; spf=pass (google.com: domain of winsl055-OJFnDUYgAso@public.gmane.org designates 134.84.196.206 as permitted sender) smtp.mailfrom=winsl055-OJFnDUYgAso@public.gmane.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=umn.edu Original-Received: from mta-p6.oit.umn.edu (mta-p6.oit.umn.edu. [134.84.196.206]) by gmr-mx.google.com with ESMTPS id lx4-20020a0562145f0400b006260dab0171si1187197qvb.3.2023.05.31.12.08.55 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 31 May 2023 12:08:55 -0700 (PDT) Received-SPF: pass (google.com: domain of winsl055-OJFnDUYgAso@public.gmane.org designates 134.84.196.206 as permitted sender) client-ip=134.84.196.206; Original-Received: from localhost (unknown [127.0.0.1]) by mta-p6.oit.umn.edu (Postfix) with ESMTP id 4QWf1z22nJz9vBs9 for ; Wed, 31 May 2023 19:08:55 +0000 (UTC) X-Virus-Scanned: amavisd-new at umn.edu Original-Received: from mta-p6.oit.umn.edu ([127.0.0.1]) by localhost (mta-p6.oit.umn.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KLMNusXpEG06 for ; Wed, 31 May 2023 14:08:55 -0500 (CDT) Original-Received: from mail-ot1-f70.google.com (mail-ot1-f70.google.com [209.85.210.70]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mta-p6.oit.umn.edu (Postfix) with ESMTPS id 4QWf1y6JjMz9vBrw for ; Wed, 31 May 2023 14:08:54 -0500 (CDT) DMARC-Filter: OpenDMARC Filter v1.3.2 mta-p6.oit.umn.edu 4QWf1y6JjMz9vBrw DKIM-Filter: OpenDKIM Filter v2.11.0 mta-p6.oit.umn.edu 4QWf1y6JjMz9vBrw Original-Received: by mail-ot1-f70.google.com with SMTP id 46e09a7af769-6afbada002aso102809a34.3 for ; Wed, 31 May 2023 12:08:54 -0700 (PDT) X-Received: by 2002:a05:6870:3a14:b0:19f:f2d8:57f8 with SMTP id du20-20020a0568703a1400b0019ff2d857f8mr696527oab.8.1685560134204; Wed, 31 May 2023 12:08:54 -0700 (PDT) X-Received: by 2002:a05:6870:3a14:b0:19f:f2d8:57f8 with SMTP id du20-20020a0568703a1400b0019ff2d857f8mr696518oab.8.1685560133874; Wed, 31 May 2023 12:08:53 -0700 (PDT) X-Original-Sender: winsl055-OJFnDUYgAso@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@umn.edu header.s=google header.b=SeQeN4FS; spf=pass (google.com: domain of winsl055-OJFnDUYgAso@public.gmane.org designates 134.84.196.206 as permitted sender) smtp.mailfrom=winsl055-OJFnDUYgAso@public.gmane.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=umn.edu X-Original-From: RM 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:32730 Archived-At: ------=_Part_66_1676683478.1685560133220 Content-Type: multipart/alternative; boundary="----=_Part_67_1760230845.1685560133220" ------=_Part_67_1760230845.1685560133220 Content-Type: text/plain; charset="UTF-8" Sometimes pandoc adds a load of undesired guff into the latex tables. Is there a way to signal to pandoc that I want it to "cleanly" convert the markdown tables to latex instead of adding all sorts of bizarre formatting? *Example:* Consider the following markdown table: | | Mon | Tue | Wed | Thu | Fri | Sat | Sun | Notes | |--------|---------|---------|---------|---------|---------|---------|---------|---------| | Week 1 | Example | Example | Example | Example | Example | Example | Example | Example | | Week 2 | Example | Example | Example | Example | Example | Example | Example | Example | | Week 3 | Example | Example | Example | Example | Example | Example | Example | Example | | Week 4 | Example | Example | Example | Example | Example | Example | Example | Example | Version 2.16 sensibly converts the markdown table to: \begin{longtable}[]{@{}lllllllll@{}} \toprule & Mon & Tue & Wed & Thu & Fri & Sat & Sun & Notes \\ \midrule \endhead Week 1 & Example & Example & Example & Example & Example & Example & Example & Example \\ Week 2 & Example & Example & Example & Example & Example & Example & Example & Example \\ Week 3 & Example & Example & Example & Example & Example & Example & Example & Example \\ Week 4 & Example & Example & Example & Example & Example & Example & Example & Example \\ \bottomrule \end{longtable} While the latest version (3.1.2) converts it to this mess: \begin{longtable}[]{@{} >{\raggedright\arraybackslash}p{(\columnwidth - 16\tabcolsep) * \real {0.1000}} >{\raggedright\arraybackslash}p{(\columnwidth - 16\tabcolsep) * \real {0.1125}} >{\raggedright\arraybackslash}p{(\columnwidth - 16\tabcolsep) * \real {0.1125}} >{\raggedright\arraybackslash}p{(\columnwidth - 16\tabcolsep) * \real {0.1125}} >{\raggedright\arraybackslash}p{(\columnwidth - 16\tabcolsep) * \real {0.1125}} >{\raggedright\arraybackslash}p{(\columnwidth - 16\tabcolsep) * \real {0.1125}} >{\raggedright\arraybackslash}p{(\columnwidth - 16\tabcolsep) * \real {0.1125}} >{\raggedright\arraybackslash}p{(\columnwidth - 16\tabcolsep) * \real {0.1125}} >{\raggedright\arraybackslash}p{(\columnwidth - 16\tabcolsep) * \real {0.1125}}@{}} \toprule\noalign{} \begin{minipage}[b]{\linewidth}\raggedright \end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright Mon \end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright Tue \end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright Wed \end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright Thu \end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright Fri \end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright Sat \end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright Sun \end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright Notes \end{minipage} \\ \midrule\noalign{} \endhead \bottomrule\noalign{} \endlastfoot Week 1 & Example & Example & Example & Example & Example & Example & Example & Example \\ Week 2 & Example & Example & Example & Example & Example & Example & Example & Example \\ Week 3 & Example & Example & Example & Example & Example & Example & Example & Example \\ Week 4 & Example & Example & Example & Example & Example & Example & Example & Example \\ \end{longtable} (And this isn't simply an issue with later versions. I've noticed 2.16 adds the guff to some tables, too. Though whatever algo it's using to make that choice differs between versions. ) I'd like all of my tables to be converted to the "clean" format. Is there an argument I can use to make that happen? -- 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/532e15c3-6027-45bd-b0ba-7393632f2dc9n%40googlegroups.com. ------=_Part_67_1760230845.1685560133220 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sometimes pandoc adds a load of undesired guff into the latex tables.=C2=A0=

Is there a way to signal to pandoc that I want it to = "cleanly" convert the markdown tables to latex instead of adding all sorts = of bizarre formatting?

Examp= le:

Consider the following markdown t= able:

| =C2=A0 =C2=A0 =C2=A0 =C2=A0| Mon = =C2=A0 =C2=A0 | Tue =C2=A0 =C2=A0 | Wed =C2=A0 =C2=A0 | Thu =C2=A0 =C2=A0 |= Fri =C2=A0 =C2=A0 | Sat =C2=A0 =C2=A0 | Sun =C2=A0 =C2=A0 | Notes =C2=A0 |=
|--------|---------|---------|---------|---------|---------|----= -----|---------|---------|
| Week 1 | Example | Example | Example= | Example | Example | Example | Example | Example |
| Week 2 | E= xample | Example | Example | Example | Example | Example | Example | Exampl= e |
| Week 3 | Example | Example | Example | Example | Example | = Example | Example | Example |
| Week 4 | Example | Example | Exam= ple | Example | Example | Example | Example | Example |


Version 2.16 sensibly converts the mar= kdown table to:

\begin{longtable}[]{@{}lllllllll@{}}
\toprule
& Mon & Tue = & Wed & Thu = & Fri & Sat & Sun & Notes \\
\midrule
\endhead
Week 1 & Example & Example & Example & Example & Example <= span style=3D"color: rgb(175, 0, 219);">& Example &
Example & Example \\
Week 2 & Example & Example & Example <= span style=3D"color: rgb(175, 0, 219);">& Example & Example & Example &
Example &a= mp; Example \\
=
Week 3 & Example <= span style=3D"color: rgb(175, 0, 219);">& Example & Example & Example & Example &= Example &
Ex= ample & Example \\
Week 4 & Example & Example & Example &= Example & Example & Example &
Example & Example \\
\botto= mrule
\end= {longtable}

While the latest version (3.1.2) converts= it to this mess:

\begin{lon= gtable}[]{@{}
=C2=A0 >{\raggedright\arraybackslash}p{(\columnwidth - 16\tabcolsep) * \real{0.1000}}
=C2=A0 >{= \raggedright\arraybackslash}p{(\columnwidth - 16\tabco= lsep) * \real{0.1125= }}
=C2=A0 >{\raggedri= ght\arraybackslash}p{(\colu= mnwidth - 16\tabcolsep) * \real{0.1125}}
<= div>=C2=A0 >{\raggedright\array= backslash}p{(\columnwidth - 16\tabcolsep) * \real{0.1125}}
=C2= =A0 >{\raggedright\arraybacksla= sh}p{(\columnwidth -= 16\tabcolsep) * \real{0.1125}}
=C2=A0 >{= \raggedright\arraybackslash= }p{(\columnwidth - 16\tabcolsep) * \real{0.1125}}
=C2=A0 >{\raggedright\arraybackslash}p{(\columnwidth - 16\tabcolsep) * \real{0.1125}}
=C2=A0 >{\raggedright\arraybackslash}p{(\columnwidth - 16\tabcolsep) * \real{0.1125}}
=C2=A0 >{\raggedright\arraybackslash}p{(\columnwidth - 16\tabcolsep) * \real= {0.1125}}@{}}
\to= prule\noalign{}
\= begin{minipage}[b]{\linewidth}\raggedright
\end{mini= page} & \begin{minipage}[b]{\l= inewidth}\raggedright
Mon
\end{minipage} & \begin{minipage= }[b]{\linewidth}\raggedright
Tue
<= span style=3D"color: rgb(121, 94, 38);">\end{minipage} = & \begin{minipage}[b]{\linewidth}\raggedright
Wed
\end{minipage} & \begin{minipage}[b]{\linewid= th}\raggedright
Thu
\end{minipage} & = \begin{minipage}[b]{<= span style=3D"color: rgb(121, 94, 38);">\linewidth}\raggedright
Fri
\end{minipage} &<= /span> \begin{minipage}[b]{\linewidth}\= raggedright
Sat
\end{minipage} & \begin{\linewidth}\raggedright
Sun
\end{minipage} & \beg= in{minipage}[b]{\linewidth}\raggedright
Notes
\end{minipage} \\
\midrule\noalign{}
\endhead
\bottomrule\noalign{}=
\endlastfoot
Week 1 & Example= & Example & Example & Example & Example & Example &
Example & Example \\
Week 2 & Example & Example & Example & Example & Example <= span style=3D"color: rgb(175, 0, 219);">& Example &
Example & Example \\
Week 3 & Example & Example & Example <= span style=3D"color: rgb(175, 0, 219);">& Example & Example & Example &
Example &a= mp; Example \\
=
Week 4 & Example <= span style=3D"color: rgb(175, 0, 219);">& Example & Example & Example & Example &= Example &
Ex= ample & Example \\
\end{lon= gtable}

(And this isn't simpl= y an issue with later versions. I've noticed 2.16 adds the guff to some tab= les, too. Though whatever algo it's using to make that choice differs betwe= en versions. )


I'd like all of = my tables to be converted to the "clean" format. Is there an argument I can= use to make that happen?







=









--
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/532e15c3-6027-45bd-b0ba-7393632f2dc9n%40googlegroups.= com.
------=_Part_67_1760230845.1685560133220-- ------=_Part_66_1676683478.1685560133220--