Stack Exchange Network

Stack Exchange network consists of 175 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
43 views

Squeeze paragraph such that lines have similar width

I would like to format a paragraph of text such that the width of the paragraph shrinks until the last line in the paragraph is about the same width as all the others. Here is an example of what I ...
0
votes
0answers
21 views

footnote in \Xarrangement{paragraph} does not go to the next line in reledmac

Dear members of this communication, I use reledmac for a critical edition of a Persian book. During my work, I faced a problem and would be grateful if you could answer it. Using \Xarrangement{...
3
votes
2answers
133 views

How to adjust default horizontal and vertical space such that it meets following requirements (related to \parshape, custom list and picture spacing)?

The requirements: Height of pages in the document should not be constrained by constant length (although page width should be). Every line in a paragraph should be indented more than the previous ...
2
votes
2answers
88 views

How to get the same output as in TUGBoat article “Tracing paragraphs”?

Recently I began to read a very interesting TUGBoat article "Tracing paragraphs" by Udo Wermuth. There is the example-1 from the article (with header and footer added by logic considerations): \...
2
votes
1answer
73 views

How to automatically capture \prevgraf value (inside xparse environment) every time text ends with \par?

I need to declare an environment with \NewDocumentEnvironment such that every \par provided by the user inside that environment would automatically set an integer variable (inside environment-...
2
votes
3answers
121 views

Why \NewDocumentEnvironment within \ExplSyntaxOn/Off removes spaces from content passed to it outside of \ExplSyntaxOn/Off?

I thought turning syntax on/off at appropriate places would make everything work, but I can't use \ExplSyntaxOn/Off inside \NewDocumentEnvironment so the following code sample doesn't work: \...
0
votes
0answers
33 views

How to add indentation at the start of new paragraph?

I am a wirting thesis, and I have to add indentation at the start of each new paragraph? my code for paragraph: \renewcommand{\baselinestretch}{1.5} % set linespacing = 1.5; equivalent to word ...
0
votes
1answer
32 views

Using the last line of a paragraph to start a new paragraph aligned to the right

Is it possible to define a command such that the paragraph that follows is right-aligned and its first line starts in the last line of the previous paragraph (which is justified)? Eventually, to have ...
2
votes
2answers
48 views

Infinite compilation with minted, bgcolor, and disabling \let\par\relax

I had defined an environment which disabled \par temporarily with \let\par\relax precisely to disallow paragraph breaks in that environment. It was working fine until I last compiled the document (mid ...
3
votes
1answer
29 views

Why standalone class reverses \parshape indentation (such that it appears on the end of each line, not the beginning) and how to change that?

You can replace \documentclass[varwidth]{standalone} with \documentclass{article} to see the difference. How do I make \parshape work as intended while using standalone? \documentclass[varwidth]{...
0
votes
0answers
24 views

Paragraphs and indention [duplicate]

Latex by default indents the first line of a new paragraph, but does not leave empty vertical space. Currently, I am writing a text with many formulas in it. I don't think this paragraph style works ...
1
vote
1answer
33 views

\hfill -like command in the middle of a paragraph

I want to align the contents of a paragraph such that it is justified, BUT the white space at the end of the paragraph (on the last line) is moved inside the paragraph at a place where a \hfill-like ...
3
votes
3answers
70 views

Paragraph formatting with neg indentation of first line

The follwoing result is easily accieved in Word: How is this possible in Latex? Description: First line without indentation and fixed tabulator at, say, 2 cm Starting from the second line, ...
0
votes
2answers
37 views

Memoir: How to make `\newfootnoteseries` with multiple paragraphs?

I have two levels of footnotes, one for regular footnotes and one for special editor's footnotes. I would like to put a longer text in an editor's footnote with two paragraphs, however this does not ...
0
votes
1answer
38 views

Space between \paragraph{} and text [duplicate]

how do I put the text on a new row under a paragraph? My code is the following: \paragraph{Title} Some text, Some text, Some text, Some text, Some text. Right now It ends up like: Title Some text, ...
2
votes
1answer
29 views

tex4ht: Wrapping several paragraphs inside a div tag

I want to wrap several paragraphs inside a div with a custom class, but the div is closed automatically in the resulting HTML when a new paragraph begins. This shows the issue: \documentclass{...
1
vote
1answer
26 views

Footnotes on the same line only for one page

It is possible to get footnotes typeset as paragraph thanks to package footmisc loaded with the para option, as discussed in this thread. But this is set globally. I would like to typeset footnotes ...
0
votes
0answers
17 views

Error as I try to centre align the content on the report - What could be the reason for this?

I am trying to centre the paragraphs, sub-paragraphs and table on the second page of the report. The way I am trying to do is: \paragraph{\begin{center}Document Information\end{center}} But as I ...
0
votes
1answer
47 views

Title and a text without any space

I have definend "title" of subsub section as following: \def\podpodsekce#1{\leavevmode \\ \textbf{#1}\\ \\} the problem is that sometimes the title is on the bottom of a one page and the text is on ...
0
votes
1answer
48 views

Avoid a break between a list and its introductory statement

\documentclass{report} \usepackage[bottom=1cm, top =1cm]{geometry} \usepackage{lipsum} \begin{document} \lipsum[1-8] \lipsum[5][1-5] another paragraph consider the following cases: case1 case2 \...
6
votes
2answers
140 views

Disable hyphenation for an entire paragraph

How can I disable hyphenation for an entire paragraph without changing the hyphenation of its words throughout the rest of the text? And of course, maintaining the paragraph alignment! Thanks, in ...
1
vote
1answer
38 views

A minted block changes paragraph style for rest of document

I'm using a minted block in my document as follows \captionof{listing} {Salt state for setting up a PostgreSQL server. \label{lst:salt_state_postgres}} \begin{minted} [ breaklines=true, linenos, ...
1
vote
1answer
59 views

Why are some paragraphs indented and others aren't

I've got this little problem. Page one shows my paragraphs the way I want them to look but starting from the second page, they all start to indent for some reason and I don't want that. How can I fix ...
0
votes
1answer
42 views

itemize without environment

While formatting some text i was wondering if it is possible to achieve something similar to itemize outside of an environment. -> this is an example of how i imagine it to look like as a ...
3
votes
2answers
76 views

Why does indent disappear in lists?

Consider this small document: \documentclass{article} \usepackage{blindtext} \begin{document} \blindtext \blindtext \begin{enumerate} \item% \blindtext \blindtext \end{enumerate} \end{document}...
1
vote
1answer
13 views

Why alignment of my text is not same for each written part?

\documentclass[10pt,fleqn]{article} \usepackage[top=1in, bottom=1in]{geometry} \usepackage{amsfonts} \usepackage{graphicx} \usepackage{amsmath} \usepackage[T1]{fontenc} \usepackage{titling} \begin{...
0
votes
1answer
22 views

New paragraph in table with rotated box

I'd like to have a new line in a rotated box in a tabular environment. MWE as follows: \documentclass[english]{scrartcl} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{microtype} \...
-2
votes
1answer
217 views

“! Package amsmath Error: \begin{alignat} allowed only in paragraph mode.”, what is this?

I'm encountering a issue with amsmath. I'm trying to compile this code: \documentclass[border=1pt]{standalone} \usepackage{amsmath} \usepackage{amssymb} \usepackage{amsfonts} \begin{document} \begin{...
1
vote
1answer
74 views

Is a \vspace placed on the end of a paragraph a bad LaTeX coding?

After a comment of @DavidCarlisle in a question about \vspace usage I tried to find out if, when and why a \vspace command should be avoided to added as a last command of a paragraph in order to add ...
0
votes
1answer
40 views

How to color specific word in a paragraph more times?

Maybe the title is a bit misleading and it's my pilot post on here :) Anyhow, I have a paragraph with ,let's say 100 words, from which 10 of those words are word "dokument". I have to make a command ...
2
votes
2answers
256 views

How do you write a macro that takes arguments containing paragraphs?

I'm trying to write a macro that takes arguments containing paragraphs. If you write a normal macro and one of its arguments contains a paragraph, it will break: \documentclass{article} \usepackage[...
2
votes
1answer
88 views

Is it possible to have `\partopsep` added below a list environment that is followed by a new paragraph?

Given the following minimal example \documentclass[parskip=full]{scrreprt} \usepackage[onehalfspacing]{setspace} \usepackage{enumitem} \usepackage{lipsum} \setlist{ parsep=\parsep, itemsep=-.5\...
2
votes
1answer
38 views

How can I define an new index command that works better for paragraphs?

Suppose that, in the middle of my document, I have paragraph about owls: Here is a new paragraph about owls. Owls are extraordinary. I want to index this paragraph using imakeidx, so I write, \...
0
votes
0answers
23 views

Difference between \\, \par and \newline [duplicate]

What is the difference between \\, \par and \newline. When to use them and when not to use them.
0
votes
0answers
26 views

Redefine \autoref for paragraphs

I'm working with \autoref from the hyperref package to reference my sections, etc. What I currently work with: \documentclass[a4paper, 12pt, parskip]{scrreprt} \usepackage[utf8]{inputenc} \...
0
votes
0answers
72 views

What is format correct to create a new paragraph?

i have two examples: \paragraph{title} hi a new text or \paragraph{Title} hi a new text What is the correct way? is correct with space?
2
votes
1answer
42 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\...
5
votes
2answers
465 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} \...
2
votes
0answers
106 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
45 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
34 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
47 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
30 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
42 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
144 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
52 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
17 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
58 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
81 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 ...