![](/wiki/imgs/ktug-logo.gif)
KTUG FAQ
Good news from afar can bring you a welcome visitor.
FrontPage › »óÈ£ÂüÁ¶
r1.2°ú ÇöÀç ¹öÀüÀÇ Â÷ÀÌÁ¡
@@ -1,21 +1,127 @@
[[TableOfContents]]
== »óÈ£ÂüÁ¶(Cross-Reference)¶õ? ==
cf. [¹øÈ£¹Ù²Ù±â]ÀÇ Ç׸ñ "ÀÚµ¿ ¹øÈ£ ¸Å±â±â"
LaTeX¿¡¼´Â Àå, Àý, ¼ÒÀý, ¼ö½Ä, Á¤¸®, Ç¥
ÀÇ Ä¸¼Ç, ±×¸²
ÀÇ Ä¸¼Ç, °¢ÁÖ, ½ÉÁö¾î´Â ³ª¿È¯°æÀÇ item µî¿¡
µµ Label
(¸í·É¾î `\label{Key}`·Î ÀÔ·Â)À» ºÙ¿© ³õ°í ÂüÁ¶°¡ ÇÊ¿äÇÑ °÷¿¡¼
´Â
`\ref
{Key}`,
`\pageref
{Key}` µîÀÇ ¸í·ÉÀ¸·Î À̵éÀ» ÂüÁ¶ÇÒ ¼ö ÀÖ°Ô ÇÏ¿´´Ù. ¹øÈ£°¡ ºÙÁö ¾ÊÀº ¼ö½Ä¿¡µµ LabelÀ» ºÙ¿© µÎ¸é
`\pageref
À¸
{Key}`·Î ±× ¼ö½ÄÀÌ
ÀÖ´Â ÂʹøÈ£¸¦ ºÒ·¯ ¿Ã ¼ö ÀÖ´Ù.
±×
¿ì¼± `\label{ }`ÀÇ À§Ä¡°¡ ¸Â¾Æ¾ß Á¦´ë·Î µÈ ¹øÈ£(Counter)¸¦ ºÒ·¯
³ª ¸¹Àº labelÀ» ÀÏÀÏÀÌ ±â¾ïÇÏ´Â °ÍÀº ¸Å¿ì Èûµé
¿Â´Ù
(KTUGOperate:22005'''''').
±×·¡¼
¶Ç `\label
{ }` ¼ÓÀÇ Keyµµ Áߺ¹µÇÁö ¾Ê¾Æ¾ß ÇÑ´Ù. ÀÌ
³ª
[[Include(ShowKeysPackage)]]
== LabelÀÇ À§Ä¡ ==
'''
±×¸² ¼³¸í
Q1'''(From KTUGOperate:
16095'''''')'''
CTAN:
macros/latex/required/tools/showkeys.dtx ¸¦ ÄÄÆÄÀÏ
''' ½ÇÁ¦ ±×¸² ¹øÈ£ÇÏ
¿© »ý±ä showkeys
°í, º»¹®¿¡¼ ÂüÁ¶µÈ ±×¸² ¹øÈ£°¡ ¼·Î ´Ù¸¨´Ï´Ù.
pdf
¿¹¸¦µé¾î, ±×¸²¿¡¼´Â "2
ÂÊ°ú showkeys.
dvi 3
ÂÊÀ» ȸé ĸÃÄÇÑ °Í
: ¿¹Á¦"ÀÌ
°í, º»¹®¿¡¼´Â "2.3.1"·Î ³ª¿É´Ï´Ù.
'''
Q:
Q2''' (From KTUGOperate:
16095
21995'''''')
½ÇÁ¦ ±×¸² ¹øÈ£ÇÏ°í
''':'''
{{{
\begin{equation}
f(x) =
\begin{pmatrix}
f_1(x_1,
º»¹®¿¡¼ ÂüÁ¶µÈ ±×¸² ¹øÈ£°¡ ¼·Î ´Ù¸¨´Ï´Ù. ¿¹¸¦µé¾î
\dots,
±×¸²¿¡¼´Â "2.3: ¿¹Á¦"ÀÌ°í
x_N) \\
\vdots \\
f_N(x_1,
\dots, x_N) \\
\begin{pmatrix}
i \\ %
v \\
e
\end{pmatrix}
= 0
\end{equation}
\label{eq5.1
"·Î ³ª¿É´Ï´Ù. subsection ¶§¹®Àϱî¿ä? º»¹®ÀÇ ÂüÁ¶¿¡¼µµ ±×¸² ¹øÈ£°¡ µ¿ÀÏÇÏ°Ô ³ª¿Àµµ·Ï ÇÏ·Á¸é ¾î¶»°Ô ÇؾßÇÏ´ÂÁö µµ¿ÍÁÖ¼¼¿ä.
} %<<<<<<<<<<<<<<
where $f$ is a function mapping the unknown vector $x$, a vector of real numbers of
dimension $N$. The first question to ask is wether (\ref{eq5.1}) has a solution and, if
}}}
°ú °°ÀÌ label µµ eq5.1 ·Î, ref µµ eq5.1 ·Î Çߴµ¥, ÀÌ»óÇÏ°Ôµµ ¹øÈ£°¡ ´Ù¸£°Ô ³ª¿À³×¿ä?
¹«¾ùÀÌ À߸øµÇ¾úÀ»±î¿ä?
'''
A:
A2''' (From
KTUGContrib
KTUGOperate:
2992
22005'''''')
showkeys
''':''' ÀÌÀ¯´Â °£´ÜÇÕ´Ï´Ù.
dvi 3ÂÊ(À§±×¸² ÂüÁ¶)¿¡ º¸¸é figure
\label{eq5.1}ÀÌ ºÙÀº °÷Àº equation ȯ°æ
¼Ó
¹Ù°°ÀÔ´Ï´Ù. \label{eq5.1}¸¦ equation ȯ°æ ³»¿¡
¼
½á¾ß equationÀÇ ¹øÈ£¸¦ °¡¸£Åµ´Ï´Ù. ÇöÀç´Â \ref{eq5.1}¸¦ ½èÀ» ¶§ \label
˼
{eq5.1}ÀÌ ÀÖ´Â °÷ÀÇ Àå, Àý
, ¼ÒÀý
µîÀÇ ¹øÈ£¸¦ °¡¸£Åµ´Ï´Ù.
== ¼½¼Ç ÂüÁ¶ ÆÁ ==
from KTUGOperate:16274
¹®Á¦»óȲ:
{{|
report Ŭ·¡½º ¿ø·¡ ¸ð¾çÀÎ,
{{{
Á¦1Àå
Á¦1Àý
1.1
1.1.1
}}}
ÀÌ·± Çü½ÄÀ»
{{{
Á¦1Àå
Á¦1Àý
1.
1.1
}}}
ÀÌ·±½ÄÀ¸·Î ¹Ù²Ù¾ú´Âµ¥¿ä, ¸ñÂ÷¿Í º»¹®¿¡´Â Àß ³ª¿À´Âµ¥, ÂüÁ¶ÇÒ ¶§ ¾à °£ÀÇ ¹®Á¦°¡ »ý±é´Ï´Ù.
¿¹¸¦µé¾î, Á¦4Àå Á¦2Àý ³»¿ë¿¡¼ Á¦4Àå Á¦1ÀýÀ» \ref{} Çϸé,
¿ø·¡´ë·Î
¶ó¸é 4.2Àý ÀÌ·¸°Ô ³ª¿Í¾ß ÇÏÀݾƿä.
{{{
¸ð¸ð¸ð(\
cation ¸í·É
ref{}Àý ÂüÁ¶)
ÀÌ·¸°Ô ÀÔ·ÂÇϸé,
ȸ鿡
µÎ¾î¼´Â
¾ÈµÈ´Ù°í
{{{
¸ð¸ð¸ð(2.Àý ÂüÁ¶)
}}}
ÇÏ
¿´³×¿ä
°í ³ª¿É´Ï´Ù.
¹øÈ£Çü½ÄÀ» ¹Ù²ã¼ ±×
·±°Ç°¡¿ä...¾Æ¹«¸®
¼öÁ¤ÇغÁµµ ¾Õ¿¡ Å« Àý ¹øÈ£°¡
¾È ºÙ°í
\label
, µÚ¿¡ Á¡ÀÌ
¾È ¾ø¾îÁý´Ï´Ù...
|}}
answered by Ä¿²Þ.
LaTeX Companion¿¡ °£´ÜÇÑ Æ®¸¯ÀÌ Àִµ¥, ±×°É Èä³»³»¼ ¸¸µé¾î º¸¾Ò½À´Ï´Ù.
\
cation
ref{
something}
ÀÇ ¹À½Ç¥
°¡ \label{
something}
¼Ó
°ú °°Àº section¿¡
µÎ´À³Ä ¹Ù·Î µÚ
ÀÖÀ¸¸é
subsection ¹øÈ£¸¸ referÇÏ°í, ´Ù¸¥ section¿¡
µÎ´À³Ä
ÀÖÀ¸¸é section ¹øÈ£±îÁö
ÇÏÁö¸¸ ÀÌ »óÅ·δ subsection 1.1. ÀÌ ¾îµð¸¦ ¸»ÇÏ´ÂÁö ±Ý¹æ ´«¿¡
µÎ´À³Ä¿¡ µû¶ó¼ labelÀÇ Ç¥½Ã°¡ ´Þ¸® ³ªÅ¸³ª
µé¾î¿ÀÁö´Â ¾Ê³×¿ä.
Äڵ带 Á¶±Ý ´õ ¼Õº¸¸é ÁÁÀ» µí Çѵ¥...
°³ÀÎÀûÀÎ ÀÇ°ßÀÔ´Ï´Ù¸¸, subsection Á¤µµ´Â "1.1"°ú °°ÀÌ Ç¥ÇöÇÏ´Â °Íµµ
ÁÁÀ» °Í °°½À´Ï´Ù.
{{{#!vim tex
%%-------------------------------------------------------------------
\documentclass{article}
\usepackage{ifthen}
\usepackage{varioref}
\renewcommand\thesubsection{\arabic{subsection}.}
\labelformat{subsection}{\protect\iscurrentsection{\thesection}#1}
\newcommand{\iscurrentsection}[1]{%
\ifthenelse{\equal{#1}{\thesection}}{}{#1.}}
\begin{document}
\section{First section}
Haha
\subsection{First subsection}\label{section:first}
Hoho
Subsection~\ref{section:first}
\section{Second section}
Hihi
\subsection{Second subsection}
herher
Subsection~\ref{section:first}
\end{document}
}}}
attachment:section.gif
----
CategoryManual
[ÆíÁý]
1 »óÈ£ÂüÁ¶(Cross-Reference)¶õ? ¶
cf. ¹øÈ£¹Ù²Ù±âÀÇ Ç׸ñ "ÀÚµ¿ ¹øÈ£ ¸Å±â±â"
LaTeX¿¡¼´Â Àå, Àý, ¼ÒÀý, ¼ö½Ä, Á¤¸®, Ç¥ÀÇ Ä¸¼Ç, ±×¸²ÀÇ Ä¸¼Ç, °¢ÁÖ, ½ÉÁö¾î´Â ³ª¿È¯°æÀÇ item µî¿¡ Label(¸í·É¾î \label{Key}·Î ÀÔ·Â)À» ºÙ¿© ³õ°í ÂüÁ¶°¡ ÇÊ¿äÇÑ °÷¿¡¼ \ref{Key}, \pageref{Key} µîÀÇ ¸í·ÉÀ¸·Î À̵éÀ» ÂüÁ¶ÇÒ ¼ö ÀÖ°Ô ÇÏ¿´´Ù. ¹øÈ£°¡ ºÙÁö ¾ÊÀº ¼ö½Ä¿¡µµ LabelÀ» ºÙ¿© µÎ¸é \pageref{Key}·Î ±× ¼ö½ÄÀÌ ÀÖ´Â ÂʹøÈ£¸¦ ºÒ·¯ ¿Ã ¼ö ÀÖ´Ù. ¿ì¼± \label{ }ÀÇ À§Ä¡°¡ ¸Â¾Æ¾ß Á¦´ë·Î µÈ ¹øÈ£(Counter)¸¦ ºÒ·¯¿Â´Ù(
22005). ¶Ç \label{ } ¼ÓÀÇ Keyµµ Áߺ¹µÇÁö ¾Ê¾Æ¾ß ÇÑ´Ù. À̸¦ À§ÇÏ¿© ¿©·¯°¡Áö ÀåÄ¡°¡ °í¾ÈµÇ¾î ÀÖ´Ù.-> See WinEdtTip/»óÈ£ÂüÁ¶
![KTUGOperate: KTUGOperate:](/wiki/imgs/interwiki/ktugoperate-16.png)
[ÆíÁý]
2 Label°ú Cite Key¸¦ º¸¿©ÁÖ´Â showkeys ÆÐÅ°Áö ¶
TeX ÆÄÀÏÀ» ÆíÁýÇÒ ¶§ ¸¹Àº Label°ú Bibitem À» ÀÏÀÏÀÌ ±â¾ïÇÏ´Â °ÍÀº ¸Å¿ì Èûµé´Ù. ÇÁ¸®¾Úºí¿¡
\usepackage{showkeys}¸¦ ³ÖÀ¸¸é ¸í·É \label{}, \ref{}, \pageref{} µîÀÇ ¹À½Ç¥ {} ¼Ó¿¡ µé¾î°£ Label°ú Bibitem ±×¸®°í \cite{}, \citep{} µîÀÇ ¹À½Ç¥ {} ¼Ó¿¡ µé¾î°£ Cite Key¸¦ ¸ðµÎ º¸¿© ÁØ´Ù. ->See »óÈ£ÂüÁ¶, Âü°í¹®ÇåÀοë
Ŭ·¡½º ¿É¼Ç final[1]À» ¾²¸é showkeys ÆÐÅ°Áö°¡ ÀÛµ¿ÇÏÁö ¾Ê°Å³ª ¿À·ù ¸Þ½ÃÁö°¡ ³ªÅ¸³´Ù. ±×·¡¼ ÆíÁý µµÁß¿¡´Â Ŭ·¡½º ¿É¼Ç draft¸¦ ¾²°í, ÃÖÁ¾ ÄÄÆÄÀÏ¿¡¼´Â \usepackage{showkeys}¸¦ ÁÖ¼®Ã³¸®ÇÏ¿© %\usepackage{showkeys}·Î ÇÏ´Â °ÍÀÌ ¾ÈÀüÇÏ´Ù.
±×¸² ¼³¸í:
macros/latex/required/tools/showkeys.dtx¸¦ ÄÄÆÄÀÏÇÏ¿© »ý±ä showkeys.pdf 2ÂÊ°ú showkeys.dvi 3ÂÊÀ» ȸé ĸÃÄÇÑ °ÍÀÌ´Ù.
bibitem ¼ÓÀÇ Cite Key¿Í \label{} ¼ÓÀÇ labelÀº »óÀÚ ¼Ó¿¡ ³ªÅ¸³ª°í \cite{} ¼ÓÀÇ Cite Key¿Í \ref{} ¼ÓÀÇ labelÀº ±ê¹ß(¦² ¸ð¾ç)·Î ³ªÅ¸³´Ù.
![CTAN: CTAN:](/wiki/imgs/interwiki/ctan-16.png)
Âü°í1: HLaTeX 1.0.1ÀÇ contrib ÆÐÅ°Áö·Î¼ showhkeys, showhtags°¡ ÀÖ´Ù. ÀÌ°É ¾²¸é Çѱ۷ΠÁÖ¾îÁø ·¹À̺íÀ» º¸¿© ÁØ´Ù. See
2989
![KTUGContrib: KTUGContrib:](/wiki/imgs/interwiki/ktugcontrib-16.png)
Âü°í2: ¹®ÇåÀοëÀÇ Cite Keyµé¸¸ º¸°í ½ÍÀ¸¸é[2]
·Î notref ¿É¼ÇÀ» ¾²¸é µÇ°í, »óÈ£ÂüÁ¶ÀÇ Labelµé¸¸ º¸°í ½ÍÀ¸¸é
\usepackage[notref]{showkeys}%»óÈ£ÂüÁ¶ÀÇ LabelÀ» º¸¿©ÁÖÁö ¾ÊÀ½
\usepackage[notcite]{showkeys}%¹®ÇåÀοëÀÇ Cite Key¸¦ º¸¿©ÁÖÁö ¾ÊÀ½·Î notcite ¿É¼ÇÀ» ½º¸é µÈ´Ù.
[ÆíÁý]
3 LabelÀÇ À§Ä¡ ¶
Q1(From
16095): ½ÇÁ¦ ±×¸² ¹øÈ£ÇÏ°í, º»¹®¿¡¼ ÂüÁ¶µÈ ±×¸² ¹øÈ£°¡ ¼·Î ´Ù¸¨´Ï´Ù. ¿¹¸¦µé¾î, ±×¸²¿¡¼´Â "2.3: ¿¹Á¦"ÀÌ°í, º»¹®¿¡¼´Â "2.3.1"·Î ³ª¿É´Ï´Ù. subsection ¶§¹®Àϱî¿ä? º»¹®ÀÇ ÂüÁ¶¿¡¼µµ ±×¸² ¹øÈ£°¡ µ¿ÀÏÇÏ°Ô ³ª¿Àµµ·Ï ÇÏ·Á¸é ¾î¶»°Ô ÇؾßÇÏ´ÂÁö µµ¿ÍÁÖ¼¼¿ä.
![KTUGOperate: KTUGOperate:](/wiki/imgs/interwiki/ktugoperate-16.png)
A1(From
2992): figure ȯ°æ ¼Ó¿¡¼ \labelÀº Àý´ë·Î \caption ¸í·É Àü¿¡ µÎ¾î¼´Â ¾ÈµË´Ï´Ù. ¶Ç À§ÀÇ ±×¸²¿¡¼ º¸µíÀÌ showkeys ÆÐÅ°Áö¸¦ ½èÀ» ¶§ \label{...}À» \caption{ }ÀÇ ¹À½Ç¥ { } ¼Ó¿¡ µÎ´À³Ä ¹Ù·Î µÚ¿¡ µÎ´À³Ä ¾Æ´Ï¸é ´Ù¸¥ °÷¿¡ µÎ´À³Ä¿¡ µû¶ó¼ "Label Ç¥½Ã"ÀÇ À§Ä¡°¡ ´Þ¸® ³ªÅ¸³³´Ï´Ù.
![KTUGContrib: KTUGContrib:](/wiki/imgs/interwiki/ktugcontrib-16.png)
Q2(From
21995):
![KTUGOperate: KTUGOperate:](/wiki/imgs/interwiki/ktugoperate-16.png)
\begin{equation} f(x) = \begin{pmatrix} f_1(x_1, \dots, x_N) \\ \vdots \\ f_N(x_1, \dots, x_N) \\ \end{pmatrix} \begin{pmatrix} i \\ % v \\ e \end{pmatrix} = 0 \end{equation} \label{eq5.1} %<<<<<<<<<<<<<< where $f$ is a function mapping the unknown vector $x$, a vector of real numbers of dimension $N$. The first question to ask is wether (\ref{eq5.1}) has a solution and, if°ú °°ÀÌ label µµ eq5.1 ·Î, ref µµ eq5.1 ·Î Çߴµ¥, ÀÌ»óÇÏ°Ôµµ ¹øÈ£°¡ ´Ù¸£°Ô ³ª¿À³×¿ä? ¹«¾ùÀÌ À߸øµÇ¾úÀ»±î¿ä?
A2(From
22005): ÀÌÀ¯´Â °£´ÜÇÕ´Ï´Ù. \label{eq5.1}ÀÌ ºÙÀº °÷Àº equation ȯ°æ ¹Ù°°ÀÔ´Ï´Ù. \label{eq5.1}¸¦ equation ȯ°æ ³»¿¡ ½á¾ß equationÀÇ ¹øÈ£¸¦ °¡¸£Åµ´Ï´Ù. ÇöÀç´Â \ref{eq5.1}¸¦ ½èÀ» ¶§ \label{eq5.1}ÀÌ ÀÖ´Â °÷ÀÇ Àå, Àý, ¼ÒÀý
µîÀÇ ¹øÈ£¸¦ °¡¸£Åµ´Ï´Ù.
![KTUGOperate: KTUGOperate:](/wiki/imgs/interwiki/ktugoperate-16.png)
[ÆíÁý]
4 ¼½¼Ç ÂüÁ¶ ÆÁ ¶
from
16274
![KTUGOperate: KTUGOperate:](/wiki/imgs/interwiki/ktugoperate-16.png)
¹®Á¦»óȲ:
report Ŭ·¡½º ¿ø·¡ ¸ð¾çÀÎ,
Á¦1Àå Á¦1Àý 1.1 1.1.1ÀÌ·± Çü½ÄÀ» Á¦1Àå Á¦1Àý 1. 1.1ÀÌ·±½ÄÀ¸·Î ¹Ù²Ù¾ú´Âµ¥¿ä, ¸ñÂ÷¿Í º»¹®¿¡´Â Àß ³ª¿À´Âµ¥, ÂüÁ¶ÇÒ ¶§ ¾à °£ÀÇ ¹®Á¦°¡ »ý±é´Ï´Ù. ¿¹¸¦µé¾î, Á¦4Àå Á¦2Àý ³»¿ë¿¡¼ Á¦4Àå Á¦1ÀýÀ» \ref{} Çϸé, ¿ø·¡´ë·Î¶ó¸é 4.2Àý ÀÌ·¸°Ô ³ª¿Í¾ß ÇÏÀݾƿä. ¸ð¸ð¸ð(\ref{}Àý ÂüÁ¶)ÀÌ·¸°Ô ÀÔ·ÂÇϸé, ȸ鿡´Â ¸ð¸ð¸ð(2.Àý ÂüÁ¶)ÇÏ°í ³ª¿É´Ï´Ù. ¹øÈ£Çü½ÄÀ» ¹Ù²ã¼ ±×·±°Ç°¡¿ä...¾Æ¹«¸® ¼öÁ¤ÇغÁµµ ¾Õ¿¡ Å« Àý ¹øÈ£°¡ ¾È ºÙ°í, µÚ¿¡ Á¡ÀÌ ¾È ¾ø¾îÁý´Ï´Ù... |
answered by Ä¿²Þ.
LaTeX Companion¿¡ °£´ÜÇÑ Æ®¸¯ÀÌ Àִµ¥, ±×°É Èä³»³»¼ ¸¸µé¾î º¸¾Ò½À´Ï´Ù.
\ref{something}°¡ \label{something}°ú °°Àº section¿¡ ÀÖÀ¸¸é
subsection ¹øÈ£¸¸ referÇÏ°í, ´Ù¸¥ section¿¡ ÀÖÀ¸¸é section ¹øÈ£±îÁö
referÇÏ´Â ÄÚµåÀÔ´Ï´Ù.
ÇÏÁö¸¸ ÀÌ »óÅ·δ subsection 1.1. ÀÌ ¾îµð¸¦ ¸»ÇÏ´ÂÁö ±Ý¹æ ´«¿¡
µé¾î¿ÀÁö´Â ¾Ê³×¿ä. Äڵ带 Á¶±Ý ´õ ¼Õº¸¸é ÁÁÀ» µí Çѵ¥...
°³ÀÎÀûÀÎ ÀÇ°ßÀÔ´Ï´Ù¸¸, subsection Á¤µµ´Â "1.1"°ú °°ÀÌ Ç¥ÇöÇÏ´Â °Íµµ
ÁÁÀ» °Í °°½À´Ï´Ù.
%%------------------------------------------------------------------- \documentclass{article} \usepackage{ifthen} \usepackage{varioref} \renewcommand\thesubsection{\arabic{subsection}.} \labelformat{subsection}{\protect\iscurrentsection{\thesection}#1} \newcommand{\iscurrentsection}[1]{% \ifthenelse{\equal{#1}{\thesection}}{}{#1.}} \begin{document} \section{First section} Haha \subsection{First subsection}\label{section:first} Hoho Subsection~\ref{section:first} \section{Second section} Hihi \subsection{Second subsection} herher Subsection~\ref{section:first} \end{document}
![section.gif section.gif](/faq/%BB%F3%C8%A3%C2%FC%C1%B6?action=download&value=section.gif)