\theoremstyle{remark} \newtheorem{example}{Example}
Then:
\begin{example}
Some text
\end{example}
Output is:
Example 1. Some text
What is the way to automatically obtain without indent:
Example 1.
Some text
?
I tried to write:
\begin{example}
\\Some text
\end{example}
But there are two drawbacks, first it must be done every-time, second drawback is that it doesn't compile and Latex error is:
./doc.tex:60:There's no line here to end.\\S
Best Answer
Here's an example of the required new style definition using
amsthm
:Here's an example using now the predefined
break
style from thentheorem
package:Finally, here's an example using
thmtools
andamsthm
as its backend: