[Tex/LaTex] How to put the text and symbols “Italic” quickly

italicmacros

The following is my original texts.

\textbf{The Interior Dirichlet Problem:} Given $f\in C(S)$, find
$u\in C(\overline{\Omega})$ such that $u$ is harmonic on $\Omega$
and $u=f$ on $S$.

Instead of using \emph{} word by word and symbol by symbol, how can I quickly get everything Italic quickly?


I have tried the \newtheorem command. But the font would be different from the desired one. What's more, I am not able to get rid of the period automatically added by the macro.

Best Answer

\newenvironment{problem}[1]
  {\par\addvspace{\medskipamount}
   \textbf{#1:}\em\ \ignorespaces}
  {\par\addvspace{\medskipamount}}

...

\begin{problem}{The Interior Dirichlet Problem}
Given $f\in C(S)$, find $u\in C(\overline{\Omega})$ such
that $u$ is harmonic on $\Omega$ and $u=f$ on $S$.
\end{problem}

However, you can also put everything after the colon as argument to \emph or say {\em Given $f\in C(S)$, ... on $S$.}