Closed zhyiyu closed 4 years ago
Actually this is not a problem of menukeys
but of the font you use. Pleas also note that the character you typed as backquote renders as an actual single quote, while the key you type is an accent. An thus nothing that could (should) be done in menukeys
. So you may choose a font rendering those clearer and you may show both symbols printed on theses keys:
% !TEX encoding = UTF-8 Unicode
% !TEX TS-program = xelatex
\documentclass{article}
\usepackage{listings}
\usepackage[os = mac]{menukeys}
\renewmenumacro{\keys}{shadowedroundedkeys}
\usepackage{fontspec}
\setmonofont{Fira Mono}
\newcommand{\acckey}{\texttt{\textasciiacute}}
\newcommand{\hatkey}{\texttt{\textasciicircum}}
\usepackage{stackengine}
\newcommand{\acckeyII}{\texttt{%
\raisebox{-1.4ex}{%
\stackon[-0.3ex]{\textasciiacute}{\textasciigrave}%
}%
}}
\newcommand{\hatkeyII}{\texttt{%
\raisebox{-1.4ex}{%
\stackon[-0.3ex]{\textasciicircum}{\textdegree}%
}%
}}
\begin{document}
\Huge
\begin{center}
backquote is \keys{\acckey}\\
caret is \keys{\hatkey}
\end{center}
\begin{center}
backquote is \keys{\acckeyII}\\
caret is \keys{\hatkeyII}
\end{center}
\end{document}
It seems like the markup of backquote and caret is not very recognizable to people's eyes
when they are not like this huge, I have to magnify to recognize them, especially for the backquote. Here is the code
thanks!