0

Is it possible to add my custom key to the menukey package for a document?

\usepackage[os=win]{menukeys}


\begin{document}
\keys{\myCustomKey + R}
\end{document}

I am asking, since I am working on a cheatsheet for myself about tmux. And I do not want to write out my prefix everytime.

Pascal
  • 779

1 Answers1

1

Okay, I found a solution Create Windows symbol (and Apple logo) in package “Menukeys”?

The example in the answer uses fontawesome, but for only text keys you can use \textsf{CapsLock}

\usepackage{fontawesome}
\makeatletter
\tw@make@key@box{OS@mac}{\faApple}
\tw@make@key@box{OS@win}{\faWindows}
\tw@make@key@macro*{\OS}
\makeatother
Pascal
  • 779