From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28445 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ruud Wijtvliet Newsgroups: gmane.text.pandoc Subject: Re: Incorrect column widths / text off page, for table containing math Date: Wed, 26 May 2021 17:15:20 +0200 Message-ID: References: <37b73eb8-97e8-4abb-84d3-76d6b0fffbb8n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000084cd4605c33d1ed7" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22718"; mail-complaints-to="usenet@ciao.gmane.io" Cc: pandoc-discuss To: John MacFarlane Original-X-From: pandoc-discuss+bncBCEMBJ467QKBBLGMXGCQMGQELENUCQY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed May 26 17:16:01 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-qk1-f184.google.com ([209.85.222.184]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1llvGJ-0005fQ-Fp for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 26 May 2021 17:15:59 +0200 Original-Received: by mail-qk1-f184.google.com with SMTP id s68-20020a372c470000b0290305f75a7cecsf999798qkh.8 for ; Wed, 26 May 2021 08:15:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1622042158; cv=pass; d=google.com; s=arc-20160816; b=Zs9vJHPqCPg8BI3Wa4+7eTn8vvcOIEMP0+a6BfmdYk/onWATzFer/IoAl9kwNp7Ld1 MJly2DsJgZPwmM66qt2FNnAtN+sheDmLTSC+ooSkHzwTyPKk1XeUgyECOQcBvmyJg5Gy /poIWHrt6EBwPWqj01BceOsT72YKU5SZDZUN8mR1eOCAGlA0sLQkkrkbdyHW9rnJeiU4 P86kbx2oHN9lo061IkXyvfGmA+abo4TVKRdnEcX6kmEBGFxZKCRsO42INcIyf1xcrtF6 PhoUcVkv+H7BQMqp8621XkwgZbBJHxiy1PMyRhuevQ8iuhy1EqdbCHGP2GnVshMieVIi wS3A== 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:cc:to:subject:message-id :date:from:in-reply-to:references:mime-version:sender:dkim-signature :dkim-signature; bh=6rqSH+JMfln2Zpwx2HRemJjQHBchhwSQldkVnusHStg=; b=FnPiSq5blyt/fZuPJozQecehKyr8/Zw2U3aw98jebhbWKjgh0khHN7yh6U/xxkNWVZ S1Sx3pzvYyl8JIZ8mTtOf05hPxJvYGNZaXyAJbGjYnMDuR1TXdZUfqh6tyR0WKUIAf25 k1+gSCOOm3zz93xv3xPIhOVO4ZAXozLjHG+vKugwb0DHOIyFlVlUuA242NZtTNBABLma bhwQEd4luw47FXosogq1gHjlQf5vO9pi9unG0l5PFrljvQiFF5smRThSSbBU0mnSnWne W7wyiYX59v8mgNn5VxQMITWw7Sfqj0tV1O6lw+PaEYARtR2IekSHiFzLdX/8A+MjnL+R us0w== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="ZlraLne/"; spf=pass (google.com: domain of rwijtvliet-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::329 as permitted sender) smtp.mailfrom=rwijtvliet-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:mime-version:references:in-reply-to:from:date:message-id :subject:to:cc: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=6rqSH+JMfln2Zpwx2HRemJjQHBchhwSQldkVnusHStg=; b=G+KiLbwPA31698tOUi1TZU1rxbksyY1jx5NOnrClydhg8rNfa8ZSc2tKaf99A0+6Mu ECl0s92bYGkTrV3/5vBKtTm+qFjQXUygeGU96wOXY9sYLrvdiZj8CY1VHqpQNs60QD+H vkswlOTdVA6FPPhmW+mgSe/I2vmlLgU23t52cZgmMS0UWoyLn5QAc5hUgsIzDn/C8RkL oGYe+unbbXSI4OzwU5GGpVPTOpRqZypMJjTTTjLAgjcsVIMtGhbM8b8LeDpnfLuVoCNQ o87wksB3DQDfx0t/wLsp4D41MZWHjFEadiiRKlq/2Qh5vg9jALLSr6yQ/cDSfgZDPeKB xJog== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc: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=6rqSH+JMfln2Zpwx2HRemJjQHBchhwSQldkVnusHStg=; b=FppIJ2P4PghTqTpSwYIBL0VgwdypJUgY0tXNERJNCCfPUBUVuDFPz/m5Fdhf+JopGh 5MX7o6RifLR3m2unh6qs980tCpBxd/63V6Z4yuZvNqa0Zn31JiSftqyLdKq9WmrudNQM k5gNA+d2OHsiTaKBJpXuBWk0II2KC79E0FCZfi2cj4DHb/TCycJVVH5U3H7JLcaxzAUA Jc7skGzIzAEev47BHRvRCRe1Q1AB+ao3Li0ooTsckYBhT3MYFe3nzauktX+FW81tPzuu nWiMkj/RxrX2gtXQTVMVCQmZ8v16EA3Dl6AATo90sg4EcTW3yVxKzGMvrtcUKZHK0EHk bKrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:mime-version:references:in-reply-to:from :date:message-id:subject:to:cc: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=6rqSH+JMfln2Zpwx2HRemJjQHBchhwSQldkVnusHStg=; b=aimBrq8yj124N6U6Xq+HpHQU43iKwrgpLKka9FhAPILaC7myHato/44gm0EVLH+sA4 InbbELKE9sWujFOWJ7g9+urnO/iMvFrEpRyNb1AXuSCxhdxGZvi7sHUeazdP2z0MfHpa DYK2nCPpgjGIbEjQqUpMadob6YOpP9CmBuiQFRmPByadM21bpZy6G6NcbABih7Mdhc08 aNv1DVAjZL5Oxkg8ZGlKlFi9zyBQQ01rOVvHrfIR6l9CXi8R1po+pJZ+2Pmmri+Zvp7l 1ZCmcPzyY7UvV4+3VYT1AKXlrFw5Q5L7pDWLqjHpxFvDI2/1MRCkCG9tCs5Fr1SCLTSi LGwQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM533qtwtu+JrVEHFfQD/m4TyWeAMP9Njnm0fXg1XETtwkHrxKxhRG z/p8fc9S7gNv1F6z+GpBHlQ= X-Google-Smtp-Source: ABdhPJxXnij4O4Q70JqOFjhu2j0PiTfuyG3GKvLewj/VI2bRAVL991XGMUxliQKsz2LHeKW23FjlqQ== X-Received: by 2002:a05:622a:3cf:: with SMTP id k15mr37784793qtx.217.1622042158565; Wed, 26 May 2021 08:15:58 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:ac8:50d:: with SMTP id u13ls135616qtg.3.gmail; Wed, 26 May 2021 08:15:56 -0700 (PDT) X-Received: by 2002:ac8:5a4f:: with SMTP id o15mr37830589qta.168.1622042156443; Wed, 26 May 2021 08:15:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622042156; cv=none; d=google.com; s=arc-20160816; b=hD3OEsDF6gOrKku0otAq1oVdoHDHm3rmVpk67xthiED0hS+MqMfbby3ZIq1b2U+Cxq 2TPtJWf8qNjLUc68uyyL43E9aogCTtlG5Zs4DKEixrs9G6ffyOdiia5S2FMBO/PRWlKb awlgyDDQVJGi1H71vinkxoQfCXZmSL9BseDf29HyQgOEQKr0TiPkZrV+Sn69EA8RzXGf eNtbm26Ofyam/UPe5GU4WltCTFBf1g7/lUZFCiEOwHzGED1NWDqhjtwLNUgebzZh/bYl BQS9EL+f6gTWadObfgFBB7JzObxmGgGA6gCGM9TaV2H9UdcyUrBhOUM+EYpe0otsCZvJ vxpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=b6e+KbsKeUFjHo+TUC8MYI/5zkzczCeJrsAP2oA6peE=; b=o9WVxW4xII4ocLO+IMyXE570RGz55vopOorIS/jRxeygH4hCqcPl6QJiEhrkbGXdmW Sy14T4heReDGiVoKbWm9YjV5eyx7/8cFh6YA+w7HKz8Hi6f7OUs2FhlodQYdFuLWvb/l tiDl1QaGFBiHuhrKrrcuj44mc5rpiFjJrjl3Kq5L0lv3DxZFg9fVhF4c+kyKyLYMGwZc xULszojgeYuqP23C+vbPTy2m49SFVqwt0luXc/YQEw1UOX9Qp/9LanfUr4GOrm98UdMK HWW7xsKjqbSLlrNoj15+gB0eWbhsoZwOwgPfeJUM1r3XnqlQrp1LdCgeJmu/rEKJLbbc LVpA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="ZlraLne/"; spf=pass (google.com: domain of rwijtvliet-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::329 as permitted sender) smtp.mailfrom=rwijtvliet-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-ot1-x329.google.com (mail-ot1-x329.google.com. [2607:f8b0:4864:20::329]) by gmr-mx.google.com with ESMTPS id g17si197285qts.3.2021.05.26.08.15.56 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 26 May 2021 08:15:56 -0700 (PDT) Received-SPF: pass (google.com: domain of rwijtvliet-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::329 as permitted sender) client-ip=2607:f8b0:4864:20::329; Original-Received: by mail-ot1-x329.google.com with SMTP id t10-20020a05683022eab0290304ed8bc759so1295464otc.12 for ; Wed, 26 May 2021 08:15:56 -0700 (PDT) X-Received: by 2002:a9d:7852:: with SMTP id c18mr2705463otm.115.1622042155993; Wed, 26 May 2021 08:15:55 -0700 (PDT) In-Reply-To: X-Original-Sender: rwijtvliet-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="ZlraLne/"; spf=pass (google.com: domain of rwijtvliet-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::329 as permitted sender) smtp.mailfrom=rwijtvliet-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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:28445 Archived-At: --00000000000084cd4605c33d1ed7 Content-Type: text/plain; charset="UTF-8" Got it, thanks! On Wed, 26 May 2021 at 17:01, 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-discuss+unsubscribe-/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/CAJ45XQCH52cWuWubkRJiVPnaRBmuTN1G90-5peJUpm0fnuQSyw%40mail.gmail.com. --00000000000084cd4605c33d1ed7 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Got it, thanks!

<= div dir=3D"ltr" class=3D"gmail_attr">On Wed, 26 May 2021 at 17:01, John Mac= Farlane <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org> wr= ote:

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=C2=A0 make the columns equal-width.=C2=A0 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 <rw= ijtvliet-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:

> Dear all,
>
> I posted this question elsewhere <https://github.co= m/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} =3D \underbrace{-qu_0 \cdot \De= lta
> pu_L - (\Delta qo_L + \Delta qo_S) \cdot (pu_0 + \Delta pu_L - po_0) -= qu_L
> \cdot \Delta pu_S}_{\text{indirect}} \=C2=A0 \underbrace{- \Delta qo_S= \cdot
> \Delta pu_S}_{\text{direct}}$ |
> | (idealised) | $\Delta rmp_{par gas} =3D \underbrace{- \Delta qo_S \c= dot
> (pu_L - po_0)}_{\text{indirect}} \ \underbrace{-\Delta qo_S \cdot \Del= ta
> 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
> 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 Gro= ups "pandoc-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send= an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
> To view this discussion on the web visit https://groups.google.co= m/d/msgid/pandoc-discuss/37b73eb8-97e8-4abb-84d3-76d6b0fffbb8n%40googlegrou= ps.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/CAJ45XQCH52cWuWubkRJiVPnaRBmuTN1G90-5peJU= pm0fnuQSyw%40mail.gmail.com.
--00000000000084cd4605c33d1ed7--