Take the 2-minute tour ×

How can i check if the value in \thechapter or \value{chapter} is a letter or a number? That way i could identify if the counter is referring to a normal Chapter or an Appendix.

share|improve this question
add comment

1 Answer

up vote 6 down vote accepted

if you're using the book.cls, you can check this way:

  <whatever you want to do for an appendix>
\else <whatever you want to do for a regular chapter>

if you're using a different class, look for how \chaptername and \appendixname are used and adapt the above code appropriately.

share|improve this answer
Thank you. Didn't knew about \@chapapp! Very useful –  Pedro May 28 '12 at 18:05
add comment

Your Answer


