2

Hello everybody I am a new Latex user and I try to write a my first presentation starting from a templete. When I try to make a slide with this code

\subsection{Main Result}
\frame
{
\begin{block}{Theorem \left[ Pasquale, Nicola \right]}
Consider the multiplex network .... code from daniel
\end{block}
}

I have this error

Missing $ inserted.}

Thanks a lot for every answer

  • 4
    Welcome to TeX.SX! Whoever told you that you always need \left and \right in front of [ and ] (or other brackets) was wrong. – egreg Dec 16 '15 at 16:28
2

The best way is to not use \left and \right:

\documentclass{beamer}
\begin{document}

\frame
{
\begin{block}{Theorem [Pasquale, Nicola]}
Consider the multiplex network .... code from daniel
\end{block}
}
\end{document}

enter image description here

However if you want to use \left and \right you should be in math mode but this is not the best solution at all:

\documentclass{beamer}
\begin{document}

\frame
{
\begin{block}{Theorem $\left[\text{Pasquale, Nicola} \right]$}
Consider the multiplex network .... code from daniel
\end{block}
}
\end{document}

enter image description here

  • 1
    You really don't want to write a name in math mode like that. The interword space is ignored (edit: but you get a small space after the comma), and the character spacing will be wrong. – Torbjørn T. Dec 16 '15 at 16:01
  • @TorbjørnT. With a \text it's better of course – Romain Picot Dec 16 '15 at 16:04
  • 2
    Yes, but rather pointless, isn't it? – Torbjørn T. Dec 16 '15 at 16:07
  • @TorbjørnT. I agree :-) – Romain Picot Dec 16 '15 at 16:08

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.