Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [paragraphs]

{paragraphs} are distinct text divisions that begin on a new, usually indented line. In TeX, a paragraph is ended by the \par command or at least one blank line. If your question is about the \paragraph or \subparagraph sectioning commands, use {sectioning} plus {sections-paragraphs} instead.

1
vote
1answer
20 views

Undo alternate command definition

I'm working with an automated system that injects some code that redefines the paragraph command: % Redefines (sub)paragraphs to behave more like sections \ifx\paragraph\undefined\else \let\...
0
votes
0answers
40 views

Second paragraph of abstract is not indented, ideas for why or hacks to force it [on hold]

Latex, for some reason is not indenting the second paragraph of my abstract. When I create a new document that near empty empty, it indents as intended, so there must be some insane conflict ...
5
votes
2answers
172 views

Allowing figures to break paragraphs

As it seems, the placement option [!htb] only allows the figure to be placed between paragraphs. But what if the best placement is "inside" a paragraph? See, for instance: \documentclass{article} \...
1
vote
0answers
27 views

Constant paragraph spacing for questionnaires/surveys in LaTeX

In order to be able to keep questions hidden until they are answered, I want to fold a survey form (questionnaire) horizonally. Therefore I want to create constant hight paragraphs. Meaning: ...
0
votes
0answers
22 views

Multiple colored paragraphs: recognize position in PDF

I'm using this answer to color multiple paragraphs, i.e. I use \newcommand{\nathaniel}[1]{{\leavevmode\color{blue}[#1]}} and then \nathaniel{ paragraph 1 paragraph 2 paragraph 3 } ...
2
votes
1answer
26 views

Conditions under which the paragraph <p> tags are generated by Tex4ht

I would like to understand better what is responsible in Tex4ht for inserting the <p class="indent"></p> and <p class="noindent"></p> tag statements. I get a lot of empty ones ...
1
vote
1answer
38 views

Is there a way to insert paragraph breaks inside of \texttt block?

The following source code compiles just fine: \documentclass{minimal} \begin{document} \texttt{ Lorem ipsum dolor sit amet Lorem Lorem } \end{document} However, the following ...
0
votes
0answers
28 views

excess space in new paragraph

