From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/19113 Path: news.gmane.org!.POSTED!not-for-mail From: =?UTF-8?Q?=27Dirk_H=C3=BCnniger=27_via_pandoc=2Ddiscuss?= Newsgroups: gmane.text.pandoc Subject: Re: Convert tables with colspans /rowspans from mediawiki to LaTeX Date: Mon, 1 Jan 2018 10:42:24 -0800 (PST) Message-ID: References: <20171201194924.GE2189@protagoras> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_37308_188555328.1514832144194" X-Trace: blaine.gmane.org 1514832033 3347 195.159.176.226 (1 Jan 2018 18:40:33 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 1 Jan 2018 18:40:33 +0000 (UTC) To: pandoc-discuss Original-X-From: pandoc-discuss+bncBD4ZNLXOWYLBBEMCVLJAKGQE4H4I3UA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Jan 01 19:40:29 2018 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-ot0-f190.google.com ([74.125.82.190]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eW50Y-000093-MW for gtp-pandoc-discuss@m.gmane.org; Mon, 01 Jan 2018 19:40:22 +0100 Original-Received: by mail-ot0-f190.google.com with SMTP id 45sf11974907otf.0 for ; Mon, 01 Jan 2018 10:42:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=vogysZJSg/NbxcFK0irLLhArpd91Di1tbyxpt/BThy8=; b=G7EuDNw9RXlMMfvZC6TrCmi+CHBmsyykNQhWtTunROa+MFoNuycxPRg8rDrELUpg91 0aZJ3ekvK/QjJFHztmj7esPEPGruGbWNiDwmIOGB3Ft1y3AVS+lomm1NF1SS8Antfr3f 8j6QDRInJA40ws7J3zPlu8dD5V6TcqFn/evW6aM9hzJWFIa2W2KWOWtbnrYsAgGkRstM VInSghjJ6R2LBqjUeVlLyKb+Rj8/Sq1X/pKFm6PQbJiYVUlD/V3cZ4FGE/38JDvy3Qfk GUsvkdjSiCZ6IdmpI4Z4PLOL4q0wRWOVgcinueov8ExM7pQi168ToS8fm6WoqSJY2vBl buYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:message-id:in-reply-to:references :subject:mime-version:x-original-sender:reply-to:precedence :mailing-list:list-id:x-spam-checked-in-group:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=vogysZJSg/NbxcFK0irLLhArpd91Di1tbyxpt/BThy8=; b=Uq3BE3P16GIoeQ0hDKk3+Old37Jv8V6CbSvBOqdgc6Zs1sBlbNi1B1i/KPKAviDTBU YhvxwA4TtrdJmT2n8f6sG7K8mBYG2KAwPZ+sgALV+fXrQ1Qf4ei8h789Ot/Fx8VCz5F1 7SZVcaQgjt2JhEXuOoyJtAKP+CagB/sUHn494OyL0tBre2GN7o4YIDPx9n4a6oRFyqQJ PCuFYQoYUtKp6vJOy9/vf/ZWoF+ER6VLyS57FgqyqFpmGt6FfpfNYFgKpKWpbciaiHy0 Q9dM9pjY8/a+vMMhneL3EjsnIpArlTwJs8/tBffY2gUwg1Tlg9am+MWmuwXvA2V9qiRS vrPg== X-Gm-Message-State: AKGB3mI9P4zYS5CsruLfb7hwf/+ehuyRfpjjf7ugu3lDLuuEMg7/bf8u jBzr7ONF+HvVWxbTVEiyhE4= X-Google-Smtp-Source: ACJfBou9SbWHfoM/zDDnsp0b21m8RRSgAzWuQSLkBFuuFQRSy9l+aMkzcfh/W3gv4QbGs8CBpsjrrg== X-Received: by 10.157.12.185 with SMTP id b54mr2035204otb.1.1514832145676; Mon, 01 Jan 2018 10:42:25 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.157.64.73 with SMTP id o9ls7575747oti.15.gmail; Mon, 01 Jan 2018 10:42:24 -0800 (PST) X-Received: by 10.157.92.195 with SMTP id r3mr1926486oti.8.1514832144643; Mon, 01 Jan 2018 10:42:24 -0800 (PST) In-Reply-To: X-Original-Sender: dirk.hunniger-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org X-Original-From: =?UTF-8?Q?Dirk_H=C3=BCnniger?= Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Spam-Checked-In-Group: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.org gmane.text.pandoc:19113 Archived-At: ------=_Part_37308_188555328.1514832144194 Content-Type: multipart/alternative; boundary="----=_Part_37309_100069843.1514832144194" ------=_Part_37309_100069843.1514832144194 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable mediawiki2latex can handle colspan as well as rowspan Am Sonntag, 3. Dezember 2017 10:55:45 UTC+1 schrieb Carsten Gerlach: > > Thanks for the hint. > > So I'm looking for another solution in the meantime until issue 1024 is > implemented. :) > > Greetings, Carsten > =20 > > Am 01.12.2017 um 20:49 schrieb John MACFARLANE: > > Pandoc doesn't yet support col/row spans in tables.=20 > See https://github.com/jgm/pandoc/issues/1024=20 > > +++ Carsten Gerlach [Nov 30 17 13:00 ]:=20 > > Hi all,=20 > > I want to use pandoc to convert some mediawiki tables whicht contain=20 > colspans and rowspans to LaTeX format.=20 > > I use this command: pandoc -f mediawiki -t latex -o output.tex input.txt= =20 > > The used pandoc version is 1.19.2.1=20 > > > Normal Tables are working good, e.g.=20 > > {|=20 > | A1 || B1 || C1=20 > |-=20 > | A2 || B2 || C2=20 > |-=20 > | A3 || B3 || C3=20 > |}=20 > > will result in=20 > > \begin{longtable}[]{@{}lll@{}}=20 > \toprule=20 > A1 & B1 & C1\tabularnewline=20 > A2 & B2 & C2\tabularnewline=20 > A3 & B3 & C3\tabularnewline=20 > \bottomrule=20 > \end{longtable}=20 > > But a table with colspan, e.g.=20 > > {|=20 > | A1 || B1 || C1=20 > |-=20 > | colspan=3D2 | (A=E2=80=A6B)2 || C2=20 > |-=20 > | A3 || B3 || C3=20 > |}=20 > > will result in:=20 > > \begin{longtable}[]{@{}lll@{}}=20 > \toprule=20 > A1 & B1 & C1\tabularnewline=20 > (A\ldots{}B)2 & C2\tabularnewline=20 > A3 & B3 & C3\tabularnewline=20 > \bottomrule=20 > \end{longtable}=20 > > But I would expect this result:=20 > > \begin{longtable}[]{@{}lll@{}}=20 > \toprule=20 > A1 & B1 & C1\tabularnewline=20 > \multicolumn{2}{l}{(A\ldots{}B)2} & C2\tabularnewline=20 > A3 & B3 & C3\tabularnewline=20 > \bottomrule=20 > \end{longtable}=20 > > With rowspan it is a similar behaviour:=20 > > {|=20 > | A1 || B1 || C1=20 > |-=20 > | A1 || rowspan=3D2 | B(2=E2=80=A63) || C2=20 > |-=20 > | A3 || C3=20 > |}=20 > > will result in=20 > > \begin{longtable}[]{@{}lll@{}}=20 > \toprule=20 > A1 & B1 & C1\tabularnewline=20 > A1 & B(2\ldots{}3) & C2\tabularnewline=20 > A3 & C3\tabularnewline=20 > \bottomrule=20 > \end{longtable}=20 > > But I expect this:=20 > > \begin{longtable}[]{@{}lll@{}}=20 > \toprule=20 > A1 & B1 & C1\tabularnewline=20 > A1 & \multirow{2}{*}{B(2\ldots{}3)} & C2\tabularnewline=20 > A3 & & C3\tabularnewline=20 > \bottomrule=20 > \end{longtable}=20 > > Is there a special option which I have to give to the pandoc command? Or= =20 > is the expected result not possible in general?=20 > > Thanks for any hint!=20 > > Greetings, Carsten=20 > > --=20 > You received this message because you are subscribed to the Google Groups= =20 > "pandoc-discuss" group.=20 > To unsubscribe from this group and stop receiving emails from it, send an= =20 > email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org .=20 > To post to this group, send email to pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org=20 > .=20 > To view this discussion on the web visit=20 > https://groups.google.com/d/msgid/pandoc-discuss/c7b735e6-d9ba-db60-4c43-= cf6bbde1e7cf%40gmx.de > . > For more options, visit https://groups.google.com/d/optout.=20 > > > > --=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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/= pandoc-discuss/c2c1f74b-9354-4527-a732-9ed8948824fa%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. ------=_Part_37309_100069843.1514832144194 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
mediawiki2latex can handle colspan as well as rowspan
<= br>Am Sonntag, 3. Dezember 2017 10:55:45 UTC+1 schrieb Carsten Gerlach: =20 =20 =20
Thanks for the hint.

