Skip to content

Instantly share code, notes, and snippets.

@konn
Last active June 13, 2016 12:56
Show Gist options
  • Save konn/632057158223bb7c920f02d551dee328 to your computer and use it in GitHub Desktop.
Save konn/632057158223bb7c920f02d551dee328 to your computer and use it in GitHub Desktop.
\newcommand{\checked}[2][.5ex]{%
\mathord{%
\tikz[baseline,line cap=round] {%
\node[anchor=base,inner sep=0pt] (n) {\ensuremath{#2}};%
\coordinate (nw) at ($(n.north west)+(.3ex, {#1 + 1pt})$); %
\coordinate (ne) at ($(n.north east)+(-.3ex,{#1 + 1pt})$);%
\draw[very thin,fill,line cap=round] (nw) -- ($(nw)!.5!(ne) - (0, #1)$) -- (ne) -- ($(nw)!.5!(ne) - (0, #1 - .1ex)$) --cycle;}}}
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment