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.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

(1) I am using MikTeX 2.9 and am generally a very happy user of skak - barely two hours seperated the moment I wanted to typeset a chess problem and knowing absolutely nothing about what support there might be in LaTeX and having skak up and running and producing. However, I have just hit a hurdle: any attempt to invoke \styleC (which prints moves as a vertical array of 2 half moves per line) results in compilation errors, while \styleA and \styleB produce the intended results. What puzzles me even more is the fact that I have no problem compiling the skakdoc.tex file supplied in the distribution and I am using exactly the same list of \usepackage instructions in my document as skakdoc does. What the heck?

(2) While on the subject of styles, wouldn't it be nice to have a style that will represent chess pieces with their letters (e.g. R for rook, N for knight etc.) in place of showing their symbols. I find that invoking skak with the 'small' parameter makes reading text somewhat marginal, particularly the bishops are hard to spot. I find modern chess literature supports both styles so I imagine such a letter-style would not go astray with users of skak.

Apologies for starting a goose chase with this one. My original code used the \mainline{} instruction followed by a linefeed, which is OK for styles A and B. When switching to \styleC this linefeed caused a compiler error; unfortunately my error messages after compilation have never worked properly, so I never got the explicit message "no line to end here".

\mainline{1.e4 c5 2.Nf3 Nc6 3.Bc4 Bc5 4.c3 Nf6 5.d3} \\
\mainline{1.e4 c5 2.Nf3 Nc6 3.Bc4 Bc5 4.c3 Nf6 5.d3} \\
Note: while linefeeds may follow the mainline command for style A and B, a linefeed following the mainline command when styleC is set causes compiler error "there is no line to end here".\\
\mainline{1.e4 c5 2.Nf3 Nc6 3.Bc4 Bc5 4.c3 Nf6 5.d3}%\\ 
share|improve this question
A minimal working example (MWE) is needed! – egreg Feb 15 '13 at 16:30
up vote 1 down vote accepted

Regarding your second question. skak uses internally the chessfss package which offers an option to switch to letters:



\mainline{1. Nf3 Nf6 2. Rg1 Rg8}


(I would naturally use xskak instead of skak).

share|improve this answer
Thanks Ulrike, that worked. And what is the switch back to using symbols? – Reinhard Neuwirth Feb 20 '13 at 11:36
\usesymfig. See 4.4 Commands that can switch between text and symbols of the chessfss documentation. – Ulrike Fischer Feb 20 '13 at 11:38
... and thanks again, that's what I call prompt service! On the subject of \styleC: still will not compile if used in my document, and yet, it will correctly compile in the skakdoc.tex document which I pulled off the archive. The workaround is using individual \mainline instructions separted by linefeeds \\, which of course is becoming a nuisance. – Reinhard Neuwirth Feb 20 '13 at 11:50
As egreg has already told you: make a minimal example that demonstrates the problem. – Ulrike Fischer Feb 20 '13 at 12:43
... I will as soon as I have recovered the skill of putting code into my submission. – Reinhard Neuwirth Feb 20 '13 at 12:48

Your Answer


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.