I'm new to LaTeX. When I'm learning how to use it, I'm always having trouble searching the meaning of some commands, such as \thechapter, \chaptertitlename... I think these must be basic commands in LaTeX but I cannot figure out what EXACTLY they are used for. Someone suggest me to check texdoc, however I didn't find the explanation of what I want either(I searched for the commands name in the doc). Is there some other resource that I can refer to? Or am I using wrong way of reading texdocs?
Asked
Active
Viewed 32 times
0
\chaptertitlenameis not even a LaTeX command in the sense of being part of the standard classes or LaTeX format. It will only be defined if you load an extension package which defines it. As earlier comments have mentioned, if you are new to LaTeX,\thechapteris not a command you should be thinking about either, even though it is provided by the standard classes for documents consisting of chapters. You should just use\chapter{Chapter Title}and let LaTeX worry about\thechapterfor now, at least. – cfr Nov 27 '15 at 04:25\thechaptercan help (although there are also packages which make this easier by providing a kind-of interface, with user-friendly commands that save you from having to get under the bonnet and do it all by hand). But that isn't basic, or beginner level – Au101 Nov 27 '15 at 05:06