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

Number, toc & heading tree glossary subentries

I use some glossaries, one in the main matter of my text, other in the back matter of my document. I applied to the first a homemade style with hierarchical entries & subentries (cf. MWE). I would ...
3
votes
1answer
26 views

Place text tightly above section header

For a requirement specification I need to put some text right next to a requirement (a sentence or paragraph) for identification purposes. I would like to place such identifier right next to a section ...
1
vote
0answers
39 views

How to make nice indents at the beginning of each chapter? [duplicate]

I'm using this template to write my thesis. My chapters look like that: How can I make latex add the indent in the first paragraph of each section? I could manually add a hspace, but I'd like to ...
3
votes
1answer
68 views

How to stop new subsubparagraph entry appearing in TOC

I added a new subsubparagraph section level using the titlesec package, with help from How to add an extra level of sections with headings below \subsubsection and http://tex.stackexchange.com/a/94404/...
2
votes
2answers
50 views

Section Number without name in header

I am using the fancyhdr package to customize my header and would like to display it with the section number, but without the section name, i.e. : ______________________________________________ | ...
2
votes
1answer
15 views

I want only the section name in my header, not the section number

I have a problem regading fancy headers. I want to have the section name only in my header, but when I am using the following code I get the section number as well: \pagestyle{fancy} \fancyhf{} \...
0
votes
0answers
15 views

How to use \citet in section title? [duplicate]

I am trying to use the \citet command in a section title, but the space after the reference and the first letter of the following word are cut off if I use the \texorpdfstring comand around the \citet ...
2
votes
4answers
985 views

Removing the word “Chapter n”

So I am trying to remove the words Chapter n, and replace it by the chapter title. BUT I want it to show up in the table of contents... (So I cannot use \chapter*{...}). Is there a way to achieve ...
2
votes
2answers
87 views

set \parskip but not for headings

