Questions tagged [sections-paragraphs]

{sections-paragraphs} is about the lower-level sectioning commands from \section to \subparagraph that help to form the logical structure of documents. This tag should only be used *in addition* to the more general {sectioning}.

Filter by
Sorted by
Tagged with
9
votes
1answer
11k views

numbering of \paragraph command

Due to the limitations of the number of subsubsections, subsubsubsections that we can use, I notice that I could replace that with the command \paragraph. Now when I use that, I am amazed by its ...
9
votes
3answers
2k views

Section should automatically start new page if the whole section does not fit on current page

I would like my sections to start on a new page if they do not fit on the current page. In other words: if a section fits on the current page print it, if it does not fit start printing it on the ...
9
votes
1answer
3k views

Multiple figures inside a subsection

I have an x amount of figures that I want to display inside a subsection. The subsection doesn't contain anything else. Currently the images are automagically put on pages from other sections. What is ...
9
votes
1answer
1k views

How do I prevent LaTeX from putting \sections at the very end of the page?

Please take a look at the screenshot below. I am having a problem where LaTeX would put the \section at the very end of the page. So far I fixed it by using \newpage but I just learned that it was ...
8
votes
3answers
9k views

Control line spacing of section headings

I use macro and titlesec package to create custom \section heading. \documentclass[final]{book} \usepackage{lipsum} \usepackage{titlesec} \titlespacing*{\section}{0pt}{1em}{0.3em} \def \mysection#1{...
8
votes
3answers
4k views

Include only paragraph titles in the table of contents

My Latex document has a large number of paragraphs (about 10 per page), and I'd like to build a list of the titles of all these paragraphs. For example, given the following document: \paragraph{Bla1}...
8
votes
1answer
5k views

Numbering subsubsections in beamer

