{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
2answers
113 views

How to get the name of unnumbered section into headings?

I use \usepackage{fancyhdr} then \pagestyle{headings} and I want \section*{name of the section} in my headings. How to do it?
1
vote
1answer
22 views

Hidden section in header [duplicate]

My problem is that I don't know how to include \section*{Some Title} in \rightmark. Currently \rightmark is working fine for all types of pages e.g. list of figures, list of tables, table of content ...
1
vote
0answers
24 views

How can I automatically update section levels for included/input tex files? [duplicate]

I would like to automatically determine the current section (or subsection) where an input/included file is placed and use automatically updated sectioning commands so that a file can be included in ...
1
vote
1answer
32 views

Prefix for section headings, but not in captions

A journal, which I intend to submit to, asks that section headings are preceded with <heading number ...>. So I used this answer to create my custom prefix to the section headings: \...
0
votes
2answers
20 views

how to give subsubsection text same size as subsection?

how to make the text size of \subsubsection heading same as that of \subsection? I find \subsubsection text size too small and want the headings to be of the same size. Only \section heading can be ...
0
votes
1answer
19 views

Section numbering missing in classicthesis [duplicate]

I am trying to write my master thesis using classicthesis package, everything if working fine except the section numbering. I am able to start the chapters correctly. But when I start a section I ...
2
votes
1answer
37 views

Small italic text under section name?

I would like to write a small-font, italic comment right underneath a section name. Something like: \section{First Section} \comment{Some comment goes here.} Here section text begins. Is there a ...
8
votes
3answers
688 views

Is it possible make the section names globally title case?

I don't want to change them one by one. I am wondering how to make the section names globally title case? That is "This is a Title Case Section Name". It would be nice if you can also give answers ...
0
votes
1answer
15 views

Formatting Appendix Labels and its TOC Entry in the Report Document Class

I'm using the standard TOC and appendix functionality in a report document class, in PDFLatex. Relevantly, I have \documentclass{report} .... \begin{document} \tableofcontents ... \...
1
vote
1answer
27 views

Adding numbered appendices as section in documentclass report

I'm writing a text using the documentclass report and I can't find a way to add appendices like this within the article class: \documentclass{article} \begin{document} \tableofcontents \section{First ...
1
vote
1answer
38 views

\section* doesn't work with \renewcommand{\section}

I'd like to modify the \section command and I'd like to sometimes use \section*, but this doesn't work with amsmath package. The code below works fine without it, but I often need it: \documentclass[...
5
votes
2answers
1k views

Starting a proof with \paragraph

I would like to break a proof into paragraphs, but I don't seem to be able to start a proof with a paragraph. \documentclass{article} \usepackage{amsthm} \begin{document} \begin{proof} \paragraph{...
0
votes
1answer
33 views

Set heading in the margin to the left of text

I would like to style the \paragraph heading so that it is set in the margin to the left of the text. I experimented with the titlesec package, and I get the heading wrapped to the left of the text, ...
9
votes
1answer
17k views

How do I put chapters into a LaTeX document?

I used the following LaTeX tag to make a chapter \chapter{title here} but it did not compile. The LaTeX compiler was talking about Undefined control sequence How can I get over this error?
12
votes
1answer
3k views

Acronyms in section names with classic thesis

I have troubles using acronym package with classicthesis package when I put an acronym in a section name. The least reproducible example I could come up with is this: \documentclass{scrreprt} % If I ...
0
votes
1answer
68 views

Document Layout

I have used TeX for almost 2 years now, so I am fairly confident with it. I have, however, never given any concern to the layout of the document, but now I face the problem. I want a file with less ...
0
votes
2answers
33 views

Prevent page break between section and subsection with \hrule and \hfill between

I'm among many it seems that is trying to prevent an inappropriate pagebreak. In this case, I'm getting a pagebreak between my section and subsequent subsection. I know if I remove the \hrule and \...
0
votes
0answers
42 views

Titleformat and underlining section heading

I have used the following code to format my sections, subsections and sub sub sections: \titleformat*{\section}{\fontsize{18}{18}\bfseries\color{blue!30!darkgray}} \titleformat*{\subsection}{\...
0
votes
1answer
113 views

Header and text font isn't changing

I use clean thesis, when I change my language all my fonts turned from helvetica to default Latex font. Now I have changed some code and almost all fonts changed except Header, title and simple ...
0
votes
0answers
24 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
vote
0answers
43 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. ...
2
votes
0answers
23 views

Changing \leftmark number to \oldstylenums in memoir

Referring to the image below, I am trying to change the number 1 on the \leftmark header to \oldstylenums number format. Can anyone help? These are the codes: \documentclass[12pt,twoside,openright]...
0
votes
0answers
26 views

Remove chapter number space arising from \chapter*{}

I am using the titlesec package to format my chapters in the following way: \titleformat{\chapter}{\rmfamily\bfseries}{\resizebox{!}{2cm}{\Roman{chapter}}}{0pt}{\vskip 0.25\baselineskip \raggedright\...
3
votes
1answer
92 views

Custom Chapter Heading

I am writing a book using the book document class. I have used a template I found online to make my chapter headings look like this: I would prefer to add an image to my chapter heading and achieve ...
1
vote
1answer
38 views

Question Answer and Problem Answer document

In the code below, there are two parts in the document. The first part contains a Question then Answer, and the second part contains a Problem then Answer. For Part 1, I wanted to format the ...
3
votes
1answer
32 views

Theorem and chapter with Dot at the end

I'd like to have dot at end of the number of chapter and at the end of the number of theorem. I tried to use something like that: \documentclass{report} \usepackage{amsthm} \newtheorem{definition}{...
3
votes
1answer
20 views

How to use \book section title in heading using memoir class

I'm trying to define a pagestyle with the document title in the even-heading and the title of the current book section in the odd-heading, but have been unable to get it to work. The even-heading is ...
2
votes
1answer
45 views

How to make list of sections automatically?

Good afternoon I have got pages and on every page I have got \section*{...text...}. I would like to make list of these sections with name and number of page. Can I do it automatically? Just one ...
0
votes
0answers
30 views

Where are the numberes of the headings in

everything seems to be OK. Compiling works correct but the headings, exept chapter, have no heading-number. In TOC the numbering exists, pdfbookmarks are also numbered. Is there a command line for ...
2
votes
1answer
68 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, ...
0
votes
1answer
25 views

Counter problem for individualised appendix sectioning (Destination with same identifier)

I tried to individualise the sectioning of my appendix. I would love to have it sectioned like this: Appendix A.1 First A.2 Second A.3 Third B.1 Fourth B.2 Fifth B....
0
votes
1answer
28 views

I want to remove one chapter title from the beginning of the chapter, but keep all the others

I want to remove "Chapter 5" from the beginning of the chapter. But I just want to do that for one chapter, while I keep all the others. Do you know how to do that?
3
votes
2answers
47 views

Get title of current section of a specific level (similar to \thesection)

Similar to thesection, thesubsection, ... I want to obtain the title of a section (as it is in the body of the document), via for example (pseudo-code) \thesectiontitle, \thesubsectiontitle, ... The ...
4
votes
1answer
52 views

Refer to title of direct superior section in an inferior section

General I know there are question about "how to refer to a specific title" however I need a way to generally refer to the superior section's title or to the title of the current section of a specific ...
0
votes
0answers
25 views

how to automatically include the contents as I write the document [duplicate]

I write a document without writing myself the Contents. I just put the command: \tableofcontents and what I write after the command: \begin document is automatically added in the Contents. ...
15
votes
3answers
1k views

Prepend 'Appendix' before 'A' using scrbook

I am writing my thesis and need to put 'Appendix' before the numbering (A, B, C, ...) in the table of contents (TOC), the chapter title and in the header. I'd also like for \autoref{} to output '...
1
vote
0answers
31 views

Converting number to author-year citations using natbib in book with chapters?

I've been struggling with this problem a lot. I want to change the number like citations to author-year (something like apalike, e.g. from [1] to Sims (2000)). The problem is that I have a book with ...
1
vote
0answers
22 views

! Undefined control sequence .\@svsechs …ax\@svsec\if@unchead\Makeuppercase{Metadata}

In Latex I am creating a text with different sections at different files as follows: \documentclass{acmtog} % V1.2 \begin{document} \markboth{xxxxxxxo}{xxxxxxxxxxxxxxxxxxxxxx} \title{...
1
vote
0answers
11 views

Image not appearing in the correct section [duplicate]

im new in the latex program and im having a problem thats puzzling me... I introduced 2 figures inside a section, but these images appears outside that section. Thanks guys
4
votes
3answers
87 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
1answer
40 views

How to make a section heading indented using value of parindent?

While trying to use the titlesec package to format subsection headings, I have run into some trouble. I need subsection headings formatted so that they are indented using the value that is set with ...
2
votes
1answer
66 views

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

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, ...
1
vote
1answer
53 views

How to format Chapter Heading appearance on pages

I want to have only the chapter heading showing on top of each page without the the section headings. Below is a MWE. How do I modify it to get rid of the section heading appearing so as to avoid the ...
1
vote
0answers
43 views

Want \section* to change the page header?

I have several numbered sections followed by an unnumbered section. However, the page headers for the unnumbered section are continued from the last numbered section. I am using fancyhdr with the ...
0
votes
1answer
47 views

Boxed section heading style

I'd like the section title to look just as it does by default, except the following changes: No spacing (before/after) Text is inside black filled box Text color is white I've tried to use the ...
1
vote
1answer
66 views

Need advice on \chapter

I'm writing a collection of short stories. It works fine with Texmaker, but the chapters comes on top of the title of each story. The start page of a story starts with chapter no and then the name of ...
1
vote
1answer
20 views

KOMA-Script: Adding “linebreak” after paragraph and subparagraph

I have the following example code: \documentclass[parskip]{scrbook} \setcounter{secnumdepth}{5} \begin{document} \chapter{Chapter} Test \section{Section} Test \subsection{SubSection} Test \...
0
votes
0answers
33 views

Chapter Titles in the Left Margin

I was wondering would it be difficult to get section titles in LaTeX to show up in the left margin space in a way similar to this: http://practicaltypography.com/straight-and-curly-quotes.html I ...
0
votes
0answers
21 views

latex structure window some sections unseen

Recently I undate the Textstudio, then some sections or subsections can not be shown in the structure window anymore; but after complation, it shows normally in the PDF. The problem is it cost time ...
0
votes
1answer
37 views

Suppress numbering for newcommand and contional mesh up of text

I have two questions. First I would like to add subsection to the tableofcontent of my document to structure a little bit the toc without repeating the subsection in the docoment. And I already found ...