Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

suggestion: new menu styles for keys #49

Open
ffasbend opened this issue Apr 11, 2018 · 0 comments
Open

suggestion: new menu styles for keys #49

ffasbend opened this issue Apr 11, 2018 · 0 comments

Comments

@ffasbend
Copy link

Suggestion to add more styles for keys, e.g.:

  • keys with rounded border, but '+' is not printed
  • keys with no border and no '+'
% create new menustyle styles (used for keys)
% - roundedkeyscondensed: no '+' between keys
\copymenustyle{roundedkeyscondensed}{roundedkeys}
\changemenuelement{roundedkeyscondensed}{sep}{%
	\hspace{0.2em plus 0.1em minus 0.05em}%
}
% - nobordercondensed: no border around keys, and no '+' between keys
\copymenustyle{nobordercondensed}{paths}
\changemenuelement{nobordercondensed}{pre}{%
	\hspace{0.2em plus 0.1em}%
}
\changemenuelement{nobordercondensed}{sep}{%
	\hspace{0.2em plus 0.1em}%
}

% replace \keys with borderless condensed version
\renewmenumacro{\keys}[+]{nobordercondensed}
% create new menu macro \keysb (orginal style with border and '+' between keys) 
\newmenumacro{\keysb}[+]{roundedkeys}
% create new menu macro \keysbc (orginal style with border but no '+' between keys) 
\newmenumacro{\keysbc}[+]{roundedkeyscondensed}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant