단계 4 · 구조와 교차 참조 28 / 48 ≈ 15 분 분량

LaTeX 각주와 여백 노트: 위치와 번호

각주는 텍스트 조각이 아니라 두 부분으로 된 장치입니다: 줄 안의 표식과 페이지 아래쪽의 삽입물이 카운터로 이어 붙어 있죠. 그래서 어떤 자리는 받아들이고 어떤 자리는 소리 없이 삼켜 버립니다. 합법적인 위치, 표와 플로트용 짝, 번호를 쓰는 모든 방식, 대안으로서의 여백 열을 다룹니다.

    각주는 하나의 객체가 아니라 두 개의 객체입니다

    TeX이 \footnote{text}를 만나면 서로 관련 없는 두 일을 합니다. 현재 줄 안에서는 표식을 찍어요: footnote 카운터를 밟고 \thefootnote를 \@makefnmark를 통해 위첨자로 조판하죠. 그리고 페이지 안에는 삽입물을 놓습니다: 각주 텍스트가 각주 가로줄과 함께 \footins 삽입 레지스터에 들어가고, 이후 출력 루틴이 그것을 \textheight 아래에 볼트로 고정해 \@makefntext에게 넘깁니다.

    각주에 이상한 것은 전부 그 분할에서 따라옵니다. 표식은 여러분이 친 자리에 놓이고, 텍스트는 페이지가 끝나는 자리에 놓이죠. 재료를 옮기는 모든 것 — 플로트, 칼럼, 2단 조판, minipage — 은 두 절반을 갈라 놓을 수 있고, 소스를 다시 읽는 모든 것(목차, 달리는 머리글, 그림 목록)은 표식을 두 번 찍어 두 번 셀 수 있습니다.

    알아 둘 값은 전부 평범한 길이입니다. \skip\footins는 마지막 텍스트 줄과 각주 가로줄 사이의 세로 여백, \footnotesep은 두 각주 텍스트를 나누는 스트럿 높이, 그리고 각주 자체는 \footnotesize로 \@makefntext를 통해 조판되죠. 각주가 마지막 텍스트 줄에 눌려 붙어 보인다면 \setlength{\skip\footins}{14pt}가 처방입니다. 아래 여백으로 기어 올라간다면 페이지가 자리를 다 쓴 것이고 삽입물이 나뉘는 중인데, 이는 아래에서 다루는 bottom 옵션(footmisc 패키지)으로 이어집니다.

    \underbrace{\text{mark}}_{\text{in the line}} \quad \longmapsto \quad \underbrace{\text{text}}_{\text{below the rule}}
    \underbrace{\text{mark}}_{\text{in the line}} \quad \longmapsto \quad \underbrace{\text{text}}_{\text{below the rule}}

    각주가 가면 안 되는 자리와 대신 쓸 것

    네 자리는 금지이고 각각 자기 방식대로 실패합니다. 이동 인자 — \section, \caption, \chapter, \item의 선택 인자 — 는 보조 파일에 쓰이고 다시 조판되므로, 그 안의 각주는 목적지마다 한 번씩 셀립니다. 고전적인 결과는 틀린 번호에 hyperref의 Footnote ... is multiply defined 경고죠. 플로트와 표 셀은 플로트가 다른 페이지에 착륙할 수 있어 표식/텍스트 짝을 깨뜨립니다. verbatim 재료는 명령을 아예 담을 수 없고요. 그리고 각주 안의 각주는 TeX이 지원하지 않는 삽입물의 중첩입니다.

    제목에서의 옳은 처방은 세 가지의 결합입니다: 목차용 짧은 형태, 본문에서의 긴 형태, 그리고 각주 앞에 두는 \protect — 즉 \section[Short title]{Long title\protect\footnote{...}}이것이죠. \protect은 제목이 파일로 쓰이는 동안 각주가 전개되는 것을 막아 주므로, 각주 텍스트는 제목이 실제로 나타나는 페이지에 조판되고 절대 목차에는 들어가지 않습니다. 제목이나 저자에만 붙이는 각주가 필요하다면 \thanks{}를 쓰세요: 재료를 \@thanks에 모아 제목 블록 아래에 자기만의 기호 열로 조판하며, footnote 카운터에서 독립적입니다.

    표에서의 답은 각주를 여러분 스스로 쪼개는 것입니다. \footnotemark는 표식만 찍고 카운터를 밟고, \footnotetext는 카운터의 현재 값을 쓰는 텍스트만 찍죠. 표식은 tabular 안에 넣고 플로트를 닫은 뒤, 텍스트들이 줄을 맞추도록 카운터를 뒤로 돌리세요: \addtocounter{footnote}{-1}\footnotetext{first note}\stepcounter{footnote}\footnotetext{second note}. 이것은 장부 정리이고 개정을 넘어 취약하므로, 표 각주의 장기적인 정답은 threeparttable과 그 tablenotes 목록입니다: 각주가 표 상자의 일부가 되어 함께 뜨니까요.

    추가 함정 둘은 출력물을 보기 전까지는 보이지 않습니다. p{<width>} 열은 minipage이므로 그 안의 \footnote는 완전히 합법이지만 셀 아래에 떨어지고, 별도의 mpfootnote 카운터에서 알파벳을 씁니다 — 독자는 이를 실수로 읽죠. 그리고 \footnote가 longtable의 행 끝에 있으면 페이지 조각마다 한 번씩 뱉어질 수 있으니, 그 각주들은 환경 다음에 표식/텍스트 짝으로 두세요.

    Where footnote text lands: page foot, bottom of a minipage, or nowhere inside a float 1. PLAIN TEXT - THE DOCUMENTED CASE ... the claim.\footnote{note} 1 skip\footins 1 note text, footnotesize, below the footnote rule mark and text are both produced by one \footnote call, in the same page stream. 2. MINIPAGE OR p{} CELL \begin{tabular}{p{4cm}p{4cm}} a footnote rule of the box a note text, here - not on the page A p{} column is a minipage: the counter is mpfootnote, the marks are letters, the text is clipped to the box - readers call it a bug. 3. FLOAT OR l/c/r TABLE CELL \begin{table}[htbp] ... \end{table} the float travels to another page; the mark goes with it, the insertion does not: text is lost, or the counter advances twice \footnotemark in the cell \addtocounter{footnote}{-1} \footnotetext{note} after the float two halves, deliberately separated In a table the note must be written as a pair; for notes that belong to the table itself, use threeparttable tablenotes instead. The rule behind all three pictures A footnote is a mark placed in the line and a text placed in an insertion. Anything that moves material (float, box, column) or re-reads the source (table of contents, list of tables, running head) separates the two - so write those notes as an explicit mark/text pair.
    같은 소스 줄이 표식이 서 있는 위치에 따라 페이지 아래쪽의 각주, 상자 아래쪽의 각주, 혹은 결코 나타나지 않는 각주를 만들어 냅니다.
    \documentclass[a4paper,11pt]{article}
    
    \usepackage[T1]{fontenc}
    \usepackage{amsmath}
    \usepackage{booktabs}
    \usepackage[a4paper,margin=2.5cm]{geometry}
    
    \begin{document}
    \section{Two ways to footnote a table}
    
    % --- (1) marks inside the tabular, texts after the float -------------
    % A \footnote inside a table would be swallowed by the float machinery, so
    % the mark and the text are written as two halves of one operation.
    \begin{table}[htbp]
      \centering
      \begin{tabular}{llr}
        \toprule
        Symbol & Quantity & Value \\
        \midrule
        $\alpha$ & fine structure    & $7.297\times10^{-3}$\footnotemark \\
        $c$      & speed of light    & $299\,792\,458$\footnotemark \\
        \bottomrule
      \end{tabular}
      \caption{Constants with two marks.}\label{tab:constants}
    \end{table}
    % \footnotemark has already advanced the counter twice; walk it back to the
    % first mark, print that text, then step forward for the second.
    \addtocounter{footnote}{-1}%
    \footnotetext{Dimensionless, and measured.}%
    \stepcounter{footnote}%
    \footnotetext{Exact, since the metre was defined from it.}
    
    % --- (2) the p{} column trap ----------------------------------------
    % A p{} column is a minipage, so \footnote inside one does NOT go to the
    % bottom of the page: it is printed under the cell, with the independent
    % minipage counter (letters).
    \begin{center}
    \begin{tabular}{p{4.5cm}p{4.5cm}}
      \hline
      This cell carries a note.\footnote{Read this one under the cell, marked
      with a letter, not at the foot of the page.} &
      And this one is plain text. \\
      \hline
    \end{tabular}
    \end{center}
    
    For tables whose notes must travel with the table, the environment to reach for
    is \verb|threeparttable| with its \verb|tablenotes| list and \verb|\tnote{a}|
    marks; for notes that belong at the foot of the page, use the mark/text pair above.
    
    A note in ordinary text, for contrast.\footnote{This one really does sit at the
    bottom of the page.}
    \end{document}

    번호 매기기: 기호, 알파벳, 페이지별, 절별

    번호는 하드코딩이 아닙니다. \thefootnote가 전개되는 것일 뿐이어서, 표식의 모양 전체는 \renewcommand 하나 거리죠. 실제로 필요한 네 설정: \arabic{footnote}(기본값), 조용한 학술적 인상의 \roman{footnote}, 표용 \alph{footnote}, 표지 제목의 크레딧 각주 하나에 쓰는 번호 없는 별표·단검 열 \fnsymbol{footnote}. \thefootnote를 아무것도 아닌 것으로 찍으면 무표식 각주가 되는데, 달리는 주석이 원하는 것이 바로 그것입니다.

    \fnsymbol은 자기만의 단락을 가질 만합니다. 카운터를 번호로 쓰지 않는 유일한 형태이니까요. 커널 정의는 아홉 갈래 스위치입니다: 별표, 단검, 이중 단검, 절 기호, 문단 기호, 이중 세로줄, 그리고 그 다음에는 겹친 형태 **, ††, ‡‡가 오죠. 열 번째 요청은 감돌지 않고 \@ctrerr로 떨어져 Counter too large로 멈춥니다. 바로 그 상한 때문에 이 형식이 각주가 한두 개이고 번호가 필요 없는 표지 크레딧에 쓰이는 것이고, 카운터를 페이지별로 다시 시작하지 않고 전역으로 이 형식으로 전환하는 것이 완만한 사고가 되는 것이죠. hyperref가 목적지 이름용으로 별도 Hfootnote 카운터를 유지하고 \setcounter{footnote}{0}이 그것을 리셋하지 않는다는 점도 주목할 만합니다. 그래서 손으로 각주 번호를 다시 시작하는 문서는 본문에 *를 보이되 되돌아오는 참조는 일곱 번으로 라벨된 채 나올 수 있어요.

    재설정 지점도 카운터입니다. 페이지별 번호는 커널의 클래스 옵션이 아니어서 \usepackage[perpage]{footmisc}를 로드해야 하고, 절별 번호는 일반 메커니즘인 \counterwithin{footnote}{section}입니다(커널 명령; 구설치에서는 chngcntr). 페이지별 번호에 bottom을 결합한 것은 대부분의 서적 클래스가 쓰는 조합이고, 그 밖의 알아 둘 키는 bottom(짧은 페이지 아래로 각주가 올라가는 대신 텍스트 블록 맨 아래에 고정), norule, ragged, flushmargin(줄을 들인 대신 표식을 여백으로 걸게 함)입니다.

    {}^{\ast},\ {}^{\dagger},\ {}^{\ddagger},\ {}^{\S},\ {}^{\P},\ {}^{\|},\ {}^{\ast\ast},\ {}^{\dagger\dagger},\ {}^{\ddagger\ddagger}
    {}^{\ast},\ {}^{\dagger},\ {}^{\ddagger},\ {}^{\S},\ {}^{\P},\ {}^{\|},\ {}^{\ast\ast},\ {}^{\dagger\dagger},\ {}^{\ddagger\ddagger}
    \documentclass[12pt,a4paper]{article}
    
    \usepackage[T1]{fontenc}
    \usepackage[utf8]{inputenc}
    \usepackage{amsmath}
    \usepackage[a4paper,margin=2.5cm,bottom=3.2cm]{geometry}
    \usepackage[bottom,perpage,flushmargin]{footmisc}
            % bottom    : push the footnotes to the very bottom of the page
            % perpage   : restart the numbering on every page
            % flushmargin: hang the mark into the margin instead of indenting
    
    \setlength{\skip\footins}{16pt}   % gap between the text and the footnote rule
    \setlength{\footnotesep}{9pt}    % gap between two footnote texts
    
    \title{Notes on notes\thanks{Collected in the title block, marked with symbols.}}
    \author{A. Student}
    
    \begin{document}
    \maketitle
    
    % --- three ways to write the number ---------------------------------
    \renewcommand{\thefootnote}{\arabic{footnote}}  % 1, 2, 3   (the default)
    % \renewcommand{\thefootnote}{\roman{footnote}}   % i, ii, iii
    % \renewcommand{\thefootnote}{\fnsymbol{footnote}} % *, dagger, ddagger, S, P
    % \renewcommand{\thefootnote}{}                   % unmarked notes
    
    The Euler product is due to Euler.\footnote{First note on this page.}
    A second claim, a second note.\footnote{Second note.}
    A third one reuses the first mark---\footref{1} \verb|\footref| is supplied by
    \texttt{footmisc}, and it repeats a mark without spending a new number.
    
    \section[A short heading for the TOC]{A long heading\protect\footnote{A note in
    a heading is set on the page the heading lands on, never in the table of
    contents.}}
    Because \verb|\section| writes its title to the table of contents, the note had
    to be protected, and the heading needed a short optional form.
    
    \subsection*{Zeroing the counter by hand}
    \setcounter{footnote}{0}
    After the reset the next note is number one again.\footnote{Numbered from one.}
    \end{document}

    디스플레이 수식 안의 각주

    디스플레이 수식은 자기 가로 목록을 가진 그룹이므로 그 안의 \footnote는 예측할 수 없는 자리에 떨어집니다. 대개 표식은 수식 뒤에 조판되는데, 수식이 페이지를 넘어 갈라지기 전까지는 멀쩡해 보이고, 가운데 정렬된 디스플레이의 왼쪽 끝에 표식이 나타나기도 하죠. 견고한 두 자리는 닫는 \]의 바로 뒤(표식을 문장 부호에 붙이는 것, 독자가 기대하는 것이 그것입니다) 또는 디스플레이를 담은 문장의 끝입니다.

    정말로 표식이 수학 안의 한 상징 위에 앉아야 한다면 그 자리에 \footnote를 쓰지 마세요. 대신 수학 바깥에 수동 위첨자를 두면 됩니다: 상징 뒤에 \footnotemark, 디스플레이 뒤에 \footnotetext. 텍스트 모드에서 같은 재주는 일반화되어, x\footnotemark[3]은 세 번째 각주의 표식을 카운터를 건드리지 않고 찍고 텍스트는 별도로 쓰죠. 구문 차이에 주의하세요 — \footnotemark[3]은 번호를 선택 인자로 받지만 \footnotetext[3]{...}는 텍스트에 같은 방식으로 받습니다.

    amsmath의 \intertext와 \intertext*는 다른 이유로 여기서 언급할 가치가 있습니다: 정렬된 그룹 안에서 평범한 텍스트(따라서 각주도)가 합법적으로 나타날 수 있는 유일한 자리니까요. 유도식 전체를 한정하는 각주는 그 앞 문장에, 상징 하나를 한정하는 각주는 마지막 줄에 붙인 \text{...}에 두세요 — 정렬 안에는 아닙니다.

    \sum_{k=0}^{\infty} c_{k}x^{k} = f(x)^{\,\dagger}
    \sum_{k=0}^{\infty} c_{k}x^{k} = f(x)^{\,\dagger}
    플레이그라운드 데모의 단검은 \dagger를 위첨자로 쓴 것으로, \fnsymbol{footnote}가 페이지의 두 번째 각주를 그리는 방식과 정확히 같습니다.

    여백 노트: marginpar가 예상 못 하게 하는 일

    \marginpar{text}는 보이는 것보다 오래되고 더 부서지기 쉽습니다. 쓴 자리의 여백에 놓이는 것이 아닌데, TeX은 각주를 기록해 나타난 줄에 붙이고 출력 루틴이 상자를 바깥쪽 여백에 놓습니다 — oneside와 twoside 홀수 페이지에서는 왼쪽, 짝수 페이지에서는 오른쪽 여백이죠. 상자가 이미 여백에 있는 것과 겹치면 LaTeX는 나중에 온 것을 \marginparpush만큼 아래로 밀고, 페이지에 자리가 없으면 다음 페이지로 옮겨 Marginpar on page ... moved 경고를 냅니다. 상자에는 페이지 번호 기계도 보이지 않으므로, 길을 잃은 \marginpar는 무시된 것처럼 보여도 실제로는 그냥 여행한 것일 수 있습니다.

    열을 통제하는 세 길이는 \marginparwidth(상자의 너비. 표준 클래스에서는 11pt와 12pt에서 터무니없이 작고, 그래서 "여백 노트가 읽을 수 없다"는 불평이 나온다), \marginparsep(본문과 노트 사이의 요간), \marginparpush(두 노트 사이의 최소 세로 간격)입니다. geometry를 쓰면 앞의 둘을 직접 설정해요 — marginparwidth=2.6cm, marginparsep=8pt — 그리고 용지가 실제로 그 만큼의 바깥 여백을 갖는지 확인해야 하고, 아니면 노트가 인쇄 가능 영역에 앉아 버립니다. 내용 스타일은 marginnote 패키지에서 \marginfont을 통해, 또는 memoir의 클래스 \@margincaption을 통해 들어갑니다.

    \marginpar는 \footnote과 같은 이동 인자 문제를 갖고 하나를 더 지닙니다: 플로트 안이나 \begin{minipage}, 다른 상자 안에서는 쓸 수 없다는 것이죠. 각주가 상자가 아니라 페이지 흐름에 삽입되기 때문입니다. 그래서 각주 강의가 구문만 바꿔 여기서 반복되고, 대체재는 다음에 나오는 패키지입니다.

    Page geometry of the margin column: textwidth, marginparsep, marginparwidth and the vertical push between two notes TWOSIDE SPREAD - NOTES GO TO THE OUTER MARGIN even page (left-hand) note text printed in the left margin the line that carried \marginpar \textwidth marginparwidth odd page (right-hand) note text same box, outer side this time marginparbox is set with its own font: \marginfont, and inside the box \raggedright is customary marginparsep marginparwidth VERTICAL BEHAVIOUR note A, anchored to its line note B marginparpush - the minimum gap; if it does not fit, the note moves down, then to the next page, and the log says "Marginpar on page ... moved" \marginpar: a page insertion, box and float material refused \marginnote: anchored to the line, optional vertical offset, usable inside floats, never migrates to the next page
    본문 블록, 요간, 여백 상자: marginpar는 자기 줄 높이의 바깥쪽 여백에 내려앉고, marginnote는 그 높이를 손으로 밀 수 있게 합니다.
    \documentclass[11pt,twoside]{article}
    
    \usepackage[T1]{fontenc}
    \usepackage{amsmath}
    \usepackage[a4paper,top=2.5cm,bottom=2.8cm,left=3.5cm,right=3.5cm,
                marginparwidth=2.6cm,marginparsep=8pt]{geometry}
    \usepackage{marginnote}
    \usepackage{graphicx}
    
    % The box width is \marginparwidth, the gutter is \marginparsep, and the
    % minimum vertical gap between two notes is \marginparpush - all three are set
    % above through geometry. Style the content of the box with \marginfont:
    \renewcommand{\marginfont}{\scriptsize\raggedright\itshape}
    
    \begin{document}
    \section{Margin material}
    
    A sentence that needs an aside.\marginpar{A \texttt{\string\marginpar} note: it
    is anchored to the line it sits in, and if there is no room it is pushed down
    the margin --- or onto the next page, with a warning.}
    The rule is that \verb|\marginpar| places its box in the \emph{outer} margin of
    a two-sided document, using the vertical position of the line that carried it.
    
    \subsection*{Why marginnote exists}
    The same anchor problem is solved differently by the \texttt{marginnote}
    package: the note is positioned against the current line, it never changes the
    page number, and --- crucially --- it can be used where \verb|\marginpar|
    cannot, such as inside a float or in the caption area.
    \marginnote{This note is set with \texttt{\string\marginnote}, and the optional
    second argument nudges it vertically.}[-2.5ex]
    
    \begin{figure}[htbp]
      \centering
      \setlength{\fboxsep}{22pt}
      \fbox{\parbox{5cm}{\centering a figure}}
      \caption{A float carrying a margin note.}
      \marginnote{A \texttt{\string\marginpar} here would be lost or would trigger
      ``marginpar on page moved''; inside a float, use \texttt{\string\marginnote}.}
    \end{figure}
    
    Two vertical offsets show the difference between the two commands: the first
    note above is tied to the paragraph, the second is tied to the line it was
    written on.\marginpar{Second \texttt{\string\marginpar}.}
    \end{document}

    marginnote, 그리고 노트가 사실은 여백 제목일 때

    marginnote 패키지는 같은 시각적 객체를 세 가지 실무 차이로 제공합니다. \marginnote{text}는 현재 줄을 기준으로 놓고 뒤따르는 페이지로 절대 옮기지 않으며, 선택 두 번째 인자는 세로 오프셋을 받아 \marginnote{...}[-2.5ex]처럼 상자를 제목과 맞추려 끌어 올릴 수 있죠. 그리고 \marginpar가 거부되는 플로트나 상자 재료 안에서도 동작합니다. 표준 클래스에서 \marginline 비슷한 동작을 하게 해 주는 것도 그 패키지이고, 노트 스타일을 설정하는 문서화된 훅은 그 \marginfont입니다.

    대가 패스 하나와 약간의 장부 정리입니다. marginnote는 닻 정보를 저장해 오프셋이 알맞은 페이지에서 해석되게 하므로, 두 번 컴파일되지 않은 문서는 노트를 자기 줄에서 한 페이지 떨어진 곳에 보여 줄 수 있어요. 그리고 노트가 더 이상 페이지 삽입물이 아니므로 긴 여백 문단은 페이지를 넘어 갈라질 기구가 없습니다 — 여백 재료가 그렇게 길다면 그것은 노트가 아니라 두 번째 칼럼이고, 그 도구는 mpar 계열 클래스(memoir, Tufte 풍 템플릿)든 고정 폭 좁은 열을 둔 2단 tabular든입니다.

    어떤 장치를 쓸지 쓰기 전에 결정하세요. 각주는 독자로 하여금 문장을 떠나 아래를 보고 제자리를 다시 찾게 만듭니다: 독자 5퍼센트만 원하는 삽화에는 옳죠. 여백 노트는 눈을 본문 열에 머물게 하고, 주석이나 출처, 단락과 함께 읽히길 원하는 달리는 논평에 옳습니다. 세 번째 선택지인 \quotes 풍 미주는 endnotes 패키지를 통해 모든 것을 끝의 목록으로 옮기고, 각주가 페이지 조판을 망칠 만큼 긴 법률·기록 장치에 대한 정답입니다.

    x^{a},\ y^{b},\ z^{c} \qquad (\text{a separate counter})
    x^{a},\ y^{b},\ z^{c} \qquad (\text{a separate counter})

    조판, 페이지 나눔, 그리고 사라지는 각주

    각주는 좋아하든 아니든 페이지 나눔에 참여합니다. 삽입물은 텍스트 아래에 들어가야 하는 상자라서 긴 각주가 있는 페이지는 텍스트 줄을 그에게 내주고, 들어맞지 않는 각주는 \footins 페널티에 의해 갈라지죠. 텍스트가 페이지 위로 당겨지고 아래에 큰 틈이 보인다면, 그것이 삽입물이 자리 잡는 모습입니다. 손잡이는 \interfootnotelinepenalty(하나의 각주가 페이지를 넘어 갈라지는 것을 더 많은 여백의 대가로 막음), \bottomnumber(갈라진 각주 중 어느 정도가 첫 페이지에 머무르는가), 그리고 bottom 옵션(footmisc에서)이 짧은 페이지 아래로 각주가 기어오르는 것을 막습니다.

    버그처럼 보이는 실패는 그냥 나타나지 않는 각주입니다. 거의 언제나 넷 중 하나: tabular의 p{}형 셀 안의 각주(셀 아래에 찍힘), 플로트 안의 각주(플로트 자기 상자에 삼켜짐), \parbox나 minipage 안의 각주(역시 minipage 카운터), 또는 여러분이 보지 않은 자리에 — 표 목록 같은 — 조판된 이동 인자 안의 각주. 로그를 출력해 Footnote와 marginpar를 검색하세요: 두 부류의 문제 모두 자국을 남깁니다.

    마지막으로 긴 문서를 건전하게 유지하는 두 습관. 두 번 참조될 각주에는 그 안에 \label{fn:sources}를 붙여 라벨을 주고, 다시 쓸 때 \autoref{fn:sources}나 \footref로 가리키지 글을 다시 쓰지 마세요. 그리고 각주 번호를 절대 손으로 매기지 마세요 — 파일 앞쪽에 하나를 삽입하는 순간 아래쪽의 모든 리터럴 번호가 틀어지는데, 이는 정리 환경이 손으로 친 번호에 대해 하는 것과 같은 논거입니다.

    이 강의 요약표

    각 소절의 핵심 코드 한 줄씩. 소절 제목을 눌러 해당 위치로 이동하고 코드는 바로 복사하세요.

    소절 핵심 코드
    \underbrace{\text{mark}}_{\text{in the line}} \quad \longmapsto \quad \underbrace{\text{text}}_{\text{below the rule}}
    \documentclass[a4paper,11pt]{article}
    \documentclass[12pt,a4paper]{article}
    \sum_{k=0}^{\infty} c_{k}x^{k} = f(x)^{\,\dagger}
    \documentclass[11pt,twoside]{article}
    x^{a},\ y^{b},\ z^{c} \qquad (\text{a separate counter})

    자주 하는 실수

    • \footnote를 tabular 셀 안에 그대로 넣는 일. l/c/r 열에서는 각주가 사라지거나 엉뚱한 자리에 떨어질 수 있어요. 셀 안에는 \footnotemark, 플로트 다음에는 \footnotetext를 쓰거나 표를 threeparttable로 바꾸세요.
    • \section{Title\footnote{...}}를 짧은 선택 형태도 \protect도 없이 쓰는 일. LaTeX는 목차용으로 제목을 다시 조판하고 각주 카운터는 두 번 밟히며, hyperref는 중복 정의된 각주를 보고합니다.
    • \fnsymbol{footnote}를 켜 놓고 한 페이지에 열 개의 각주를 쓰는 일. 커널 스위치는 아홉 갈래라 열 번째는 Counter too large로 떨어져 목록을 반복하기 대신 실행이 멈춥니다. 페이지별로 카운터를 다시 시작하거나 그 정도 각주에는 번호를 유지하세요.
    • \marginpar을 플로트 없는 만능 자리라고 짐작하는 실수. minipage, parbox, 플로트 안에서는 동작을 거부하고, 여백 열이 가득 차면 다음 페이지로 이주하는데 로그의 경고 하나만이 그 자취입니다.
    • geometry로 페이지 여백을 정하면서 \marginparwidth를 표준 클래스 기본값에 남겨 두는 일. 각주는 하이픈화까지 꺼진 1.5cm 폭 상자에 인쇄되어 읽을 수 없게 됩니다.
    • p{...} 열 안의 각주가 페이지 아래쪽에 나타나리라 기대하는 일. 그 열은 minipage이므로 각주는 자기 알파벳 카운터와 함께 셀 아래에 조판되고, 페이지 아래로 보내려면 표식/텍스트 짝으로 글을 옮겨야 합니다.

    이 강의에 대한 질문

    LaTeX 표에 각주를 넣으려면 어떻게 하나요?
    셀 안에는 \footnotemark, 표 환경 뒤에는 \footnotetext를 쓰세요. 플로트 안의 완전한 \footnote는 위치가 보장되지 않기 때문입니다. \footnotemark가 이미 카운터를 밟았으므로 첫 \footnotetext 앞에 \addtocounter{footnote}{-1}로 되돌리고 나머지는 \stepcounter로 잇습니다. 각주가 페이지가 아니라 표에 속한다면 threeparttable과 tablenotes를 쓰면 됩니다.
    각주에 숫자 대신 기호를 쓰려면 어떻게 하나요?
    도입부에 한 줄이면 됩니다: \renewcommand{\thefootnote}{\fnsymbol{footnote}}. 별표, 단검, 이중 단검, 절 기호, 문단 기호 열로 전환되는데, 크레딧 각주 하나에 쓰는 전통적인 형식이죠. 열을 처음부터 시작하려면 앞에 \setcounter{footnote}{0}을 두세요. 목록이 반복되기 전에 아홉 개만 담긴다는 점도 기억하고요.
    내 각주가 왜 사라졌나요?
    대개 각주를 방향을 틀어 버리는 자리에 넣은 것입니다. p{} 열이나 minipage는 그 상자 아래쪽에 알파벳으로 찍고, 플로트는 삼킬 수 있으며, 이동 인자는 페이지 대신 목차에 조판할 수 있어요. 로그에서 Footnote과 Marginpar 경고를 확인한 뒤 표식과 텍스트를 분리해 놓으세요.
    marginpar과 marginnote의 차이는 무엇인가요?
    둘 다 여백 열에 씁니다. \marginpar는 커널 명령으로 나타난 줄에 닻을 두고, 여백이 가득 차면 아래로 밀리거나 다음 페이지로 가며, 상자나 플로트 안에서는 동작을 거부합니다. marginnote 패키지의 \marginnote는 현재 줄을 기준으로 놓고, 선택 두 번째 인자로 세로 오프셋을 받으며, 플로트 안에서도 되고 \marginfont으로 상자를 다시 입힐 수 있습니다.
    페이지별로 각주 번호를 매길 수 있나요?
    되지만 커널로는 안 됩니다. \usepackage[perpage]{footmisc}를 로드하세요. 각주를 텍스트 블록 아래에 붙여 두려면 bottom, 표식을 여백으로 걸게 하려면 flushmargin을 더 쓰고, 절별 번호라면 일반 메커니즘인 \counterwithin{footnote}{section}를 대신 쓰면 됩니다.
    각주를 두 번째로 참조하려면 어떻게 하나요?
    footmisc 패키지의 \footref{&lt;number&gt;}를 쓰면 새 번호를 소비하지 않고 이미 있는 표식을 다시 찍습니다. 아니면 \footnotemark[n]과 \footnotetext[n]{...}이 둘 다 번호를 선택 인자로 받으므로 짝을 손으로 몰 수 있어요.

    실시간 놀이터: LaTeX를 편집하고 바로 렌더링

    입력하면 미리보기가 즉시 갱신됩니다. 일부러 깨뜨려서 오류가 어떻게 보이는지도 확인해 보세요.

    KaTeX 오류
    예제 사용해 보기

    이어서 읽기

    같은 주제로 들어가는 세 갈래: 표기 자체, 그것을 가르치는 강의, 그리고 실제로 쓰는 글.