
내 프로그램을 문서화하기 위해 Doxygen을 사용하고 있습니다. Doxygen은 많은 tex 파일을 생성하고 tex 파일에서 pdf 파일을 생성하기 위해 TeX Live를 사용하고 있습니다.
이전에는 작동했지만 지금은 소스 코드를 약간 변경한 후 라텍스에 대한 컴파일 경고가 표시되고 Doxygen 문서에는 문제가 없음에도 불구하고 컴파일에 실패합니다.
새로운 경고는 다음과 같습니다.
`LaTeX Warning: Label(s) may have changed. Rerun to get cross-references right.
그리고 다음과 같은 많은 경고가 있습니다.
`LaTeX Warning: Reference `LastPage' on page 60 undefined on input line 170`.
컴파일은 다음으로 끝납니다.
make: *** [refman.pdf] Error 1
exit code: 2(0 for SUCCESS).loggingLevel: 20. Build will exit.
몇번을 재실행해봤는데 변화가 없네요. 누구든지 도와줄 수 있나요?
편집: 이것은 내 기본 tex 파일입니다.
\documentclass[oneside]{book}
% Packages required by doxygen
\usepackage{calc}
\usepackage{doxygen}
\usepackage{graphicx}
\usepackage[utf8]{inputenc}
\usepackage{makeidx}
\usepackage{multicol}
\usepackage{multirow}
\usepackage{textcomp}
\usepackage[table]{xcolor}
% Font selection
\usepackage[T1]{fontenc}
\usepackage{mathptmx}
\usepackage[scaled=.90]{helvet}
\usepackage{courier}
\usepackage{amssymb}
\usepackage{sectsty}
\renewcommand{\familydefault}{\sfdefault}
\allsectionsfont{%
\fontseries{bc}\selectfont%
\color{darkgray}%
}
\renewcommand{\DoxyLabelFont}{%
\fontseries{bc}\selectfont%
\color{darkgray}%
}
% Page & text layout
\usepackage{geometry}
\geometry{%
a4paper,%
top=2.5cm,%
bottom=3.5cm,%
left=2.5cm,%
right=2.5cm,%
headheight=2.5cm%
}
\tolerance=750
\hfuzz=15pt
\hbadness=750
\setlength{\emergencystretch}{15pt}
\setlength{\parindent}{0cm}
\setlength{\parskip}{0.2cm}
\makeatletter
\renewcommand{\paragraph}{%
\@startsection{paragraph}{4}{0ex}{-1.0ex}{1.0ex}{%
\normalfont\normalsize\bfseries\SS@parafont%
}%
}
\renewcommand{\subparagraph}{%
\@startsection{subparagraph}{5}{0ex}{-1.0ex}{1.0ex}{%
\normalfont\normalsize\bfseries\SS@subparafont%
}%
}
\makeatother
% Headers & footers
\usepackage{fancyhdr}
\usepackage{lastpage}
\pagestyle{fancy}
\lhead{\includegraphics[width=3cm]{doxygen-logo-header.jpg}}
\rhead{Page \thepage \ of\ \pageref{LastPage}}
\chead{\fancyplain{}{massage}}
\lfoot{\fancyplain{}{massage2}}
\cfoot{\fancyplain{}{massage3}}
\rfoot{\fancyplain{}{massage4}}
\renewcommand{\footrulewidth}{0.4pt}
\renewcommand{\chaptermark}[1]{%
\markboth{#1}{}%
}
\renewcommand{\sectionmark}[1]{%
\markright{\thesection\ #1}%
}
% Indices & bibliography
\usepackage{natbib}
\usepackage[titles]{tocloft}
\setcounter{tocdepth}{3}
\setcounter{secnumdepth}{5}
\makeindex
% Hyperlinks (required, but should be loaded last)
\usepackage{ifpdf}
\ifpdf
\usepackage[pdftex,pagebackref=true]{hyperref}
\else
\usepackage[ps2pdf,pagebackref=true]{hyperref}
\fi
\hypersetup{%
colorlinks=true,%
linkcolor=blue,%
citecolor=blue,%
unicode%
}
% Custom commands
\newcommand{\clearemptydoublepage}{%
\newpage{\pagestyle{empty}\cleardoublepage}%
}
%===== C O N T E N T S =====
\begin{document}
% Titlepage & ToC
\pagestyle{empty}
\hypersetup{pageanchor=false}
\pagenumbering{roman}
\begin{titlepage}
\vspace*{7cm}
\begin{center}%
\includegraphics{doxygen-logo-pdf.jpg}\\[1cm]
{\Huge Library Reference }\\
\vspace*{1.5cm}
{\Large COMPANY}\\
{\large VERSION }\\
\vspace*{1cm}
\end{center}
\end{titlepage}
\fancypagestyle{plain}{\fancyhf{}%
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}}
\tableofcontents
\clearemptydoublepage
\pagenumbering{arabic}
\hypersetup{pageanchor=true}
\pagestyle{fancy}
%--- Begin generated contents ---
\chapter{Module Index}
\input{modules}
\chapter{Data Structure Index}
\input{annotated}
\chapter{File Index}
\input{files}
\chapter{Module Documentation}
\input{group}
\chapter{Data Structure Documentation}
\input{struct}
\chapter{File Documentation}
\input{file}
%--- End generated contents ---
% Index
\newpage
\phantomsection
\addcontentsline{toc}{part}{Index}
\printindex
\end{document}
페이지 및 텍스트 레이아웃에 문제가 있는 것 같습니다. "bottom=3.5cm,%"를 "bottom=2.5cm,%"로 변경하면 작동합니다. 그게 문제인지 아니면 실제 문제를 해결하는 유일한 방법인지는 모르겠습니다. 소스 파일이 자주 변경되고 매번 tex 파일을 변경하고 싶지 않기 때문에 오랜 시간 동안 해결책을 찾고 있습니다. .
내 tex 파일에서 문제를 발견하거나 내 문제의 원인에 대한 아이디어가 있으면 기꺼이 여기로 연락하겠습니다. 감사합니다!