[home]
LaTeX macros for Hex


This is a set of LaTeX macros for typesetting Hex boards and positions, as in the following examples. The LaTeX code is shown on the left, and the corresponding output on the right.

\begin{hexboard}
  \board(4,4)
  \white(1,1)\label{1}
  \black(1,2)\label{2}
  \black(2,2)\label{$x$}
  \cell(3,2)\label{A}
  \cell(4,3)\label{\Large $\ast$}
\end{hexboard}
\begin{hexboard}
  \rotation{-30}
  \hex(3,1) \hex(4,1)
  \hex(2,2) \hex(3,2) \hex(4,2)
  \hex(1,3) \hex(2,3) \hex(3,3) \hex(4,3)
  \edge[\se\noacutecorner\noobtusecorner](4,3)(1,3)
  \black(3,1)
\end{hexboard}

Download

Previous versions are available here.

Version history

Author

Peter Selinger, Dalhousie University

LICENSE

Copyright (C) 2020–2023 Peter Selinger

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.


Back to Homepage: [home]


Peter Selinger / Department of Mathematics and Statistics / Dalhousie University
selinger@mathstat.dal.ca / PGP key