So I'm looking for another solution in the meantime until issue 1024 is
implemented. :)

Greetings, Carsten
=C2=A0
Am 01.12.2017 um 20:49 schrieb John MACFARLANE:
Pandoc doesn't yet support col/row spans in tables.
See https://github= .com/jgm/pandoc/issues/1024

+++ Carsten Gerlach [Nov 30 17 13:00 ]:
Hi all,

I want to use pandoc to convert some mediawiki tables whicht contain
colspans and rowspans to LaTeX format.

I use this command: pandoc -f mediawiki -t latex -o output.tex input.txt

The used pandoc version is 1.19.2.1


Normal Tables are working good, e.g.

{|
| A1 || B1 || C1
|-
| A2 || B2 || C2
|-
| A3 || B3 || C3
|}

will result in

\begin{longtable}[]{@{}lll@{}}
\toprule
A1 & B1 & C1\tabularnewline
A2 & B2 & C2\tabularnewline
A3 & B3 & C3\tabularnewline
\bottomrule
\end{longtable}

But a table with colspan, e.g.

{|
| A1 || B1 || C1
|-
| colspan=3D2 | (A=E2=80=A6B)2 || C2
|-
| A3 || B3 || C3
|}

will result in:

\begin{longtable}[]{@{}lll@{}}
\toprule
A1 & B1 & C1\tabularnewline
(A\ldots{}B)2 & C2\tabularnewline
A3 & B3 & C3\tabularnewline
\bottomrule
\end{longtable}

