I've noticed that all my tikzfigures (as defined in the tikzposter class) containing \includegraphics statements are off center.
As seen in the second innerblock below (excuse the picture, graphicx with the demo option doesn't work under tikzposter), the picture is automatically centered vertically within the block (note the larger space at the top). This happens regardless of the blockstyles that I use. Does anybody know how to properly center it vertically? (redefining tikzfigure to center it's contents vertically does something, but still looks weird)
Moreover, in my actual project, I use a multicols environment with two columns containing figures of different sizes (see the third innerblock). The larger picture is slightly horizontally off center (this is more noticable in my actual project). Additionally, the smaller picture always seems to be placed at the top, instead of the center. I tried various multicol related options to fix this, but none of them see to work. I am not sure if my multicols problem is related to my former problem, but hopefully it is.
MWE:
\documentclass[25pt, a0paper, portrait, margin=0pt, innermargin=5pt, colspace=45pt, blockverticalspace=5pt]{tikzposter}
% dummy text generation
\usepackage{lipsum}
\usepackage{graphicx}
\usepackage[utf8]{inputenc}
\usepackage{float}
\usepackage{xpatch}
\usepackage{todonotes}
\usepackage{multicol}
% remove space that empty innerblock title leaves behind
% see https://tex.stackexchange.com/questions/447378/tikzposter-leaves-a-gap-in-empty-innerblock-title
\makeatletter
\xpatchcmd{\innerblock}{\node[minimum width=\TP@innerblocktitlewidth, minimum height=\TP@innerblocktitleheight, anchor=center] (innerblocktitle)}{\node[inner sep=0pt, minimum width=\TP@innerblocktitlewidth, minimum height=\TP@innerblocktitleheight, anchor=center] (innerblocktitle)}{}{}
\makeatother
\defineinnerblockstyle{myinner}{
titlewidthscale=1, bodywidthscale=1, titlecenter,
titleoffsetx=0pt, titleoffsety=0pt, bodyoffsetx=0pt, bodyoffsety=0pt,
bodyverticalshift=0pt, roundedcorners=0, linewidth=0.0cm,
titleinnersep=0pt, bodyinnersep=20pt
}{
\filldraw[innerblockbodybgcolor]
(innerblockbody.south west) rectangle (innerblockbody.north east);
\draw [line width=0.5cm,blue] (innerblockbody.south) -- (innerblockbody.north);
}
\usetheme{Simple}
\usebackgroundstyle{Empty}
\useblockstyle{Basic}
\useinnerblockstyle{myinner}
\title{Test Test Test}
\author{Myself}
\date{\today}
\institute{University of Foobar}
\begin{document}
\maketitle
\setlength\columnseprule{0.32cm}
\colorlet{blockbodybgcolor}{blue}
\block{Blocktiltle}{
\colorlet{innerblockbodybgcolor}{white}
\innerblock{}{\lipsum[1]}
\colorlet{innerblockbodybgcolor}{gray}
\innerblock{}{
\centering
\begin{minipage}{0.9\linewidth}
\centering
\begin{tikzfigure}
\includegraphics[width=1.0\linewidth]{example-image-duck}
\end{tikzfigure}
\end{minipage}\hfill}
\colorlet{innerblockbodybgcolor}{red}
\innerblock{}{
\centering
\begin{minipage}{0.49\linewidth}
\centering
\begin{tikzfigure}
\includegraphics[width=0.49\textwidth]{example-image-duck}
\end{tikzfigure}
\end{minipage}\hfill
\begin{minipage}{0.49\linewidth}
\begin{tikzfigure}
\includegraphics[width=0.495\textwidth]{example-image-duck}
\includegraphics[width=0.495\textwidth]{example-image-duck}
\end{tikzfigure}
\end{minipage}
}
}
\end{document}



\hspaceshifts. I've updated my MWE to reflect this problem, I hope this doesn't change my original question too much. – rien333 Aug 25 '18 at 10:57[t],[b],[c]and so on, see e.g. here and here. I thought the pics were centered but if they are not I will be happy to delete the post. As for the horizontal centering, just add\centeringafter\begin{tikzpigure}. – Aug 25 '18 at 10:59\hspace*and\vspace*within the tikzfigure environment that I can slightly adjust the figures as to center them. Bit of an ugly workaround though, but for now I don't really care. – rien333 Aug 25 '18 at 11:13