public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Incorrect column widths / text off page, for table containing math
@ 2021-05-26 14:44 rwijtvliet
       [not found] ` <37b73eb8-97e8-4abb-84d3-76d6b0fffbb8n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: rwijtvliet @ 2021-05-26 14:44 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 1422 bytes --]


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.

[-- Attachment #1.2: Type: text/html, Size: 2083 bytes --]

[-- Attachment #2: 119658665-b5553c80-be2d-11eb-957a-ce4333d04f24.png --]
[-- Type: image/png, Size: 16785 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Incorrect column widths / text off page, for table containing math
       [not found] ` <37b73eb8-97e8-4abb-84d3-76d6b0fffbb8n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2021-05-26 15:01   ` John MacFarlane
       [not found]     ` <m21r9tv8s5.fsf-jF64zX8BO08an7k8zZ43ob9bIa4KchGshsV+eolpW18@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: John MacFarlane @ 2021-05-26 15:01 UTC (permalink / raw)
  To: rwijtvliet, pandoc-discuss


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 <rwijtvliet-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Incorrect column widths / text off page, for table containing math
       [not found]     ` <m21r9tv8s5.fsf-jF64zX8BO08an7k8zZ43ob9bIa4KchGshsV+eolpW18@public.gmane.org>
@ 2021-05-26 15:15       ` Ruud Wijtvliet
  2022-07-15 10:58       ` A A
  1 sibling, 0 replies; 4+ messages in thread
From: Ruud Wijtvliet @ 2021-05-26 15:15 UTC (permalink / raw)
  To: John MacFarlane; +Cc: pandoc-discuss

[-- Attachment #1: Type: text/plain, Size: 2975 bytes --]

Got it, thanks!

On Wed, 26 May 2021 at 17:01, John MacFarlane <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org> 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 <rwijtvliet-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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.

[-- Attachment #2: Type: text/html, Size: 4353 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Incorrect column widths / text off page, for table containing math
       [not found]     ` <m21r9tv8s5.fsf-jF64zX8BO08an7k8zZ43ob9bIa4KchGshsV+eolpW18@public.gmane.org>
  2021-05-26 15:15       ` Ruud Wijtvliet
@ 2022-07-15 10:58       ` A A
  1 sibling, 0 replies; 4+ messages in thread
From: A A @ 2022-07-15 10:58 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 3438 bytes --]

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 <rwijt...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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.

[-- Attachment #1.2: Type: text/html, Size: 5099 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-07-15 10:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-26 14:44 Incorrect column widths / text off page, for table containing math rwijtvliet
     [not found] ` <37b73eb8-97e8-4abb-84d3-76d6b0fffbb8n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2021-05-26 15:01   ` John MacFarlane
     [not found]     ` <m21r9tv8s5.fsf-jF64zX8BO08an7k8zZ43ob9bIa4KchGshsV+eolpW18@public.gmane.org>
2021-05-26 15:15       ` Ruud Wijtvliet
2022-07-15 10:58       ` A A

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).