Tell me more ×
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.

I am trying to compile by LaTeX document, but I keep getting the error ! Undefined control sequence. l.106 \lastpage

I have no idea what this means, and Google has not been helpful. Can someone give me an explanation to what this means and how I can fix it?

share|improve this question
4  
Welcome to TeX.sx! This means that the control sequence \lastpage called in line 106 of your code is undefined. For a more detailed answer we'd need to see some minimal working example (MWE). – cgnieder Dec 7 '12 at 12:41
2  
Perhaps, your preamble is just missing a \usepackage{lastpage}? – henrique Dec 7 '12 at 12:44
I am not actually using \lastpage. And I tried including the package aswell, but to no avail. – user1049697 Dec 7 '12 at 13:13
4  
@user1049697 well, obviously something is! So I repeat myself: please add a minimal working example (MWE) that illustrates your problem. It will be much easier for us to reproduce your situation and find out what the issue is when we see compilable code, starting with \documentclass{...} and ending with \end{document}. – cgnieder Dec 7 '12 at 13:19
1  
@user1049697 Start with the problematic file then strip it until you can reproduce the problem with the least amount of code. Then edit that into your question. That is your minimal working example (MWE) – hpesoj626 Dec 7 '12 at 13:25
show 2 more comments

closed as too localized by cgnieder, Martin Schröder, Kurt, egreg, Werner Dec 7 '12 at 16:45

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.

Browse other questions tagged or ask your own question.