LaTeX forum ⇒ LyXPosition of Header and Footer

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Posts: 1
Joined: Tue Oct 08, 2013 5:52 am

Position of Header and Footer

Postby Anh_Flo » Tue Oct 08, 2013 6:20 am

Hello everybody,

I'm a newbie here and therefore my question might be a bit boring for you but I was looking for an answer for hours by myself, so I'm quite desperate!

To come straight to the point: I wanna write my thesis with LyX using the classicthesis template. I'm happy with it, except that:

  1. The sections (not the chapters) in the header file are to far at the top of the page.
  2. The page numbering is quite strange. I'd prefer to have all page numbers at the bottom of the page.

I figured out, that I have to change something in the following code of "classicthesis.sty"

  1. % ********************************************************************
  2. % headlines
  3. % ********************************************************************
  4. \PassOptionsToPackage{automark}{scrpage2}
  5. \RequirePackage{scrpage2} % provides headers and footers (KOMA Script)
  6. \clearscrheadings
  7. \setheadsepline{0pt}
  8. \ifthenelse{\boolean{@nochapters}}%
  9. {\relax}%
  10. {\renewcommand{\chaptermark}[1]{\markboth{\spacedlowsmallcaps{#1}}{\spacedlowsmallcaps{#1}}}}
  11. \renewcommand{\sectionmark}[1]{\markright{\thesection\enspace\spacedlowsmallcaps{#1}}}
  12. \lehead{\mbox{\llap{\small\thepage\kern2em}\headmark\hfil}}
  13. \rohead{\mbox{\hfil{\headmark}\rlap{\small\kern2em\thepage}}}
  14. \renewcommand{\headfont}{\small}
  15. % \DeclareRobustCommand{\fixBothHeadlines}[2]{} % <--- ToDo
  16. % hack to get the content headlines right (thanks, Lorenzo!)
  17. \def\toc@heading{%
  18. \ifthenelse{\boolean{@nochapters}}%
  19. {\section*{\contentsname}}%nochapters
  20. {\chapter*{\contentsname}}%chapters
  21. \@mkboth{\spacedlowsmallcaps{\contentsname}}{\spacedlowsmallcaps{\contentsname}}}

Unfortunately I don't know where to change what. Attached you'll find a picture, which illustrates my problem a bit.

For any advice and help I'd be happy and thankful!

Header for sections too far on the top, page numbering at the bottom and top of the page
LyX-header-problem.png (6.56 KiB) Viewed 2039 times
Last edited by localghost on Tue Oct 08, 2013 9:26 am, edited 2 times in total.
Reason: Source code has to be tagged as such to keep a post clear and legible (see Board Rules).


Return to “LyX”

Who is online

Users browsing this forum: No registered users and 2 guests