KTUGFaq

KTUG FAQ

·Î±×ÀÎ:
ºñ¹Ð¹øÈ£:
°¡ÀÔ
Many pages make a thick book.
FrontPage › PageStyle

LaTeX¿¡¼­´Â \pagestyle°ú \thispagestyle ¸í·ÉÀ» Á¦°øÇÑ´Ù.

¸ñÂ÷

1 ±âº»°ª
2 PageStyle ¼±Åà ¸í·É
3 headings¿Í myheadings
3.1 headings¿¡¼­ÀÇ running heading
3.2 myheadings¿¡¼­ running headingÀÇ ¼³Á¤
3.3 ÀåÀý ¸í·É°ú PageStyle
4 »ç¿ëÀÚ PageStyle
4.1 FancyHdr ÆÐÅ°Áö¸¦ ÀÌ¿ëÇÏ´Â ¹æ¹ý
4.2 pagestyleÀ» »õ·Ó°Ô Á¤ÀÇÇÏ´Â ¹æ¹ý
5 MemoirÀÇ PageStyle
6 FAQ
6.1 ºó ÆäÀÌÁö¿¡ Çì´õ°¡ Ãâ·ÂÀÌ ¾È µÇ°Ô ÇÏ·Á¸é
6.2 ÆäÀÌÁö ¹øÈ£¸¦ ´Ù½Ã ½ÃÀÛÇÏ·Á¸é

1 ±âº»°ª

LaTeX Ç¥ÁØŬ·¡½º(article,report,book...)¿¡¼­ Á¦°øÇÏ´Â PageStyleÀÇ ±âº»°ªÀº ´ÙÀ½ ³× °¡ÁöÀÌ´Ù.
PageStyle Çü½Ä
plain ÆäÀÌÁö ÇÏ´Ü¿¡ ÆäÀÌÁö ¼ýÀÚ¸¸ ºÙ´Â´Ù.
empty ¾Æ¹«°Íµµ ºÙÀÌÁö ¾Ê´Â´Ù.
headings running headingÀ» ºÙÀδÙ. running headingÀÇ ³»¿ëÀº ¹®¼­½ºÅ¸ÀÏ¿¡ µû¶ó ´Þ¶óÁø´Ù.
myheadings ÆäÀÌÁö heading¿¡ ¹«¾ùÀÌ ¿ÃÁö¸¦ \markboth ¸í·ÉÀ̳ª \markright ¸í·ÉÀ¸·Î ÁöÁ¤ÇÒ ¼ö ÀÖ´Ù.

2 PageStyle ¼±Åà ¸í·É

  1. \pagestyle{PageStyle} : PageStyleÀ» ¼±ÅÃÇÑ´Ù. ÀÌÈÄÀÇ ¸ðµç ÆäÀÌÁö´Â ÀÌ ½ºÅ¸ÀÏÀ» µû¸¥´Ù.
  2. \thispagestyle{PageStyle} : ÇöÀç ÆäÀÌÁöÀÇ ½ºÅ¸ÀÏÀ» ÁöÁ¤ÇÑ´Ù.
    <!> \maketitle ¸í·ÉÀº Ç¥Áö°¡ Æ÷ÇÔµÈ ÆäÀÌÁöÀÇ ½ºÅ¸ÀÏÀ» plainÀ¸·Î ½º½º·Î ÁöÁ¤ÇÑ´Ù. ±×·¯¹Ç·Î Ç¥Áö°¡ Æ÷ÇÔµÈ ÆäÀÌÁöÀÇ PageStyleÀ» ¹Ù²Ù°í ½Í´Ù¸é, \maketitle\thispagestyle{empty}¿Í °°ÀÌ ÇÏ¿©¾ß ÇÑ´Ù.
  3. \pagenumbering{NumberingStyle} : NumberingStyleÀº ´ÙÀ½ °¡¿îµ¥ ÇϳªÀÌ´Ù.
    1. arabic : 1, 2, 3, 4, ...
    2. roman : i, ii, iii, iv, ...
    3. Roman : I, II, III, IV, ...
    4. alph : a, b, c, d, ...
    5. Alph : A, B, C, D, ...
  4. <!> ¸¸¾à ÂÊÀÇ ¹øÈ£ ½ºÅ¸ÀÏ(NumberingStyle)À» ¹Ù²Ù´Â °ÍÀÌ ¾Æ´Ï°í ÂÊ ¹øÈ£ ÀÚü¸¦ ¹Ù²Ù´Â °ÍÀÌ¸é ¹øÈ£¹Ù²Ù±â¸¦ ÂüÁ¶.

3 headings¿Í myheadings

3.1 headings¿¡¼­ÀÇ running heading

´ÙÀ½Àº book.cls¿¡¼­ \pagestyle{headings}¿¡ °üÇÑ °ÍÀ» Á¤ÀÇÇÑ °ÍÀÌ´Ù.
\if@twoside
  \def\ps@headings{%
      \let\@oddfoot\@empty\let\@evenfoot\@empty
      \def\@evenhead{\thepage\hfil\slshape\leftmark}%
      \def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
      \let\@mkboth\markboth
    \def\chaptermark##1{%
      \markboth {\MakeUppercase{%
        \ifnum \c@secnumdepth >\m@ne
          \if@mainmatter
            \@chapapp\ \thechapter. \ %
          \fi
        \fi
        ##1}}{}}%
    \def\sectionmark##1{%
      \markright {\MakeUppercase{%
        \ifnum \c@secnumdepth >\z@
          \thesection. \ %
        \fi
        ##1}} }}
\else
  \def\ps@headings{%
    \let\@oddfoot\@empty
    \def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
    \let\@mkboth\markboth
    \def\chaptermark##1{%
      \markright {\MakeUppercase{%
        \ifnum \c@secnumdepth >\m@ne
          \if@mainmatter
            \@chapapp\ \thechapter. \ %
          \fi
        \fi
        ##1}} }}
\fi

Q2: (From KTUGOperate:16489) ÀÌÁ¦ LaTeXÀ» ½ÃÀÛÇÑ ÃÊÀÚÀÔ´Ï´Ù. ¾Æ·¡ ±×¸²°ú °°ÀÌ ¸Ó¸®±Û¿¡ chapter À̸§À̳ª section À̸§ÀÌ ÀÚµ¿À¸·Î µé¾î°¡°Ô µÇ´Âµ¥¿ä. Á¤ÀÇµÈ ÆäÀÌÁö Å©±â¸¦ ³Ñ°Ô µÇ´Â °æ¿ì, ¸Ó¸®±ÛÀ» Á¦°¡ ¹Ù·Î editing ÇÏ´Â ¹æ¹ýÀº ¾î¶² °ÍÀÌ ÀÖ´ÂÁö¿ä? ¾ÆÁ÷ ÃÊÀÚ¶ó ±âº»ÀûÀÎ Áú¹®ÀÎ °Í °°±âµµ ÇÕ´Ï´Ù. ±×·³ ºÎŹµå¸³´Ï´Ù. http://www.ktug.or.kr/jsboard/data/operate/files/20051220154540/%C1%FA%B9%AE.JPG

A: ¦¼ö ÂʹøÈ£°¡ ¿ÞÂÊ ¸Ó¸®¿¡ ³ª¿Â °ÍÀ¸·Î º¸¾Æ Ŭ·¡½º ¿É¼ÇÀÌ twoside·Î ¼³Á¤µÈ °Í °°½À´Ï´Ù. ÀÌ ¶§´Â book Ŭ·¡½º, amsbook Ŭ·¡½º µî ¸í·É¾î \chapter¸¦ ¾µ ¼ö ÀÖ´Â ¸¹Àº Ŭ·¡½º¿¡¼­´Â ¦¼ö ÂÊ¿¡¼­´Â chapter À̸§, Ȧ¼ö ÂÊ¿¡¼­´Â section À̸§ÀÌ ÀÚµ¿À¸·Î ³ª¿À°Ô µÇ¾î ÀÖ°í, chapter À̸§À̳ª section À̸§ÀÌ ±æ¾î¼­ ±×¸²°ú °°Àº °æ¿ì°¡ »ý±â¸é
\chapter[ªÀº Á¦¸ñ]{±ä Á¦¸ñ}
\section[ªÀº Á¦¸ñ]{±ä Á¦¸ñ}
·Î ³ÖÀ¸¸é µË´Ï´Ù. ¸¸¾à ÀÌ°ÍÀÌ µèÁö ¾ÊÀ¸¸é \markboth{left head}{right head}¸¦ ¾²½Ê½Ã¿ä.

3.2 myheadings¿¡¼­ running headingÀÇ ¼³Á¤

\markboth³ª \markright ¸í·ÉÀ» ½á¼­ running headingÀ» »ç¿ëÀÚ°¡ ¼³Á¤ÇÒ ¼ö ÀÖ´Ù.
\markboth{left head}{right head}

\markboth¿Í \markright ¸í·ÉÀÌ ÂüÁ¶Çϴ ¦¼öÂÊ head´Â ÇÑ ÆäÀÌÁö ºÐ·®ÀÇ ¸¶Áö¸· \markboth¿¡ ÀÇÇÏ¿© ÁöÁ¤µÈ °ÍÀÌ »ç¿ëµÈ´Ù. ¹Ý¸é Ȧ¼öÂÊ head´Â ÀÌÀü ÆäÀÌÁö¿¡ ¼³Á¤µÈ °ÍÀ» ÀÌ¿ëÇϰųª, ±× ÆäÀÌÁöÀÇ ¸ÇóÀ½ Áö½ÃµÈ \markboth ¶Ç´Â \markright¿¡ ÀÇÇÏ¿© ¼³Á¤µÈ´Ù.

ÀåÀý¸í·É (\chapter, \section)¿¡ µû¶ó headingÀ» ¹Ù²Ù¾î¾ß ÇÑ´Ù¸é ´ÙÀ½ ¼ÒÀýÀ» Âü°íÇÏ¿© \chaptermark, \sectionmark¸¦ ÀçÁ¤ÀÇÇÑ´Ù.

3.3 ÀåÀý ¸í·É°ú PageStyle

¾î¶² °æ¿ìµç \rightmark¿Í \leftmark¸¦ Á÷Á¢ Á¤ÀÇÇÏÁö ¾Ê´Â °ÍÀÌ ÁÁ´Ù. ÀÌ µÎ °¡Áö¸¦ ÁöÁ¤ÇÏ°í ¹Ù²Ù´Â ¸í·ÉÀ¸·Î \markboth¿Í \markright ¸í·ÉÀÌ ÁÖ¾îÁ® ÀÖ´Ù. ±×¸®°í, \sectionmark ¸í·É°ú \chaptermark ¸í·ÉÀº \sectionÀ̳ª \chapter°¡ È£ÃâµÉ ¶§¸¶´Ù °Å±â¿¡ ¸Â°Ô \markboth ¸í·ÉÀ» ºÒ·¯ÁØ´Ù.
\renewcommand\chaptermark[1]{\markboth{#1}{}}
\renewcommand\sectionmark[1]{\markright{\thesection~#1}}

4 »ç¿ëÀÚ PageStyle

4.1 FancyHdr ÆÐÅ°Áö¸¦ ÀÌ¿ëÇÏ´Â ¹æ¹ý

»ç¿ëÀÚ ÆäÀÌÁö ½ºÅ¸ÀÏÀ» ÁöÁ¤ÇÏ·Á¸é fancyhdr ÆÐÅ°Áö¸¦ ¾²´Â °ÍÀÌ °¡Àå ½¬¿î ¹æ¹ýÀÌ´Ù. fancyhdr ÆÐÅ°Áö¿¡ ´ëÇؼ­´Â FancyHdr¿Í ¹®¼­LayOutÀ» Âü°íÇ϶ó.

4.2 pagestyleÀ» »õ·Ó°Ô Á¤ÀÇÇÏ´Â ¹æ¹ý

Á÷Á¢ ÆäÀÌÁö ½ºÅ¸ÀÏÀ» ÁöÁ¤ÇÏ·Á¸é ÆäÀÌÁö ½ºÅ¸ÀÏÀÇ ¸íĪÀ» Á¤ÇÏ°í, °Å±â¿¡ ÇØ´çÇÏ´Â ps@xxx ¸í·ÉÀ» Á¤ÀÇ(ÀçÁ¤ÀÇ)ÇÑ´Ù. ´ÙÀ½ º¸±â´Â »õ·Î¿î ÆäÀÌÁö ½ºÅ¸ÀÏÀÇ ¸íĪÀ» myownpagestyle¶ó°í ÇÏ°í, °¢ ÆäÀÌÁöÀÇ »ó´Ü¿¡ PAGE~\thepage°¡ ³ªÅ¸³ªµµ·Ï ÇÑ °ÍÀÌ´Ù.
\makeatletter
\newcommand\ps@myownpagestyle{%
    \renewcommand\@oddfoot{}%
    \renewcommand\@evenfoot{}%
    \renewcommand\@evenhead{\textsc{Page}~\thepage}%
    \renewcommand\@oddhead{\hfil\textsc{Page}~\thepage}%
    }
\makeatother

  • \ps@ÆäÀÌÁö½ºÅ¸ÀϸíĪ ÇüÅÂÀÇ ¸í·ÉÀ» Á¤ÀÇ(newcommand)ÇÑ´Ù.
  • \@oddfoot, \@evenfoot, \@evenhead, \@oddhead¸¦ °¢°¢ ÀçÁ¤ÀÇ(renewcommand)ÇÑ´Ù.

À§ÀÇ ³»¿ëÀ» Preamble¿¡ ³Ö°í, ÀÌÈÄ¿¡ \pagestyle{myownpagestyle}°ú °°Àº ¹æ½ÄÀ¸·Î »ç¿ëÇÑ´Ù.

5 MemoirÀÇ PageStyle

MemoirClass´Â µ¶ÀÚÀûÀÎ pagestyle ¸í·ÉÀ» °¡Áö°í ÀÖ´Ù. µû¶ó¼­ MemoirClass¿¡¼­ FancyHdr¸¦ ¾²Áö ¾Ê´Â °ÍÀÌ ÁÁ´Ù. »ó¼¼ÇÑ »ç¿ë¹ýÀº Memoir Manual 3ºÎ 11ÀåÀ» Âü°í.

\makepagestyle
\aliaspagestyle
\copypagestyle
À§ÀÇ ¼¼ ¸í·ÉÀº »õ·Î¿î ÆäÀÌÁö ½ºÅ¸ÀÏÀ» ¸¸µå´Â °ÍÀÌ´Ù.
\makeevenhead
\makeevenfoot
\makeoddhead
\makeoddfoot
À§ÀÇ ³× ¸í·ÉÀº À̸§ ±×´ë·ÎÀÌ´Ù. À̹ۿ¡ ´ÙÀ½°ú °°Àº µðÀÚÀÎÀ» À§ÇÑ ¸ÅÅ©·ÎµéÀÌ Á¦°øµÈ´Ù.
\makerunningwidth
\makeheadrule
\makefootrule
\footruleheight, \footruleskip
\makeheadposition
\makepsmarks

À§¿Í °°Àº ÆäÀÌÁö½ºÅ¸ÀÏ µðÀÚÀÎÀ» À§ÇÑ »ç¿ëÀÚ ¼³Á¤ °¡´É ¸ÅÅ©·Î ÀÌ¿Ü¿¡ ±âÁ¤ÀÇ ÆäÀÌÁö ½ºÅ¸ÀÏÀÌ Á¦°øµÈ´Ù. empty, plain, headings, myheadings´Â LaTeX ±âº» ½ºÅ¸ÀÏ°ú ºñ½ÁÇÏ°í, ruled, Ruled, companion, book, chapter, cleared, part, title, titlingpage ¶ó´Â Ãß°¡ ÆäÀÌÁö ½ºÅ¸ÀÏÀÌ ÀÖ´Ù. (ÇÑ±Û ¹®¼­¿Í´Â ¹Ì¹¦ÇÏ°Ô ¾î±ß³ª´Â °Íµµ ÀÖÀ½¿¡ ÁÖÀÇ.)

ÇÑÆí, Memoir´Â »õ·Î¿î chapter°¡ ½ÃÀ۵DZâ Àü ÆäÀÌÁö¿¡ ¹é¸éÀÌ ¸¸µé¾îÁöµµ·Ï ¼³Á¤µÇ¾î ÀÖ´Â µî, bookÀ̳ª reportÀÇ ¼º°¡½Å pagestyle ºÒÀÏÄ¡ ¹®Á¦¸¦ ´ëºÎºÐ ÇØ°áÇصΰí ÀÖ´Ù.

6 FAQ

6.1 ºó ÆäÀÌÁö¿¡ Çì´õ°¡ Ãâ·ÂÀÌ ¾È µÇ°Ô ÇÏ·Á¸é

book Ŭ·¡½º¸¦ »ç¿ëÇÏ´Â °æ¿ì¿¡ °¢ Àå(chapter)°¡ Ç×»ó Ȧ¼ö ÂÊ¿¡¼­ ½ÃÀ۵Ǹ鼭 ¹Ù·Î Àü ¦¼ö ÂÊ¿¡ ºó ÆäÀÌÁö°¡ »ý±â´Â °æ¿ì°¡ ÀÖ´Ù.[1]

----
  • [1] Memoir Ŭ·¡½º¸¦ ¾²¸é ÀÌ·± ¹®Á¦°¡ ¹ß»ýÇÏÁö ¾Ê´Â´Ù.

ºÎµæÀÌ bookÀ» ½á¾ß ÇÏ°í ÀÌ ¶§ ÀÌ ºó ÆäÀÌÁö¿¡ ÂʹøÈ£ µîÀÌ Ãâ·ÂµÇÁö ¾Ê°Ô ÇÏ·Á¸é
\documetnclass{book}
.
.
.

\newcommand{\cedp}{%
\newpage{\pagestyle{empty}\cleardoublepage}
}

\begin{document}
\include{chapter1}
\cedp
\include{chapter2}
\cedp
\include{chapter3}
\cedp
\pintindex

\end{document}

6.2 ÆäÀÌÁö ¹øÈ£¸¦ ´Ù½Ã ½ÃÀÛÇÏ·Á¸é


Q : (From KTUGOperate:16484)°ÑÇ¥Áö, ¼ÓÇ¥Áö, ¸ñÂ÷, ³»¿ë µîÀ» ÇÑ ¹®¼­·Î ÀÛ¼ºÇÒ ¶§

°ÑÇ¥Áö´Â ÂʹøÈ£ ¾È ³ª¿Àµµ·Ï ÇÏ°í,
¼ÓÇ¥ÁöºÎÅÍ i·Î ½ÃÀÛÇÏ¿© º» ³»¿ë Àü±îÁö ¼ø¼­¸¦ ¸Å±ä ÈÄ
º» ³»¿ë¿¡¼­ ´Ù½Ã ¼ýÀÚ 1·Î ½ÃÀÛÇÏ´Â ÂʹøÈ£¸¦ ¸Å±â°í ½Í½À´Ï´Ù.


A :

°ÑÇ¥Áö¿¡ ÇØ´çÇÏ´Â °÷¿¡ \thispagestyle{empty}
¼ÓÇ¥Áö°¡ ½ÃÀÛÇÏ´Â °÷¿¡ \thispagestyle{plain} \pagenumbering{roman} \setcounter{page}{1}
º» ³»¿ëÀÌ ½ÃÀÛÇÏ´Â °÷¿¡ \thispagestyle{plain} \setcounter{page}{1}








^
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2011-03-18 15:21:42
Processing time 0.0563 sec