我使用的是文档类文章和包kafkanotes。我想把我的区域编号从4开始,而不是从1开始。可以吗?该怎么做呢?
我完整的sty文件
%==============STYLE DIMULAI==============%
\usepackage[marginparwidth=6cm, marginparsep=0.7cm]{geometry}
%Package Matematika
\usepackage{amsmath}
%Style Gambar
\usepackage{graphicx}
\usepackage{floatrow}
\floatsetup[widefigure]{margins=hangright,capposition=beside,
capbesideposition={bottom, right},floatwidth=\textwidth}
%Package Catatan di Margin
\usepackage{sidenotes}
%Style \maketitle
\usepackage{titlesec}
\makeatletter
\renewcommand{\maketitle}{\bgroup\setlength{\parindent}{0pt}
\begin{flushleft}
{\Huge\sffamily\bfseries\@title}
\vskip 1.5em
{\sffamily\@author}
\end{flushleft}\egroup
}
\makeatother
%Header and Footer Package
\usepackage{fancyhdr}
%Style Abstract
\renewenvironment{abstract}
{\par{\bfseries \noindent \sffamily \abstractname.}}
{\vskip 0.1em \medskip\noindent \rule{\linewidth}{.5pt}}
%Font Teks Utama dan Sesi
\usepackage{lmodern}
\renewcommand*\familydefault{\sfdefault} %% Only if the base font of the document is to be sans serif
\usepackage[T1]{fontenc}
\usepackage{sectsty}
\sectionfont{\sffamily\fontsize{15}{15}\selectfont}
\subsectionfont{\sffamily\fontsize{10}{5}\selectfont}
%Style Hyperlink
\usepackage{hyperref}
\hypersetup{
colorlinks,
citecolor=black,
filecolor=black,
linkcolor=black,
urlcolor=black
}
%Pembahasaan ke Indonesia
\renewcommand{\figurename}{\footnotesize Figure}
\renewcommand{\tablename}{\footnotesize Table}
\renewcommand{\contentsname}{Outline}我的tex文件:
\documentclass{article}
\usepackage{kafkanotes}
\usepackage{booktabs}
\usepackage{biblatex} %Imports biblatex package
\addbibresource{bibliography.bib} %Import the bibliography file
%Judul dan Penulis
\title{XYZ}
\author{\textbf{ABC}}
\begin{document}
\begin{titlepage}
\thispagestyle{empty}
\maketitle
\begin{abstract}
Lorem
\end{abstract}
\tableofcontents
\end{titlepage}
\section{Some section}
\printbibliography
\end{document}发布于 2022-08-31 15:01:48
可以使用\addtocounter{section}{3}在文档开始时增加区段计数器。
\documentclass{article}
\makeatletter
%==============STYLE DIMULAI==============%
\usepackage[marginparwidth=6cm, marginparsep=0.7cm]{geometry}
%Package Matematika
\usepackage{amsmath}
%Style Gambar
\usepackage{graphicx}
\usepackage{floatrow}
\floatsetup[widefigure]{margins=hangright,capposition=beside,
capbesideposition={bottom, right},floatwidth=\textwidth}
%Package Catatan di Margin
\usepackage{sidenotes}
%Style \maketitle
\usepackage{titlesec}
\makeatletter
\renewcommand{\maketitle}{\bgroup\setlength{\parindent}{0pt}
\begin{flushleft}
{\Huge\sffamily\bfseries\@title}
\vskip 1.5em
{\sffamily\@author}
\end{flushleft}\egroup
}
\makeatother
%Header and Footer Package
\usepackage{fancyhdr}
%Style Abstract
\renewenvironment{abstract}
{\par{\bfseries \noindent \sffamily \abstractname.}}
{\vskip 0.1em \medskip\noindent \rule{\linewidth}{.5pt}}
%Font Teks Utama dan Sesi
\usepackage{lmodern}
\renewcommand*\familydefault{\sfdefault} %% Only if the base font of the document is to be sans serif
\usepackage[T1]{fontenc}
\usepackage{sectsty}
\sectionfont{\sffamily\fontsize{15}{15}\selectfont}
\subsectionfont{\sffamily\fontsize{10}{5}\selectfont}
%Style Hyperlink
\usepackage{hyperref}
\hypersetup{
colorlinks,
citecolor=black,
filecolor=black,
linkcolor=black,
urlcolor=black
}
%Pembahasaan ke Indonesia
\renewcommand{\figurename}{\footnotesize Figure}
\renewcommand{\tablename}{\footnotesize Table}
\renewcommand{\contentsname}{Outline}
\makeatother
\usepackage{booktabs}
\usepackage{biblatex} %Imports biblatex package
\addbibresource{bibliography.bib} %Import the bibliography file
%Judul dan Penulis
\title{XYZ}
\author{\textbf{ABC}}
\begin{document}
\addtocounter{section}{3}
\begin{titlepage}
\thispagestyle{empty}
\maketitle
\begin{abstract}
Lorem
\end{abstract}
\tableofcontents
\end{titlepage}
\section{Some section}
\printbibliography
\end{document}https://stackoverflow.com/questions/73556061
复制相似问题