首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >胶乳截面定制编号

胶乳截面定制编号
EN

Stack Overflow用户
提问于 2022-08-31 12:42:11
回答 1查看 65关注 0票数 2

我使用的是文档类文章和包kafkanotes。我想把我的区域编号从4开始,而不是从1开始。可以吗?该怎么做呢?

我完整的sty文件

代码语言:javascript
复制
%==============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文件:

代码语言:javascript
复制
\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}
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2022-08-31 15:01:48

可以使用\addtocounter{section}{3}在文档开始时增加区段计数器。

代码语言:javascript
复制
\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}
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/73556061

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档