헤더에 추가 점

헤더에 추가 점

헤더, 목차, 섹션 이름의 단락 기호/점을 직접 처리하려고 했습니다.

장, 목차, 하위 섹션, 섹션 이름 등 모든 것이 완벽합니다.

그런데 짝수 페이지의 헤더에 추가 점이 발견되었습니다. 스크린샷은 여기에 있습니다. 끔찍해요.

최선을 다했습니다... 하지만 이제는 여러분의 도움을 요청하고 싶습니다. 다른 내용을 변경하지 않고 이 점을 제거하세요.

   %document information
    \documentclass[10pt,a4paper]{book}

% packages
\usepackage[T2A]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[russian]{babel}

\usepackage{titlesec}
\titleformat{\section}
  {\normalfont\Large\bfseries}{\thesection}{1em}{}

\renewcommand{\thesection}{\textsection\arabic{section}.}

\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhead{}
\fancyhead [CE] {\nouppercase{\slshape \large \rightmark}}
\fancyhead [CO] {\nouppercase{\slshape \large \leftmark}}

\begin{document}
\tableofcontents

\chapter{eh eh}
\section{omg}

\chapter{oh no}
\section{lmao}
\end{document}

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

답변1

서문에서 교체

\titleformat{\section}
  {\normalfont\Large\bfseries}{\textsection\thesection}{1em}{}

\renewcommand{\thesection}{\arabic{section}.}

~와 함께

\titleformat{\section}
{\normalfont\Large\bfseries}{²textsection\thesection.}{1em}{}

마지막 명령으로 인해 섹션에 대한 상호 참조가 섹션 번호 뒤에 점을 추가하게 됩니다.

**추가됨:*

목차에 대한 솔루션이 포함된 코드는 다음과 같습니다.

\documentclass[10pt,a4paper]{book}
\usepackage[showframe]{geometry}
% packages
\usepackage[T2A]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[russian]{babel}

\usepackage{titlesec, titletoc}

\titleformat{\section}
  {\normalfont\Large\bfseries}{\thesection.}{1em}{}
\renewcommand{\thesection}{\textsection\arabic{section}}
\titlecontents{section}[2.7em]{\addvspace{0.5ex}}%
 {\contentslabel[\thecontentslabel.]{1.25em}\hskip0.8em}%numbered
 {}%numberless%
 {\enspace\titlerule*[0.7pc]{.}\contentspage}%

\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhead{}
\fancyhead [CE] {\nouppercase{\slshape \large \rightmark}}
\fancyhead [CO] {\nouppercase{\slshape \large \leftmark}}

\begin{document}

\tableofcontents

\chapter{eh eh}
\section{omg}

\chapter{oh no}
\section{lmao}

\end{document} 

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

관련 정보