문자 대신 숫자로 라벨이 붙고 오류가 발생하는 부록

문자 대신 숫자로 라벨이 붙고 오류가 발생하는 부록

내 문서에 부록을 추가하려고 하는데 그렇게 하면 부록에 문자 대신 숫자가 표시되고 다음과 같은 오류가 발생합니다.

LaTeX Error: No counter 'chapter' defined.
LaTeX Error: Command \@chapapp undefined.
LaTeX Error: Command \thechapter undefined.

다음 코드를 사용하고 있습니다.

\documentclass[12pt]{article}

\usepackage[english]{babel}
\usepackage[letterpaper,top=2cm,bottom=2cm,left=3cm,right=3cm,marginparwidth=1.75cm]{geometry}

% Useful packages
\usepackage[utf8]{inputenc}
\usepackage{float}
\usepackage{eurosym}
\usepackage{array}
\usepackage{textcomp}
\usepackage[round, numbers]{natbib}
\usepackage{graphicx}                   % graphics package
\graphicspath{ {figures/} }% specify the path where figures are located
\usepackage{epstopdf}                   % converts eps files to pdf
\usepackage{fancyhdr}                   % fancy headers and footers
\usepackage{url}                        % nicely format url breaks
\usepackage{relsize}                    % font sizing hierarchy
\usepackage{booktabs}                   % professional looking tables
\usepackage[config, labelfont={bf}]{caption,subfig}
\usepackage{mathrsfs}  % additional math scripts
\usepackage[Bjarne]{fncychap}   % creates fancier chapter titles
\usepackage{setspace}
\usepackage{amsmath}
\usepackage{xcolor}
\usepackage{soul}
\usepackage{dirtytalk}
\usepackage{multicol}
\usepackage{tabto}
\usepackage[toc]{appendix}
\numberwithin{equation}{section}
\usepackage{mathrsfs}
\usepackage{chngcntr}
\counterwithin{table}{section}
\counterwithin{figure}{section}
\usepackage[justification=centering]{caption}
\setlength{\parskip}{0.5em}
\usepackage{rotating, graphicx}
\usepackage{enumitem}
\setlist[description]{style=nextline}
\setlength{\belowcaptionskip}{-15pt}

\renewcommand{\arraystretch}{1.5}

\usepackage{biblatex} %Imports biblatex package
\addbibresource{bibliography.bib} %Import the bibliography file
% \renewcommand{\baselinestretch}{1.5}


% \onehalfspacing      % line spacing
\spacing{3}

\geometry{
    a4paper,
    left = 1.0in,
    right = 1.0in,
    top = 1.0in,
    bottom = 1.375in
}


\begin{document}

\section{Section 1}
blah blah blah
\appendix
\section{Appendix}
blah blah blah

\end{document}

죄송합니다. 이것이 "최소한의 예"가 아니라는 것을 알고 있지만 이 문제를 일으키는 패키지 중 하나와 충돌이 있는 것 같습니다. 저는 LaTex를 처음 접했고 강사로부터 이 서문을 물려받았습니다.

감사합니다!!

여기에 이미지 설명을 입력하세요

답변1

article패키지 와 함께 클래스를 사용하고 있습니다 fncychap. 해당 패키지는 장을 정의하는 클래스용으로 만들어졌기 때문에 이는 말이 되지 않습니다. 그건~ 아니다수업 의 경우 article.

관련 정보