I tried using \setbeamertemplate{subsubsection in toc}[subsubsections numbered] but this does not seem to work. Here is a full example: \documentclass{beamer} \setbeamertemplate{section in toc}[...
8
votes
1answer
12k views

Add paragraph symbol to section

I would like to ask how can I add the paragraph symbol § so that it will be displayed as below: §4 First section §5 Second section By default it is generated as below when a \...
8
votes
1answer
733 views

Fragile error on robust command using relsize

I created a supposedly robust command through \DeclareRobustCommand{\plusplus}{\relsize{-3}{++}} that modifies some ++ sign, and I use it in the document. However, when I use the \relsize and the ...
8
votes
2answers
1k views

Subdividing structured abstracts

I am trying to produce a structured abstract, i.e. with subdivisions. For that purpose, the \paragraph command would produce the perfect output since I would like no line break after the subtitle of ...
7
votes
4answers
1k views

How should I manage to get titled and untitled paragraphs together?

I know, the question doesn't explain too much. That's why I'm going to do that here. I'm writing a technical paper and I have a few sections. Within each section, there are a few paragraphs. Some of ...
7
votes
2answers
349 views

Paragraph title in ConTeXt (similar to LaTeX \paragraph{})

I want to have inline paragraph titles in ConTeXt with a mark and spacing: This is my paragraph @ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut ...
7
votes
2answers
3k views

Margins in section header

I redefined some commands to meet my university requirements in my 'report' based class, and these commands basically work fine. Additionally, I need to change sections/subsections header margin rules....
7
votes
1answer
1k views

Numbering of subsections and paragraphs

I have a document style for a report which I'm having to copy to LaTeX format. I'm using pdfLaTeX, for information. In essence, the system is that paragraphs are on the same level as subsections, ...
7
votes
1answer
314 views

numbering from Indian to arabic “arabic babel”

\documentclass[12pt]{arabbook} %%%%%%%%%%% packages \usepackage{fancyhdr} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[english, arabic]{babel} \usepackage{t1enc} \usepackage{float} ...
7
votes
1answer
3k views

How to set counter for paragraphs in sections?

I want to counter paragraphs, always like x.y where x is section number and y is paragraph number in that section. \documentclass[11pt, twocolumn, a4paper]{article} \usepackage[left=1.5cm, text={...
6
votes
2answers
244 views

How to add rectangle or other symbols before section name?

This is what I want. MWE for test: \documentclass[UTF8]{article} \begin{document} \section{section I} \subsection{subsection I} \section{section II} \subsection{subsection ...
6
votes
2answers
448 views

How to write the following section in LaTeX?

Suppose I want to write in latex just the following way: Prove that, (i)x+y=z (ii)a+b=c (iii) p+q=r how to do that? I tried enumerate or itemize but can't do that exactly, is there any way of ...
6
votes
2answers
2k views

How can I inhibit LaTeX to float a table across a section boundary? [duplicate]

Possible Duplicates: Keeping tables/figures close to where they are mentioned How to avoid splitting tables between sections. How do I ensure that figures appear in the section they&#...
6
votes
2answers
799 views

Why is there no new line after paragraph sectioning commands?

I'd love to know why traditional document classes are not including a new line after the \paragraph sectioning command. Maybe there is some typographic history behind it or something (maybe not and ...
6
votes
2answers
887 views

Suppress headers when page contains a section title using titlesec

I'm writing a book with titlesec and try to suppress headers containing the section name, when the section starts at the top of the respective page. Given that all my sections start on a new page I ...
6
votes
2answers
922 views

Configuring the looks of memoir's \paragraph

I need a lower heading level than subsubsection and hence I am turning towards \paragraph. I am happy with not having it numbered but I do want it to stand on a line of it's own and be italic. I have ...
6
votes
2answers
135 views

Can I give predefined values to section numbers?

I want to include three sections in my document, but I want the section numbers to be 3, 5 and 6. Can I somehow give predefined values to sections? \documentclass[11pt]{article} \begin{document} \...
6
votes
1answer
922 views

Titlesec package - paragraph level headings as margin notes

After hours of pointless googling around I did not manage to find out how... I'm new to LaTeX templates and now I'm trying to make simple (?) modification so that I could have paragraph level headings ...
6
votes
2answers
985 views

Adding a line break after \paragraph section and making it justified

I had a friend help me change the \paragraph section to include a line break after the end of the section title. However the end result is a ragged section that isn't justified and if the title is too ...
6
votes
1answer
950 views

How not show on the Table of Contents the subsubsubsection?

I found this little snippet to get subsubsubsection: % -- For subsubsubsections: \setcounter{secnumdepth}{4} \setcounter{tocdepth}{3} \makeatletter \newcounter {subsubsubsection}[subsubsection] \...
6
votes
2answers
373 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 ...
6
votes
1answer
2k views

Spacing after first line with titlesec using runin option in titleformat

I'm using the titlesec package to format my (sub)section titles. I'd like to use the runin option in \titleformat to place my subsections titles within the first paragraph of each subsection. However, ...
6
votes
1answer
2k views

Reducing chapter and section spacing for scrbook

I'm using scrbook document class and using chapters and sections. The spacing between chapters and sections is quite large, too large for my taste (before and after the chapter and section). So my ...
6
votes
2answers
229 views

memoir: change paragraph title from “10. Excercise” to “Exercise 10”

I use \setparaheadstyle{\normalsize\itshape} \setafterparaskip{1ex} I'd like to move the number to the right and dispense with the period. I'd also like to align the whole title to the right (to ...
5
votes
3answers
3k views

How to suppress the final period (“.”) in paragraph titles?

When I run the following code, I get the paragraph title "Some title.". How do I get the compiler to suppress the period (".") in the paragraph title? \documentclass[3p,12pt,authoryear]{elsarticle} \...
5
votes
2answers
831 views

Small symbol next to section headers

I am writing a school report which has to be evaluated by two different teachers. I need to mark which sections each teacher should read. I guess I can make a small symbol next to the header to mark ...
5
votes
3answers
2k views

alternative to \paragraph in amsart

I have a mathematical proof which is long so I have split it up into different sections using \paragraph (eg. \paragraph{The first step}...) In article mode, the text in the paragraph command is ...
5
votes
2answers
667 views

How do I get my subsection to not appear bold and with no period at the end?

This is what I have for my codes: \section{MAIN RESULTS} \subsection{Graphical Analysis} I am getting this in the pdf: Instead I want the subsection in Italic non-bold form with no period at the ...
5
votes
2answers
1k views

Change numbering level for one chapter only

Apologies if this is duplicate but couldn't find it. I have a document using amsmath for chapter, section & subsection numbering, & everything (theorems, lemmas etc) uses the same numbering ...
5
votes
1answer
298 views

Paragraph titles disappearing

So, I'm trying to use the listings package for some code samples in my document. When I converted my verbatim sections to lstlisting my paragraph titles disappeared. I've attached some example code ...
5
votes
1answer
352 views

Margins as Subsections

Is there a way to have subsection titles show in the margin of the page? I'm never happy with subsections, I usually tend to avoid them. What I do like, is letting the readers know what's going on by ...
5
votes
2answers
522 views

How to renewcommand the word-size in section titles?

I type \section{\Large Section title} to make the section title larger than what it originally appears. Please could you tell me how to achieve this effect by redefining the command \section uniformly,...
5
votes
1answer
8k views

Subsection starting in same line as subsection name [duplicate]

Many articles are structured in the following way: 1. [Title of section 1] 1.1.[title of subsection 1.1].text of subsection 1.1 1.2.[title of subsection 1.2].text of subsection 1.2. 2. [Title os ...
5
votes
1answer
51 views

Spacing before section is missing when using user defined listings

I define a user environment but for some reason, the space before section 3 is missing. Please see the following example. Why this happen? How can I make the spaces the same before section 2 and ...
5
votes
1answer
3k views

Section and subsection name in headings

I'd like to make the headings of my article look like this: <Section name> <Subsection number> <Subsection name> | <Page number> and I wrote this code: ...
5
votes
1answer
122 views

Modified Section Labeling with Theorem Environment

I am writing up solutions to qualifying exams at my school, and want to label the sections according to the corresponding solutions. The issue, is that each year there are two quals--one in January, ...
5
votes
1answer
158 views

Create floating subsection

I am writing a summary mostly including equations but also some pictures. Now I would like to place the subsections including these pictures floating, such that the arrange themselves nicely. I know ...
5
votes
2answers
8k views

Change space between title and text in \paragraph command

I am wondering if there is a way to remove the space that comes between the title and the text when using the \paragraph command. I am working on my thesis, and have gotten it proof read by someone ...
5
votes
1answer
272 views

Onecolumn vs. Twocolumn: spuriously different header spacing

In the following example, there's a spurious space in the one-column variant. The problem seems to be that in two-column mode, the \section command is at the "beginning of a column" and no space is ...
4
votes
2answers
8k views

How to get new line after \subparagraph title?

Is there a default way to change the style of the \subparagraph title, namely to add a new line after the title? Is there a way to do it without \renewcommand (some style changes of something else) - ...
4
votes
1answer
449 views

How to write in the following manner?

I'm using \documentclass[12pt]{exam} environment, and suppose I want to write in the following way: Here is what I'm doing: \documentclass[12pt]{exam} \begin{document} \begin{questions} \question ...
4
votes
1answer
4k views

How could make the topic of \paragraph not bold?

I am writing a paper for a journal. So I download a template for LaTeX. But it does not define \subsubsubsection. So I use: \setcounter{secnumdepth}{5}% for \subsubsubsection \paragraph{Topic}\mbox{}...
4
votes
3answers
1k views

Create new section commands (with correct TOC entries) in KOMA-Script

What is needed to make a new sectioning command which outputs a correct entry in the TOC? For example, a command \foo which outputs something similar to \subsection in the TOC (and in the main ...
4
votes
1answer
2k views

How do I get the \paragraph's enumerated, but not the \section's

I need the \paragraph{xxx} command outputs "§ 1 xxx" but the \section{Abc} outputs just "Abc", no numbering. Any help? Thanks.