# Put some code with minted in an a0poster

I am using Overleaf to create my poster with the class a0poster. I have a question about introducing a code (SPARQL) in a minted block for a poster.

When I used a minted block, with beamer or article class, it works fine.

However, when I want to use it into a minipage, I have an error due to extra }. However, I have no extra }.

Is it possible to used minted or listing with a0poster class?

My last thing will be to put a screenshot of my code, but I think it would be easier to directly write my code into my LaTeX code.

\put(0.18074571,0.56315264){\color[rgb]{0,0,0}\makebox(0,0)[lt]{
\begin{minipage}{0.15928631\unitlength}\raggedrigh
\begin{minted}[baselinestretch=1.2,fontsize=\scriptsize,linenos]{sparql}
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>%

• Welcome to TeX.SX! The problem is not the minipage, it's the \put command: verbatim environments, such as minted do not work inside the argument to other commands. – Phelype Oleinik Feb 13 '20 at 13:43