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

0
votes
0answers
17 views

Force New Page at Section Heading (Possible titlesec Incompatibility)

I am trying to force a new page whenever I create a new section with \section[]{}. Previously this was working for me with titlesec and \newcommand{\sectionbreak}{\clearpage}, but I made some changes (...
1
vote
0answers
32 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. : ______________________________________________ | ...
1
vote
0answers
8 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} \...
1
vote
0answers
36 views

Header gets messed up

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. ...
0
votes
0answers
23 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
35 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. ...
5
votes
1answer
72 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} \...
9
votes
2answers
414 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 ...
1
vote
0answers
45 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, ...
3
votes
2answers
71 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[...
4
votes
2answers
58 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 ...
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} \...
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....
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
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....
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
141 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} \...
2
votes
0answers
61 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{...
0
votes
1answer
23 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
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 ...
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 ...
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
30 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
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 ...
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 ...
3
votes
2answers
67 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[...
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" ...
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
52 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 ...
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 ...
2
votes
1answer
33 views

Align two sections titles

I have recently started learning latex, and i have the following latex code with two minipages, and two sections in the first section i added two images, then i added an other minipage and a section ...
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
0answers
43 views

Problem with heading [closed]

I write my thesis and I have a following problem. My thesis consist of chapters. Some of the chapters have sections. The problem is - When the Chapter has no sections there are blank heading. When ...
0
votes
0answers
17 views

New colored box environment [duplicate]

Is there someone who can do the followig: I would like to define a new environment for a colored box with a title that I can call as follows: \begin{mybox}{*Title*} ** Text ** ** Math ** \end{mybox} ...
-1
votes
1answer
114 views

hi guis iwant to help me [closed]

indeed help me in this problem when I write new subsection enter as shown in table belwo
0
votes
0answers
33 views

Underbracing an equation with tikz in a sub document, which is thereafter included in a main document

Notice, that for the following I have a master (.tex) document which includes the several parts/chapters (.tex). In one of the included chapters, I have an equation (with a square root) that I need ...
6
votes
1answer
38 views

Adjusting section titles with additional texts

I want to write a statement about the current status of some topics (which are in sections/subsections) right aligned with the corresponding section/subsection title. For example, see the figure: I ...
2
votes
1answer
40 views

Why sections between these tables are not shown at the required position?

I'm totally new with Latex and I'm facing this problem using tables: I have a certain number of tables with the exact same structure, when I define subsections between them the subsections do not ...
2
votes
2answers
40 views

How to achieve custom paragraph (or in general section) numbering and allow references?

I used the command getcurrentref from this question/answer to achieve a custom numbering when \paragraph is used. I wrapped it into the macro: \newcommand\mybook[1]{\paragraph{B \getcurrentref{...
1
vote
1answer
36 views

Line on the left and right of sections names

I'd like to have lines on the right and left of every section name. Kind of like this but instead of having just a bit of text and adding lines to fill the textwidth, I'd like to have the section name ...
1
vote
1answer
19 views

TOC overlap with custom section numbering [duplicate]

I have redefined \thesection in my document to give me custom numbering. Now the section number is slightly longer, and the table of contents hasn't adjusted accordingly. In the TOC below potatoes ...
4
votes
2answers
91 views

How to color section numbers in the TOC?

In the following MWE, how can I color just section numbers in the TOC? \documentclass[a4paper]{book} \usepackage{color} \makeatletter \renewcommand*\l@section{\@dottedtocline{1}{0em}{2.3em}} \...
4
votes
1answer
38 views

Titlesec & titles extending into margin

I would like to use titlesec to have gradient shaded section titles that extend into the left margin. I would like the section number and the gradient to extend into the left margin, but would like ...
7
votes
3answers
139 views

Why can't sectsty change the chapter font when it's used with babel package?

I'm using Latex to write my thesis in Hungarian, so I include in the preamble the following: \usepackage[magyar]{babel} Once this is loaded, I get "Chapter", "Figure", etc. in Hungarian and with ...