LyXPosition of Header and Footer

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

Position of Header and Footer

Post by Anh_Flo »

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"

Code: Select all

% ********************************************************************                
% headlines
% ********************************************************************  
\PassOptionsToPackage{automark}{scrpage2}
	\RequirePackage{scrpage2} % provides headers and footers (KOMA Script)
    \clearscrheadings
    \setheadsepline{0pt}
    \ifthenelse{\boolean{@nochapters}}%
        {\relax}%
        {\renewcommand{\chaptermark}[1]{\markboth{\spacedlowsmallcaps{#1}}{\spacedlowsmallcaps{#1}}}}
    \renewcommand{\sectionmark}[1]{\markright{\thesection\enspace\spacedlowsmallcaps{#1}}} 
    \lehead{\mbox{\llap{\small\thepage\kern2em}\headmark\hfil}}
    \rohead{\mbox{\hfil{\headmark}\rlap{\small\kern2em\thepage}}}
    \renewcommand{\headfont}{\small}  
%    \DeclareRobustCommand{\fixBothHeadlines}[2]{} % <--- ToDo
    % hack to get the content headlines right (thanks, Lorenzo!)
		\def\toc@heading{%
	 		\ifthenelse{\boolean{@nochapters}}%
	 		{\section*{\contentsname}}%nochapters
	 		{\chapter*{\contentsname}}%chapters
	 		\@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!

Flo
Attachments
Header for sections too far on the top, page numbering at the bottom and top of the page
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 3813 times
Last edited by localghost on Tue Oct 08, 2013 9:26 am, edited 2 times in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Post Reply