Mimicking keys and menu items
Technical documentation and software manuals often require to tell the reader about keyboard shortcuts, how to use the program menu, or in which directory files can be located. This recipe helps with writing such explanations.
How to do it...
We will use the menukeys
package and try out its main commands. Follow these steps:
- Start a short document and load the
menukeys
package in it:\documentclass[parskip=full]{scrartcl} \usepackage{menukeys} \begin{document} \section*{Running \TeX works}
- In the body text, use the
\menu
command for menu entries, the\keys
command for keyboard combinations, and the\directory
command for a path, as follows:In the main menu, click \menu{Typeset > pdfLaTeX} for choosing the \TeX\ compiler. ...
Get LaTeX Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.