{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)

3
votes
0answers
41 views

How to limit the width of a subheading?

The thesis formatting manual has the following requirement: Subheading width: A long subheading title should be divided into two or more lines. No single line may be wider than 4 inches. ...
4
votes
1answer
66 views

How to have hyperref correctly refer to phantom sections without clearing a double page

When using starred sections in a double page layout, in order to get the table of contents refer to the correct place, it is usually advised to use the method \cleardoublepage \phantomsection ...
3
votes
1answer
39 views

How to align chapter, section, subsection with parindent?

Is there a way to solve that? Thanks a lot!
8
votes
1answer
290 views

How to make this chapter heading style?

As fncychap has no such chapter style, and using the memoir class will cause a lot conflicts with my current settings (book class), how to make this style (perhaps using the titlesec package)? title ...
3
votes
1answer
68 views

Sectioning using \titleformat results in problems with \subsection*

I am trying to write a Preface with subsections, but without sectionnumbers (since the preface is technically not really part of the report). The sections and subsections are constructed using ...
4
votes
2answers
75 views

Remove whitespace above section title with image formatted with leftmargin

I am trying to remove the whitespace above a title that is formatted with leftmargin and that also has an image as part of it. The problem is very similar to this question, but the solution there does ...
0
votes
1answer
28 views

How to change section headings to have Q1 Q2

Can somebody help with changing the headings for my section? Instead of having 1 2 3, I would like to have Q1 Q2 Q3 (and keep the automatic numbering). Thanks
3
votes
1answer
51 views

Latex use other languages in section title

I am writing in english, greek babel and I have custom commands to change between languages. The problem is that I can change to english for example, anywhere in my text except in \chapter{}, ...
2
votes
1answer
47 views

Justifying paragraphs but retaining line endings

I have a document (a lease) which I have painstakingly typed as a text file from a hard-copy and would now like to format with justified paragraphs but retaining the current line endings (to ...
1
vote
1answer
67 views

Three different styles of heading

I'm wanting to adapt the following macro(s) to provide three different options of style heading. At the moment, if offers two, one if the section is normal (numbered) and another for section* ...
1
vote
2answers
87 views

string with underscore in \subsection, like ABC_XYZ [duplicate]

I need in \subsection string with underscore, like ABC_XYZ. \subsection{Text ABC_XYZ} When I try to compile with pdflatex: Missing $ inserted ...ine {1.2}Text ABC_XYZ}{4}{subsection.1.1.2} Extra }, ...
4
votes
2answers
69 views

Heading of paragraph on left side

I want to list something in my document. Each point in the list has a short heading (one word, for example "Usecase"). This word should be on an own column to the left of the text which gets added ...
4
votes
3answers
302 views

How to use concrete fonts?

This MWE: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{polski} \usepackage{beton} \begin{document} \section{Section title} Hello world. \end{document} produces "Hello ...
6
votes
1answer
115 views

Set the font color of a section title formatted with leftmargin

I am trying to set the font color of a section title that is formatted with leftmargin. When I don't use the leftmargin format, the font color changes correctly, but once I add the leftmargin format ...
1
vote
1answer
53 views

Why each section is shown in one page rather than in the same page when I use \onecolumn?

I don't know why each section is shown in one separate page when I use \onecolumn rather that the normal (two columns) format. \onecolumn \section{Goals} some text
7
votes
2answers
126 views

\newcommand for centered \section

I am trying to use the titlesec package to achieve this but I'm not certain as to what the syntax should be... \usepackage{titlesec} \newcommand{\centeredsection}{\titleformat{\section}{\centering}} ...
3
votes
1answer
57 views

How can I create a 'little subtitle' for a section? [duplicate]

Here's my code: \documentclass[]{article} \usepackage{titlesec} \begin{document} \titleformat{\section} {\normalfont\Large\bfseries}{\thesection}{1em}{}[{\titlerule[0.8pt]}] \section*{29th March ...
0
votes
0answers
39 views

Table of content and header

I have table of content in my document and header/footer with section, subsection marks. When I include tocloft package I don't have header/footer anymore, that is not I want. On the other hand, I ...
3
votes
2answers
90 views

Unnumbered sections and section marks

In my document I have numbered and unnumbered sections. Unnumbered sections look like this: \section*{Introduction} I use fancyhdr and add section and subsection marks like this. \pagestyle{fancy} ...
4
votes
2answers
77 views

Latex sections, subsections without ending period

How to remove an ending period in sections, subsections, ... numbering? \documentclass[12pt]{article} \usepackage{fontspec} \usepackage{polyglossia} \setdefaultlanguage{russian} ...
1
vote
1answer
58 views

Insert paragraphs and subparagraphs into letter document

A few weeks ago I aksed for Insert chapters into letter document but now I need to add paragraphs and subparagraphs into letter document. The previous answer says that I need to copy those commands ...
1
vote
1answer
51 views

Soul letterspacing in memoir sections with \setsecheadstyle

I realize I have asked almost the same question earlier. There, the answer involved xparse or titlesec. Titlesec however gets into conflicts with memoir's pagestyles (running header settings, ...
5
votes
2answers
103 views

How to use multiple sets of numbered appendices with bookmarks and the memoir documentclass?

The Goal To have a memoir document with several chapters with the running story, a set of appendices called Appendices, with additional data in the main document, and a second set of appendices ...
0
votes
1answer
50 views

Correct font size of section and subsection

I have the following: \documentclass[noragright,centerchapter,12pt]{thesis} \usepackage[margin=1in]{geometry} \setcounter{tocdepth}{4} \setcounter{secnumdepth}{4} \author{cat} \title{cat} ...
6
votes
1answer
74 views

Making section headers look like chapter headers

I would like to make my section headers look like this with the titlesec package. Is there a good way to do that? EDIT - I am using the scratcl document class.
2
votes
2answers
155 views

LaTeX Underlined section titles with note to right without underline

I would like to have underlined section titles. However, I would like to put a reference to the right, without extending the underline completely. I am using sectsty and ulem to get the underlined ...
5
votes
1answer
39 views

How to create an annex when I have changed the structure of \chapter{}?

How to create an annex when I have changed the structure of \chapter{} ? I've also changed the structure of \chapter*{} with a similar code. Here the full code of the change: ...
1
vote
1answer
84 views

How to add dedication chapter to TOC? [duplicate]

