I want to build a showcase to demonstrate to my friends how powerful Tikz is. LOL But I am still new to Tikz, not sure how to handle this.

I want to draw a Chinese chess (Xiangqi) with latex and tikz. See links on wiki or google image or this link, http://history.chess.free.fr/xiangqi-figures.htm enter image description here

It could be simplified to this:

enter image description here

with Chinese character circled.

You see, this is a 5*9 grids on each side. And there a seven characters on each side. By using latex, I hope it can easily handle the game notations, for instance, if a Chariot (Che) is on the third row, seventh column, then I could simply do some macro programming to have something like "che{3,7}", which will give me great advantage in quickly generating high quality images during the gameplay.

Any ideas where should I start? And any suggestions? Thanks


Are you aware there are already 2 LaTeX packages for chinese chess? The cchess package is covered in "The LaTeX Graphics Companion". A PDF with excerpts is here; chinese chess is on page 61. If you download the zip file at the CTAN link above there's sample code for the board, too (cchessboard.tex file). Likewise there is an xq package which (unlike cchess) might already be installed on your computer. The "example of use" link shows it in action. It records the moves using letters but the cchess package has moves with a picture of the piece.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.