4

Is there a simple way to use alertblock inside \block in tikzposter? I need to emphasize some statement and using alertblock will be very practical. Something like:

\block{Block Title}{

text text text
text text text

\begin{alertblock}{The Key Idea}
text text text
\end{alertblock}

}

Thanks in advance!

1
  • Please complete your code by adding \documentclass{...}, necessary packages and \begin{document}...\end{document}. That would make it much easier for people to help and make it more likely that their help will actually be applicable to your situation.
    – cfr
    Aug 29, 2015 at 1:13

1 Answer 1

3

Although there's no alertblock environment in tikzposter, you can use \innerblock (with a title) or \coloredbox (if no title is needed); refer to the documentation to see all options available for those commands:

\documentclass{tikzposter}
\usepackage{xcolor}

\title{The Title}
\author{The Author}

\begin{document}
\maketitle

\block{Block Title}{%
text text text text text text
\innerblock[roundedcorners=10pt]{The Key Idea}{text text text}
\coloredbox[fgcolor=red]{text text text}
}

\end{document}

enter image description here

Another option is to use the beamer skin from tcolorbox and design your own block:

\documentclass[svgnames]{tikzposter}
\usepackage[most]{tcolorbox}

\newtcolorbox{tcbalertblock}[1]{
  beamer,
  colback=Salmon!50!white,
  colframe=FireBrick!75!black,
  adjusted title=#1
}

\title{The Title}
\author{The Author}

\begin{document}
\maketitle

\block{Block Title}{%
text text text text text text
\innerblock[roundedcorners=10pt]{The Key Idea}{text text text}
\coloredbox[fgcolor=red]{text text text}
\begin{tcbalertblock}{The title}
This box looks like an \texttt{alertedblock} provided by the \texttt{beamer} class.
\end{tcbalertblock}

}

\end{document}

enter image description here

3
  • 1
    Gonzalo Medina, you made my day! :) Thanks a lot! Aug 29, 2015 at 1:41
  • @ArnoldKlein You're welcome! Glad I could help. I updated my answer with another option that might be of interest for you. Aug 29, 2015 at 2:15
  • Great! Although yellow block is fine, but I prefer the red one. It's even better. Thanks again! Aug 29, 2015 at 20:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.