From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/24426 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: Number tables like figures when converting from LaTeX? Date: Tue, 11 Feb 2020 09:43:55 -0800 Message-ID: References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="18313"; mail-complaints-to="usenet@ciao.gmane.io" To: John Salamon , pandoc-discuss Original-X-From: pandoc-discuss+bncBCJZJHG45QDBB2GPRPZAKGQERKHKH2I-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Feb 11 18:44:11 2020 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-il1-f191.google.com ([209.85.166.191]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1j1ZZz-0004c3-IC for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 11 Feb 2020 18:44:11 +0100 Original-Received: by mail-il1-f191.google.com with SMTP id a2sf10141294ill.13 for ; Tue, 11 Feb 2020 09:44:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1581443050; cv=pass; d=google.com; s=arc-20160816; b=ml60Hy9+ctihKdgShwlv49ivjviSlWiL3Ioc4dARZ9Da7tBeciuHeLXtX2PKM7yDTF ru0XSSeCfKDEUrxMKPU8BqepPDLSTCDzFUC3XIdnjd1vTUtnPRmMAQPFlLM6X+872ixM w8nN92R3SWwrsBSQv3DORAugVJwa38tufeg8Nm7KNwRKb+UGV3JGTUPhLgFSodMnztqc P/bKc3RHYa/uJu5yqTg3213Gv2Is0O1Iy8o2u6Ph5K2Gd9wauG2PZwxmLzn6BBc7YVeT XXMuD2o4nrOyQ+AbPGx4lTVZR2wxdsKA2ivXNt/EXdWGvPzRGWmHGkPtFEQwSE9VNjnr jM+g== 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:mime-version:message-id :date:references:in-reply-to:subject:to:from:sender:dkim-signature; bh=S8WtdxfYQat6ag/1KE3x2Sodfq4i2bwETm5+Y1tegiM=; b=0RYah5/jihGdZcgleJch7AtsOAV2IVqHf5/6dTd/+AR4RqUdBIhISRdFli37wQy3NX 4ivy2TAuu0gTm+3PcN4PIsaIXLLc9WgUe+PGwPNs+w3jdAmBpRiWlxov6En4C1CSh4YL EKYO3uZNHvmdsoczsuM9G6Gz/jBg8T3LK+rQSDmSBCBui1silpT0vEghueg/5xdhGPGe DN3f5t5Ug8LNVzj+4F+TQa/EqfB2Al6mez9aLlbI8HDACEzqC5G68hnaloz3tHWfGQwp jstdsawEh4r7+33rveXnKpiIgB910VUOtjVegVsjSvVY2i7soTMF4zT8cuXJuWJZ7ig/ Nt8g== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=k9ukclgM; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::62c as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:to:subject:in-reply-to:references:date:message-id :mime-version: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=S8WtdxfYQat6ag/1KE3x2Sodfq4i2bwETm5+Y1tegiM=; b=dGP0fARDbYW706lSxNq9i6be2XvwRtjyucC4GWrHmRK+W7JNn9bOyOYGu/vpZtjz/i omQjI1P+yEwkARtKWEZNzlyZ6j4CpLHPPqwoH2OQJEH+W+PGazW15/wiFo5Dtvranl2E fyFXjjoa05mp2aAQa9p/L66Bm4bFad5DJ3VJ14cxHKh1/MBngWyg7D/nTHrQq2qyZnqm sngdrszz4yI0rkhq3pzU4YyDox6mjNqJtQUzQGWasKvP263jm98E6j4JvoBefml/WGoR CFR8c0g1knbkdJds4LdzfjDhWpoRRkpsCY90LXMH4GUn8eZ+J3tiQ6oCt+E4JE4Bt0rD pF2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:subject:in-reply-to:references :date:message-id:mime-version: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=S8WtdxfYQat6ag/1KE3x2Sodfq4i2bwETm5+Y1tegiM=; b=QVUXFRbYcU4H5fat3dwyyRsaxsZiDemTunn018pcTbz01u4rd1vKqHAu7v5zkM6nFv OwgJrI6XOg+gxhQDAzqNh+phWFT4SCts9iorc+IJSLUuSccuwfgWLexqL6HSIO0zIxvb SW3Ofyen4vo8SNc3+pXq72a5hOVaHNHkTlwNXPSeIk8u/RLUi6IsA0VcI7y4vOh2yuBj 9hfsKaX9e6WFHnLHQb1GYHwl7882k4A6ilOoLqW0pgLLtodmi63yql9SAKAFelCfEuuE vFvk4nzqcaJ5wpl0LptP3MNpRxbmKLukgfE1AhUALGFEYbPOImLA2nKCjIYA50QJVFeh vAAA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: APjAAAWsFFNe7da3SbcKmH0NMCXAfdCgoHYSYubJXLilBCDT4nv+YaXE emVpEDaWmOdcJ3e1lMliQzE= X-Google-Smtp-Source: APXvYqyygxAPAGO4QVFvEQO5ywyH1XNXU9sEZ5F0PFKSJjq94ZjRH0eU2bvFj30BMLFfXx6id6A9jg== X-Received: by 2002:a05:6602:3:: with SMTP id b3mr14759660ioa.205.1581443050567; Tue, 11 Feb 2020 09:44:10 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6638:212:: with SMTP id e18ls1318431jaq.0.gmail; Tue, 11 Feb 2020 09:44:08 -0800 (PST) X-Received: by 2002:a02:1041:: with SMTP id 62mr15191504jay.51.1581443048162; Tue, 11 Feb 2020 09:44:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581443048; cv=none; d=google.com; s=arc-20160816; b=Y5CdMe2C9TD9AuEN66vry5s6yt+J2T/5LT9Wg/fDmvP3Z8Mw6P1YXvB9FTOrl18bNB 0681TiIHpp6SJlfXo3K8o/6BB7VwRF0EqwawkykYe5YuuMxfexc15nxBdHjIsx8Ogh33 TO90KV06RuQoIstrtaiVkWV1Oy4k9EM8Am6VhNaKcVjMGFTIQRCcTo37sM10in8TAVHG zQZ7MgKfweuCvhH4v0h05Y3+1sVnpymTUOEIzXN0SAcFTC6thfkxCu4/q2sexCfv1WhL qN3ddtrKA9y4mls7M3avnT9gxLtlR3m4w+fpHu0RrCJ12i0ABBCrswuU9dAfvfrdRbxz X3pQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:message-id:date:references:in-reply-to:subject:to:from :dkim-signature; bh=xNb8DnVNW+kbsQtdRK8raKb7WI1bY3ZUPHb6YpSV0uc=; b=AzTe1lVJkUdFuYn9qiRzzdQr2KKygfrGQyc4KXcciJ9Ek7ibec3eyQObAbzOQkokEX jSAR6DjHfctHGHJQOYgOJbUTMtQQVQPZKkXGcY8kQr5vZhBuxxWWNPi4KAEFNog/EwCY /SUE1V08bcmwmUIVolMqoyPaENBcWnxlvjH9fRq9UFSsJGOioktHwxC3PH8BGsiW9Xyp iNTNHO9isR4Srwb/pfmNtnRB9At8cWUg1Dnn+XXev9VZHPVFycNEyAekVxdKPK7Oi/Ko SvvtrzyQJ7g0n8PYwPhyIo3OXvVJxqy71DC1V/Dn148GVDcYuLVklSLL55nQJyHrMgrc 1OXA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=k9ukclgM; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::62c as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pl1-x62c.google.com (mail-pl1-x62c.google.com. [2607:f8b0:4864:20::62c]) by gmr-mx.google.com with ESMTPS id k9si185287ili.4.2020.02.11.09.44.08 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 11 Feb 2020 09:44:08 -0800 (PST) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::62c as permitted sender) client-ip=2607:f8b0:4864:20::62c; Original-Received: by mail-pl1-x62c.google.com with SMTP id t6so4548371plj.5 for ; Tue, 11 Feb 2020 09:44:08 -0800 (PST) X-Received: by 2002:a17:90a:ba91:: with SMTP id t17mr5037483pjr.74.1581443047349; Tue, 11 Feb 2020 09:44:07 -0800 (PST) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id a18sm5414039pfl.138.2020.02.11.09.44.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Feb 2020 09:44:06 -0800 (PST) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id 696E4A231; Tue, 11 Feb 2020 12:43:55 -0500 (EST) In-Reply-To: X-Original-Sender: jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=k9ukclgM; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::62c as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@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:24426 Archived-At: This is inconsistent. Why don't you submit a bug on our tracker at https://github.com/jgm. I agree that tables should do the same thing as figures here, and we can make that happen. John Salamon writes: > Hello, > > I am trying to convert from LaTeX to both HTML and docx, both of which > result in the same thing happening. It seems that while figure references > are automatically numbered, tables aren't. (I'm using pandoc 2.8) > > With the input below as an example: > > This reference to Table \ref{tbl:label} doesn't work. > \begin{table} > \caption{This caption has no number.}\label{tbl:label} > \begin{tabular}{ l c r } > 1 & 2 & 3 \\ > 4 & 5 & 6 \\ > 7 & 8 & 9 \\ > \end{tabular} > \end{table} > > This reference to Figure \ref{fig:label} works fine. > \begin{figure} > \includegraphics[width=\textwidth]{example-image-a} > \caption{A numbered caption, if I use > pandoc-crossref.}\label{fig:label} > \end{figure} > > > The table reference just becomes a hyperlink displaying the label like: > [tbl:label], whereas the figure reference is numbered. > If I use the pandoc-crossref filter, the figure captions are numbered while > table captions aren't. > Is there some option I'm missing that will make the table references behave > the same as the figures? > > Best, > John > > -- > 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/cff01bf0-8c91-4f8c-a76d-7d070047513a%40googlegroups.com.