문서양식 조정 : 여백 활용
이주용
jlee@formal.korea.ac.kr
고려대학교
2011년 11월 14일
. . . . . .
여백 : Header, Footer, Margin Note
f
Header
Body
Footer
Note Margin
이주용 jlee@formal.korea.ac.kr 고려대학교
문서양식 조정 : 여백 활용
윗여백 (header) 아랫여백 (footer) 옆여백 쓰기 (margin note)
Page Style
Page style에 따라 header와 footer의 모습 변화
empty headings
설정 명령 : \pagestyle{⟨page style⟩}
. . . . . .
윗여백 (header) 아랫여백 (footer) 옆여백 쓰기 (margin note)
Page Style
Page style에 따라 header와 footer의 모습 변화 기본 page style
plain empty headings
이주용 jlee@formal.korea.ac.kr 고려대학교
문서양식 조정 : 여백 활용
Page Style
Page style에 따라 header와 footer의 모습 변화 기본 page style
plain empty headings
설정 명령 :\pagestyle{⟨page style⟩}
. . . . . .
Fancy Page Style
\ usepackage { f a n c y h d r } . . .
\ p a g e s t y l e { f a n c y }
이주용 jlee@formal.korea.ac.kr 고려대학교
문서양식 조정 : 여백 활용
사용자 정의 헤더 문구
\ usepackage { f a n c y h d r } . . .
\ p a g e s t y l e { f a n c y }
\ lhead {⟨header 왼쪽⟩}
\ chead {⟨header 가운데⟩}
\ rhead {⟨header 오른쪽⟩}
. . . . . .
사용자 정의 헤더 문구 예시 1
\ lhead {} % 헤더 왼쪽을 비움
\ rhead {CNCE150} % 헤더 오른쪽에 CNCE150
\ chead {\ thepage } % 헤더 가운데에 현재 쪽수
이주용 jlee@formal.korea.ac.kr 고려대학교
문서양식 조정 : 여백 활용
사용자 정의 헤더 문구 예시 2
\ lhead {\ l e f t m a r k }
\leftmark: 현재 section 문구
. . . . . .
사용자 정의 헤더 문구 예시 3
\ lhead {\ rightmark }
\rightmark: 현재 subsection 문구
이주용 jlee@formal.korea.ac.kr 고려대학교
문서양식 조정 : 여백 활용
기본 subsection 문구 변경
\renewcommand{\ subsectionmark } [ 1 ] {
\ markright {\ t h e s u b s e c t i o n
\quad \MakeUppercase{#1}}}
\ lhead {\ rightmark }
\thesubsection: 현재 subsection 번호
\MakeUppercase: 대문자로
\quad: 몇 칸 띄우기
. . . . . .
기본 section 문구 변경
\renewcommand{\ sectionmark } [ 1 ] {
\markboth {\ t h e s e c t i o n
\quad \MakeUppercase{#1}
{}}}
\ lhead {\ rightmark }
\thesection: 현재 section 번호
\markboth{⟨leftmark⟩}{⟨rightmark⟩}
이주용 jlee@formal.korea.ac.kr 고려대학교
문서양식 조정 : 여백 활용
헤더줄폭 변경
\ usepackage { f a n c y h d r }
\ p a g e s t y l e { f a n c y }
\renewcommand{\ h e a d r u l e w i d t h }{3 p t }
. . . . . .
사용자 정의 헤더줄
\ usepackage { f a n c y h d r }
\ p a g e s t y l e { f a n c y }
\renewcommand{\ h e a d r u l e }{⟨헤더줄⟩}
이주용 jlee@formal.korea.ac.kr 고려대학교
문서양식 조정 : 여백 활용
사용자 정의 헤더줄 예 1
\ usepackage { f a n c y h d r }
\ p a g e s t y l e { f a n c y }
\renewcommand{\ h e a d r u l e }
{\ r u l e [ 5 p t ] { \ t e x t w i d t h }{1mm}}
\rule{⟨기준선과의 거리⟩}{⟨폭⟩}{⟨두께⟩}
폭 \textwidht, 두께 1mm의 줄을 기준선 5pt위에 놓는다.
. . . . . .
사용자 정의 헤더줄 예 2
\renewcommand{\ h e a d r u l e }{
\ begin { m i n i p a g e }{\ t e x t w i d t h }
\ i n c l u d e g r a p h i c s [ s c a l e = . 2 ] { h r u l e . png } . . .
\ i n c l u d e g r a p h i c s [ s c a l e = . 2 ] { h r u l e . png }
\end{ m i n i p a g e } }
이주용 jlee@formal.korea.ac.kr 고려대학교
문서양식 조정 : 여백 활용
twoside 옵션
\ documentclass [ twoside ] { a r t i c l e }
홀수쪽과 짝수쪽이 다른 양식으로 조판
. . . . . .
twoside 옵션과 fancy style
\ documentclass [ twoside ] { a r t i c l e }
\ usepackage { f a n c y h d r } \ p a g e s t y l e { f a n c y }
\ fancyhead {} \ fancyhead [ RE , LO ] { \ thepage }
RE: right쪽은 even쪽에서 LO: left쪽은 odd쪽에서 기타 : RO, LE, CE, L, R, C
이주용 jlee@formal.korea.ac.kr 고려대학교
문서양식 조정 : 여백 활용
사용자 정의 footer 문구
\ usepackage { f a n c y h d r } . . .
\ p a g e s t y l e { f a n c y }
\ l f o o t {⟨header 왼쪽⟩}
\ c f o o t {⟨header 가운데⟩}
\ r f o o t {⟨header 오른쪽⟩}
\ f a n c y f o o t [⟨옵션⟩ ] { ⟨문구⟩}
. . . . . .
footer 줄 조정
\ usepackage { f a n c y h d r } . . .
\ p a g e s t y l e { f a n c y }
\renewcommand{\ f o o t r u l e w i d t h } { 0 . 5 p t }
이주용 jlee@formal.korea.ac.kr 고려대학교
문서양식 조정 : 여백 활용
footer 줄 조정
\ usepackage { f a n c y h d r } . . .
\ p a g e s t y l e { f a n c y }
\renewcommand{\ f o o t r u l e } { . . . }
. . . . . .
옆여백에 쓰기
\ usepackage { marginnote }
\newcommand{\ m a r g i n s e p }{10 p t }
\ begin { document }
\ marginnote {⟨글⟩}[\ marginsep ]
⟨본문 내용물⟩
. . .
이주용 jlee@formal.korea.ac.kr 고려대학교
문서양식 조정 : 여백 활용
옆여백에 쓰기 예 (문단 옆에)
\ marginnote {WYSIWYG[ \ m a r g i n s e p ]
\LaTeX은... 일명 WYSIWYG 방식과 대조된다.
. . . . . .
옆여백에 쓰기 예 (그림 옆에)
\ begin { f i g u r e } [ h ]
\ marginnote { f i g u r e 환경 } [ \ m a r g i n s e p ]
\ c e n t e r i n g
\ i n c l u d e g r a p h i c s { b e a r . j p g }
\end{ f i g u r e }
이주용 jlee@formal.korea.ac.kr 고려대학교
문서양식 조정 : 여백 활용
옆여백에 쓰기 예 (주석 옆에)
\ f o o t n o t e { p r e f i x 는 자신의 ko . \TeX Live 20011이 설치된 위치를 가리킨다. \ marginnote { p r e f i x }}
. . . . . .
옆여백 쓰기의 기본 위치
단면일 경우, 오른쪽
양면일 경우, 바깥쪽 (홀수쪽은 오른쪽, 짝수쪽은 왼쪽)
이주용 jlee@formal.korea.ac.kr 고려대학교
문서양식 조정 : 여백 활용
옆여백 쓰기의 기본 위치 바꾸기
\reversemarginpar: 이후는 기본과 반대로
\normalmarginpar: 이후는 기본대로