0

I would like to state a problem in LaTeX with a somehow big title and I cannot find a way to separate the title in 2 lines. LaTeX keeps all this in one line. (Below is a sample code).

\begin{problem}[{\sc BlablaBlabla BlablaBlablaBlabla BlablaBlablaBlabla BlablaBlablaBlabla Blabla BlablaBlablaBlabla }]
....
\end{problem}

I tried to use \\, \newline, \linebreak and the \protect before these but nothing worked. LaTeX ignored the line breaking command completely.

E.g.

 \begin{problem}[{\sc BlablaBlabla BlablaBlablaBlabla BlablaBlablaBlabla \\ BlablaBlablaBlabla Blabla BlablaBlablaBlabla }]
 ...
 \end{problem}

Can someone please help me with this? Thank you!

Jesse
  • 29,686

1 Answers1

0

Everything is fine here:

\documentclass[11pt,a4paper]{report}
\usepackage{amsthm,amsmath,amssymb}
\usepackage{lipsum}    
\newtheorem{bla}{Problem}

\begin{document}
\begin{bla}[here is the first line\\ second line goes here] \lipsum[1]
\end{bla}
\begin{bla}[{\sc \lipsum[1]}]
\lipsum[1]
\end{bla}
\end{document}

enter image description here

Sigur
  • 37,330