라텍스 장 및 섹션 형식

라텍스 장 및 섹션 형식


반환된 논문에는 몇 가지 형식 수정 사항이 명시되어 있습니다. 저는 LaTeX에 대한 경험이 거의 없어서 기본 기능만 사용할 수 있습니다. 장과 섹션 제목의 형식을 지정하는 데 문제가 있습니다. 나는 titlesec의 패키지 세부 사항을 읽으려고 노력했지만 문서를 보고 당황했습니다. 구조나 명령을 알아낼 수 없는 것 같습니다. 아래는 내가 찾은 코드이며 장 제목에 대해 수정되었지만 확실하지 않습니다.

     \usepackage{titlesec}
     \titleformat{\chapter}[display] 
     {\doublespacing\rmfamily\fontsize{12pt}{12pt}}
     {\MakeUppercase{\chaptertitlename\ \thechapter}\filcenter}{12pt}{\centering\uppercase}
     {\fontsize{12pt}{12pt}\filcenter} 

내가 수정해야 할 사항은 다음과 같습니다.

     revise format for first page of each chapter:
     --use uniform double line spacing
     --use 12 point font size for chapter number and chapter title
     --use all caps for the word CHAPTER and for all words in chapter title
     --do not use bold font

      Revise all first level subheads:
      --centered on a line by itself
      --use 12 point font
      --use headline style caps
      --use underline
      --no extra blank space above or below subhead (spacing should match 
        spacing between lines of text)
      --do not use bold font

당신이 제공할 수 있는 어떤 도움이라도 감사하겠습니다.

고마워요, 테리

답변1

아마도 이것은 시작하기에 충분할 것입니다. 섹션에 번호가 매겨져 있는지 여부가 설명에서 명확하지 않습니다. 그렇지 않은 경우 \thesection\hspace*{ 1em}섹션 정의에서 제거하십시오. 또한 섹션 앞과 장 뒤의 간격이 무엇인지 명확하지 않으므로 \titlespacing이에 대한 적절한 명령을 추가해야 합니다 .

\documentclass[12pt]{book}
\usepackage[explicit]{titlesec}
\usepackage[normalem]{ulem}
\usepackage{textcase}
\usepackage{setspace}
\titleformat{\chapter}[display]%
     {\doublespacing\normalfont\fillast}
     {\MakeTextUppercase\chaptertitlename\ \thechapter}
     {0pt}{\MakeTextUppercase{#1}}

\titleformat{\section}[block]
  {\normalfont\scshape\fillast}
  {\uline{\thesection\hspace*{ 1em}#1}}
  {0pt}
  {}

\begin{document}

\chapter{This is a chapter that has a really really really long title to show how it will wrap and give you double spacing.}

This is the text that follows the chapter. 

\section{This is a section}
This is the text that follows the section.

\end{document}

코드 출력

관련 정보