I want to change the style of only one block "Objectives", but at the same time i like theme Desert. I would like this block to have black frame and background color like title of my poster has. Any ideas how to manage it?!
\documentclass[25pt, a1papper, portrait]{tikzposter}
\usepackage[utf8]{inputenc}
\title{\parbox{\linewidth}{\centering dsfds sdfsfd}}
\author{fdssfa}
\date{\today}
\institute{fsdfs sdfdsfds}
\usepackage{blindtext}
\usepackage{comment}
\usetheme{Desert}
\begin{document}
\maketitle
\block{Introduction}
{
\blindtext
}
\begin{columns}
\column{0.4}
{
\colorlet{blocktitlebgcolor}{red}
\colorlet{blockbodybgcolor}{blue}
\colorlet{framecolor}{black}
\useblockstyle{Basic}
\block{Objectives}{\blindtext \vspace{2cm}
}}
\column{0.6}{
\block{Something else}{Here, \blindtext \vspace{4cm}}
\note[
targetoffsetx=-9cm,
targetoffsety=-6.5cm,
width=0.5\linewidth
]
{e-mail \texttt{sharelatex@sharelatex.com}}}
\end{columns}
\begin{columns}
\column{0.5}
\block{A figure}
{
\begin{tikzfigure}
\end{tikzfigure}
}
\column{0.5}
\block{Description of the figure}{\blindtext}
\end{columns}
\block[titleleft,titleoffsetx=2em,titleoffsety=1em,bodyoffsetx=2em,
bodyoffsety=1em,titlewidthscale=.6, bodywidthscale=.8, roundedcorners=14,
linewidth=8mm, bodyinnersep=4em, titleinnersep=2em]
{Sample Block}{Text\\Text\\Text Text}
\end{document}
Best Answer
I am not entirely sure what you are after as your title does not seem to have a black frame, but perhaps this will get you started. You can define a new block style using
\defineblockstyle
, which allows you to set-up the characteristics of the block as you want them. I have then wrapped this new block inside a\myblock
command that can be used to create a single bloc in a particular style. By default, it creates block in the "MyBlock" style but it can be used for any style:Secondly I have defined the "MyBlock" style to do what I think you want. With this in place your MWE produces:
Here is the full code: