KTUGFaq
KTUG FAQ
Piet van Oostrum PageStyle ǿ Ű. fancyheadings Ű ̴.
1 FancyHdr PageStyle ¶
2 ܸ鿡 ¶
ܿ LHdr, CHdr, RHdr; ϴܿ LFtr, CFtr, RFtr ִٰ , ִ.
\pagestyle{fancy} \lhead{} \chead{} \rhead{\bfseries } \lfoot{KTUG} \cfoot{Happy TeXing!}%Ʈ \thepage \rfoot{\thepage} \renewcommand{\headrulewidth}{.6pt}%Ʈ .4pt \renewcommand{\footrulewidth}{.4pt}%Ʈ 0pt
\headrulewidth {0pt} ϸ ִ. ݴ \footrulewidth Ʈ {0pt}̱ ̰ Ϸ ⸦ Ͽ Ѵ.
ַ \addtolength\headheight{.5pt} headheight ÷ش.
3 鿡 ¶
ϸ © ִ.
\lhead[¦ ]{Ȧ }% \lfoot[¦ ϴ ]{Ȧ ϴ }% \chead[¦ ߾]{Ȧ ߾}% \cfoot[¦ ϴ ߾]{Ȧ ϴ ߾}%ָ ʹȣ Ÿ. \rhead[¦ ]{Ȧ }% \rfoot[¦ ϴ ]{Ȧ ϴ }%
\pagestyle{fancy} Ǵ \pagestyle{fancyplain} Ͽ Ȱȭ ִ. ̵ Ŭ Ͽ Ʈ (밳 \pagestyle{plain} Ǿ ִ.) .
ɾ \fancyplain{}{}
\pagestyle{fancyplain} \renewcommand{\chaptermark}[1]{\markboth{\thechapter. #1}{}} \renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}} \lhead[\fancyplain{}{\bfseries\thepage}]{\fancyplain{}{\bfseries\rightmark}} \rhead[\fancyplain{}{\bfseries\leftmark}]{\fancyplain{}{\bfseries\thepage}} \cfoot[]{}
ϰ ¥, LO, CO, RO LE, CE, RE Ͽ ϰ pagestyle fancy Ǵ fancyplain Ѵ.
, \fancyfoot[LE,RO] ¦ (even, ) footer Ȧ (odd, ) Ʒ ϰ ϴ ̴.
\fancyhead{} % clear all fields \fancyhead[RO,LE]{\bfseries } \fancyfoot[LE,RO]{\thepage} \fancyfoot[LO,CE]{KTUG} \fancyfoot[CO,RE]{Happy TeXing!} \renewcommand{\headrulewidth}{.6pt}%Ʈ .4pt \renewcommand{\footrulewidth}{.4pt}%Ʈ 0pt
5 FancyHdr \rightmark \leftmark ¶
FancyHdr Ű running head ̷ Ѵ.
\usepackage{fancyhdr} \pagestyle{fancy} \renewcommand\chaptermark[1]{\markboth{#1}{}} \renewcommand\sectionmark[1]{\markright{\thesection~#1}} \fancyhf{} \fancyhead[LE,RO]{\thepage} \fancyhead[LO]{\bfseries\rightmark} \fancyhead[RE]{\bfseries\leftmark}
\rightmark \leftmark \markboth \markright Ǵ ̴. ٲ ʵ Ѵ.
6 headrule footrule ֱ ¶
\documentclass[twoside]{book} \usepackage{fancyhdr} \pagestyle{fancy}
ϴ ϸ ڵ headrule(header body ) footrule(footer body ) . ٸ footrule Ʈ 0pt ֱ ʴ´. headrule Ʈ 0.4pt ִ. ̵ ⸦ ġ
\renewcommand{\headrulewidth}{0.6pt}%Ʈ 0.4pt \renewcommand{\footrulewidth}{0.4pt}%Ʈ 0ptԷϸ ȴ. headrule ʰ Ϸ 0pt ϸ ȴ. \rightmark, \leftmark Ʈ Ͽ (Ŭ Ŭ ɼǿ ٸ.) Ÿ. See 16633