2016-05-25 40 views
0

我很難讓我的風格在乳膠中完成。改變膠乳的頭寬w/out fancyhdr

這裏是一個兆瓦:

\documentclass{scrbook} 
\usepackage{lipsum} 
\usepackage[pagestyles]{titlesec} 
\usepackage{scrpage2} 
\pagestyle{scrheadings} 
\renewcommand*{\chapterpagestyle}{empty} 
\renewcommand*{\headfont}{\normalfont} 
\lefoot[LE]{\makebox[0pt][r]{\makebox[2cm][l]{\thepage}}} 
\rofoot[RO]{\makebox[0pt][l]{\makebox[2cm][r]{\thepage}}} 
\usepackage[]{setspace} 
\usepackage{showframe} 
\setlength{\textheight}{20cm} 
\setlength{\textwidth}{13cm} 
\usepackage{scrpage2} 
\pagestyle{scrheadings} 
\renewcommand*{\chapterpagestyle}{empty} 
\renewcommand*{\headfont}{\normalfont} 

\begin{document} 
\chapter{chapter test} 
\lipsum[1-2] 
\section{section test2} 
\lipsum[3-10] 
\end{document} 

我想有在外側到頁面編號被張的頭部,所以頭部和頁面編號是正當的。我似乎無法得到這個工作。 感謝, fleischfressende

回答

0

您可以通過訪問\rightmark通過\leftmark章節號/標題和節號/標題。然後,只需使用時使用的頁腳相同的符號和箱操作:

enter image description here

\documentclass{scrbook} 

\usepackage{lipsum} 

\renewcommand*{\chapterpagestyle}{empty} 
\renewcommand*{\headfont}{\normalfont} 

\usepackage{scrpage2} 
\pagestyle{scrheadings} 

\lefoot{\makebox[0pt][r]{\makebox[2cm][l]{\thepage}}} 
\rofoot{\makebox[0pt][l]{\makebox[2cm][r]{\thepage}}} 
\lehead{\makebox[0pt][r]{\makebox[2cm][l]{\leftmark}}} 
\rohead{\makebox[0pt][l]{\makebox[2cm][r]{\rightmark}}} 

\begin{document} 

\chapter{chapter test} 
\lipsum[1-2] 

\section{section test2} 
\lipsum[3-10] 

\end{document} 

雖然2cm框是標題內容太少,它其實並不重要,因爲你只對特定的放置/對齊感興趣。

+0

謝謝,那就是我一直在尋找的! – fleischfressendepflanze