Chess Diagrams in LaTeX

I'll bet someone out there can help me with a technical question. I need to embed a chess diagram into a LaTeX document. It's for the evolution/creation book (don't ask). I know there are a variety of packages available for doing that, but I'm having trouble finding anything very helpful on the web.

For example, I came across this document that describes a package for making diagrams. It looks perfect, attractive diagrams with clear instructions for how to code them. But I can't figure out where to go to download it. It looks like the source code is included in the document, but I don't know what to do with that.

I know the ``skak'' package is supposed to be pretty good. I even found its page at CTAN, but I have no idea what to do next. What am I actually supposed to download? Where do I put it after I download it? Is there documentation somewhere that tells me how to use it?

I have Fritz 11 on my computer, and it allows me to save diagrams in BMP format, which I could then import into TeX. But I don't think that would look right in the document.

So any help anyone can give would be appreciated. Keep in mind that I'm pretty hopeless about these things, so speak slowly and no big words!

Tags

More like this

Today is the 70th birthday of Donald Knuth. If you don't know who Knuth is, then you're not a programmer. If you're a programmer and you don't know who Knuth is, well... I have no idea what rock you've been hiding under, but you should probably be fired. Knuth is one of the most famous and…
I don't mean blog posts or emails. For blog posts I use souped up gedit, and for emails I use pico. (There was a time when I thought I'd be using emacs for both of those, but emacs suffers from a deep philosophical dysfunction.) I'm talking about longer documents that have sections with headings…
A reader recently sent in the following question: Hi Ladies -- I've been reading your blog for most of my graduate career, and am currently beginning my first post-doc position. I've got a question for your readers, and I'm dying to know if anyone's really come up with a good solution for it. How…
That's right, you can now get the full text of every Cognitive Daily post via RSS. There's just one catch: You must buy a $399 Amazon Kindle and pay 99 cents (per month, I assume) to subscribe to Cognitive Daily. I don't know if this subscription will allow you to view images, and I'm pretty…

Jason,
skak does look to be what you need. Go to the documentation page of the ctan page and download and read the skak manual to tell you what to do to build a chess board. To actually use it, put \usepackage{skak at the top of your tex file.

Now for the fun part. You might already have skak on your machine, depending on how big a download you did when you first loaded LaTeX on your machine. If not, what is supposed to happen is that when you try and compile, your LaTeX package is supposed to go to the web, download and install the package, then continue. I know Texshop on the Mac and MikTex on the PC will both automatically do so.

If it won't automatically download, you are in for a world of pain :-) At that point I'd download a version of LaTeX that does download packages automatically!

If not, what is supposed to happen is that when you try and compile, your LaTeX package is supposed to go to the web, download and install the package, then continue. I know Texshop on the Mac and MikTex on the PC will both automatically do so.

I've never seen that happen (on Linux). In any case, I can confirm skak is(? was?) available from CTAN, since it is on my (Linux) system, albeit I've never used it. (I downloaded an essentially a full LaTeX system (c.2y ago), as I hate being without packagesâ¦.)

I tried putting \usepackage{skak} at the top of my document, and eventually it decided it knew what that was, but when I compile I get this:

Bad or missing TFM file skak20 (substituting with cmr10)
No font mapping entry for font: skak20.

This is after it tells me that typesetting was successful. On the output page I get a fragment of a chess diagram that has the algebraic notation written properly and three sides of the board are OK, but the fourth side is not place right and there are no actual squares on my chessboard.

I couldn't seem to get things to work in PCTeX, which is what I had been using. So I just laboriously downloaded MikTeX and ... success! Looks like I'm good to go. For now...

Jason,

Did you get "skak " to work in LaTex? I found a some programs (packages) in CTAN (using TexShop with an Intel Mac) including "skak". It worked but the others did not it it work. There were other programs there also including Texmate (which seemed very promising) but I could not get that to work. Another program called "diagram" would not work either. Both seemed to have problems with the Metafont. Not sure what is going on since I am new to Latex. Any ideas??

Sincerely,

Hal Karlsson

By H. R. Karlsson (not verified) on 21 Nov 2011 #permalink