Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove number from toc title with pandoc+beamer

I am using pandoc to generate a beamer slideshow. I activated the generation of a TOC and specified a TOC headline. But there is an extra number added to this title as if the TOC would span several slides, but it does not.

My source file

---
toc: true
toc-title: the overview
...

# my section

and I compile with pandoc -t beamer -o x.pdf < x.md. The title of the TOC has this extra roman I which beamer normally adds if a slide is split into two (or more).

enter image description here

How can I get rid of this number?

Edit

In the end I put it in the yaml preamble of the pandoc file as raw latex code:

header-includes: |
    ```{=latex}
    \setbeamertemplate{frametitle continuation}[from second]
    % more stuff
    ```
like image 673
Lucas Avatar asked Dec 14 '25 07:12

Lucas


2 Answers

You can disable the continuation count for frames that consist only of a single one by using this command:

\setbeamertemplate{frametitle continuation}[from second]
like image 138
samcarter_is_at_topanswers.xyz Avatar answered Dec 16 '25 21:12

samcarter_is_at_topanswers.xyz


In the response from @samcarter_is_at_topanswers.xyz, I had to delimit the command with backticks and indicate as latex code:

`\setbeamertemplate{frametitle continuation}[from second]`{=latex}
like image 24
italosvg Avatar answered Dec 16 '25 23:12

italosvg



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!