Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
AleCes
Posts: 286 Joined: Sat Nov 13, 2010 9:54 pm
Post
by AleCes » Sun May 26, 2013 11:26 pm
Hello everybody,
In a document like this:
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
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Run LaTeX here
How can I get to customize fancyhdr so that I have chapter name on the header of left pages and section name on the header of right pages?
Thank you very much,
Last edited by
AleCes on Fri May 31, 2013 11:52 pm, edited 2 times in total.
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 » Mon May 27, 2013 8:38 am
I've been taking a look at the
documentation of fancyhdr and found the following:
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
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Run LaTeX here
You would have found the same by a little reading.
Your
minimal working example was quite good, but the naming of your sections is terrible. You could have invested a little more phantasy.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
AleCes
Posts: 286 Joined: Sat Nov 13, 2010 9:54 pm
Post
by AleCes » Mon May 27, 2013 8:55 am
OK, Johannes_B , so, now what about the answer?
Johannes_B
Site Moderator
Posts: 4182 Joined: Thu Nov 01, 2012 4:08 pm
Post
by Johannes_B » Mon May 27, 2013 9:04 am
Did you read my posted code? Copy and compile it.
Maybe you notice the commands for lhead
and rhead
.
EDIT: I just took another look at your initial question and I have a question. You are asking for a layout on right (odd) and left (even) pages, but you are defining a global option oneside
. In this case, there are no even and odd pages. Also, the option openany
is not really usefull in the case of oneside
.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
AleCes
Posts: 286 Joined: Sat Nov 13, 2010 9:54 pm
Post
by AleCes » Mon May 27, 2013 9:37 am
OK, sorry, I'm really sorry, I didn't notice the lhead
command but I've compiled it and I see no changes in the header layout.
About oneside
, just forget about it, in this document it's just a typo. Obviously I removed it before I compiled.
Johannes_B
Site Moderator
Posts: 4182 Joined: Thu Nov 01, 2012 4:08 pm
Post
by Johannes_B » Mon May 27, 2013 9:40 am
Try the following:
Code: Select all
Code, edit and compile here:
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Run LaTeX here
But remember to delete the option
oneside
.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
AleCes
Posts: 286 Joined: Sat Nov 13, 2010 9:54 pm
Post
by AleCes » Mon May 27, 2013 9:53 am
OK, thank you very much it works wonderfully!