LaTeX forum ⇒ Graphics, Figures & TablesChessboard package text size

Information and discussion about graphics, figures & tables in LaTeX documents.
ghuczek
Posts: 23
Joined: Sun Dec 23, 2012 8:09 pm

Chessboard package text size

Postby ghuczek » Sat Jun 04, 2016 1:47 am

How can I make the text numbers in this diagram smaller in the MWE shown?

  1. \documentclass[a4paper, twocolumn,]{memoir}
  2. \usepackage[paperwidth=6.50in, paperheight=9.375in, bindingoffset=.75in] {geometry}
  3.  
  4. \usepackage{chessboard}
  5.  
  6. \begin{document}
  7.  
  8. \setchessboard{boardfontsize=14pt,labelfontsize=8pt,moverstyle=triangle}
  9.  
  10. \begin{center}
  11. \setchessboard{showmover=false, clearboard,fontsize=14pt,labelbottom=false, labelleft=false}
  12. %
  13. \chessboard[pgfstyle= {[base,at={\pgfpoint{0pt}{-0.7ex}}]text},color=black, opacity=0.8,
  14. text= \fontsize{0.8ex}{0.8ex},
  15. text = 39, markregions={b1-b1},
  16. text = 40, markregions={d2-d2},
  17. text = 41, markregions={f3-f3},
  18. text = 42, markregions={e1-e1},
  19. text = 43, markregions={g2-g2},
  20. text = 44, markregions={h4-h4},
  21. text = 45, markregions={f5-f5},
  22. text = 46, markregions={h6-h6},
  23. text = 47, markregions={g8-g8},
  24. text = 48, markregions={e7-e7},
  25. text = 49, markregions={c8-c8},
  26. text = 50, markregions={a7-a7}]
  27. \end{center}
  28.  
  29. \end{document}

ghuczek
Posts: 23
Joined: Sun Dec 23, 2012 8:09 pm

Postby ghuczek » Fri Jun 17, 2016 9:01 pm

Can anyone come up with a way to do this?

ghuczek
Posts: 23
Joined: Sun Dec 23, 2012 8:09 pm

Postby ghuczek » Sun Jul 03, 2016 11:35 pm

The numbers in the chess board represent the move number of a chess knight, as it makes its way around the board, visiting each square only once. It is a re-entrant knight's tour, meaning that the knight lands on the original square it started on after all other squares have been visited. In the partially completed example I have shown, on its 39th move, the knight lands on square b1, which is the square White's queenside knight occupies at the start of a chess game.

It is a Hamiltonian cycle problem in computer programming.

If the numbers can not be made smaller using the chessboard package, could someone suggest an alternative way of drawing this diagram some other way with Latex, so that the numbers shown inside the squares are smaller?


Return to “Graphics, Figures & Tables”

Who is online

Users browsing this forum: No registered users and 2 guests