Is there a way to shift a theorem from amsthm ? I mean instead of having :

theorem 1.1 (title): BLABLABLA

You would have theorem 1.1 a little bit on the left and blablabla in the same place. Similarly, it would be something like this : (but without tcolorbox, here I don't need the rest of the functionnalities, the style of amsthm is sufficient)

enter image description here

I want that my definition ( which is for now classic ) has the same behavior as the green and orange box. The dimension is not a problem (I'll set the value of shifting )

enter image description here

1 Answer 1


You can try something like this. The main point is that the last argument to \newtheoremstyle allows you to put arbitrary code to format the heading. You can make the heading stay within the margins by adjusting \leftskip at the same time you set the body font, i.e. in the third argument to \newtheoremstyle.

Sample first part

Sample second part


\usepackage{lipsum} % for dummy text

  \thmnumber{\space #2}\thmnote{\newline (#3)}}}%







\begin{theorem}[Very long name]


  • thank you for your answer. Unfort. that will not be sufficient in my case... I have really small margin on my document. I would need to also move the text... I'll add a picture of what I've for now done so you understand. I search something similar to the boxes green and orange : Apr 30, 2018 at 14:56
  • you see ? that the title is a little bit moved on the side and the text also a little bit. Sorry if I haven't been clear Apr 30, 2018 at 14:59
  • You can adjust \leftskip, see my updated answer May 1, 2018 at 7:43

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .