From: "jmuc...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" <jmuccigr-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: Re: Beamer & reveal.js without captions
Date: Mon, 28 Feb 2022 11:02:32 -0800 (PST) [thread overview]
Message-ID: <12973622-a6fd-459f-9878-9636a126c811n@googlegroups.com> (raw)
In-Reply-To: <da33d7e2-0133-4e79-8fa7-ec4625fc4e04n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
[-- Attachment #1.1: Type: text/plain, Size: 2571 bytes --]
OK, getting some funny stuff on this year-old solution.
To wit, if I include a table in the page, I get the caption labels.
```
> pandoc -t beamer -o Slides.pdf
---
header-includes: \renewcommand{\caption}[1]{}
title: Title
author: Author
date: March 11, 2022
...
![\ ](image.jpg)
```
works as expected. No caption label below the image.
Now add a little table to the end (or the start), and the label pops back
up:
```
> pandoc -t beamer -o
/Users/john_muccigrosso/Documents/Academic/Talks/Perugia/Slides.pdf
---
header-includes: \renewcommand{\caption}[1]{}
title: Title
author: Author
date: March 11, 2022
...
![\ ](image.jpg)
-----
| table |
|:----:|
| cell |
```
This happens to every image in a slideshow.
On Thursday, 21 January 2021 at 07:05:13 UTC-5 jmuc...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote:
> Yes, that's the winner! Thanks.
>
> On Thursday, 21 January 2021 at 01:18:21 UTC-5 John MacFarlane wrote:
>
>>
>> Oh, sorry. You need to use \renewcommand not \newcommand.
>>
>> "jmuc...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" <jmuc...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:
>>
>> > It seems not:
>> >
>> > ```
>> > pandoc reported the following error:
>> >
>> > Error producing PDF.
>> > ! LaTeX Error: Command \caption already defined.
>> > Or name \end... illegal, see p.192 of the manual.
>> >
>> > See the LaTeX manual or LaTeX Companion for explanation.
>> > Type H <return> for immediate help.
>> > ...
>> >
>> > l.100 \newcommand{\caption}[1]{}
>> > ```
>> >
>> >
>> > On Wednesday, 20 January 2021 at 19:00:06 UTC-5 John MacFarlane wrote:
>> >
>> >>
>> >> Will it work to add
>> >>
>> >> \newcommand{\caption}[1]{}
>> >>
>> >> to your header-includes?
>> >>
>> >>
>> >
>> > --
>> > 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/89a71570-9ee0-4f56-8c16-0ae1dd4a1cd4n%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/12973622-a6fd-459f-9878-9636a126c811n%40googlegroups.com.
[-- Attachment #1.2: Type: text/html, Size: 4312 bytes --]
next prev parent reply other threads:[~2022-02-28 19:02 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-20 5:05 jmuc...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
[not found] ` <786c5fff-95db-402a-87f6-c5c0a8ee7231n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2021-01-20 5:25 ` jmuc...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2021-01-20 23:59 ` John MacFarlane
[not found] ` <m2bldjf9c8.fsf-jF64zX8BO08an7k8zZ43ob9bIa4KchGshsV+eolpW18@public.gmane.org>
2021-01-21 0:10 ` jmuc...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
[not found] ` <89a71570-9ee0-4f56-8c16-0ae1dd4a1cd4n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2021-01-21 6:18 ` John MacFarlane
[not found] ` <m2r1meertu.fsf-jF64zX8BO08an7k8zZ43ob9bIa4KchGshsV+eolpW18@public.gmane.org>
2021-01-21 12:05 ` jmuc...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
[not found] ` <da33d7e2-0133-4e79-8fa7-ec4625fc4e04n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-02-28 19:02 ` jmuc...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org [this message]
[not found] ` <12973622-a6fd-459f-9878-9636a126c811n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-02-28 19:03 ` jmuc...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
[not found] ` <2a08ee67-b54c-4b57-8914-e9c821a49381n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-03-17 20:09 ` jmuc...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=12973622-a6fd-459f-9878-9636a126c811n@googlegroups.com \
--to=jmuccigr-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).