Skip to content

Commit 2877f1e

Browse files
committed
Use \textnormal{..} and \textit{..} instead of \normalfont and \itshape.
The stateful ones are harder to handle.
1 parent c05c804 commit 2877f1e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/basic.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,10 +299,10 @@
299299
C() : s() { }
300300
C(const C& x): s(x.s) { }
301301
C(C&& x): s(static_cast<std::string&&>(x.s)) { }
302-
@\rlap{\normalfont\itshape //}@ : s(std::move(x.s)) { }
302+
@\rlap{\textnormal{\textit{//}}}@ : s(std::move(x.s)) { }
303303
C& operator=(const C& x) { s = x.s; return *this; }
304304
C& operator=(C&& x) { s = static_cast<std::string&&>(x.s); return *this; }
305-
@\rlap{\normalfont\itshape //}@ { s = std::move(x.s); return *this; }
305+
@\rlap{\textnormal{\textit{//}}}@ { s = std::move(x.s); return *this; }
306306
~C() { }
307307
};
308308
\end{codeblock}

0 commit comments

Comments
 (0)