mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-29 12:32:54 +00:00
doc: fix pdf build
This commit is contained in:
parent
628573184b
commit
2816575b06
@ -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}
|
||||
|
Loading…
x
Reference in New Issue
Block a user