KTUGFaq

KTUG FAQ

·Î±×ÀÎ:
ºñ¹Ð¹øÈ£:
°¡ÀÔ
The person you rejected yesterday could make you happy, if you say yes.
FrontPage › »óÈ£ÂüÁ¶

¸ñÂ÷

1 »óÈ£ÂüÁ¶(Cross-Reference)¶õ?
2 Label°ú Cite Key¸¦ º¸¿©ÁÖ´Â showkeys ÆÐÅ°Áö
3 LabelÀÇ À§Ä¡
4 ¼½¼Ç ÂüÁ¶ ÆÁ

1 »óÈ£ÂüÁ¶(Cross-Reference)¶õ?

cf. ¹øÈ£¹Ù²Ù±âÀÇ Ç׸ñ "ÀÚµ¿ ¹øÈ£ ¸Å±â±â"

LaTeX¿¡¼­´Â Àå, Àý, ¼ÒÀý, ¼ö½Ä, Á¤¸®, Ç¥ÀÇ Ä¸¼Ç, ±×¸²ÀÇ Ä¸¼Ç, °¢ÁÖ, ½ÉÁö¾î´Â ³ª¿­È¯°æÀÇ item µî¿¡ Label(¸í·É¾î \label{Key}·Î ÀÔ·Â)À» ºÙ¿© ³õ°í ÂüÁ¶°¡ ÇÊ¿äÇÑ °÷¿¡¼­ \ref{Key}, \pageref{Key} µîÀÇ ¸í·ÉÀ¸·Î À̵éÀ» ÂüÁ¶ÇÒ ¼ö ÀÖ°Ô ÇÏ¿´´Ù. ¹øÈ£°¡ ºÙÁö ¾ÊÀº ¼ö½Ä¿¡µµ LabelÀ» ºÙ¿© µÎ¸é \pageref{Key}·Î ±× ¼ö½ÄÀÌ ÀÖ´Â ÂʹøÈ£¸¦ ºÒ·¯ ¿Ã ¼ö ÀÖ´Ù. ¿ì¼± \label{ }ÀÇ À§Ä¡°¡ ¸Â¾Æ¾ß Á¦´ë·Î µÈ ¹øÈ£(Counter)¸¦ ºÒ·¯¿Â´Ù(KTUGOperate:22005). ¶Ç \label{ } ¼ÓÀÇ Keyµµ Áߺ¹µÇÁö ¾Ê¾Æ¾ß ÇÑ´Ù. À̸¦ À§ÇÏ¿© ¿©·¯°¡Áö ÀåÄ¡°¡ °í¾ÈµÇ¾î ÀÖ´Ù.-> See WinEdtTip/»óÈ£ÂüÁ¶

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}·Î ÇÏ´Â °ÍÀÌ ¾ÈÀüÇÏ´Ù.


±×¸² ¼³¸í: CTAN:macros/latex/required/tools/showkeys.dtx¸¦ ÄÄÆÄÀÏÇÏ¿© »ý±ä showkeys.pdf 2ÂÊ°ú showkeys.dvi 3ÂÊÀ» È­¸é ĸÃÄÇÑ °ÍÀÌ´Ù. bibitem ¼ÓÀÇ Cite Key¿Í \label{} ¼ÓÀÇ labelÀº »óÀÚ ¼Ó¿¡ ³ªÅ¸³ª°í \cite{} ¼ÓÀÇ Cite Key¿Í \ref{} ¼ÓÀÇ labelÀº ±ê¹ß(¦² ¸ð¾ç)·Î ³ªÅ¸³­´Ù.

Âü°í1: HLaTeX 1.0.1ÀÇ contrib ÆÐÅ°Áö·Î¼­ showhkeys, showhtags°¡ ÀÖ´Ù. ÀÌ°É ¾²¸é Çѱ۷ΠÁÖ¾îÁø ·¹À̺íÀ» º¸¿© ÁØ´Ù. See KTUGContrib:2989

