Math & Sciencemissing \endcsname error

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
hikorski
Posts: 4
Joined: Sun May 16, 2010 4:58 pm

missing \endcsname error

Post by hikorski »

I get the following error message:

! Missing \endcsname inserted.
<to be read again>
\csname\endcsname
1.59 \end{equation}

Line 59 is the last line of the following:

\begin{equation}\label{3e}
(-ln(1-s)ln(s))_0^{1-z} + \int_1^{1-z}\frac{ln(1-s)}{s}\,ds (using Integration by Parts)
\end{equation}

If anyone has a suggestion I'd be grateful.

Max

Recommended reading 2024:

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

NEW: TikZ book now 40% off at Amazon.com for a short time.

php1ic
Posts: 192
Joined: Wed Jan 28, 2009 8:17 pm

missing \endcsname error

Post by php1ic »

This MWE compiles for me so I guess the error must be somewhere else in your code.

Code: Select all

\documentclass[a4paper]{article}

\begin{document}
\begin{equation}\label{3e}
(-ln(1-s)ln(s))_0^{1-z} + \int_1^{1-z}\frac{ln(1-s)}{s}\,ds
\end{equation}
\end{document}
Can you construct a MWE(see link if you don't know what a MWE is) that shows this behaviour?

If not the only thing I can suggest is to methodically go through your code, commenting out bits until you find the cause.

http://www.latex-community.org/forum/vi ... =37&t=7878
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Re: missing \endcsname error

Post by Stefan Kottwitz »

Hi Max,

I agree with php1ic, the problem ist not caused by those three lines.

Stefan
LaTeX.org admin
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

missing \endcsname error

Post by localghost »

I don't see the problem.

Code: Select all

\documentclass[11pt,a4paper]{article}

\begin{document}
  \begin{equation}\label{3e}
    (-ln(1-s)ln(s))_0^{1-z} + \int_1^{1-z}\frac{ln(1-s)}{s}\,ds (using Integration by Parts)
  \end{equation}
\end{document}
So it's your turn to show it by means of a counterexample [1].

[1] View topic: Avoidable mistakes


Thorsten
hikorski
Posts: 4
Joined: Sun May 16, 2010 4:58 pm

missing \endcsname error

Post by hikorski »

Code: Select all

\begin{equation}\label{*}
\frac{d}{dz}(\frac{z}{1^2}+\frac{z^2}{2^2}+\frac{z^3}{3^2}+\cdots) = -\frac{ln(1-z)}{z}
\end{equation}
I found the mistake - I had left a label unfilled as above. Interesting that this was line 45 and the problem showed up in line 59. Thank you for your advice, php1ic, Stefan and Thorsten - commenting out the possible bits of code worked a treat.

All the best,

Max
Post Reply