알파벳 번호를 연속되게 하려면 어떻게 해야 합니까? 내 ToC에서 다른 내용을 변경하고 싶지 않습니다. 나는 이것이 내 패키지에서 수행되었다고 확신 jf.sty
하지만 그 패키지에서 무엇을 편집해야 할지 알기에는 충분하지 않습니다.
파일 은 .sty
여기에서 찾을 수 있습니다:jf.sty.
내 코드는 다음과 같습니다.
\documentclass[11pt]{article}
\usepackage{geometry}
\usepackage{natbib}
\usepackage{bibentry}
\setlength{\bibsep}{0pt plus 0.3ex}
\usepackage{etoolbox}
\makeatletter
\patchcmd{\l@section}{1.5em}{2em}{}{}
\makeatother
\usepackage[english]{babel}
\usepackage{amsfonts}
\usepackage{amsthm}
\usepackage{amsmath}
\usepackage{amssymb}
\setlength{\parindent}{0in}
\usepackage{mathtools}
\usepackage{setspace}
\usepackage{graphicx}
\usepackage{datetime}
\usepackage{indentfirst}
\usepackage{endnotes}
\usepackage{jf}
\setcounter{tocdepth}{5}
\begin{document}
\tableofcontents
\setcounter{page}{1}
\pagenumbering{arabic}
\include{Chapters/Introduction}
\include{Chapters/Formula}
\include{Chapters/Evaluation}
\include{Chapters/Discussion}
\include{Chapters/Appendix}
\include{Chapters/References}
\end{document}
답변1
' 패키지 jf
가 엉망입니다.
\ProvidesPackage{jf}
% Formatting for Journal of Finance papers
% Theorems, etc. (need to load amsthm first)
\newtheoremstyle{jf}% name
{6pt}% Space above
{6pt}% Space below
{\itshape}% Body font
{}% Indent amount
{}% Theorem head font
{:}% Punctuation after theorem head
{.5em}% Space after theorem head
{}% Theorem head spec (can be left empty, meaning normal)
\theoremstyle{jf}
% Make References title all caps.
\renewcommand{\refname}{REFERENCES}
% Put dots after numbers in section headers.
\renewcommand{\@seccntformat}[1]{{\csname the#1\endcsname}.\hspace{1em}}
% Section and table numbers
\def\thesection {\Roman{section}}
\def\thesubsection {\Alph{subsection}}
\def\thetable {\Roman{table}}
% Section header format
\renewcommand{\section}{\@startsection
{section}{1}{0mm}{-3.5ex \@plus -1ex \@minus -.2ex}{2.3ex \@plus.2ex}{\centering\normalfont\Large\bfseries}}
\renewcommand{\subsection}{\@startsection
{subsection}{2}{0mm}{-3.25ex \@plus -1ex \@minus -.2ex}{1.5ex \@plus.2ex}{\normalfont\large\itshape}}
% Put section number back in references to subsections and subsubsections.
\renewcommand{\p@subsection}{\thesection .}
\renewcommand{\p@subsubsection}{\thesection .}
% Appendix formatting:
\def\appendix{\par
\setcounter{section}{0}% % Start counting sections again
\setcounter{subsection}{0}%
% Use uppercase letters for section numbers:
\gdef\thesection{\@Alph\c@section}%
% Number equations (A1), etc.:
\renewcommand{\theequation}{\thesection\arabic{equation}}%
% Put word "Appendix" before appendix number:
\renewcommand{\@seccntformat}[1]{{Appendix \csname the##1\endcsname}.\hspace{1em}}
% Same formatting as above, but reset equation counter with each section
\renewcommand{\section}{\setcounter{equation}{0}\@startsection
{section}{1}{0mm}{-3.5ex \@plus -1ex \@minus -.2ex}{2.3ex \@plus.2ex}{\centering\normalfont\Large\bfseries}}
}
\endinput
나는 그 사용을 권장하지 않습니다.
이제 연속 숫자 관련 문제를 해결하려면 다음을 사용하여 카운터 subsection
에서 재설정을 제거하세요. 패키지가 필요합니다 .section
\counterwithout*{subsection}{section}
chngcntr
전체 문서에 하위 섹션이 26개보다 많으면 문제가 발생할 수 있다는 점에 유의하세요!
\documentclass[11pt]{article}
\usepackage{geometry}
\usepackage{natbib}
\usepackage{bibentry}
\setlength{\bibsep}{0pt plus 0.3ex}
\usepackage{etoolbox}
\makeatletter
\patchcmd{\l@section}{1.5em}{2em}{}{}
\makeatother
\usepackage[english]{babel}
\usepackage{amsfonts}
\usepackage{amsthm}
\usepackage{amsmath}
\usepackage{amssymb}
\setlength{\parindent}{0in}
\usepackage{mathtools}
\usepackage{setspace}
\usepackage{graphicx}
\usepackage{datetime}
\usepackage{indentfirst}
\usepackage{endnotes}
\usepackage{chngcntr}
\usepackage{jf}
\counterwithout*{subsection}{section}
\setcounter{tocdepth}{5}
\begin{document}
\tableofcontents
\pagenumbering{arabic}
\section{Introduction}
\section{Formula}
\subsection{The solution}
\subsection{Comparative}
\section{Evaluation}
\subsection{Foo 1}
\subsection{Foo 2}
\subsection{Foo 3}
\section{Discussion}
\appendix
%\section{Appendix}
%\section{References}
%\include{Chapters/Introduction}
%\include{Chapters/Formula}
%\include{Chapters/Evaluation}
%\include{Chapters/Discussion}
%\include{Chapters/Appendix}
%\include{Chapters/References}
\end{document}