DEV Community

Brandon Rozek
Brandon Rozek

Posted on • Originally published at brandonrozek.com on

Quick LaTex: Footnotes with no Counter

Let’s say there’s a scenario where you want to have a footnote, but you don’t want a counter associated with it. In order to stay consistent with the document style, the solution should use \footnote within its implementation.

The solution: Define \blfootnote{text} in the preamble.

\newcommand\blfootnote[1]{
    \begingroup
    \renewcommand\thefootnote{}\footnote{#1}
    \addtocounter{footnote}{-1}
    \endgroup
}

Enter fullscreen mode Exit fullscreen mode

This makes use of the footnote command while also re-adjusting the footnote counts so that our variant doesn’t increase it. We can then use this command within the document. Here’s a beamer example:

\begin{frame}{Some Topic}
    This is where I explain some topic.
    \blfootnote{Numberless Footnote}
\end{frame}

Enter fullscreen mode Exit fullscreen mode

Complete Minimal Example:

\documentclass[aspectratio=169]{beamer}
\usepackage[utf8]{inputenc}
\usetheme{Copenhagen}

\newcommand\blfootnote[1]{
    \begingroup
    \renewcommand\thefootnote{}\footnote{#1}
    \addtocounter{footnote}{-1}
    \endgroup
}

\begin{document}

\begin{frame}{Some Topic}
    This is where I explain some topic.
    \blfootnote{Numberless Footnote}
\end{frame}

\end{document}

Enter fullscreen mode Exit fullscreen mode

Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here →

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay