점 두 개가 아닌 하나를 얻도록 방정식 번호 매기기 변경

점 두 개가 아닌 하나를 얻도록 방정식 번호 매기기 변경

등식 번호 형식에 관한 질문이 있습니다. 내 문서에 장과 섹션이 있습니다. 표시 모드를 사용하는 섹션 내에 방정식이 있습니다. 내 방정식 번호에 이중 점이 있는데 이를 단일 점으로 변경하고 싶습니다. 더 명확하게 하기 위해 현재 어떻게 보이는지 예를 들어 보겠습니다. 2. 챕터 이름
2.1 섹션 이름
방정식 (2..1)

그래서 (2.1)처럼 보이도록 바꾸고 싶습니다. 장과 섹션 번호 매기기에 점을 찍기 위해 특정 명령을 사용했기 때문에 장과 섹션의 번호 매기기 형식을 변경하는 것과 관련이 있는 것 같습니다.

\documentclass[11pt,a4paper,ngerman]{scrreprt}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{babel}
\usepackage{scrlayer-scrpage}
\pagestyle{scrheadings}
\ofoot[\pagemark]{\pagemark}
\cfoot[]{}
\author{James Oliver Reppin}
\usepackage[onehalfspacing]{setspace}
%\usepackage{biblatex}
%\bibliography{masterarbeit_bibtex_1}
\usepackage{tocloft}
\addtocontents{toc}{\cftpagenumbersoff{chapter}}
\usepackage{amsmath}

\begin{document}
\renewcommand{\cftchapleader}{\cftdotfill{\cftdotsep}} 
\renewcommand{\cftsecleader}{\cftdotfill{\cftdotsep}}
\renewcommand{\thechapter}{\arabic{chapter}.}
\renewcommand{\thesection}{\thechapter\arabic{section}.} 
\chapter{chapter2}
\section{section2}
\begin{equation}
    \|x-x_{k}\| =  \min_{j=1,...,n} \|x-x_{j}\| 
\end{equation}
\end{document}

{chapternumber}{.}{sectionnumber} 형식만 얻거나 내 예(2.1)와 같이 변경하려면 어떻게 해야 합니까?

답변1

ferahfeza의 도움으로 해결책을 얻었습니다: 명령을 사용하여:

\begin{document}
\renewcommand{\theequation}{\arabic{chapter}.\arabic{equation}}
\end{document}

내가 원하는 결과가 나옵니다.

관련 정보