
이것답변\S를 사용하여 단락 번호를 매기는 방법을 보여줍니다.
다음에서 후자의 줄 간격을 변경하지 않고 §1 위 텍스트의 줄 간격과 §1과 §2 사이의 간격을 어떻게 동일하게 할 수 있습니까? 또한 §1과 위의 텍스트 사이의 간격이 어떻게 동일한 간격을 가질 수 있습니까?
다음 코드 중 두 번째는 승인된 답변을 기반으로 사용하는 솔루션입니다.
\documentclass[12pt]{article}
\usepackage{chngcntr}
\counterwithout{paragraph}{subsubsection}
\renewcommand{\theparagraph}{\S\arabic{paragraph}}
\setcounter{secnumdepth}{4}
\begin{document}
Here are just some words to show the normal spacing between lines in the main document.
\paragraph{} 1st paragraph
\paragraph{} 2nd paragraph
\end{document}
\documentclass{article}
\usepackage{chngcntr,titlesec}
\counterwithout{paragraph}{subsubsection}
\renewcommand{\theparagraph}{\S\arabic{paragraph}}
\setcounter{secnumdepth}{4}
\titlespacing{\paragraph}
{15pt}{0pt}{-8pt}
\usepackage{showframe}
\begin{document}
Here are just some words to show the normal spacing between lines in the main document.
\paragraph{} 1st paragraph
\paragraph{} 2nd paragraph
\end{document}```
답변1
귀하의 게시물에서 태그 앞의 세로 간격을 수정해야 한다는 점을 이해했습니다. \paragraph
제가 이해한 내용이 정확합니다. 그런 다음 아래를 사용하십시오 MWE
.
\documentclass{article}
\usepackage{chngcntr,titlesec}
\counterwithout{paragraph}{subsubsection}
\renewcommand{\theparagraph}{\S\arabic{paragraph}}
\setcounter{secnumdepth}{4}
\makeatletter
\titlespacing{\paragraph}
{0pc}{3.5ex \@plus -1ex \@minus -.2ex}{10pt}
\makeatother
\begin{document}
Here are just some words to show the normal spacing between lines in the main document.
\paragraph{} 1st paragraph
\paragraph{} 2nd paragraph
\end{document}
참고: 클래스 파일을 사용하고 있다는 의견에서 언급했듯이 article
첫 번째 수준 제목에도 동일한 수직 공간을 유지했습니다 \paragraph
.
허용된 답변을 기반으로 내가 사용하는 솔루션은 다음과 같습니다.
\documentclass{article}
\usepackage{chngcntr,titlesec}
\counterwithout{paragraph}{subsubsection}
\renewcommand{\theparagraph}{\S\arabic{paragraph}}
\setcounter{secnumdepth}{4}
\titlespacing{\paragraph}
{15pt}{0pt}{-8pt}
\usepackage{showframe}
\begin{document}
Here are just some words to show the normal spacing between lines in the main document.
\paragraph{} 1st paragraph
\paragraph{} 2nd paragraph
\end{document}