\frontmatter
may include
- Table of Contents
- List of Figures
- List of Tables
- Preference
- and other parts
Now, I want to set up the pagestyle of pages range from the tag \frontmatter
to the tag \mainmatter
be plain. that is said all of \tableofcontents
,\listoffigures
,\listoftables
,preference
parts should not contain page number, page head, page foot. I dont want to set them one by one with \thispagestyle
.
the \pagestyle
of all pages in \mainmatterpart
should be fancy.
I think if I can deal with \frontmatter
, I also can apply the method to \mainmatter
to \backmatter
.
Am I right?
Best Answer
According to the revised version of the question, you (may) want:
Edit: If you want to wrap these changes into a
.sty
file, you could do this:Name this file
myfile.sty
and load it in the preamble of your document with the usual\usepackage{myfile}
. Note that the name of this file is arbitrary, and the first three lines as well as the last line are not strictly needed.However, I do not really see the advantage of hard-wiring such changes into the
\*matter
commands, even if I agree with the idea that generic formatting changes are often better put into a.sty
file for complex documents.