From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/26169 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Quentin Stievenart Newsgroups: gmane.text.pandoc Subject: Latex to HTML: figure environment ignored if not used with images Date: Thu, 17 Sep 2020 06:36:14 -0700 (PDT) Message-ID: <9f1df45d-50ad-47fe-a7f0-7ad2a0b72449n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_200_1535497444.1600349774538" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32972"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCLYB6ONB4INBTEN7MCRUBBYP2NCY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Sep 17 15:36:19 2020 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ot1-f64.google.com ([209.85.210.64]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kIu5D-0008Uw-01 for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 17 Sep 2020 15:36:19 +0200 Original-Received: by mail-ot1-f64.google.com with SMTP id z22sf459541otq.14 for ; Thu, 17 Sep 2020 06:36:18 -0700 (PDT) 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=Dy9b8o1gj4UPSCC7oCLqxUceD8C35sCCNo9r9YYPrRo=; b=cjm8NYXXw63wE3x+86nV+Kh0dEcqqh1h9X2G0+iSLOheyfSCU2bk05n4lucLid8XAo RJ0rWFj4xWmRMTMEHMT9vW8yG1WSvCMYvYCNusRwOsHv+waHp2EtHwkONyI64kswHyxx j4AKi9P7YXBsqShXLT0MOw/c+2bVilLhGXNliUxHYyL9T/jrQ6DlZ1DhaInAbJbMEv2N BcQ0VUW0HX5kIAhutMLpDT6SASkFBQTZQAcMGhGFUnr/3vzC0AowapwoIYOfnWbgmRLi qwpnnJpem2dF3mqCxlwR7iw3UzjRzgxJfcMC6qdjugIwF+rZnJEu4JU0p0qUQqtln4dw nN+w== 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=Dy9b8o1gj4UPSCC7oCLqxUceD8C35sCCNo9r9YYPrRo=; b=m1Uvf3TwvnMEwL3xROOXqRsiZnGV/HzkP+dQ+81+hL1riugVEDW1I+okqDrCFJbdT/ RcQOnN4CGYzluQD3qHDxXZ4/+WgzUj1OrbdemOIxaW+N9zEe3CdpxnxLVCUIlyyTy4DC m9qH2AScc7Xu2zrbEDbjD5bNDPYf+w8AEN1MnvWuUZQoN3ViWUDZofFj2TgQ11c5oRpf v6tKQHQPaEKkQpNVrasNFArpxFVYeRriuagOodJR02I20JZoJlptj3/99HWSGgcDx9sC f64YUE4r8yv6D/TjnPostTildZxtjiTbFr7iRIZc9KAuZmsm3ARJ39BQvLosl7WZDyRc mSig== 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=Dy9b8o1gj4UPSCC7oCLqxUceD8C35sCCNo9r9YYPrRo=; b=J/MdVvpktCjd1bRqdF6ZQqSusdqbiL5a2Br/sUafYsyfbOfSMrqZfKw5AiRfx1FVoe K+BTDjhNWWpztot/0+DLQ0Vur7fXMyn72PlpRWNSjNZomvAbTqmEDwGR0IJbyMPbXH8i wMB8o1IK0Xx6nOQvBgFv/uVqFaqD6Ux+Kk3JJcdoiH63EYFXSflU1DH69e4WjC5bm37R Q90iDEtE0jN6fGnuQioASgxdAGaD9QnNJ3memodxVV+t7Ipl+sCvCjtZHl9sDXPHvn5L CDKOoeLckY3ahd60mtpvvQqNni49/SZc1K1RhCrN2gG6ZAgz/bQjhui/kEafqde1hhK1 bNZA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM531HYmbam6nAGvkfEIehFhx/4h1C4xwXvXvL7tWl49qbOYo6cnGl p0ho/5Iu9IqTeD+/Y0idR0U= X-Google-Smtp-Source: ABdhPJzMqQmkU6J64Jb5TwevhjI+HhIlLZdlZJ5xxu+N0Cb42BsRERUnEKxLvq0NOyhwnIBC8ZgwJg== X-Received: by 2002:aca:815:: with SMTP id 21mr6492724oii.5.1600349777965; Thu, 17 Sep 2020 06:36:17 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a9d:614b:: with SMTP id c11ls459432otk.2.gmail; Thu, 17 Sep 2020 06:36:15 -0700 (PDT) X-Received: by 2002:a9d:ae7:: with SMTP id 94mr20665268otq.283.1600349775576; Thu, 17 Sep 2020 06:36:15 -0700 (PDT) X-Original-Sender: quentin.stievenart-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:26169 Archived-At: ------=_Part_200_1535497444.1600349774538 Content-Type: multipart/alternative; boundary="----=_Part_201_1917348789.1600349774538" ------=_Part_201_1917348789.1600349774538 Content-Type: text/plain; charset="UTF-8" Hi all, I am trying to compile the following latex pattern to HTML using pandoc. This is a figure environment that does not contain any graphics inside, but only text (or typically, it contains maths in an align environment): \begin{figure}[h] \caption{Figure caption} \label{fig:figure} foo \end{figure} However, the output from pandoc is the following (taken from pandoc.org/try):

foo

While I would expect it to be:
Figure caption

foo

The same happens with a table environment that contains no tabular environment inside. What would be the most effective way to achieve this? I have a long document full of this pattern, and if an automated way of doing this would not be possible, I would rather change the tex file than fiddle with the html output (especially given that the caption information is not preserved). Thanks in advance, Quentin -- 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/9f1df45d-50ad-47fe-a7f0-7ad2a0b72449n%40googlegroups.com. ------=_Part_201_1917348789.1600349774538 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi all,

I am trying to compile the fo= llowing latex pattern to HTML using pandoc. This is a figure environment th= at does not contain any graphics inside, but only text (or typically, it co= ntains maths in an align environment):

\begin{figure}[h]
\caption{Figure caption= }
\label{fig:figure}
foo
\end{figure}

=
However, the output from pandoc is the following (taken from pan= doc.org/try):

<p>foo</p>

<= span>While I would expect it to be:

<div id=3D"f= ig:figure"><figure><caption>Figure caption</caption>&l= t;p>foo</p></figure></div>

The same happe= ns with a table environment that contains no tabular environment inside.
What would be the most effective way to a= chieve this? I have a long document full of this pattern, and if an automat= ed way of doing this would not be possible, I would rather change the tex f= ile than fiddle with the html output (especially given that the caption inf= ormation is not preserved).

=
Thanks in advance,
Quentin

--
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/9f1df45d-50ad-47fe-a7f0-7ad2a0b72449n%40googlegroups.= com.
------=_Part_201_1917348789.1600349774538-- ------=_Part_200_1535497444.1600349774538--