From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/30970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: A A Newsgroups: gmane.text.pandoc Subject: How is the grid table column width calculated in pandoc? Date: Thu, 14 Jul 2022 17:40:45 +0200 Message-ID: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000057519b05e3c5ba68" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28278"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDJ77HUDRUCBBCXSYCLAMGQEMY7J7CQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Jul 14 17:41:02 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-pj1-f64.google.com ([209.85.216.64]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oC0xa-0007BW-O3 for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 14 Jul 2022 17:41:02 +0200 Original-Received: by mail-pj1-f64.google.com with SMTP id r6-20020a17090a2e8600b001f0768a1af1sf3840402pjd.8 for ; Thu, 14 Jul 2022 08:41:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1657813261; cv=pass; d=google.com; s=arc-20160816; b=nHP1obCUI+76gyvD23xEg81mXrT3YYyGItUXoIaqNRjC6fFuSt+IyBvTRF/cSEOb6D bgoiGE1sM6VcbB6mpaDmjt77WgDyU+4SWe7i/H+F3tNEsOHXpNVap0TcFDqe88EmTRyr 2iTFTHLCmiGVpltFi0Hr3VaRit1MdaeU2NTxZolM8Jav3CMg37EJ1giYGLImx752uRSa 3N8lNK1AjxRfjc7sgS0i85t5Gcrt26vu6p9XA6drJr71L5qMarV8MN8gzUv7Yu4SjLTa D6yYILG40yW71caoVRctdHhD8TMgVIEYDQ9m+eHCviy6F+gO/AMecVqckfbywBX01/Nm oZXQ== 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:to:subject:message-id:date :from:mime-version:sender:dkim-signature:dkim-signature; bh=Yl/wr60YJ79QdcXyeGIRvqY7jZoEKaQGez6R2NrDCRo=; b=DEkhBwJe8nk6sqULylqkcuFm0wdPFOvY6158A63JIpTpsnO5PnI4j/TcGicLQ807MM /irqYqe6PwRqA8Ab/eWwnfnEnthTO+ImlPpOzN+7cNJalKFIhDuoLFZNG6eNxDV0ibTB p2mRvndezKAHlNQbJVUi0/CAilK6SE3PzEf2PHEq53HKqH1YzYRFykOzQklEjUmIzOfg rMg2ZE7HAUlK96mCxwy3jABcA5fj2uXtDKlQ7CUBbC2oqUx7msoAOYiNaxXPDOSO+f2I 4LR0vs/psm3hVKt2keKZ6hHa6rqAhzlCfKhGj6vgdorQxOzgaOL25olWRC0sS2mOpQSV HmMg== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=GPvusR3D; spf=pass (google.com: domain of amine.aboufirass-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::62f as permitted sender) smtp.mailfrom=amine.aboufirass-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=20210112; h=sender:mime-version:from:date:message-id:subject:to :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=Yl/wr60YJ79QdcXyeGIRvqY7jZoEKaQGez6R2NrDCRo=; b=AAAzAIIA2SHiPpeY58yNXRyQKm87bbBnKHSGdrVF5SFMIAszlgHlumoQmh5jTiWkZh g/R9ubT41/Q7BA7hlRAIV7XvhLFpR9FpZQ1eiFCcFXebvGAedTxX6SA/c6tTYWsmmu63 d6xX16FUiEEjwEvXU8kTyArqnDX2P1HE3V2tZmgDHw6bQNeFGZyhkK8ERwBnAN2sLFGY sjGgguPsjOVNBfL8x+2G/8z2HplKPtPWcu8ccwQbcgnNBpFpcFmQqHus5Dv+dSaST1d+ SaWQZIR6t26VghllstEbAOl53kgKPQXK3i0f3xBN+dg6yi91VopHXjHTHq6KiedrKYM1 pYsg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to: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=Yl/wr60YJ79QdcXyeGIRvqY7jZoEKaQGez6R2NrDCRo=; b=Xq02KyPpZ9ZINxyIa1qCj8pslsQqVJuHi9xteZdAB9RV9wPJuxUWnZI4UuHDzMLVxp HQGNzwF65akLM4cZmPJw2Qgjbh2W7gqiLorq10uxftf4zZA6vDqKICVEfW6ER69V8KcG pCI8ZN+RD/S+idDMNY0xtd+aSRi6WafgWN8igAGtlDWQe4iIt3o3cvGtgDdMwtISJcQZ OI/AIbaXqgIRbVg1fisqFa7wPrGSyuZxrpzON4nhGFwhiQQt/pZ3Krm1KXTx6cDUg7WO lVU0+D3aNQlc4YGlC3vVQ090Nus272r52lxFDG5wbMdCeNsUpOuIEckAV4Ye+/pih/XE alkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:mime-version:from:date:message-id:subject :to: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=Yl/wr60YJ79QdcXyeGIRvqY7jZoEKaQGez6R2NrDCRo=; b=EODxxlj/L4278FLreFbLe9b8WhQ6p9uThv3RN+7fcm/ERHMVsMOfLOLn53z/pzmp8E JvsIT/ALE9uzgNezeksWpi4j6rco/+vxWHFOyD5rt5sVhWo4rgC2GOjd4VH/zieGJlIl elL4OL/pkWRqE+cw8oGdwhmmQ/P0zUe/ovk+rAulHkGynvm02NKzQj4UySQI6MxElkMg i+raZ4WhOBCdBMz/Ar72pTdzy0CyMYVou8djltaSUXpPY5NYaWJCZLiWTFiOILlj1NtP 9Bhr/0ZWNKMtJut5cCfUah84sycbTRd/6qF3reBobgA031zK5vAl1hJqxfHanG6l7NqO x6iA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AJIora+YzBVuFatKWhNJqfmERzyKgF4QfJjoek2Wb8IjAXeqYwstthfI 8PNyC0hWtTDy1aZ2b5iJBfE= X-Google-Smtp-Source: AGRyM1uFTMXq48uXMU1vHIoOAAr1C4mBkDaX4N2XVJrZ8xt0U62cY2Z6b+vlQ/8h3IMsMjMqdh4Npw== X-Received: by 2002:a63:4722:0:b0:40d:289e:8637 with SMTP id u34-20020a634722000000b0040d289e8637mr8108389pga.362.1657813261420; Thu, 14 Jul 2022 08:41:01 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a17:90a:ea90:b0:1ef:ab03:dbad with SMTP id h16-20020a17090aea9000b001efab03dbadls272365pjz.1.-pod-prod-gmail; Thu, 14 Jul 2022 08:40:58 -0700 (PDT) X-Received: by 2002:a17:90b:3a8b:b0:1f0:127:360d with SMTP id om11-20020a17090b3a8b00b001f00127360dmr10520027pjb.64.1657813258213; Thu, 14 Jul 2022 08:40:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657813258; cv=none; d=google.com; s=arc-20160816; b=0suRHDGvH1C6J4Ppf4ZvGjPn4Lmslt67Yc1b8onAvXxVTq8FB+O7yqQ04of5Inpmzx eil4NtsjKGDFO3WzPsl/aYePlD6lHqPc+6bqtpP8MtdnLbYzQ57/pCek7prJAdYGg0RU ReRqZcFykpCrMmisqhZ7N7gTClIBCFtvQwGW3490VzitydzGrvMg8SG+zZEMAd5NjyRn 2FJVFQOpokHwXzewxjp/bjF9607Z8MCjJpN6O9nS7mu7jIDoROEf2pcBptjC8s4E0XgG jF9D4jYdl5s7oGSW6dm+5QlzRH5vonMiuj4GdbLM/IYv8Etev0BRGPlj2wsr3dCD17Rl XSmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:mime-version:dkim-signature; bh=FVjYZPjIjK9kjbdndMwTMmY5L2/9tSPY1jXKds0ZZL0=; b=GMmlsCLWJULw+easixdVLIjaYD7+vJDH27de03yo6Fq5smV/aE67NeTGPGt0I2iXgS jmmclcOsXQJTfXg8M0RSboDYHZsTjARZ1bp7hFWy78GhLOfD76GC421OVu/Z+Bns0wN9 5U3+6BcFD3fHKBkWaJZ1QThFyYF+eMZhfYExeOuML/jt+gKwqj+uD30Ea2oUoVz0wRce EVGIRePVtwOlNWf98QUtUWyFMHmkcgDAga2JnbKJJNelFu+JyrlF9GS8M8YKfOfvVZ1i /rGT/vR8zDwaOSShzwlyY7fTL5Koeoins4dtKlckGvGzCbcLJ/KHRpy7EO2qBAo7Zwv0 y8Mg== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=GPvusR3D; spf=pass (google.com: domain of amine.aboufirass-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::62f as permitted sender) smtp.mailfrom=amine.aboufirass-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-pl1-x62f.google.com (mail-pl1-x62f.google.com. [2607:f8b0:4864:20::62f]) by gmr-mx.google.com with ESMTPS id hk7-20020a17090b224700b001ecb6b8678fsi54094pjb.2.2022.07.14.08.40.58 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 14 Jul 2022 08:40:58 -0700 (PDT) Received-SPF: pass (google.com: domain of amine.aboufirass-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::62f as permitted sender) client-ip=2607:f8b0:4864:20::62f; Original-Received: by mail-pl1-x62f.google.com with SMTP id k19so743625pll.5 for ; Thu, 14 Jul 2022 08:40:58 -0700 (PDT) X-Received: by 2002:a17:903:234d:b0:16c:3e90:12f5 with SMTP id c13-20020a170903234d00b0016c3e9012f5mr8685764plh.82.1657813257898; Thu, 14 Jul 2022 08:40:57 -0700 (PDT) X-Original-Sender: amine.aboufirass-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=GPvusR3D; spf=pass (google.com: domain of amine.aboufirass-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::62f as permitted sender) smtp.mailfrom=amine.aboufirass-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:30970 Archived-At: --00000000000057519b05e3c5ba68 Content-Type: text/plain; charset="UTF-8" Dear All, The pandoc user guide shows the following example for a grid table: : Sample grid table. +---------------+---------------+--------------------+ | Fruit | Price | Advantages | +===============+===============+====================+ | Bananas | $1.34 | - built-in wrapper | | | | - bright color | +---------------+---------------+--------------------+ | Oranges | $2.10 | - cures scurvy | | | | - tasty | +---------------+---------------+--------------------+ Which renders the following html using the default writer:
Sample grid table.
Fruit Price Advantages
Bananas $1.34
  • built-in wrapper
  • bright color
Oranges $2.10
  • cures scurvy
  • tasty
My question is, where does it get the width values in col style from? Also how can I adjust those to an exact value if I know the value I want to set it to? Regards, Amine -- 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/CAMwawgN%2BD-cNfRKXmigUjXXuTVgVSkpkeRrrTE0hVfwK4iFHXw%40mail.gmail.com. --00000000000057519b05e3c5ba68 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Dear All,

The pandoc user guide shows the= following example for a grid table:

: Sample grid table.

+---------------+---------------+--------------------+
| Fruit         | Price         | Advantages         |
+=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D+=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D+=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D+
| Bananas       | $1.34         | - built-in wrapper |
|               |               | - bright color     |
+---------------+---------------+--------------------+
| Oranges       | $2.10         | - cures scurvy     |
|               |               | - tasty            |
+---------------+---------------+--------------------+

Which renders the = following html using the default writer:

<table style=3D"w=
idth:74%;">
<caption>Sample grid table.</caption>
<colgroup>
<col style=3D"width: 22%" />
<col style=3D"width: 22%" />
<col style=3D"width: 29%" />
</colgroup>
<thead>
<tr class=3D"header">
<th>Fruit</th>
<th>Price</th>
<th>Advantages</th>
</tr>
</thead>
<tbody>
<tr class=3D"odd">
<td>Bananas</td>
<td>$1.34</td>
<td><ul>
<li>built-in wrapper</li>
<li>bright color</li>
</ul></td>
</tr>
<tr class=3D"even">
<td>Oranges</td>
<td>$2.10</td>
<td><ul>
<li>cures scurvy</li>
<li>tasty</li>
</ul></td>
</tr>
</tbody>
</table>

My question is, wh= ere does it get the width values in col style from? Also how can I adjust those to an exact value if I= know the value I want to set it to?

Regards,

Amine

--
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://group= s.google.com/d/msgid/pandoc-discuss/CAMwawgN%2BD-cNfRKXmigUjXXuTVgVSkpkeRrr= TE0hVfwK4iFHXw%40mail.gmail.com.
--00000000000057519b05e3c5ba68--