# Is there any environment that works exactly like , but without going into math-mode?

I would like to write a sentence that is centered and numbered automatically at the end. If what I am trying to type is just an equation, works very nicely. However, since what I write involves a lot of words, I do not want to use . Right now, all I can think of is using \textrm every time I write a regular word, but there must be another solution. As we keep the automatic numbering, is there any way to do what I am trying to do?

The following is the sample. Appreciate it.

\documentclass{article}
\begin{document}
$$\textrm{The derivative }y'\textrm{ of }y=\ln x\textrm{ is }y'=\frac{1}{x}$$
\end{document}

-

You should type that like any other math component, only in text with interspersed math:

\documentclass{article}
\usepackage{amsmath,lipsum}
\begin{document}
\lipsum[1]
\vspace{\dimexpr-\abovedisplayskip+\abovedisplayshortskip}% May be needed
$$\text{The derivative y' of y = \ln x is y' = \tfrac{1}{x}.}$$
\lipsum[2]
\end{document}


You may wish to use a shorter space above, depending on the \abovedisplayshortskip depending on how the previous paragraph ends.

-
This works great as well. Thank you for the response. – BzTAK178 May 5 '14 at 22:57

You can use \mbox inside equation.

\documentclass{article}
\usepackage{amsmath} % recommended for math

\begin{document}

$$\mbox{The derivative f'(x) of f(x)=\log x is f'(x)=\dfrac{1}{x}}$$

\end{document}

-
Works like a magic. Thank you very much. – BzTAK178 May 5 '14 at 22:57