Latex-Kapitel- und Abschnittsformatierung

Latex-Kapitel- und Abschnittsformatierung


In meiner zurückgesandten Arbeit sind mehrere Formatierungskorrekturen vermerkt. Ich bin ziemlich unerfahren in LaTeX und kann nur dessen grundlegende Funktionen nutzen. Ich habe Probleme mit der Formatierung der Kapitel- und Abschnittsüberschriften. Ich habe versucht, die Paketdetails für titlesec durchzulesen, und bin von der Dokumentation verwirrt worden. Ich scheine die Struktur oder die Befehle nicht zu verstehen. Unten ist der Code, den ich gefunden und für die Kapitelüberschriften geändert habe, aber ich bin mir nicht sicher.

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

Dies sind die Korrekturen, die ich vornehmen soll:

     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

Wir sind für jede Hilfe dankbar, die Sie anbieten können.

Vielen Dank, Terry

Antwort1

Vielleicht reicht das für den Anfang. Aus Ihrer Beschreibung geht nicht hervor, ob die Abschnitte nummeriert sind oder nicht. Wenn nicht, entfernen Sie sie \thesection\hspace*{ 1em}aus der Abschnittsdefinition. Es ist auch nicht klar, wie groß der Abstand vor Abschnitten und nach Kapiteln sein soll, daher müssten Sie entsprechende \titlespacingBefehle dafür hinzufügen.

\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}

Ausgabe des Codes

verwandte Informationen