We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
A symbol should automatically detect if it’s inside of a \key or not and add a \key around itself if it’s not jet inside of one.
\key
(by Christophe) I think that you can improve special keys. For example, I'm adding some calculator keys. I use the following method.
\makeatletter % Calculator keys \newcounter{@CounterKeys} \newcommand*\ksquare{\ifnum\value{@CounterKeys}>0 ${}^2$ \else \keys{${}^2$} \fi} \newcommand*\kpower{\ifnum\value{@CounterKeys}>0 $x^y$ \else \keys{$x^y$} \fi} % General methods \let\@oldKeys\keys \renewcommand\keys[1]{% \addtocounter{@CounterKeys}{1}% \@oldKeys{#1}% \addtocounter{@CounterKeys}{-1}% } \makeother
This allows then to use \ksquare or \keys{\ksquare} without problem.
\ksquare
\keys{\ksquare}
The text was updated successfully, but these errors were encountered:
Ideas
\mk@inside@<macro name>
\ensuremenumacro{<macor name>}{<content macro>}
Sorry, something went wrong.
No branches or pull requests
A symbol should automatically detect if it’s inside of a
\key
or not and add a\key
around itself if it’s not jet inside of one.(by Christophe)
I think that you can improve special keys. For example, I'm adding some calculator keys. I use the following method.
This allows then to use
\ksquare
or\keys{\ksquare}
without problem.The text was updated successfully, but these errors were encountered: