{sectioning} is about commands like \chapter or \section forming the logical structure of documents. For questions specifically about {parts}, {chapters} or lower-level commands ({sections-paragraphs}), add the respective tag to the more general {sectioning}. A popular package is {titlesec}.

learn more… | top users | synonyms (2)

5
votes
3answers
670 views

How to suppress the final period (“.”) in paragraph titles?

When I run the following code, I get the paragraph title "Some title.". How do I get the compiler to suppress the period (".") in the paragraph title? \documentclass[3p,12pt,authoryear]{elsarticle} ...
3
votes
1answer
42 views

How to add part title to headers in memoir

I want to add the unnumbered part title into the headers in memoir, but \thepart command produces only the part number without the title. How would I redefine \thepart command to get the desired ...
3
votes
2answers
64 views

Automatically scale vertical rule to fit the text height

I'm trying to modify the style of the sections in moderncv package. Specifically, I want sections to have a vertical rule on their right side of the height of the section text. Below is the ...
0
votes
0answers
12 views

Table Before Title Issue [duplicate]

I need to list 18 consecutive tables in order to explain my results. I tried to use this code: \newpage \subsection{Identification Test} \begin{table}[] \centering ...
2
votes
1answer
49 views

Memoir ruled section centering problem

\documentclass[twocolumn]{memoir} \setaftersecskip{0em} \setsecheadstyle{\large \normalfont \bfseries \centering \MakeUppercase } \setsecnumformat{ \csname the#1\endcsname\par\nobreak ...
3
votes
1answer
86 views

How to include front matter in Table of Contents while using section*{}

The issue is my formatting is set up in a way to state "Chapter [#]: [Section Title]", however because I do not want my abstract, table of contents, etc, to be "Chapter 1: Abstract", I used ...
3
votes
2answers
60 views

How to keep section titles in small caps (in the main body) but in the default font in table of contents?

I want to make a book in LaTeX where the section titles are written using \textsc in the main body but when it is shown in the table of contents it should be in the default font. Other titles would ...
4
votes
1answer
83 views

\newcommand with \raisebox in section title

I have defined the following command to typeset 'C++': \newcommand{\Cpp}{C\raisebox{-.23ex}{\texttt{++}}} Using the command in a paragraph works as expected. However, I can't use it in a section ...
3
votes
1answer
62 views

title spacing using titlesec and customisation

I am using some code from here which allows me to use ordinal numbers in arabic for the chapter titles. I also want to change the title spacing. I am only a little familiar with titlesec. The ...
0
votes
0answers
32 views

\begin{frame}[<+->] and \section{…} results in multiple sections [duplicate]

I am writing my first presentation slides with Latex using beamer. But I run into a silly problem. It is similar to the code below: \documentclass{beamer} \begin{document} \begin{frame} ...
2
votes
0answers
64 views

Unwanted vertical space at top of page before subsection heading

I have been using LaTeX for a while now, but I am very new to defining my own commands in the preamble. I am working on my thesis, and I'm using a custom .cls file which has been passed down by other ...
2
votes
0answers
34 views

Section spans across multiple pages. How do I remove heading at top left of the next page?

I am working on a paper and have a section (Section 2) and 2 subsections. The section is declared on page 1, and subsection 2.1 also only spans page 1. On page 2 I have subsection 2.2 but because the ...
2
votes
1answer
32 views

Changing the relative position of the starting point of every chapter (also Preface, References, Index if any)

I would like that the starting point of the first page of each chapter (also Preface, References, Index if any) be at the position 1/3 of the text-height of the page (from the top of the page). In ...
0
votes
0answers
24 views

How to make titlesec show greater number depth?

\setcounter{secnumdepth}{5} \titleformat{\paragraph}[hang]{\normalfont\normalsize\bfseries}{\theparagraph}{1em}{} \titlespacing*{\paragraph}{0pt}{3.25ex plus 1ex minus .2ex}{0.5em} ...
1
vote
1answer
50 views

Prevent pagebreak between section header and figure

In a document, I have an appendix with several screenshots, i.e., the different figures are displayed without any descriptive text right after the section header. I notice, however, that in several ...
2
votes
1answer
48 views

How can I define a unique vertical spacing value for all parts of my document which has lists and paragraphs?

I am trying to write my CV in LaTeX and I am not using a specific package for CV. I am coding it myself. My problem is: The space after normal paragraphs and the space after the lists are not the ...
0
votes
2answers
87 views

Indent for second line of chapter/section title

I have got a simple problem concerning multi-line chapter/section titles, that I could not fix. This is how it is: and this is how I want it to be: (I want the second line of the title to line ...
5
votes
1answer
113 views

Normal font in IEEEtran section heading

While using IEEEtran, I want to enforce the letter 'f' to be small in section headings. \documentclass[journal]{IEEEtran} \begin{document} \section{Real fMRI Data} \end{document} However, IEEEtran ...
3
votes
1answer
44 views

Create a heading with a horizontal bar interrupted by text

I'm trying to create a command that creates text to look like the image attached. Specifically, I want a develop a command, say we call it "CenterTextWithLine", such that I type: ...
2
votes
1answer
62 views

Can I have relative sectioning: Chapter +1 Section +1 Subsection -2 Chapter again

I found myself changing text between sections and parts and between a document with chapters and another only with sections. This means converting chapters and sections to sections and subsections ...
6
votes
2answers
112 views

Set tracking for small caps selected by \scshape

If a font family doesn't have a bold font, it makes sense to me to use small caps instead. But when I redefine \bfseries to mean \scshape, there's no tracking in those small caps. How can I set that? ...
1
vote
1answer
71 views

Section heading in sideways environment does not change header

The appendix of my thesis contains some large tables which I create using the sideways environment. As, in the appendix, every table is an own section, I include the section-command within the ...
0
votes
0answers
29 views

Reduce Section heading number and spacing in document having a table of content

I have set up a document to have a table of content: \begin{document} \selectlanguage{english} \tableofcontents{} I then have sections within the document which appear in the table of content ...
1
vote
2answers
140 views

Overfull hbox in rule below chapter title

I am writing a report with the KOMA-Script class scrreprt. Below each chapter title, I am creating a rule which goes all the way to the end of the paper: This actually works fine, but creates an ...
3
votes
1answer
55 views

Thmtools example & solution environments share numbering with other environments

Following the answer to this question, I defined example and solution environments using the thmtools package, which I want to share numbering with the other environments in my document. Here is my ...
2
votes
0answers
45 views

Small-caps special character “ḫ”

I have been trying for some time to get the symbol "ḫ" to play nice with XeLaTeX. However, I'm now having trouble using it inside of a chapter title using the book class. Here's an MWE: ...
1
vote
1answer
52 views

XeTeX \section{} doesn't show Thai fonts

I'm learning XeTeX mainly because it enables typesetting in my native language (Thai). With normal pdfLaTeX, arranging the document into sections was easy and intuitive, and I hope to be able to do ...
1
vote
1answer
52 views

Display section and subsection headers on same page with large table or figure

I am struggling to put the table (or figure) on the same page where I have specified my section (subsection). Does anyone of you know how to do this? Here is my MWE. ...
0
votes
1answer
33 views

Sharelatex: Centered and left-adjusted text in section not working

I'm working in a document with two vertically seperated sections. Currently I have two version as can be seen in the screenshot: I want to combine the properties of the two. That is to center the ...
0
votes
0answers
94 views

How can I set formatting options for an .Rmd outputting to .pdf

I have a .rmd in r studio. This is being compiled by the r package knitr into a pdf via the pdfLaTeX engine. DISCLAIMER: I am very new to LaTeX, and have been searching for days without luck on how ...
4
votes
1answer
44 views

Relative spacing in titlesec

I am trying to create a custom section and subsection format that consists of the index, followed by a vertical line, followed by the title. An example can be found here: ...
1
vote
1answer
57 views

Space between two consecutive headings with titlesec option largestsep

To format headings I am using the titlesec package. I need 12 pt space before each heading and 6 pt after. If there are consecutive headings (i.e. heading directly followed by subheading) I need 12 pt ...
1
vote
1answer
42 views

Align unnumbered and numbered chapters

I'm using the ERDC template and when I make an unnumbered chapter (\chapter*) it doesn't align with the numbered chapter on the next page. Cant identify any custom format in the ERDC cls code. erdc ...
1
vote
2answers
75 views

Define a section-like command with three parameters

I'm looking to define a section-like command for a CV document that takes three arguments: role, company, and time - like shown below. Because I lack the TeX experience I used the titlesec package but ...
1
vote
1answer
29 views

Remove number in front of onyl one section without removing it from TOC

I'm trying to remove the number in front of my Appendix section (and only this section not the other sections) but keep it in the TOC. Because when I use section*{Appendix} it is gone from the ...
1
vote
1answer
60 views

Remove the title from the heading in the appendix

I am trying to add the sequence diagrams as figures, which are in seperated file \include{7-appendix}, to the Appendix. They are being added but I am getting Listings as in the image below as heading. ...
2
votes
2answers
71 views

Enumerated headings using apa6?

The apa6 document class doesn't use enumerated headings, but I want my headings to look like: Something 1.1 Something 1.2 Something Something 2.1 Something etc... How do I enable this?
2
votes
1answer
66 views

IEEETran section heading all uppercase letters

How can I make the section heading look like this: I am preparing a paper for IEEE Percom conference (http://www.percom.org/?q=home). I am using \documentclass[conference, compsoc]{IEEEtran} ...
3
votes
1answer
82 views

How to get enumerate numbering by letters, with subsection numbers?

Currently, I am using an unmodified version of the standard enumerate command. The following code gives me labels that go "1.", "2.", "3." \section{Section} \subsection{Subsection} \begin{enumerate} ...
1
vote
1answer
67 views

Align custom chapter heading to the left

I am using a custom calss called ufpethesis, based on the book class, to format my masters thesis. My aim is to insert the chapter numbering to the left of the chapter title, have it aligned to the ...
2
votes
1answer
69 views

remove chapter number from section entries in tableofcontents

an MWE: \documentclass{book} \usepackage{a4wide} \usepackage{fancyhdr} \usepackage{graphicx} \usepackage{polyglossia} \setmainlanguage[spelling=new,babelshorthands=true]{german} ...
1
vote
1answer
50 views

AMSART: Change subsection headings from boldface to smallcaps

In amsart, how do you change subsection headings from boldface to smallcaps?
1
vote
1answer
58 views

problem: no vertical space in chapter title using koma-class scrbook [closed]

I have a problem with the koma-script scrbook class. I want to have a two lines chapter title like: I tried: %%% classe de base (KOMA-Script) \LoadClass{scrbook} %% classe report ...
1
vote
1answer
41 views

Why does package `silence` have a conflict with `alphalph`?

Note: This question is related to an issue shown in another question: Does subsections have limit in the IEEEtran document class?. MWE \documentclass[journal,twoside]{IEEEtran} ...
2
votes
1answer
31 views

Does subsections have limit in the IEEEtran document class?

Note: I've asked a similar question to this one before: Does subfigure package have a limit of subfigures within a figure?. To be honest, it is pretty much the same situation, but the solution can ...
3
votes
2answers
73 views

How to color section number and section name with different colors?

I want to use different colors for section number and section name in \documentclass{book} using sectsty package. The section number must be put in color box. Give me an idea.
2
votes
1answer
146 views

Adding line after section heading

I am trying to add a horizontal line (like \hrule) that starts just after each section's heading, fills the rest of the line, and is vertically aligned with the heading, as shown below. To do so, I ...
1
vote
1answer
45 views

Section formatting messes up Table of Contents

So, a bit ago I asked a question regarding a specific format for my sections, which worked out great. However, when I create my table of contents, it lists each section like this : (without the ...
3
votes
1answer
55 views

How to color the lines and title in \chapterstyle{VZ43}

I want to use the \chaperstyle{VZ43} in writing my book. How to color the vertical lines, section number box and chapter name in different colors?
2
votes
1answer
43 views

Appendix header to show like “Appendix A. Chapter name”

In the MWE below, I wanted to get the appendix header to show up like: Appendix A. Chapter name. In the MWE, just the Chapter name shows up. Here is my code: \documentclass{book} ...