But I would expect this result:

\begin{longtable}[]{@{}lll@{}}
\toprule
A1 & B1 & C1\tabularnewline
\multicolumn{2}{l}{(A\ldots{}B)2} & C2\tabularnewline
A3 & B3 & C3\tabularnewline
\bottomrule
\end{longtable}

With rowspan it is a similar behaviour:

{|
| A1 || B1 || C1
|-
| A1 || rowspan=3D2 | B(2=E2=80=A63) || C2
|-
| A3 || C3
|}

will result in

\begin{longtable}[]{@{}lll@{}}
\toprule
A1 & B1 & C1\tabularnewline
A1 & B(2\ldots{}3) & C2\tabularnewline
A3 & C3\tabularnewline
\bottomrule
\end{longtable}

But I expect this:

\begin{longtable}[]{@{}lll@{}}
\toprule
A1 & B1 & C1\tabularnewline
A1 & \multirow{2}{*}{B(2\ldots{}3)} & C2\tabularnewline
A3 & & C3\tabularnewline
\bottomrule
\end{longtable}

Is there a special option which I have to give to the pandoc command? Or
is the expected result not possible in general?

Thanks for any hint!

Greetings, Carsten

--=C2=A0
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-discus...@googlegroups.com.
To post to this group, send email to pandoc-...@googlegroups.com.
To view this discussion on the web visit https://groups.googl= e.com/d/msgid/pandoc-discuss/c7b735e6-d9ba-db60-4c43-cf6bbde1e7cf= %40gmx.de.
For more options, visit https://groups.goo= gle.com/d/optout.


--
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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/= msgid/pandoc-discuss/c2c1f74b-9354-4527-a732-9ed8948824fa%40googlegroups.co= m.
For more options, visit http= s://groups.google.com/d/optout.
------=_Part_37309_100069843.1514832144194-- ------=_Part_37308_188555328.1514832144194--