레슨 6 / 8·20분
참고문헌과 상호참조
학술 논문에서 참고문헌 관리는 필수적입니다. LaTeX는 BibTeX/BibLaTeX를 통해 참고문헌을 체계적으로 관리하고, 본문에서 쉽게 인용할 수 있는 강력한 시스템을 제공합니다.
BibTeX 참고문헌 파일
latex
% references.bib 파일 내용
@article{kim2024deep,
author = {Kim, Minsu and Lee, Jiyoung},
title = {Deep Learning for Natural Language Processing},
journal = {Journal of AI Research},
year = {2024},
volume = {15},
number = {3},
pages = {201--225},
}
@book{bishop2006pattern,
author = {Bishop, Christopher M.},
title = {Pattern Recognition and Machine Learning},
publisher = {Springer},
year = {2006},
isbn = {978-0387310732},
}
@inproceedings{vaswani2017attention,
author = {Vaswani, Ashish and Shazeer, Noam and others},
title = {Attention Is All You Need},
booktitle = {Advances in Neural Information Processing Systems},
year = {2017},
pages = {5998--6008},
}
@misc{tensorflow2023,
author = {Google Brain Team},
title = {TensorFlow: An Open Source Machine Learning Framework},
year = {2023},
url = {https://www.tensorflow.org},
}본문에서 인용하기
latex
\documentclass{article}
\usepackage{kotex}
\begin{document}
% 기본 인용
딥러닝은 자연어 처리 분야에서 혁신을 가져왔다~\cite{kim2024deep}.
% 여러 논문 동시 인용
최근 연구들~\cite{kim2024deep, vaswani2017attention}에 따르면...
% 저자 이름 포함 인용 (natbib 패키지 사용 시)
\usepackage{natbib}
\citet{bishop2006pattern}은 패턴 인식의 기초를 다루었다.
이 방법은 이전 연구~\citep{vaswani2017attention}를 기반으로 한다.
% 참고문헌 목록 출력
\bibliographystyle{plain} % 스타일: plain, unsrt, alpha, abbrv
\bibliography{references} % .bib 파일 이름 (확장자 생략)
\end{document}BibLaTeX (최신 방식)
latex
\documentclass{article}
\usepackage[backend=biber, style=numeric]{biblatex}
\addbibresource{references.bib}
\begin{document}
% 인용
이 결과는 선행 연구~\cite{kim2024deep}와 일치한다.
\textcite{bishop2006pattern}의 프레임워크를 적용하였다.
% 읽었지만 인용하지 않은 문헌 포함
\nocite{tensorflow2023}
% 참고문헌 목록 출력
\printbibliography[title={참고문헌}]
\end{document}
% 컴파일 순서:
% 1. pdflatex main.tex
% 2. biber main
% 3. pdflatex main.tex
% 4. pdflatex main.tex상호참조 (Cross-referencing)
latex
\usepackage{hyperref} % 클릭 가능한 링크 생성
% 라벨 지정
\section{서론}
\label{sec:intro}
\section{실험}
\label{sec:experiment}
% 참조하기
제~\ref{sec:intro}장에서 언급한 바와 같이...
자세한 내용은 \ref{sec:experiment}절을 참고하라.
% 페이지 참조
이 내용은 \pageref{sec:experiment} 페이지에 있다.
% hyperref 옵션 설정
\usepackage[
colorlinks=true,
linkcolor=blue,
citecolor=green,
urlcolor=red
]{hyperref}
% URL 삽입
\url{https://www.latex-project.org}
\href{https://www.latex-project.org}{LaTeX 공식 사이트}💡
BibLaTeX + Biber 조합이 현재 권장되는 방식입니다. BibTeX보다 유니코드 지원이 좋고, 다양한 인용 스타일을 제공합니다. 참고문헌이 올바르게 표시되려면 컴파일을 여러 번 실행해야 합니다: pdflatex -> biber -> pdflatex -> pdflatex.