Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Seanshine
Posts: 52 Joined: Sat Apr 28, 2018 9:59 pm
Post
by Seanshine » Sat May 12, 2018 1:03 pm
Dear Readers,
I've got a questions with regards to the MastersDoctoralThesis.cls file. Namely, I would like the prefix 'Chapter X' removed and only show the chapter name instead. For example, 'Chapter 1; Introduction' -> '1 Introduction'.
Thanks in advance.
PS. I've tried to use,
Code: Select all
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
, however it messes up the chapter numbering.
NEW: TikZ book now 40% off at Amazon.com for a short time.
Johannes_B
Site Moderator
Posts: 4182 Joined: Thu Nov 01, 2012 4:08 pm
Post
by Johannes_B » Sat May 12, 2018 1:30 pm
Code: Select all
Code, edit and compile here:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Run LaTeX here
Package scrlayer-scrpage is used to define the headers and footers.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Seanshine
Posts: 52 Joined: Sat Apr 28, 2018 9:59 pm
Post
by Seanshine » Sat May 12, 2018 4:07 pm
@Johannes_B Hero!
One more question: where would one place \renewcommand{\chaptermarkformat}{\thechapter\space}
? And what is its use?
Johannes_B
Site Moderator
Posts: 4182 Joined: Thu Nov 01, 2012 4:08 pm
Post
by Johannes_B » Sat May 12, 2018 4:12 pm
In the document preamble as shown.
It's use? It formats the chapter mark to what you want.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Seanshine
Posts: 52 Joined: Sat Apr 28, 2018 9:59 pm
Post
by Seanshine » Sat May 12, 2018 4:23 pm
Ah. Great.
I was in doubt whether to change the .cls file or the main.tex whenever one wants to make any changes. But from my understanding one has to make adaptions only in the main.tex, correct?
Johannes_B
Site Moderator
Posts: 4182 Joined: Thu Nov 01, 2012 4:08 pm
Post
by Johannes_B » Sat May 12, 2018 4:26 pm
Yes, this is correct. There is no need to change the class file at all. This is by design in LaTeX.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Seanshine
Posts: 52 Joined: Sat Apr 28, 2018 9:59 pm
Post
by Seanshine » Sat May 12, 2018 4:33 pm
Finally I understand. So when I want to change the header to '1 Introduction Author p. X', what code would one insert and where within the main.tex?
Johannes_B
Site Moderator
Posts: 4182 Joined: Thu Nov 01, 2012 4:08 pm
Post
by Johannes_B » Sat May 12, 2018 4:47 pm
\ihead{\headmark\space Author p. X}
in the preamble.
All customization is done in the preamble.
You need to read an introduction to learn LaTeX which is needed to use the template.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Seanshine
Posts: 52 Joined: Sat Apr 28, 2018 9:59 pm
Post
by Seanshine » Sat May 12, 2018 4:58 pm
'The Not So Short Introduction to LaTeX', I will go through that step by step.
Thanks for the support.