Generalchess notation using texmate

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

chess notation using texmate

Post by Cottonshirt »

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.
<to be read again>
\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.

Code: Select all

\documentclass[10pt,a4paper]{book}
\pagestyle{empty}

\usepackage[utf8]{inputenc}
\usepackage{endnotes,makeidx,texmate}


\begin{document}

\begin{texmate} 1 g4 d5 Bg2 e5 \end{texmate}

\end{document}


many thanks, Cottonshirt

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Ijon Tichy
Posts: 640
Joined: Mon Dec 24, 2018 10:12 am

chess notation using texmate

Post by Ijon Tichy »

Spaces at the end are very critical in the {texmate} environment., because is signals one more move, which is missing. You should avoid them:
\documentclass[10pt,a4paper]{book}% 10pt is default and could be removed
\pagestyle{empty}
     
\usepackage[utf8]{inputenc}% only needed for outdated LaTeX distributions like the one of Overleaf
\usepackage{endnotes,makeidx,texmate}
     
     
\begin{document}
     
\begin{texmate}1 g4 d5 Bg2 e5\end{texmate}
     
\end{document}
Sorry, but I can no longer participate here as the administrator is trampling on my wishes on one of his other platforms. :cry:
Cottonshirt
Posts: 9
Joined: Thu Nov 10, 2016 11:04 pm

chess notation using texmate

Post by Cottonshirt »

thank you very much indeed. so simple, and yet so effective.

Cottonshirt.
Post Reply