I want to define the vertical space that is inserted between text paragraphs when there is an empty line in the code. If I use \setparsizes{0pt}{1.0\baselineskip}{0pt plus 1fil} or \setlength{\...
1
vote
0answers
39 views

Header gets messed up [duplicate]

I've had a problem with my header on an assignment I've been working on. The headers of some chapter and or sections, when long begin to overlap over each other and sometimes go beyond the page. ...
1
vote
0answers
11 views

Section-Headline of a new paragraph under a list

My TeXstudio doesn't show a section or a paragraph headline in the structure view if an \begin{...} ... \end{...} construct is above this headline. For example: \section{test1} \begin{itemize} \...
0
votes
0answers
24 views

LaTeX: Top margin for References heading in PhD thesis

I have a layout issue with my PhD thesis. I need to have a 2 inche top margin for the References heading, but the rest of the pages of the references section should have a 1 inch top margin. The ...
1
vote
1answer
25 views

Formatting a \section* like a normal \section

I'm having trouble understanding how to format a \section* to make it look like a \section (without the section number, of course). Here is the code which the package I have to use uses for ...
0
votes
0answers
42 views

Include image with section heading, but placed arbitrarily on the page [on hold]

Sorry I don't have sample code to provide, but I'm not sure where to start with this. I want to alter a section heading to trigger the inclusion of an image at an arbitrarily chosen part of the page. ...
9
votes
2answers
422 views

How can I make a “fake” subsection number?

I'm writing a LaTeX document which includes examples of how to structure another LaTeX document. However, I can't figure out a way to make it so that there's a subsection in the example that is a) not ...
6
votes
1answer
73 views

Conditional print depending of chapter number

I have made a custom chapter head style and I would like to use it even with table of content. so for this I have: \documentclass{memoir} \usepackage[utf8]{inputenc} \usepackage[svgnames]{xcolor} \...
1
vote
0answers
46 views

Section title centering

I am writing my PhD thesis in LaTeX. When I tried to center the section titles, awkwardly, it compiles without table of contents but whenever I write \tableofcontents an error occurs. For centering, ...
4
votes
2answers
59 views

How can I write <section counter value>:<section title>:<page>:<file>:<line> to the log whenever (and whereever) a macro is called?

I am working on context-based log entries. Each time a selected (patched) macro is called, it should provide its contents along with a meaningful log entry. "Meaningful" log entry defined: The ...
4
votes
2answers
79 views

Dynamically create document chapters based on directory tree

For creating document structure I usually use something like this: \section{1} Text for chapter 1 \section{2} Text for chapter 2 \subsection{2.1} Text for chapter 2.1 \subsubsection{2....
3
votes
2answers
68 views

Komascript - Section after pagebreak has the wrong color

The following MWE shows that the second section is black instead of red. Even if this happens only if there is no text between these two sections: Is this a bug? \documentclass{scrartcl} \usepackage[...
3
votes
2answers
72 views

Use \nameref to refer to unnumbered section but allow short titles

I'd like to refer to an unnumbered \section* which in general just makes sense in combination with \nameref. However I'd like to define a short title for the section I can refer to, but \section[...
0
votes
0answers
8 views

Reducing the width between the section space [duplicate]

I came up with a minimum MWE to explain my predicament. I wish to reduce the space in between the sections as demarcated below: \documentstyle[12pt]{article} \setlength{\oddsidemargin}{0in} \...
0
votes
0answers
55 views

Bibliography section not visible in table of contents

Since I would like to have a separate section containing the references for all chapters, I use the chapterbib package: \usepackage[sectionbib]{chapterbib} According to the manual, this should ...
4
votes
2answers
64 views

customized chapter 'number'

Admit, this is a very special question, but I am quite sure, that it is realizable with LaTeX. I would like not to count my chapters like 1 foo 1.1 Problems 1.2 Solutions 2 bar 2.1 Problems 2....
1
vote
0answers
72 views

Request: Help recreating a word template for LaTeX

I'm fairly new to LaTeX. I've tried to do this myself for one week and decided I need help. I don't think posting my own code will help, so I'll just get to the point. This (above) is the cover of ...
2
votes
1answer
27 views

how to make a colored square for each subsection with memoir class?

I would like to make a blue square with corresponding subsection number. For this I done: \setsecnumformat{\csname #1secnumformat\endcsname} \newcommand\subsectionsecnumformat{ \colorbox{...
1
vote
0answers
23 views

Beamer section - different color schemes

In my Latex (sharelatex) beamer document, I do have a \section{Section Title} for showing a section. In the *.sty, sections are defined as % begin Sections - \if@doSectionPage\@empty \else % ...
5
votes
2answers
142 views

How to make a header with a binary matrix code as background?

I try to generate with tikz a header for each page with a binary matrix code. as: currently my working code \RequirePackage[svgnames]{xcolor} \RequirePackage{tikz} \RequirePackage{kpfonts} \...
7
votes
1answer
2k views

Beamer infolines outer theme with miniframe bullets only for the current section

I am wondering whether we can use the subsection part of the beamer infolines outer theme headline (the right half) to show the miniframe bullets of the current section. Assuming the section has three ...
2
votes
0answers
63 views

Indent appendices in table of contents

If I use \documentclass{article} \usepackage[toc,page]{appendix} \begin{document} \tableofcontents \begin{appendices} \section{Some Header} .. \section{Another Header} .. \end{...
2
votes
1answer
43 views

Easy way to sectioning with a leading zero [duplicate]

There is a easy way to modify only this command \renewcommand\thesection{\arabic{section}.} in order to have an arabic counter with just one leading zero instead the original arabic without ...
0
votes
1answer
25 views

Correct numbering of figures/tables/listings in Appendix

In my thesis I have several appendices, which are defined via \section{First Appendix}, \section{Second Appendix}, etc. latex statements. The appendices have the following titles (hence, appear like ...
2
votes
2answers
37 views

Linebreak problem with titlesec

I'm trying to format the section titles in my article to be Large, centered and underlined using titlesec. Some of my section titles are quite long so i need them to be in multiple lines. However, I ...
52
votes
4answers
133k views

Force LaTeX image to appear in the section in which it's declared [duplicate]

Possible Duplicates: How do I ensure that figures appear in the section they're associated with? Keeping tables/figures close to where they are mentioned How can I force an image in a ...
1
vote
2answers
41 views

Counter in section title, table of contents increases it

I'm trying to add a counter to subsection titles. For example: Design tests 1.1 Test 1. A test 1.2 Test 2. Another test Functional tests 2.1 Test 3. Yet another test The problem is, since the ...
1
vote
0answers
31 views

Customize top alignment with highlight current section in beamer [closed]

I want to set top alignment for all slides in beamer. Although it can be used by \documentclass[t]{beamer}, I try to use it by other command (since I am writing a separate sty file): \let\oldframe\...
1
vote
0answers
43 views

Section styling with eskdx trouble [closed]

Why my styling not working? I use eskdx class for formatting my document, but, if I want edit standard section styling, before compilation, I het old-style section? What am I doing wrong? *I've read ...
0
votes
0answers
30 views

Horizontal space for subsection header

I want horizontal space between section and subsection as shown in the picture. Please help!!
1
vote
1answer
43 views

References to sections in apa6 not working

How do I refer to a section using \documentclass[jou,apacite]{apa6} What I tried: \ref{sec:section_name}: latex completely ignored this. \ref{section_name}: this was ignored as well. nameref{sec:...
3
votes
3answers
129 views

figure is in subsection but it goes to subsection [closed]

I need your help in solving the followings: \documentclass[a4paper, 10pt, conference]{ieeeconf} ... \subsubsection{C} \begin{figure}[h] \begin{minipage}[t]{0.3\linewidth} \centering \...
2
votes
1answer
59 views

Usage of include (graphics, section's and only)

I'm working on my master thesis in LaTex (using TexMaker). I'm a bit new but getting the hang of it. At the moment i'm making my sections in different tex documents. For example, i have an abstract, ...
3
votes
1answer
43 views

How to set unnumbered subsection headings flush to left margin

How can I set my subsection command so that the subsections are (1) unnumbered, and (2) flush against the left margin? (I can get numbered subsections to sit flush against the margin, but not ...
2
votes
3answers
112 views

How to automatically squeeze a title?

After some comments, I am going to revise the question, so that it is more understandable. Here is my MWE: \documentclass[12pt, twocolumn, a4paper]{article} \begin{document} \section*{This is a ...
1
vote
1answer
32 views

Making sub-chapters [duplicate]

I'm writing a book and I wanted to add sub-chapters like : Chapter 1 Chapter 2 Chapter 3.1 Chapter 3.2 Chapter 3.3 Chapter 4 I've quite found an answer there but it's not working the way I ...
4
votes
2answers
74 views

How do you start a section with 0.0?

How would I go about adding the "A short preface" section? I know \section*{0.0 A Short Preface} would probably be fine, but TeX is awesome and there has to be a better way. This is sort of what I'm ...
4
votes
2answers
56 views

reformat section headings to include text

I'm sure that there's a easy answer, but I've reached the point of frustration trying different things with the \renew command. I want to reformat all section headings to include the text "Question" ...
11
votes
2answers
2k views

Customizing chapter style with tikz

How can I customize chapter style like below picture? Thank you in advance.
0
votes
0answers
21 views

Auto page break with new section when less than x space in current page [duplicate]

is it possible to add an auto \clearpage when adding a new section and there is less than X cm/in available in the current page ? Like it would be could to have an auto \clearpage when there is less ...
1
vote
1answer
53 views

newcommand titlespacing

To generate space between \section i am using \titlespacing*{\section}{0cm}{1cm}{0.5cm}, doing the same for subsection. Is it possible to generate titlespacing between own commands? I need three blank ...
28
votes
1answer
16k views

How to start new chapters on the right hand side

I use the report document class, and I would like that chapters always start on the right hand side, anyone an idea how this could be easily done?