From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/30979 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: A A Newsgroups: gmane.text.pandoc Subject: Re: Incorrect column widths / text off page, for table containing math Date: Fri, 15 Jul 2022 03:58:19 -0700 (PDT) Message-ID: <20a1f4d9-5ac6-45f8-a0e0-90f57de08fd7n@googlegroups.com> References: <37b73eb8-97e8-4abb-84d3-76d6b0fffbb8n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_558_587487781.1657882699966" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3277"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDJ77HUDRUCBBTMQYWLAMGQEXSX3P5A-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Jul 15 12:58:25 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-yw1-f191.google.com ([209.85.128.191]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oCJ1d-0000dk-2O for gtp-pandoc-discuss@m.gmane-mx.org; Fri, 15 Jul 2022 12:58:25 +0200 Original-Received: by mail-yw1-f191.google.com with SMTP id 00721157ae682-31c95f27403sf37950207b3.6 for ; Fri, 15 Jul 2022 03:58:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender: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=VJmBjMmShK4+c7ItxLpfe0dXP4gnQ/QobDNxpPuwzAY=; b=G7ViEXAPycsnlYH8iDcGaXQpCKnTgzkqTxb/R+YcB/P9bsOTB/Ka67IQ6j9+i4e2T3 8Br6kOP31BVPklOwmsyb4Am229khNJ0V3V3oZvi5FLEtUdiZGtDs8WMJ6q7t3TZtriQS 3voFtc/jJkKo7sF9eS7XHhwB37zbcEoMKg0ZyEiJqZIx1ZPswjBsKbrnKrH6AHI7GvmE T0s2R4zBQu/Fy6MeZllHRfnDc2ElRmnRRTy/4VfGlstXu0vujCoL2ngXm+O5ElHtaUSA Thl9ZRJENXS7u1Iy1sRTONJEzYthx6ctF8F9PnDvPJWpS76ERquzvDutSJKXSOGYAFlk zH6Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; 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=VJmBjMmShK4+c7ItxLpfe0dXP4gnQ/QobDNxpPuwzAY=; b=YsKgbYy+Xz9ADfdx43w4A29Sh6EBgey/iYxK5PT4PDaHeRjYEDl+PDOvTmNUqySk0i /vC45tem6s4okilSPCP0fOYD8xQQUFsWaFBKKA+HgCOoxdYXiynzJRu69OatfSBSVhK+ PhZKBiQpXw2EXR4R09zPeb0NPylyWPWRU1TigfgqdcGUmLBWOqYoav6i9LX6c7mVbVXR CgVsAacJJCu7ZPYw7FakXyBcDOmeh0/NgQ4mhOGY8l0ZwwqBfEJgmAF2NHS/wLFGxDwM niH1Mr+YPTvs4XlNQU6xfJyeMeRzgmdOO28/WAO9JFZyrudGxrr+PORajHItAIdzJ2sn 69kw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender: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=VJmBjMmShK4+c7ItxLpfe0dXP4gnQ/QobDNxpPuwzAY=; b=OumgSSjUjTEmf/LO0RIQCLeBj55rhOhT/wWtPorkXeeTzyOswfh6y9yyXCO0iFOUSU /A2v/q1vhrkXmntKMlnKvJhpeOuZXeZiQj0L/zUVQGozeU3qWttzp/ew148vvw4AQihd pj4EWzOUm5Hc5m5anOtdWtvdJda3yac72uUTxTmZjOs3xCrM6PbHRzfKFCkhRa7jjbGL PvifhX/Z1qBIjpOFKtfVnkE7uMG4jBa06Vb0/rNVfHhIGRaYgaSYVk7+UzVcYMzfIxaS mTYluzwD6cxVmZGv5RGra3AjqiBUr5y7B4gwFP1w6sXTO5vQFK0eAAXyhKPfEu23ZgdH VehA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AJIora8HxD581/8jHmQQWeF9E/izlJhNCoj5/ktdZKUzVO1DXvP6io1M rhrm5PoHJ0oWQApry4LxDeU= X-Google-Smtp-Source: AGRyM1tYgWit+CAnrfeFbtIwDblqqNVY3no2h+mymMvZLAhnGRfhrgZyV/vzHhuLoDUgIm8jbT7iLg== X-Received: by 2002:a05:6902:10c3:b0:66f:7c5:8883 with SMTP id w3-20020a05690210c300b0066f07c58883mr12605402ybu.368.1657882704073; Fri, 15 Jul 2022 03:58:24 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a25:c54a:0:b0:66e:d7dd:2fa with SMTP id v71-20020a25c54a000000b0066ed7dd02fals11010175ybe.0.gmail; Fri, 15 Jul 2022 03:58:20 -0700 (PDT) X-Received: by 2002:a25:77ca:0:b0:66e:2cf6:df56 with SMTP id s193-20020a2577ca000000b0066e2cf6df56mr12989973ybc.61.1657882700723; Fri, 15 Jul 2022 03:58:20 -0700 (PDT) In-Reply-To: X-Original-Sender: amine.aboufirass-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:30979 Archived-At: ------=_Part_558_587487781.1657882699966 Content-Type: multipart/alternative; boundary="----=_Part_559_2009643820.1657882699966" ------=_Part_559_2009643820.1657882699966 Content-Type: text/plain; charset="UTF-8" Hi John MacFarlane, In the below thread you mention > Note that in LaTeX tables widths must be specified; LaTeX doesn't calculate optimum column widths the way HTML does. In that case would you care to explain how table widths are specified by pandoc when converting from markdown to LaTeX? Everything I've read on tables seems to suggest that pandoc attempts to compute the width itself. Is there any way to specify that or control it more explicitly? Regards, Amine On Wednesday, May 26, 2021 at 5:01:52 PM UTC+2 John MacFarlane wrote: > > See the pandoc manual under pipe tables: > > If a pipe table contains a row whose Markdown content is wider > than the column width (see --columns), then the table will take > up the full text width and the cell contents will wrap, with the > relative cell widths determined by the number of dashes in the > line separating the table header from the table body. (For > example ---|- would make the first column 3/4 and the second > column 1/4 of the full text width.) > > Your table has > > |:---|:---| > > which says to make the columns equal-width. Try > > |:-|:-----| > > for example, to make the right-hand column 5 x the > width of the left-hand column. > > Note that in LaTeX tables widths must be specified; > LaTeX doesn't calculate optimum column widths the way > HTML does. > > > rwijtvliet writes: > > > Dear all, > > > > I posted this question elsewhere < > https://github.com/jgm/pandoc/issues/7317> > > but was asked to ask again here, so here I am. > > > > This table > > > > > > | Profit-at-risk (gas) | | > > |:---|:---| > > |For modelling | $\Delta rmp_{par gas} = \underbrace{-qu_0 \cdot \Delta > > pu_L - (\Delta qo_L + \Delta qo_S) \cdot (pu_0 + \Delta pu_L - po_0) - > qu_L > > \cdot \Delta pu_S}_{\text{indirect}} \ \underbrace{- \Delta qo_S \cdot > > \Delta pu_S}_{\text{direct}}$ | > > | (idealised) | $\Delta rmp_{par gas} = \underbrace{- \Delta qo_S \cdot > > (pu_L - po_0)}_{\text{indirect}} \ \underbrace{-\Delta qo_S \cdot \Delta > > pu_S}_{\text{direct}}$ | > > > > > > is rendered to pdf like this: > > [image: 119658665-b5553c80-be2d-11eb-957a-ce4333d04f24.png] > > > > That can't be right. Is there something I did wrong, i.e. let me know if > > there is anything I can do to help in finding the bug. > > > > Here are my versions: > > > > pandoc.exe 2.13 > > Compiled with pandoc-types 1.22, texmath 0.12.2, skylighting 0.10.5, > > citeproc 0.3.0.9, ipynb 0.1.0.1 > > > > Many thanks and Best regards > > > > -- > > 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...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To view this discussion on the web visit > https://groups.google.com/d/msgid/pandoc-discuss/37b73eb8-97e8-4abb-84d3-76d6b0fffbb8n%40googlegroups.com. > > -- 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/20a1f4d9-5ac6-45f8-a0e0-90f57de08fd7n%40googlegroups.com. ------=_Part_559_2009643820.1657882699966 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi John MacFarlane,

In the below thread you mention

> Note that in LaTeX tables widths must be specifie= d; LaTeX doesn't calculate optimum column widths the way HTML does.

In that case would you care to explain how table widths a= re specified by pandoc when converting from markdown to LaTeX? Everything I= 've read on tables seems to suggest that pandoc attempts to compute the wid= th itself. Is there any way to specify that or control it more explicitly?<= /div>

Regards,

Amine
=
On We= dnesday, May 26, 2021 at 5:01:52 PM UTC+2 John MacFarlane wrote:
<= blockquote class=3D"gmail_quote" style=3D"margin: 0 0 0 0.8ex; border-left:= 1px solid rgb(204, 204, 204); padding-left: 1ex;">
See the pandoc manual under pipe tables:

If a pipe table contains a row whose Markdown content is wider
than the column width (see --columns), then the table will take
up the full text width and the cell contents will wrap, with the
relative cell widths determined by the number of dashes in the
line separating the table header from the table body. (For
example ---|- would make the first column 3/4 and the second
column 1/4 of the full text width.)

Your table has

|:---|:---|

which says to make the columns equal-width. Try

|:-|:-----|

for example, to make the right-hand column 5 x the
width of the left-hand column.

Note that in LaTeX tables widths must be specified;
LaTeX doesn't calculate optimum column widths the way
HTML does.


rwijtvliet <rwi= jt...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:

> Dear all,=20
>
> I posted this question elsewhere <https://github.com/jgm/pandoc/issues/7317= >=20
> but was asked to ask again here, so here I am.
>
> This table
>
>
> | Profit-at-risk (gas) | |
> |:---|:---|
> |For modelling | $\Delta rmp_{par gas} =3D \underbrace{-qu_0 \cdot= \Delta=20
> pu_L - (\Delta qo_L + \Delta qo_S) \cdot (pu_0 + \Delta pu_L - po_= 0) - qu_L=20
> \cdot \Delta pu_S}_{\text{indirect}} \ \underbrace{- \Delta qo_S = \cdot=20
> \Delta pu_S}_{\text{direct}}$ |
> | (idealised) | $\Delta rmp_{par gas} =3D \underbrace{- \Delta qo_= S \cdot=20
> (pu_L - po_0)}_{\text{indirect}} \ \underbrace{-\Delta qo_S \cdot = \Delta=20
> pu_S}_{\text{direct}}$ |
>
>
> is rendered to pdf like this:
> [image: 119658665-b5553c80-be2d-11eb-957a-ce4333d04f24.png]
>
> That can't be right. Is there something I did wrong, i.e. let me k= now if=20
> there is anything I can do to help in finding the bug.
>
> Here are my versions:
>
> pandoc.exe 2.13
> Compiled with pandoc-types 1.22, texmath 0.12.2, skylighting 0.10.= 5,
> citeproc 0.3.0.9, ipynb 0.1.0.1
>
> Many thanks and Best regards
>
> --=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 email to pando= c-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/37b73eb8-9= 7e8-4abb-84d3-76d6b0fffbb8n%40googlegroups.com.

--
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/20a1f4d9-5ac6-45f8-a0e0-90f57de08fd7n%40googlegroups.= com.
------=_Part_559_2009643820.1657882699966-- ------=_Part_558_587487781.1657882699966--