doc: fix pdf build

This commit is contained in:
Matthias Ringwald 2021-05-27 16:04:55 +02:00
parent 628573184b
commit 2816575b06

View File

@ -142,6 +142,28 @@ morekeywords={*, btstack_timer_source_t, btstack_data_source_t, uint32_t, uint16
%% pandoc-tablenos: required package
\usepackage{caption}
%% pandoc-fignos: environment to disable figure caption prefixes
\makeatletter
\newcounter{figno}
\newenvironment{fignos:no-prefix-figure-caption}{
\caption@ifcompatibility{}{
\let\oldthefigure\thefigure
\let\oldtheHfigure\theHfigure
\renewcommand{\thefigure}{figno:\thefigno}
\renewcommand{\theHfigure}{figno:\thefigno}
\stepcounter{figno}
\captionsetup{labelformat=empty}
}
}{
\caption@ifcompatibility{}{
\captionsetup{labelformat=default}
\let\thefigure\oldthefigure
\let\theHfigure\oldtheHfigure
\addtocounter{figure}{-1}
}
}
\makeatother
%% pandoc-tablenos: environment to disable table caption prefixes
\makeatletter
\newcounter{tableno}