I would like to change the appearance of a whole section in a text with math content. I have for instance a half page with several equations in it which I would like to be differentiated from the rest of the text by being written in italic or in another font. When I use the command \textit` for instance the compiler tells me:
Paragraph ended before text@command was complete}
Too many }'s }
Is there a way to do this?
EDIT: I am writing my master thesis using:
\documentclass[a4paper,10pt]{report}
\newcommand{\separator}{\begin{center}
\vspace{5mm}
$* \qquad * \qquad * \qquad * \qquad * \qquad * \qquad * \qquad * \qquad * \qquad * \qquad * \qquad * \qquad * \qquad * \qquad * \qquad *$
\vspace{5mm}
\end{center}}
\separator
Text and equations ...
\separator
What I would like is additionally to have everything between separator to be written in a different font or textstyle. I tried putting a \textit{...} wrapped all around, but it gave the errors mentioned above.

\documentclass{...}and ending with\end{document}. – Astrinus Jun 08 '15 at 09:22}somewhere. Seeing your code would help find the culprit. If you do a "Find and replace" search for{and then for}, you'll see the count won't be the same. – Alenanno Jun 08 '15 at 09:28\textit{something}is not the command to use here, use\itshapeinstead, you need to limit the scope using a group But i don't understand your intention here, to be honest. – Johannes_B Jun 08 '15 at 09:38mathtoolsteam about to come. – Johannes_B Jun 09 '15 at 10:07