I have this code:



This is a test. \lstinline!Positive! set.

\begin{definition}[Positive]\ \\
  \indent A set $S$ is called positive if \ldots


When I write \begin{definition}[\lstinline!Positive!] instead of \begin{definition}[Positive], the definition header disappears. (LaTeX only shows the body of the definition.)

How to fix this?

  • 1
    Is there a real need for \lstinline? I can't see it, just \texttt suffices. – egreg Dec 13 '17 at 21:53



before you load dejavusansmono and for your definition use:


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.