Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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

share|improve this question
1  
You can take a look at Chinese checkers board using TikZ, maybe that could help get you started. –  Jake Aug 2 '13 at 20:24
    
Hmm, by the way, Can tikz generate gif animation? Or I have to make it afterwards? –  Daniel Aug 2 '13 at 20:28
    
Yeah, there's ways of doing that. See Converting beamer slides to animated images, for example –  Jake Aug 2 '13 at 20:32
3  
I have a backgammon package in progress (not released) which might give you some ideas too. See Typesetting boardgame positions using ttf font, but check the GitHub version for more up-to-date code. –  Alan Munn Aug 2 '13 at 20:36

1 Answer 1

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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