I'm trying to put a table with figures inside a table in a "tikzposter" block environment. Whilst the method below works in documentclass{article}
+ \begin{document} ... \end{document}
. It doesn't work in a \documentclass[...]{tikzposter}
environment.
See code:
\documentclass[20pt, a0paper, landscape]{tikzposter}
\usepackage{geometry}
\usepackage{tabularx}
\usepackage{graphicx}
\usetheme{Simple}
\begin{document}
\begin{columns}
\column{0.5}
\block{block title}{
\begin{figure}[ht]
\setkeys{Gin}{width=0.32\linewidth}
\begin{tabularx}{\linewidth}{@{} XX @{}}
\includegraphics{example-image}\hfill
\includegraphics{example-image}\hfill
\includegraphics{example-image}
\caption{Some text}
& \includegraphics{example-image}\hfill
\includegraphics{example-image}\hfill
\includegraphics{example-image}
\caption{Some text}
\end{tabularx}
\end{figure}
}
\end{columns}
\end{document}
For this I get an error message.
I also tried:
\documentclass[20pt, a0paper, landscape]{tikzposter}
\usepackage{geometry}
\usepackage{tabularx}
\usepackage{graphicx}
\begin{document}
\begin{columns}
\column{0.5}
\block{block title}{
\begin{tabular}{cc}
\begin{figure}
\begin{tabular}{ccc}
\includegraphics[width=0.16\linewidth]{example-image} &
\includegraphics[width=0.16\linewidth]{example-image} &
\includegraphics[width=0.16\linewidth]{example-image}
\end{tabular}
\caption{Some text}
\end{figure}
&
\begin{figure}
\begin{tabular}{ccc}
\includegraphics[width=0.16\linewidth]{example-image} &
\includegraphics[width=0.16\linewidth]{example-image} &
\includegraphics[width=0.16\linewidth]{example-image}
\end{tabular}
\caption{Some text}
\end{figure}
\end{tabular}
}
\end{columns}
\end{document}
For this I also get an error message.
Inside the block I'm trying to get the table to look like this:
Thanks!
tabular
or something equivalent, that post doesn't answer the question.figure
, are not allowed inside of atikzposter
. The question, I linked to in my previous comment currently has three answers. The one to use for your case, is this one. As described there, take your first example code, remove thefigure
environment, add\usepackage{capt-of}
to the preamble and replace all\caption{...}
commands with\captionof{figure}{...}
.