# Is there a theorem style with slanted headfont?

I would like to create a theorem style with slanted text in heads. What's the way?

I tried with the thmtools package by

\declaretheoremstyle[headfont=\textsl]{slantedhead}


But writing then

\begin{exercise}

\end{exercise}


-
Welcome to TeX.sx! It would help if you provide a MWE, which shows the (manually typed) result you want to have by using the exercise-environment. –  Dominikus K. Mar 13 '13 at 11:11
@DominikusK. Thanks! The result I wish to obtain in the exercise environment would be to get \textsl{Exercise} as head title. –  Heitor Mar 13 '13 at 11:16
Please edit your question and put a MWE into it, so that all the gifted users her can do their magic and try stuff out. –  Dominikus K. Mar 13 '13 at 11:31
If you want to use the amsthm package, you can use the \newtheoremstyle macro and define the head font style to \slshape in the 6th argument. See the amsthm documentation for details. –  benwilfut Mar 13 '13 at 11:48

The only thing you are doing wrong is using \textsl instead of the switch \slshape. The former requires an argument, whereas the latter affects the subsequent text. It is this style that thmtools is expecting. Usually it is a good idea to preceed this with \normalfont, so that you know which font you are starting from.

\documentclass{article}

\usepackage{amsthm}
\usepackage{thmtools}