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:
parent
650f7fd716
commit
e9d6351104
@ -69,7 +69,6 @@
|
|||||||
\RequirePackage{siunitx}
|
\RequirePackage{siunitx}
|
||||||
\RequirePackage{asymptote}
|
\RequirePackage{asymptote}
|
||||||
\RequirePackage{mathrsfs}
|
\RequirePackage{mathrsfs}
|
||||||
\RequirePackage{tipfr}
|
|
||||||
|
|
||||||
% tableau
|
% tableau
|
||||||
\RequirePackage{array}
|
\RequirePackage{array}
|
||||||
@ -138,6 +137,24 @@
|
|||||||
\node[shape=circle,draw,inner sep=2pt] (char) {#1};
|
\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}
|
||||||
|
;
|
||||||
|
}
|
||||||
%%%%%%%%%%%%%
|
%%%%%%%%%%%%%
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user