I am using the IEEEtran theorem environment and \newtheorem{definition}{Definition}[section]
to customize the definitions. Generally, I am satisfied with its output:
However, for another definition followed by a long word (i.e., PrecedingWrite here), it splits the word (as Preceding-Write):
I can use \mbox{PrecedingWrite}
to enforce its "integrity". But the first line of this definition becomes ill-aligned.
Therefore,
How to both enforce the "integrity" of the word "PrecedingWrite" and keep the first line well-aligned? (To this end, you can break the first line. However, I don't want a global
\newline
option.) Great thanks.
An illustrating Code for the second figure above:
\documentclass{IEEEtran}% http://www.ctan.org/pkg/ieeetran
\newtheorem{definition}{Definition}[section]
\begin{document}
\begin{definition}[\textsl{PrecedingWrite (PW)}] \label{def:precedingwrite}
\textsl{PrecedingWrite} is a matrix such that for each operation
$o$ and each variable $v$, the entry $\textsl{PW}[o][v] = w$ if and only if
\end{definition}
\end{document}
\newline
or\\
then? I mention this since you say "I don't want a global\newline
option" yet also mention "manual methods are OK".\newline
option for the whole Definition environment, because I want to leave other definitions (such as Definition 5.3) the same (i.e., no break line afterDefinition 5.3 (ReachableRead(RR))
). I just need to fix Definition 5.4. Therefore, I want to do this locally. Sorry for the vagueness. I am not very familiar with this topic. BTW, the\hfill
+a blank line
method works for me, as suggested in the answer by @Przemysław Scherwentke.