Draw a minesweeper board in LaTeX.
-
Clone this repository
-
Install
VSCode
andLaTeX Workshop
extension (at leastv8.29.0
) -
Compile
tikz-minesweeper.dtx
inVSCode
with recipeBuild dtx
, and all the steps will be done in one click! -
Move
tikz-minesweeper.sty
toTEXMF-LOCAL/tex/latex/tikz-minesweeper
-
Move
tikz-minesweeper.pdf
toTEXMF-LOCAL/doc/latex/tikz-minesweeper
-
Refresh local database with
texhash
ormktexlsr
(with TeX Live)
-
Clone this repository
-
Run the following commands:
l3build install --full --texmfhome $TEXMF-LOCAL$
- Refresh local database with
texhash
ormktexlsr
(with TeX Live)
-
See GitHub Releases page.
-
Download the latest
sty
file, and use it for your projects.
-
See GitHub Actions page
-
Click on the latest successful build and download the artifacts
-
Unzip the
tds
zip and move all things unzipped toTEXMF-LOCAL/
-
\cell{r}{c}{info}
: drawinfo
at (r
,c
), see here for detailed command discussions. -
\row{r}{seq: info}
: draw a row with a sequence ofinfo
according to\cell
. -
\border[[-]tlbr]{r}{c}
: draw a border with edge options. -
\board[[-]tlbrx]{r}{c}
: draw a board with border. -
\abscoord{pos_options}{r}{c}
: get the absolute coordination of a cell. -
\colorcell{color}{seq: coords}
: fill an area with up to four colors.
-
Issues and PRs are welcomed.
-
LaTeX3
is preferred. -
VSCode
is very recommended for developing.
-
Copyright (C) 2021-2023 by Tian-Yi Pu, Fei-Yu Xiang and Yao-Yu Zhu
-
This file may be distributed and/or modified under the conditions of the LaTeX Project Public License, either version 1.3 of this license or (at your option) any later version.
-
The latest version of this license is at: http://www.latex-project.org/lppl.txt and version 1.3 or later is part of all distributions of LaTeX version 2005/12/01 or later.