From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/24417 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: John Salamon Newsgroups: gmane.text.pandoc Subject: Number tables like figures when converting from LaTeX? Date: Mon, 10 Feb 2020 21:59:14 -0800 (PST) Message-ID: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_1587_1841034865.1581400754193" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="94037"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCAI33U34IHRBM4FRHZAKGQEGPMVVXI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Feb 11 06:59:18 2020 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ot1-f58.google.com ([209.85.210.58]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1j1OZq-000OMb-B2 for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 11 Feb 2020 06:59:18 +0100 Original-Received: by mail-ot1-f58.google.com with SMTP id d16sf6475276otf.5 for ; Mon, 10 Feb 2020 21:59:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=mQHQ9MJpRvxtF58/UNUhcWdyAx2gwkw4r2FWwgG0Ph4=; b=XS1EpwV9Mh+yqDuIieBOagI7A59LSc5Y+SYwmDZEceu9d7XoVkD0Z285WhK9COSejx hjAhiMMsBzOI+NE75+QPjReDgDj2xmwpCnwY5K6s80UusRP2Oh4am/oESnGoNymnox1Q UliMS5UF1ngvlokVwv9QfT8ujM8F5JAhkxrl2+7wnmCrNSAG9zYBrtToThlZ7qeUx0/S R+gSUFSV6Lqy3TXmJJGyJoEevOZiBbUatvFawdcUCUU/vZfuYvsGaaxHTVplzRwylQgm GvIJ3M1tvRx082lYfym4eVB/LMkVeQrBb9b8mNbsMqQvnDbZPG7vv07nvGYK4vIkkm20 ifQQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:subject:mime-version:x-original-sender :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=mQHQ9MJpRvxtF58/UNUhcWdyAx2gwkw4r2FWwgG0Ph4=; b=hHWQJZpgjAxzF9wGx6SdqMjczg4+TTlfDd6CgP5Fue07tw6kHjPpCrKDaiaVqFqpxz /HXLUk3fCa/fTVbiJcMGxUwrUo+IwHmIhOmm+mEKnwPjwzUHbFYjfOX/wP87CRfsJrus ca0Ewr36gzAHpLqzjer2B6/xUGdvgFuyNYU/UtgJENTjpPM0am5uM4yVCf633HKODOAj zrFjqHAJZY70F0gqSj7TS6jrhej/rFI/jvVRbUGWxfMfhnDfXEKPk7IPPIumuzwN9uq0 Np37HqT/Sn4zUM81CQaHXnb4rVWRzTt4IwxZ9YqZsjP+nQlMi0S8N12XMBVd4JZgkT/f W0tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:date:from:to:message-id: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=mQHQ9MJpRvxtF58/UNUhcWdyAx2gwkw4r2FWwgG0Ph4=; b=Wx//w4GgkoWJ81cT6lDQ8g5+P5YtJF4yBsFLqYsldUn0rG+WAK3VKxRPYxwojF6RH6 jEGY1UjIxPthZVJQBVQ3K8PP/+cvLVtgc7Q9zldB1fU4ZixPp/Ysrd3zyRHT/E/BMobX YIqk7yyqc3P9jNYQandYcH7v/uwISV6Oo4j1pSQa1gbmVj8jSz729Kph5hUPN1fs2hgO rDLfWQSylCLizFhsZePbgZWDKCsVKOh8mjI3mVoz0mitJcTtBhXG9bttvI6pYEZAAN8j PZpnPTU2Km4sYRYvr+/OpvQZmMtleTWNuIzY7E6OP/6jEADNZs6N5yFQ3eq6ASQfKMN3 4TgQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: APjAAAX2HK2/AAw4w6KgwcRVnvtCjwStSEsrWOi7gm2Oysd2LSALhoQY FCDTgUSMWISmcdel8w4kRCY= X-Google-Smtp-Source: APXvYqzQQ66MAtQYfSzx5GCGxdjY39kKUrMVvTn8lfrTZhIGbgC/4H3rihJpzTnumIWcI+iIY6/okA== X-Received: by 2002:a9d:729c:: with SMTP id t28mr3994422otj.66.1581400757404; Mon, 10 Feb 2020 21:59:17 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:aca:c694:: with SMTP id w142ls5261836oif.6.gmail; Mon, 10 Feb 2020 21:59:14 -0800 (PST) X-Received: by 2002:a05:6808:8ee:: with SMTP id d14mr1789328oic.138.1581400754742; Mon, 10 Feb 2020 21:59:14 -0800 (PST) X-Original-Sender: salamonj9-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:24417 Archived-At: ------=_Part_1587_1841034865.1581400754193 Content-Type: multipart/alternative; boundary="----=_Part_1588_767585384.1581400754193" ------=_Part_1588_767585384.1581400754193 Content-Type: text/plain; charset="UTF-8" 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. ------=_Part_1588_767585384.1581400754193 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,

I am trying to conver= t 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)

W= ith the input below as an example:

This reference to Table \ref{tbl:label} doesn't work.
\begin{table}
=C2=A0= =C2=A0 =C2=A0 =C2=A0 \caption{This caption has no number.}\label{tbl:label= }
=C2=A0 =C2=A0 =C2=A0 =C2=A0 \begin{tabular}{ l c r }
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 1 & 2 & 3 \\
=C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 4 & 5 & 6 \\
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 7 & 8= & 9 \\
=C2=A0 =C2=A0 =C2=A0 =C2=A0 \end{tabular}
\end{table}
=
This reference to Figure \ref{fig:label} works fine.
\begin{figure}<= br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 \includegraphics[width=3D\textwidth]{example= -image-a}
=C2=A0 =C2=A0 =C2=A0 =C2=A0 \caption{A numbered caption, if I = use pandoc-crossref.}\label{fig:label}
\end{figure}

=

The table reference just becomes a hyperli= nk displaying the label like: [tbl:label], whereas the figure reference is = numbered.
If I use the pandoc-crossref filter, the figure caption= s are numbered while table captions aren't.
Is there some opt= ion 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 &= 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/cff01bf0-8c91-4f8c-a76d-7d070047513a%40googlegroups.co= m.
------=_Part_1588_767585384.1581400754193-- ------=_Part_1587_1841034865.1581400754193--