Skip to content

Commit

Permalink
Don't use text escape with \textbf inside lstlisting
Browse files Browse the repository at this point in the history
The use of boldface was inconsistent with the rest of the listing anyway.
  • Loading branch information
henrikt-ma committed Jun 2, 2020
1 parent 53d8c7d commit 8907459
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chapters/stream.tex
Expand Up @@ -331,7 +331,7 @@ \section{Stream Operator inStream and Connection Equations}\doublelabel{stream-o
\end{lstlisting}
More sophisticated implementation, with smooth approximation, applied only when {all} flows are small:
\begin{lstlisting}[language=modelica,escapechar=!,mathescape=true]
// Define a "small number" eps (!\textbf{nominal}!(v) is the nominal value of v !--! see !\autoref{attributes-start-fixed-nominal-and-unbounded}!)
// Define a "small number" eps (nominal(v) is the nominal value of v -- see !\autoref{attributes-start-fixed-nominal-and-unbounded}!)
eps := relativeTolerance*min(nominal($m_j$.c.m_flow));

// Define a smooth curve, such that alpha($s_i>=eps$)=1 and alpha($s_i<0$)=0
Expand Down

0 comments on commit 8907459

Please sign in to comment.