
패키지를 사용하는 섹션, 하위 섹션 등 제목 끝에 점이 있습니다 secdot
. 그리고 PDF 북마크에서도 각 섹션 번호 끝에 점을 삽입하고 싶습니다(저는 를 사용하고 있습니다 hyperref
).
다음은 제가 달성하고 싶은 스크린샷(왼쪽 책갈피의 섹션 5 참조)과 최소한의 작업 예제(문제, 충돌을 일으킬 수 있는 패키지 및 서문 부분 포함)입니다.
\documentclass[12pt]{article}
\usepackage[a4paper, hscale=0.85, vscale=0.85]{geometry}
\usepackage[T1]{fontenc}
\usepackage{url}
\usepackage{hyperref}
\usepackage{xcolor}
\usepackage[dotinlabels]{titletoc}
\usepackage{secdot}
\hypersetup{bookmarks=true,%
bookmarksnumbered=true,%
pdfencoding=unicode,%
colorlinks=true,%
pdfborder={0 0 0},%
linkcolor=red,%
menucolor=green,%
citecolor=blue,%
urlcolor=blue,%
filecolor=blue}
\sectiondot{section}
\sectiondot{subsection}
\sectiondot{subsubsection}
\sectiondot{paragraph}
\sectiondot{subparagraph}
% changing the style of \paragraph and \subparagraph titles, so
% text after \paragraph and \subparagraph are broken into new lines
\makeatletter
\renewcommand\paragraph{%
\@startsection{paragraph}{4}{0mm}%
{-\baselineskip}%
{.3\baselineskip}%
{\normalfont\normalsize\bfseries}}
\renewcommand\subparagraph{%
\@startsection{subparagraph}{5}{0mm}%
{-\baselineskip}%
{.3\baselineskip}%
{\normalfont\normalsize\bfseries}}
\makeatother
\setcounter{secnumdepth}{5}
\begin{document}
\section{section}
section
\subsection{subsection}
subsection
\subsubsection{subsubsection}
subsubsection
\paragraph{paragraph}
paragraph
\subparagraph{subparagraph}
subparagraph
\end{document}
님의 코드를 살펴보기 시작했는데 hyperref
수정/패치/갱신해야 하는 부분을 찾을 수 없었습니다.
답변1
hyperref
이 형식을 에 저장합니다 \Hy@numberline
. 따라서 다음 재정의는 .
모든 섹션 번호 단위 뒤에 를 추가합니다.
\makeatletter
\renewcommand{\Hy@numberline}[1]{#1. }
\makeatother
프리앰블 어딘가에 추가하세요.~ 후에로딩 hyperref
.