15

In StackOverflow, I can show keys like this: ctrl + alt.

How to do the same things in LaTeX?

xmllmx
  • 871

1 Answers1

23

Use the menukeys package. They look even fancier than in SO...

\documentclass{article}
\usepackage[os=win]{menukeys}

\begin{document}
\keys{\ctrl + \Alt}
\end{document} 

enter image description here

If you add the line

\renewmenumacro{\keys}[+]{shadowedroundedkeys}

in the preamble, you can get even fancier output (with shadows)

enter image description here

karlkoeller
  • 124,410