하위 섹션 제목 왼쪽 들여쓰기

하위 섹션 제목 왼쪽 들여쓰기

CV를 준비하기 위해 LaTex에서 moderncv 패키지를 사용하고 있습니다. 나는 하위 섹션 제목의 왼쪽 들여쓰기에 어려움을 겪고 있습니다. \subsection 헤더를 어떻게 왼쪽으로 밀어넣을 수 있나요?

이미지에서 보시다시피,[제1항]수직선을 따라 정렬됩니다.[부분]시작합니다. 어떻게 밀어낼 수 있나요?[제1항](파란색 자막)을 아래 줄에 맞춰 왼쪽으로 이동하세요.[하위 섹션 1.1:]총알로 시작하는 것은?

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

답변1

명령 을 다시 정의해야 합니다 \subsection.

\documentclass[sans]{moderncv}
\moderncvstyle{casual}
\moderncvcolor{blue}

\name{John}{Doe}
\title{Title}

\makeatletter
\RenewDocumentCommand{\subsection}{sm}{%
  \par\addvspace{1ex}%
  \phantomsection{}% reset the anchor for hyperrefs
  \addcontentsline{toc}{subsection}{#2}%
  \strut\subsectionstyle{#2}%
  \par\nobreak\addvspace{.5ex}\@afterheading}% to avoid a pagebreak after the heading
\makeatother

\begin{document}
\maketitle
\section{Section}
\subsection{Subsection 1}
\end{document}

관련 정보