From d0fd872ab61934ef9bebc0d3f3e5eb3f471605b9 Mon Sep 17 00:00:00 2001 From: Robert Jeutter Date: Sun, 27 Feb 2022 10:02:58 +0100 Subject: [PATCH] add cmark & xmark --- cheatsheet.sty | 9 +++++++-- sample.pdf | 4 ++-- sample.tex | 12 ++++++++++++ 3 files changed, 21 insertions(+), 4 deletions(-) diff --git a/cheatsheet.sty b/cheatsheet.sty index 58efbce..97a002d 100644 --- a/cheatsheet.sty +++ b/cheatsheet.sty @@ -41,8 +41,9 @@ % Needed to get last page of document \RequirePackage{lastpage} % Tables -\usepackage{tabularx} - +\RequirePackage{tabularx} +% Icons +\usepackage{pifont} %------------------------------------------------------------------------------- % Configuration for options %------------------------------------------------------------------------------- @@ -105,6 +106,10 @@ \newcolumntype{C}[1]{>{\centering\arraybackslash}p{#1}} \newcolumntype{R}[1]{>{\raggedleft\arraybackslash}p{#1}} +%%% Checkmarks and Crosses +\newcommand{\cmark}{\ding{51}} +\newcommand{\xmark}{\ding{55}} + %%% Code Listings \lstdefinestyle{mystyle}{ backgroundcolor=\color{codeback}, % choose the background color; diff --git a/sample.pdf b/sample.pdf index d360cb9..8943bb6 100644 --- a/sample.pdf +++ b/sample.pdf @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:2c3a05b5f55f973c46083e91b5aaf3948959ffef36cefb9b109093b32da0314c -size 258824 +oid sha256:6308d46a1afb1a7baa06354e0efa2822b8679c0a27cb2ef544b3b9975aa08ee1 +size 261571 diff --git a/sample.tex b/sample.tex index 898652d..141c2ff 100644 --- a/sample.tex +++ b/sample.tex @@ -40,6 +40,18 @@ \item[Show] some space \end{enumerate*} + \section{Icons} + There are currently two icons you can use + \begin{enumerate*} + \item \cmark $\quad\backslash$cmark + \item \xmark $\quad\backslash$xmark + \end{enumerate*} + And it can be used in Lists too + \begin{itemize*} + \item[\cmark] Checkmark + \item[\xmark] Cross + \end{itemize*} + \columnbreak \section{Boxes}