1

Is there an easy way to set a left margin with the thmtools-package?

\documentclass[ngerman, parskip=full]{scrartcl}
\usepackage{amsthm}
\usepackage{thmtools}
%
\declaretheoremstyle[%
    spaceabove=9pt,%
    spacebelow=9pt,%
    headfont=\normalfont\itshape,%
    postheadspace=1em,%
    headpunct={},
    bodyfont=\normalfont\small,
]{myremark}
%
\declaretheorem[style=myremark, title=Anmerkung, numbered=no]{remark}
%
\begin{document}
%
\begin{remark}
This remark should have a left margin of, e.g. 10pt. 
But how to do this?
With ntheorem-package I just use \verb|\theoremindent10pt|
\end{remark}
%
\end{document}
Ulrich
  • 917
  • See this answer: https://tex.stackexchange.com/a/245218/208544 – mbert Aug 21 '23 at 15:20
  • Overlocked it, thank you. But not the easiest way. – Ulrich Aug 21 '23 at 16:32
  • If you're using a KOMA class already you can try hooking an addmargin environment to the beginning and ending of remark, like \AddToHook{env/remark/before}{\begin{addmargin}[10pt]{0pt}} and \AddToHook{env/remark/after}{\end{addmargin}}. Might need to adjust vertical spacing – mbert Aug 21 '23 at 17:34

0 Answers0