{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
1answer
50 views

Change the name of sections [closed]

In the past I just used \newcommand{\sectionname}[1]{Task~#1} to make the sections have a different name. Now it seems to have stopped working. I am using babel with the ngerman option. I have ...
2
votes
3answers
46 views

Mixing Numbered and Un-Numbered Sections in the ToC

In my table of contents, I need to have some entries numbered, and some un-numbered, but still have the number increment on un-numbered parts. In other words, I need: 1 - First Section Title 2 - ...
1
vote
0answers
53 views

how to correct broken pipe and bad range specification [closed]

I am getting broken pipe and bad range specifications all morning today. Everything worked fine and today I am updating my latex files by splitting chapter and sections to different files. I didn't ...
4
votes
1answer
92 views

How to ignore starred command (such as \section*) with latexdiff?

I try to ignore changes of \section* in latexdiff, and while I am able to do so for \section, the same does not work for \section*. This is a.tex: \documentclass{article} \begin{document} ...
2
votes
1answer
76 views

how to separate chapters and section

I have a lot of chapters and sections inside chapters tex file. I want to make a separate folder for chapter and there put separate sections tex files. How I should do this? I am using report for now, ...
3
votes
1answer
64 views

Displaying Text Next to Section/Subsection title in LyX

Within a given section (or subsection), I would like my section title to appear on the left and I want the text to appear immediately after the title of the section as in the following example. In ...
2
votes
1answer
56 views

Including “Chapter” before each section number in the ToC? (Article Class)

Basically, here's my MWE, and I need to include "Chapter" before every section title in the ToC (without changing anything else). \documentclass[12pt]{article} \usepackage[utf8]{inputenc} ...
2
votes
1answer
33 views

Why won't memoir show a header on the first page of a chapter?

I want to have a header on the first page of a chapter. \documentclass{memoir} \makepagestyle{generalstyle} \makeevenhead{generalstyle}{}{HEADER}{} \makeoddhead{generalstyle}{}{HEADER}{} ...
0
votes
1answer
29 views

How can I change the style of the section number? [duplicate]

The section appears like "1 XXXXXXX", and I want something like "1. XXXX". I've been looking for some way to change it using \renewcommand, but nothing happens. Can you help me? P.D. I am using the ...
2
votes
2answers
99 views

Page Header in LaTeX

The document class I am using is: \documentclass[a4paper,11pt,openany,leqno,footinclude=true]{memoir} I want to get the header of a page in LaTeX just like the one I found here: Here apparently ...
1
vote
1answer
54 views

variable beforeskip in \@startsection

Is it possible to have a "calculated" \beforeskip in \@startsection ? I want the beforeskip of a subsection to be 1.5ex unless the previous paragraph is a section. In that case I want the section and ...
1
vote
1answer
44 views

Need to add a Period (dot) after Section Number [duplicate]

I have the following MWE: \documentclass[a4paper,11pt,Times]{article} \usepackage[english]{babel} \usepackage{amsbsy} \usepackage{sectsty} \usepackage[scaled=1]{helvet} \usepackage{titlesec} ...
1
vote
1answer
77 views

How to reset frame number in beamer correctly when using parts?

I used some code found here on stackexchange (I don't quite remember where exactly) and structured the beamer-lecture using parts. The problem I encountered is, that the frame number won't reset ...
2
votes
2answers
21 views

Error with section numeration while using abntex

I am using abntex2 to write my document and, for some reason unknown to me, the first section is marked with 0.1, instead of 1, the second, with 0.2 instead of 2 and so on. Here's the code below: ...
6
votes
1answer
433 views

Missing number, treated as zero when creating a chapter

I'm trying to create a chapter , the first subdivision in the document, but whenever I try the \chapter{...} command, I get this error: Missing number, treated as zero. <to be read again> ...
3
votes
1answer
92 views

A simple section exercise section

What I want seems pretty simple, but I was not able to find a satisfactory answer. What I want is something like this \section{Foo} A bunch of definitions, theorems, remarks, etc. \begin{exercise} ...
1
vote
3answers
63 views

Title of Section in Center (thesis writing)

For writing thesis, I am using \documentclass[a4paper,oneside, 12pt]{book} In it, sectioning was coming at left. I want them in center. This has been considered before (see this). But, I tried ...
2
votes
2answers
85 views

How to stop a custom \section macro from adding whitespace to the beginning of a paragraph?

I lifted a \section macro from the TeXbook. \outer\def\section#1{\medbreak\noindent{\bf#1}\smallskip\par\nobreak\noindent} When I use this macro like this: \section{\TeX nical documenation} Blah ...
4
votes
1answer
79 views

Customizing section for adding bullet or image

I am a newbie to TeX and I'm trying to create a template CV for learning LaTeX class and new commands. I want to create an \iconsection command get 2 values: first, an icon filename or pifont ...
2
votes
1answer
126 views

Double-spaced paragraphs with single-spaced headers in classicthesis?

I've been writing my PhD thesis using the classicthesis template with the arsclassica style package. My university requires that I double-space the body of the thesis, so I'm using \doublespacing for ...
2
votes
1answer
63 views

How to change the numbering of section and subsection

I would like to see my sections as for example 3-1 instead of 3.1 How can I do this?
0
votes
0answers
54 views

Size of spaces left before and after title chapters in ConTeXt

How much space is left before and after title chapters, considering that the parameters before and after have been set as [before=,after=,]? Are these spaces related to the font size of the title ...
4
votes
1answer
51 views

Put section on the left of text instead of above

How can I get section headers on the left of the text, so I get something like My Section Header Some text More test [...] Another Section ...
0
votes
0answers
36 views

Increase \label{} counter manually [duplicate]

I use my own version of subsections for definitions: \newcommand{\definition}[2]{\addtocounter{subsection}{1} \subsection*{\thesubsection ~ Definition (#1) \text{\normalfont{#2}}}} I use them as: ...
1
vote
1answer
57 views

How to cross-reference an unnumbered section?

So, this is pretty well-known: \section{boring Hello World} \label{bHW} but in this case?: \section*{boring Hello World with no section} \label{bHW_noSection} with the above I got referenced to ...
2
votes
2answers
66 views

Control over section and header style

I attach the minimal working example of my issue: \documentclass[12pt, a4paper]{book} \usepackage[utf8]{inputenc} \usepackage{fancyhdr} \pagestyle{fancy} \fancyhf{} \fancyhead[LE,RO]{\tiny\thepage} ...
5
votes
2answers
80 views

Using llap in titleformat prevents line breaking

I would like section numbers to be placed in the margin. I found a solution here (Theorem Name/Numbering in Margin) which works with a caveat: when the section title is very long, the title text line ...
2
votes
1answer
58 views

Change header if title is first on page

(Not a dupe of Is something the first item on a page? and another similar question, because these involve preventing rules at the top of a page by putting them in leaders; but leaders require boxes, ...
1
vote
0answers
40 views

Prevent hyphenation [closed]

The page has a lot of space but subsection hyphenated. How to prevent this? I need to stretch that title.
0
votes
1answer
56 views

How to underline the section to the end of line?

I am using the following code taken from online to underline the section title \makeatletter \sectionfont{\ulemheading{\uuline}} \let\oldsection\section \def\section{\@ifstar\s@section\@section} ...
2
votes
1answer
24 views

Placing marginal label within multiline heading

I want to make section headings in an article-class document both multiline and having lables on thier margins. I'm using two boxes: one for a label and another one for text to force it to split. ...
0
votes
1answer
36 views

llncs - table lined up with section heading

I want to have the first line of a table line up with the section heading. I'm preparing the document for Springer's LNCS series using the llncs.cls house style. Here's how things look if I do this ...
2
votes
1answer
60 views

Why CAPS LOCK in AMS mode in LyX?

I am trying to use the AMS article in LyX. I want my output to look like the following (note margins are the same for the entire paragraph and not all letters are capitalized): Here is my source ...
3
votes
1answer
51 views

How to number subsection of a nonumber section?

To number the subsection, I use \renewcommand*\thesubsection{\thesection.\arabic{subsection}} It works well for the normal numbered sections. For example, if we use \section{A} ...
1
vote
1answer
115 views

Section title opposite to the logo

Could you please advise me how I could change that code from this link to place the section title opposite to the logo? I am new in LaTeX and I would be very grateful for advice. For example: 1st ...
0
votes
1answer
75 views

What's the best way to split my thesis into multiple tex files?

I am using a LaTeX template for my thesis and it has separate tex files for each chapter which are added to a main.tex file using \input. I would like to know if it's a good idea to do the same for ...
0
votes
1answer
62 views

Multicolumn in pgfplotstable header

This code is building from the post found here by a solution from Harish Kumar. I am trying to have some of the headers appear in a multicolumn. From my code, I wanted to get the 7th-10th column ...
5
votes
1answer
70 views

Larger Space After Section for Math Mode

I am getting a large space after a section when math immediately follows. How can I make this space the same as if text followed? \documentclass{article} \usepackage{amsmath} \begin{document} ...
2
votes
1answer
47 views

Blanks before redefined heads not working in ConTeXt

As you can see in the following code, I am trying to put some blank space before the heads I have redefined, yet as shown by grid, no blanks are being shown. \setuppapersize[A5] ...
2
votes
1answer
52 views

Wrong subsection markings in header with ConTeXt MkIV

I am trying to have simple subsections titles like "Chapitre 1", "Chapitre 2" etc... with corresponding mark being the number only, but my example below seems to not give correct markings output in ...
1
vote
0answers
28 views

How to number sections: one, two, three [duplicate]

I am attempting to number my sections with the English words: one, two, three, etc. For instance, the command \section{Hello} would produce: One Hello Is this even possible in LaTeX? As an ...
1
vote
1answer
42 views

Using tabularx to create custom section headers

Like many LaTeX users, I spend too much time tinkering around rather than writing the actual document. But I am wondering if anyone has attempted this or not. I've been working on getting the first ...
1
vote
0answers
77 views

Memoir class and subsection titles

I've been through all types of answers but couldn't make it work: I use memoir class, \usepackage[sc]{mathpazo} My running heads are correct, but the section titles are smallcaps (and small!) ...
1
vote
1answer
44 views

How can I enumerate only certain subsections?

I want to show serial number 1. 2. or 1) 2) only before BB like the figure shows. I don't want to use ways like this \subsection{1.BB}, \subsection{2.BB}. Is there a smart way? ...
2
votes
0answers
35 views

Include \part* in header with memoir class

When using \createmark it doesn't seem possible to make a mark for an unnumbered part (\part*): \part*{Part} and \createmark {part}{both}{nonumber}{}{. \ } - does not create an unnumbered part ...
3
votes
1answer
57 views

Add a horizontal rule under section title without any additional package

I would like to add a horizontal rule under section title, change colour and character of the title. Until now I have been able to change the color and character, but it revealed to me a hard task to ...
3
votes
1answer
51 views

How do I prevent the section heading from printing 3 times in the ToC

I used the code from Cross-referencing to included PDF with counter and argument in the label and also from Bates numbering of multiple pdfs with label reference to the page numbers. In my quest for ...
1
vote
1answer
114 views

Doubts sectioning a book

I have a book divided into chapters and I need to have some pages in the beginning, like a page with the title and so on. Book title and author (one page) Credits (after the title page) Dedicatory ...
0
votes
1answer
31 views

How to plot all the sectioning levels using \ref{label}?

In following MWE, the \ref command returns the actual numbering of the subsection it refers to (here "a" -- cf. red box on the picture below). How to make it to return "1.a"? In more generic terms : ...
1
vote
1answer
46 views

How do I customize the font and font size of every section title once and for all?

\documentclass{article} \newcommand{\sect}[1]{\section{\fontsize{20}{30}\selectfont \ctxfr #1}} \begin{document} \sect{Yes} \end{document} Above is what I tried; it is unfortunately not workable ...