Quantcast
Channel: User sorry - TeX - LaTeX Stack Exchange
Viewing all articles
Browse latest Browse all 28

Algorithm2e - Replicate KwFunction font

$
0
0

in algorithm2e one can define some function names as keywords and algorithm2e then provides a certain font in which they are printed.Now, I want to use the font even outside the algorithm, e.g. when discussing it. This only works sometimes by using \function name.

How do I replicate the function font manually?

\documentclass{report}\usepackage{algorithm2e}\begin{document}    \begin{algorithm}        \SetKwFunction{default}{default}        \default($ a $).      \end{algorithm}    Here, \default still works, but it not always does.\end{document}

Viewing all articles
Browse latest Browse all 28

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>