Âü°í2: ¹®ÇåÀοëÀÇ Cite Keyµé¸¸ º¸°í ½ÍÀ¸¸é[2]
 \usepackage[notref]{showkeys}%»óÈ£ÂüÁ¶ÀÇ LabelÀ» º¸¿©ÁÖÁö ¾ÊÀ½
·Î notref ¿É¼ÇÀ» ¾²¸é µÇ°í, »óÈ£ÂüÁ¶ÀÇ Labelµé¸¸ º¸°í ½ÍÀ¸¸é
\usepackage[notcite]{showkeys}%¹®ÇåÀοëÀÇ Cite Key¸¦ º¸¿©ÁÖÁö ¾ÊÀ½
·Î notcite ¿É¼ÇÀ» ½º¸é µÈ´Ù.

----
  • [1] ´ë°³ÀÇ Å¬·¡½º¿¡¼­´Â µðÆúÆ®·Î final ¿É¼ÇÀ¸·Î µÇ¾î ÀÖ´Ù.
  • [2] Cite Keyµé¸¸ º¸¿© ÁÖ´Â showhtags ÆÐÅ°Áöµµ ÀÖ´Ù.



3 LabelÀÇ À§Ä¡

Q1(From KTUGOperate:16095): ½ÇÁ¦ ±×¸² ¹øÈ£ÇÏ°í, º»¹®¿¡¼­ ÂüÁ¶µÈ ±×¸² ¹øÈ£°¡ ¼­·Î ´Ù¸¨´Ï´Ù. ¿¹¸¦µé¾î, ±×¸²¿¡¼­´Â "2.3: ¿¹Á¦"ÀÌ°í, º»¹®¿¡¼­´Â "2.3.1"·Î ³ª¿É´Ï´Ù. subsection ¶§¹®Àϱî¿ä? º»¹®ÀÇ ÂüÁ¶¿¡¼­µµ ±×¸² ¹øÈ£°¡ µ¿ÀÏÇÏ°Ô ³ª¿Àµµ·Ï ÇÏ·Á¸é ¾î¶»°Ô ÇؾßÇÏ´ÂÁö µµ¿ÍÁÖ¼¼¿ä.

A1(From KTUGContrib:2992): figure ȯ°æ ¼Ó¿¡¼­ \labelÀº Àý´ë·Î \caption ¸í·É Àü¿¡ µÎ¾î¼­´Â ¾ÈµË´Ï´Ù. ¶Ç À§ÀÇ ±×¸²¿¡¼­ º¸µíÀÌ showkeys ÆÐÅ°Áö¸¦ ½èÀ» ¶§ \label{...}À» \caption{ }ÀÇ ¹­À½Ç¥ { } ¼Ó¿¡ µÎ´À³Ä ¹Ù·Î µÚ¿¡ µÎ´À³Ä ¾Æ´Ï¸é ´Ù¸¥ °÷¿¡ µÎ´À³Ä¿¡ µû¶ó¼­ "Label Ç¥½Ã"ÀÇ À§Ä¡°¡ ´Þ¸® ³ªÅ¸³³´Ï´Ù.

Q2(From KTUGOperate:21995):
\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 KTUGOperate:22005): ÀÌÀ¯´Â °£´ÜÇÕ´Ï´Ù. \label{eq5.1}ÀÌ ºÙÀº °÷Àº equation ȯ°æ ¹Ù°°ÀÔ´Ï´Ù. \label{eq5.1}¸¦ equation ȯ°æ ³»¿¡ ½á¾ß equationÀÇ ¹øÈ£¸¦ °¡¸£Åµ´Ï´Ù. ÇöÀç´Â \ref{eq5.1}¸¦ ½èÀ» ¶§ \label{eq5.1}ÀÌ ÀÖ´Â °÷ÀÇ Àå, Àý, ¼ÒÀý µîÀÇ ¹øÈ£¸¦ °¡¸£Åµ´Ï´Ù.

4 ¼½¼Ç ÂüÁ¶ ÆÁ

from KTUGOperate:16274

¹®Á¦»óȲ:
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



^
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2007-07-22 17:01:18
Processing time 0.0486 sec