Add macro allowing to frame text as it was a key on a keyboard.

Reason: menukeys and tipfr packages do not run well with beamer.
This commit is contained in:
Jeff Lance 2017-03-29 21:38:03 +02:00
parent 650f7fd716
commit e9d6351104

View File

@ -69,7 +69,6 @@
\RequirePackage{siunitx}
\RequirePackage{asymptote}
\RequirePackage{mathrsfs}
\RequirePackage{tipfr}
% tableau
\RequirePackage{array}
@ -138,6 +137,24 @@
\node[shape=circle,draw,inner sep=2pt] (char) {#1};
}
}
% \keystroke{text}
% Texte encadré comme si c'était une touche de clavier.
% Cause: les packages menukeys et tipfr ne fonctionnent pas correctement avec beamer.
\newcommand*\keystroke[1]{%
\tikz[baseline=(key.base)]
\node[%
draw,
fill=white,
drop shadow={shadow xshift=0.25ex,shadow yshift=-0.25ex,fill=black,opacity=0.75},
rectangle,
rounded corners=2pt,
inner sep=1pt,
line width=0.5pt,
font=\scriptsize\sffamily
](key) {#1\strut}
;
}
%%%%%%%%%%%%%