I want to insert a function using verbatim so that my code looks like in a good way (different than regular text). When I insert a function, I always start a new line. Could I insert the function just followed my text by not starting a new line? Thank you. PS: I want put the text "We call the function below via" and the function "tran.prob(N=5, q=0.5)" in the same line.
Here is my code:
We call the function below via
\begin{verbatim}
tran.prob(N=5, q=0.5)
\end{verbatim}
\verb|tran.prob(N=5, q=0.5)|
\verb|tran.prob(N=5, q=0.5)|
yields, let me know. There are other options for more fancy verbatim forms.