LaTeX를 사용하여 키보드 키 조합을 표시하는 방법은 무엇입니까?

LaTeX를 사용하여 키보드 키 조합을 표시하는 방법은 무엇입니까?

나는 이 문서를 가지고 있으며 내 문서에서 키를 나타내는 유사한 방법을 갖고 싶습니다. 내 말은 아래 그림과 같이 작은 직사각형으로 만드는 것입니다. 그렇게 할 수 있는 LaTeX 패키지가 있나요?

여기에 이미지 설명을 입력하세요

답변1

David의 의견이 이미 지적했듯이 다음을 사용할 수 있습니다 menukeys.

\documentclass{article}

\usepackage[os=win]{menukeys}

\begin{document}
The date can be set with \keys{\ctrl + c} \keys{\ctrl + s}.

Setting a deadline is done with \keys{\ctrl + c} \keys{\ctrl + d}.

to use the keyboard you can use the \keys{\shift} key plus one of
\keys{\arrowkey{^}}, \keys{\arrowkey{v}}, \keys{\arrowkey{<}} or
\keys{\arrowkey{>}} to navigate inside the calendar view.
\end{document}

여기에 이미지 설명을 입력하세요

관련 정보