How do I to add a chapter-name to this dedication and to add it to TOC, please? \newenvironment{dedication} {\clearpage % we want a new page \thispagestyle{empty}% no header and footer ...
1
vote
1answer
30 views

Automatic Section Title & Section Title Before Section Number

I'm trying to do 3 things: Repeat a section title automatically for each section (e.g., "Chapter"). Place the section title before the section number (e.g., "Chapter 1" and NOT "1 Chapter"). Make ...
1
vote
1answer
63 views

Style of Section Headings in LNCS

I am using the LNCS-Style, documentsclass llncs and there is no possibilty to use chapters. Actually when adding a section it looks some kind of this: What i want to do is to change just the style ...
4
votes
2answers
75 views

Problems with line-break in Chapter Title using a custom Command for Chapter

If you have to force a line break in a chapter title, this would be possible doing so: \chapter[][A Long title that has to be broken,\\ how sad is this!] But in my document I had to define my own ...
2
votes
1answer
39 views

Index heading style is different

I have document like this (MWE): \documentclass[10pt,twoside,final]{book} \usepackage{xltxtra} \usepackage{fontspec} \usepackage{fancyhdr} \usepackage{titlesec} ...
3
votes
1answer
90 views

titlesec image after

Can someone explain to me why the second of these two doesn't work? The first produces an image before the section name, where the second produces an error claiming there is no \begin{document} ...
2
votes
1answer
78 views

How to disable indentation in subsubsection using IEEEtran?

I am using IEEEtran and my sub subsections are indented. I tried using \parindent0pt but that removes the indentation of the paragraphs too. Any suggestion?
1
vote
1answer
88 views

How to find out largest ((sub)sub)section number in a document?

I would like to create a number of the form a/b where a denotes the current section (easy) and b the maximal section number in the document (this I am struggling with). Similarly for subsections and ...
3
votes
1answer
110 views

In Lyx how do I get chapters to start on odd pages

I'm using Lyx and I want the pdf output to print Contents, new chapters and bib on a odd page. How can I do this? What information do you require from lyx? Class is Report. Document > ...
11
votes
2answers
372 views

How to achieve this chapter style without using the memoir class?

As fncychap has no such chapter style, and using the memoir class will cause a lot conflicts with my current settings (book class), how to make this style (perhaps using the titlesec package)? Table ...
0
votes
1answer
70 views

Vertical spacing between sections

I would like to know how I can define the vertical space between: a previous section and the new section title; the new section title and the following text. Now it looks like both space measure ...
3
votes
1answer
39 views

Create a new command that exactly mimics memoir's section* command without the spacing before it?

I am using memoir and currently the \section* command does everything I want, except in some cases I don't want the space before it. \documentclass[12pt]{memoir} \begin{document} \section{No Space, ...
0
votes
0answers
22 views

Automatically applying wrapfig hotfix only when a section heading is the last thing on a page

I have the same problem as the user 'mrf' on Wrapfig and page breaks after section heading (see link for MWE and hotfix). Using wrapfig basically messes up the document flow such that section ...
3
votes
1answer
60 views

error for special characters in \section in a classicthesis

Provided the following tex document using classicthesis, produces an error. How can I use direct input of special characters in \section in classicthesis? I do not want to write e.g. \~{n} in the ...
2
votes
1answer
42 views

Org: Latex export creates lists instead of subsections

When I export the following org file to latex using C-c C-e d, the resulting tex file does not match my expectations in regards to the way the sections are being created. The exported subsections and ...
5
votes
1answer
197 views

Width of \chapter section with titlesec

I use the titlesec package for styling the sectioning commands. But I have a problem with the chapter width or right margin: The width of the text should only reach to the blue line, "Organisation" ...
0
votes
0answers
45 views

Problem with sectionning with my example

I want to number my example environments like [section]. However, example environments are numbered with chapter, not section. What should I do? This is my MWE: \newcounter{example} \makeatletter ...
4
votes
1answer
92 views

LaTeX Error: \begin{document} ended by \end{section}

I am encountering the above error message. This is what I have so far: \documentclass{article} \title{Assignment \#1} \author{Giridhaar Guruparan} \date{March 20, 2014} \begin{document} \maketitle ...
4
votes
1answer
47 views

lstlisting directly after section start removes margin before next section

If I place an lstlisting directly after the start of a (sub)section, the margin before the following (sub)section (title) disappears. Here is a an example document showing the issue: ...
2
votes
1answer
85 views

How to wrap section?

I would like to wrap the section. How can I do it? The following code is my MWE. \documentclass[b5paper,10pt,twoside,parskip=half,numbers=noenddot,bibliography=totoc]{scrbook} ...
2
votes
2answers
39 views

Defining local settings for title dimension

I am writing a paper in LaTeX, and I have to reproduce a template that was given as a .doc file. So I need to define the dimensions of the chapters titles in Times New Roman 12 pt bold, which is not ...
3
votes
1answer
65 views

\chaptertitle from titleps ignored after redefinition of \chapter macro

The following MWE shows that, if the \chapter macro is redefined as in a previous question of mine: Prepend different stuffs to starred and unstarred \chapter commands, the \chaptertitle macro from ...
4
votes
2answers
92 views

Different names of sections

I wish to name my sections as "Exercise x - name" in the text but as "Exercise x" in the ToC and in the \leftmark. Does anyone have an idea for this? I have tried just manipulating my \leftmark by ...