살아가는 이야기

undefined control sequence \theHalgorithm 본문

컴퓨터, 풀어그림

undefined control sequence \theHalgorithm

우균 2009. 10. 29. 04:09

LaTeX을 사용하다가 알고리즘 패키지를 추가한 다음에 갑자기 위와 같은 오류가 발생했다. 한참을 헤메다가 인터넷을 뒤져 원인을 찾았는데, 원인은 hyperref 패키지 때문이었다. hyperref 패키지와 algorithm 패키지를 같이 사용할 경우에는 algorithm 패키지에 대한 usepackage 선언을 hypaerref 패키지 선언 다음에 두어야 한다. 즉 다음과 같은 순서로 해야 한다.

\usepackage{hyperref}
\usepackage{algorithm,algpseudocode}

그럼, 좋은 논문 많이 쓰시기 바랍니다!


If you got the above error message running LaTeX on the document using algorithm package, please, check that your document is also using hyperref package. If it is, the order is important. Just place the usepackage declaration of algorithm after that of hyperref similar to the following!

Comments