Here is tiny example of my problem \documentclass[12pt]{article} \usepackage[english]{babel} \usepackage[TS1, T2A]{fontenc} \usepackage[utf8]{inputenc} \usepackage{pscyr} \usepackage[left=2cm,right=...
0
votes
0answers
17 views

Structure paragraphs a bit more

I often try to group paragraphs together with \\[0.5cm]. For example I have a section with 5 paragraphs and I think the first two and the last three are more connected with each other I would group it ...
0
votes
0answers
34 views

Change paragraph TOC style

i'm modifying my LaTeX template, and I used the code from this answer to modify a few things in my TOC. Currently i have this code [Modified in order to make it compilable, using the same libraries my ...
1
vote
2answers
64 views

How to center \paragraph title?

I would like to center the title of my \paragraph command to have a display like this : I tried to use the \paragraph{\centering paragraph's title} but it does not work. I am looking for a way to ...
0
votes
1answer
49 views

Indent of paragraph at enumerate package

I'm confused to make this paragraph below using enumerate. Actually I don't know whether I could use the package or not. And I want this for certain paragraph only, but I have no idea to do it. I did ...
1
vote
0answers
12 views

How can I ensure paragraph text in a figure has no side effects?

I want to include a centred image with a caption and a paragraph above it (on the same page). To achieve this, I've got roughly the following setup: \documentclass{article} \usepackage{graphicx} \...
1
vote
1answer
44 views

Set vertical space after paragraph depending on the following text

I have this code: \documentclass[11pt]{article} \usepackage{amsthm} \usepackage[margin=2.5cm]{geometry} \usepackage[utf8]{inputenc} \usepackage{setspace} \theoremstyle{definition} \newtheorem{...
4
votes
2answers
74 views

Auto Detect Last Paragraph and Pass to Macro

The MWE below produces the desired results: via the \ProcessLastPara{} which applies a desired \parshape to the given (last) paragraph. Questions: The MWE below required me to manually identify ...
1
vote
1answer
21 views

Using wrapfigure with custom paragraph breaks

In my document, I've modified \parskip to give a nice break between paragraphs. But this means that \wrapfigure calculates the number of lines wrong, and gives itself a significantly larger margin ...
1
vote
0answers
20 views

Automatic line feed after paragraphs?

I would like to have more space between the paragraphs, this automatically using usepackage or similar, for the whole document. Would you have an idea how? thank you \documentclass[11pt]{article} \...
1
vote
1answer
44 views

How add spacing after of \paragraph

How add spacing after of \paragraph{Parrafo}? \documentclass{report} \usepackage{float} \renewcommand\paragraph[1]{$\bullet$ \textbf{#1}} \begin{document} \chapter{ } %if you want a name write it as \...
0
votes
0answers
30 views

Down the text of paragraph

I want down the text of paragraph in new line. \documentclass{report} \usepackage{float} \renewcommand\paragraph[1]{$\bullet$ \textbf{#1}} \begin{document} \chapter{ } %if you want a name write it as ...
1
vote
1answer
36 views

Put a bullet before paragraph

I want put a bullet before paragraph ?, I want to put a bullet before the paragraph starts \documentclass{report} \usepackage{float} \begin{document} \chapter{ } %if you ...
2
votes
3answers
69 views

Making \paragraph{} spacing the same as other paragraphs

I am using the ACM proceedings template. I use the \paragraph{} command to highlight a few words at the beginning of the paragraph. However, the paragraph spacing is significantly more when I use the \...
3
votes
1answer
45 views

How to use a macro to specify number of lines in a \parshape

I would like to be able to use a macro to specify the number of lines in a given \parshape. So, instead of \parshape 8 ... for instance, I would like to be able to use \newcommand*{\NumberOfLines}{...
3
votes
3answers
84 views

Multiple Paragraphs with \parshape

When using a \parshape, I can use \newline\hspace*{0.5\parindent} to produce a new "paragraph" and still continue with the current \parshape. Is it possible to leave a blank line and still get the ...
4
votes
2answers
53 views

Paragraph breaks inside tcolorbox

I have a document full of nicely formatted and separated paragraphs (each separated by two line breaks in the source), which is working nicely. Now I'd like to put some of them into a tcolorbox. But ...
6
votes
2answers
260 views

How to have 4 subsections on 2 paragraphs

So I'm trying to have four different subsections on "2 different paragraphs". what I mean is the following: x ¦ x ----¦---- x ¦ x where x denotes the ...
0
votes
2answers
55 views

Align start of paragraph and images

To give some context, I am working with a fairly big document, that contains some concatenated outputs from chained curl requests to a forum-like webpage, formatted afterwards with a bunch of regular ...
2
votes
0answers
24 views

My number of figure display in paragraph [duplicate]

I don't know which part of code make it happened %%%%%%%%%%%%%%%%%%%%%%LIST OF FIGURES%%%%%%%%%%%%%%%%%%% \renewcommand\listoffigures{ \if@draftmode\else \if@twocolumn \@restonecoltrue\...
4
votes
1answer
100 views

Paragraph with a colored circle

I would like to put a red circle before the beginning of a paragraph. This code does that effect but there are a lot of errors: \paragraph{{\tikz{\draw[red,fill=red] (0,0) circle (.5ex);}} PARAGRAPH}...
2
votes
1answer
68 views

Add text at end of paragraph that has an \hbox:n

This is a follow on to my previous question about the LaTeX3 \hbox:n behavior. I am trying to automatically add text at the end of a paragraph by redefining \par in the middle of the paragraph. This ...
0
votes
1answer
30 views

Priority of page breaks between paragraphs in beamer slides with allowframebreaks

I have breamer slides with allowframebreaks which have some basic structure, e.g.: \begin{frame}[fragile,allowframebreaks]{Title} some text... \begin{itemize}...\end{itemize} other text \begin{...
0
votes
1answer
33 views

Paragraph indentation after using `\ensuremath`

I have created a macro that writes the progressive number of the exercises in an exam sheet. The macros works in normal mode and in math mode, so that I am able to write something like this: \...
6
votes
1answer
106 views

Why does adding `\par` here add vertical space in a different place?

I've been playing around with LaTeX trying to really learn how spacing works in-depth. Here's a silly bit of code that I've been experimenting with: \documentclass[]{article} % Draw a raised \...
2
votes
2answers
55 views

How to put multiple paragraphs in single \loop … \repeat

I wanted to create list of n Fibonaci numbers. This is my code so far: \newcount\n \n=5 \newcount\a \newcount\b \newcount\i \a = 1 \b = 1 \i = 0 $a = \the\a$ \par $b = \the\b$ \par $i = \the\i$ \...
1
vote
2answers
63 views

How to prevent the cover letter from rolling over to the second page?

% Briefvorlage für Privatleute % Ersteller: Alexey Abel % Git-Repository: https://github.com/PanCakeConnaisseur/latex-briefvorlage-din-5008 % Basiert auf KOMA-Scripts scrlttr2 \documentclass[ % ...
1
vote
1answer
59 views

Use normal spacing within a minipage (same as outside)

I was wondering how to have the contents of a minipage look exactly the same as “normal” text (i. e. with respect to spacing, indents etc.). These minipages can contain arbitrary content such as ...
4
votes
1answer
71 views

unexpected extra parskip before equation, when the last line reach the end

like the figure below, it always generates a extra vertical space, if the line before equation is full. what I have found: remove hyperref or option parskip=full* can solve this, but I want to know, ...
0
votes
1answer
93 views

Starting a new indented paragraph after an equation

What is the recommended way to start a new indented paragraph after an equation? Example 1: We end the paragraph with the following equation: $$ a + b = c. $$ In this new paragraph, we will show... ...
0
votes
2answers
43 views

How to have a paragraph text in a table column in which the table is aligned with text width?

I have the following table with two columns and one of them requires longer text and i need the table to fit with the text width. Hence, i am using two columns page style as IEEE or ACM conferences. \...
3
votes
2answers
39 views

How to avoid extra large space after paragraph heading?

It seems a bit strange to me that when I write \paragraph{Monkeys} Monkeys are non-hominoid simians ... I get the word Monkeys twice. On the other hand if I write \paragraph{Monkeys} are non-...
0
votes
0answers
36 views

Highlighting text in between paragraph [duplicate]

Here my requirement is highlighting the text with run on case. Here I attached the sample page PDF. MWE: \documentclass{book} \usepackage{color} \begin{document} \section{Overview} Numerous ...
6
votes
1answer
42 views

How can I completely suppress hyphenation that starts in a column (or page) and ends in a second one?

In the example above, the hyphenation of the word 'deterministic' starts in one column and ends in the next one. How can I suppress this behavior altogether? NOTE: I know that \mbox{<text>} ...
1
vote
1answer
42 views

Strange paragraph formatting using tcolorbox and wrapfigure

First of all, my apologies for the quite large MWE; I tried to reduce it to the minimum but, given that the problem occurs quite randomly, it is difficult to maintain it. Given the following MWE, ...
1
vote
0answers
24 views

Paragraph spacing that does not affect the content section

I'm writing my thesis, and I'd like to have a blank space between the paragraphs in the chapters, so I used the following code \setlength{\parskip}{\baselineskip} However, this command does also ...
0
votes
1answer
25 views

How to make parskip in minipage match that of parskip outside minipage?

Here is my code: \documentclass{article} \usepackage{parskip} \usepackage{multicol} \begin{document} Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam scelerisque purus eget arcu eleifend ...
3
votes
2answers
88 views

Is it possible to set the absolute position of paragraph numbering?

I'm trying to use the following example from this question to number the paragraphs in my document (slightly modified to remove \thesection. from the paragraph number). The example: \documentclass{...
0
votes
0answers
11 views

How to get a skip line after use \paragraph{..} with sectsty package? [duplicate]

sectioning my document I had to use \paragraph{}, but the text appears in the same line. For customizing my section titles I'm using sectsty. How can I get a newline after using \paragraph{}? \...
0
votes
1answer
30 views

linebreaks in lstlisting and verbatim environment

longline*.txt files contain some text and in some files the text is inserted in an environment as indicated in the filename. The following script: \documentclass{article} \usepackage{listings} \...
1
vote
0answers
41 views

Why I have different space between some par?

If I enable the ban of hanging rows: \clubpenalty=10000 \widowpenalty=10000 for some reason, the distance between several paragraphs begins to change. Especially to make it noticeable, I increased ...
2
votes
0answers
31 views

Adjustwidth of all sections

Is there any way to adjustwidth of all sections without writing all the time adjustwidth? For example \begin{adjustwidth}{1.3cm}{} is repeated twice: \documentclass[10pt,a4paper]{article} \...
2
votes
2answers
113 views

Indent paragraph both on the left and right without any external packages

I am following the AAAI 19 Template from https://aaai.org/Conferences/AAAI-19/aaai19call/ where a text abstract is supposed to be formatted in a way that it is indented 10pt to the left and 10pt to ...