MikTex+Texmaker 환경 LaTeX는 bib 파일을 사용하여 참조 단계를 인용합니다.

1. MikTex+Texmaker 환경

        MikTex+Texmaker 환경은 LaTeX 편집 및 컴파일, PDF 미리보기 환경입니다. 아직 설치하지 않으셨다면 [ MiKTeX+Texmaker 설치 ] 블로그를 검색하여 이 환경을 설치하는 것을 권장합니다.

둘째, bib 파일 준비

        파일 이름은 ref.bib 입니다 . 다음 내용을 추가하십시오(데모로).

@article{kaelbling1996survey4rl,
  title={Reinforcement learning: A survey},
  author={Kaelbling, Leslie Pack and Littman, Michael L and Moore, Andrew W},
  journal={Journal of artificial intelligence research},
  volume={4},
  pages={237--285},
  year={1996}
}

3. LaTeX 프로젝트의 main.tex 파일을 준비하고 참조 인용

        ref.bib과 같은 디렉토리에서 main.tex 파일을 생성하고 다음 콘텐츠를 추가합니다(데모로).

\documentclass{article}

\begin{document}

\section{Citation Demo}

On the paper, I read literatures of reinforcement learning in \cite{kaelbling1996survey4rl}. This is the abstract what I read:

This paper surveys the field of reinforcement learning from a computer-science perspective. It is written to be accessible to researchers familiar with machine learning. Both the historical basis of the field and a broad selection of current work are summarized. Reinforcement learning is the problem faced by an agent that learns behavior through trial-and-error interactions with a dynamic environment. The work described here has a resemblance to work in psychology, but differs considerably in the details and in the use of the word ``reinforcement.'' The paper discusses central issues of reinforcement learning, including trading off exploration and exploitation, establishing the foundations of the field via Markov decision theory, learning from delayed reinforcement, constructing empirical models to accelerate learning, making use of generalization and hierarchy, and coping with hidden state. It concludes with a survey of some implemented systems and an assessment of the practical utility of current methods for reinforcement learning.

\bibliography{ref}
\bibliographystyle{ieeetr}

\end{document}

4. 구체적인 단계

        1. 아래와 같이 Texmaker에서 ref.bib 파일을 열고 BibTex로 컴파일합니다.

        2. 아래와 같이 Texmaker에서 main.tex 파일을 열고 BibTex로 컴파일합니다.

        3. main.tex 파일의 경우 아래와 같이 XeLaTeX와 같은 특정 LaTeX 컴파일러로 컴파일합니다.

        4. main.tex 파일의 경우 아래와 같이 BibTex를 사용하여 다시 컴파일합니다.

        5. main.tex 파일의 경우 아래와 같이 XeLaTeX를 사용하여 다시 컴파일합니다.

        6. main.tex 파일의 경우 XeLaTeX를 사용하여 다시 컴파일하면 아래 그림과 같이 최종적으로 오류가 보고되지 않습니다.

        7. 이때 PDF를 보면 참고문헌과 참고문헌 목록이 정상적으로 표시됩니다.

5. 결론

        일반적으로 MikTex+Texmaker 환경과 같은 오프라인 LaTeX 편집 및 컴파일 환경을 사용하는 것은 참조 측면에서 너무 형이상학적입니다. 왜 이렇게 복잡한지 정말 이해가 안됩니다. 사용 기술은 다음과 같이 요약됩니다.

        ① BibTex를 사용하여 bib 파일과 tex 파일을 차례로 컴파일합니다.

        ② XeLaTex와 BibTex를 사용하여 각각 tex 파일을 컴파일합니다.

        ③XeLaTex를 사용하여 tex 파일을 두 번 컴파일합니다.

        ④ PDF를 열람하면 참고문헌이 정상적으로 표시됩니다. 그래도 안되면 main.tex 파일 디렉토리에 main.bbl 파일이 생성되어 있는지 확인하는 것을 권장합니다. 그렇다면 정상적으로 표시되어야 합니다. 그렇지 않은 경우 다른 문제가 발생했는지 생각해 보십시오.

추천

출처blog.csdn.net/qq_36158230/article/details/128968388