## LaTeX forum ⇒ General ⇒ chess notation using texmate

LaTeX specific issues not fitting into one of the other forums of this category.
Cottonshirt
Posts: 6
Joined: Thu Nov 10, 2016 11:04 pm

### chess notation using texmate

good morning,

this is my first time using package texmate (if you are not familiar with this package it is for producing chess notation and diagrams) which I just downloaded this morning so I am probably doing something pretty basic. but as you can see from the MWE, there are no package options, switches or other paraphernalia involved here and it is difficult to see what could possibly be going wrong.

the error message I get says:

! Missing \endcsname inserted.
\catcode
l.10 \begin{texmate} 1 g4 d5 Bg2 e5 \end{texmate}

I have tried researching this online but all replies to "Missing \endcsname" errors refer to the aux file, but I don't have an aux file. In fact I don't have any supplementary files at all, just the basic *.tex file.

if it helps I am using MikTex in Texworks and I updated my installation before installing the Texmate package.

I would really appreciate any insight you clever folks might have, and thanks in advance for your attention.

1. \documentclass[10pt,a4paper]{book}
2. \pagestyle{empty}
3.
4. \usepackage[utf8]{inputenc}
5. \usepackage{endnotes,makeidx,texmate}
6.
7.
8. \begin{document}
9.
10. \begin{texmate} 1 g4 d5 Bg2 e5 \end{texmate}
11.
12. \end{document}

many thanks, Cottonshirt

Ijon Tichy
Posts: 139
Joined: Mon Dec 24, 2018 10:12 am
Spaces at the end are very critical in the {texmate} environment., because is signals one more move, which is missing. You should avoid them:
1. \documentclass[10pt,a4paper]{book}% 10pt is default and could be removed
2. \pagestyle{empty}
3.
4. \usepackage[utf8]{inputenc}% only needed for outdated LaTeX distributions like the one of Overleaf
5. \usepackage{endnotes,makeidx,texmate}
6.
7.
8. \begin{document}
9.
10. \begin{texmate}1 g4 d5 Bg2 e5\end{texmate}
11.
12. \end{document}

Cottonshirt
Posts: 6
Joined: Thu Nov 10, 2016 11:04 pm
thank you very much indeed. so simple, and yet so effective.

Cottonshirt.