[Tex/LaTex] How to make the font size of the caption of tikzfigure environment larger

tikzposter

I am wondering how to make the caption larger in the tikzfigure environment within tikzposter. It is showing up rather small and I would like it to be more readable.

I tried using \Large in the caption but it did not scale the figure designation with it. Example code below.

\begin{tikzfigure}[\Large FigureCaption]
    Figure
\end{tikzfigure}

So I got something like this as an equivalent result:

{\footnotesize Fig.1}{\Large FigureCaption}

Any ideas how to make both the figure label and the caption text scale together?

Best Answer

Currently, the text as well as the font size is hard coded in the class file. You can easily copy that part from the class file and customize it to your needs. Following the original definition with just the size changed.

\documentclass{tikzposter}
\usepackage{lmodern}
\usepackage{blindtext}
\makeatletter
\renewenvironment{tikzfigure}[1][]{
  \def \rememberparameter{#1}
  \vspace{10pt}
  \refstepcounter{figurecounter}
  \begin{center}
  }{
    \ifx\rememberparameter\@empty
    \else %nothing
    \\[10pt]
    {\huge Fig.~\thefigurecounter: \rememberparameter}
    \fi
  \end{center}
}
\makeatother
\begin{document}
\block{Walzing Wombat}{%
    Wombats love the walz, ducks dance dixie

    \begin{tikzfigure}[This is a nice caption]
        \rule{.5\linewidth}{5cm}
    \end{tikzfigure}
}
\end{document}