1

I want to use a tikzposter block as a title with no content inside the block. I am currently using:

\block{Proposed trajectory}{}

Which gives me:

enter image description here

However, I would like to have no white bar at all, just a blue bar with the title.

1

2 Answers 2

3
\documentclass{tikzposter}

\begin{document}

{
\colorlet{blockbodybgcolor}{blocktitlebgcolor}
\colorlet{blockbodyfgcolor}{white}
\block{}{\centering \bfseries \LARGE Proposed}
}
\end{document}

enter image description here

1

I think samcarter's answer makes the block a bit too big (If you want the banner to have the same hight as the banner on other blocks this will become a problem)

So I suggest defining a new block style:

\defineblockstyle{Justtitle}{
        }{
        \ifBlockHasTitle
                \draw[color=framecolor, fill=blocktitlebgcolor,
                rounded corners=\blockroundedcorners] (blocktitle.south west)
                rectangle (blocktitle.north east);
        \fi
}

and then using it before a banner only block, and using \useblockstyle{Default} after the title only block.

An example:

\documentclass{tikzposter}
\defineblockstyle{Justtitle}{
        }{
        \ifBlockHasTitle
                \draw[color=framecolor, fill=blocktitlebgcolor,
                rounded corners=\blockroundedcorners] (blocktitle.south west)
                rectangle (blocktitle.north east);
        \fi
}
\begin{document}

\block{otherblock}{}
\useblockstyle{Justtitle}
\block{bob}{}
\useblockstyle{Default}
\block{normal again}{}
\end{document}

Returns:

enter image description here

Where the height of the bob is the same as that of the otherblock and the normal again banner.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .