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.

Filter by
Sorted by
Tagged with
2
votes
1answer
26 views

Fix unwanted spacing between list items and paragraphs in memoir class

When writing a document in the memoir class I am getting some unwanted spacing between lists and paragraphs etc. If there isn't a full page of content then instead of placing the blank space at the ...
3
votes
1answer
25 views

If I give next para, then Error in \DeclareTotalTColorBox

My tags are follows: \documentclass{book} \usepackage{environ} %fancy boxes \usepackage{xcolor} \usepackage[tikz]{bclogo} \usepackage{etoolbox} \usepackage{blindtext}% \usepackage[skins,breakable,...
2
votes
2answers
48 views

Single space but double space for paragraph separation

a bit new to LaTeX My paper is in single-space via \usepackage{setspace}\singlespacing but I have to use double-space for paragraph separation Any way to do this without having to get rid of \...
1
vote
0answers
44 views

Float object vertical spacing with “Here definitely” settings using scrbook

Vertical gap before float object is too small and after it is too big. For this example I used to set Here definitely positioning, but gaps are similar for every other float placement settings. I ...
4
votes
2answers
165 views

How to use Tab in Latex?

For example: If you don’t see this email in your inbox within If you don’t see this email in your inbox withinIf you don’t see this email in your inbox within - If you don’t see this email in ...
1
vote
1answer
36 views

Improper first paragraph indentation after grouped sections

I have a KOMA-based document where section footnotes and text footnotes are formatted differently: \documentclass{scrartcl} \setlength\parindent{24pt} \usepackage[symbol]{footmisc} \usepackage{...
0
votes
1answer
30 views

Automatically numbering lines on a two column document for some numbers and not all of them

I have two column document in which I wish insert line numbers. I have used \usepackege{lineno}, I used \linenumbers for inserting line numbers at the left of the left column, and \rightlinenumbers ...
0
votes
0answers
20 views

to specify a certain paragraph with a vertical line to which adhered an English letter

My question seems to be chalenging!!! How can I specify a paragraph with a vertical line in the close of that? For example, below picture contains a shape includes two paragraph. The first paragraph ...
2
votes
1answer
50 views

Split content into two parts in middle of an enumerated list

Given content of several paragraphs (which definitely has at least one occurrence of {MyList} environment), I would like to define a macro that can break this content into the content before the end ...
1
vote
0answers
45 views

How to make a sentence as equally distribute?

As shown in Listing \ref{lst:dummylocalxmega} and Listing \ref{lst:dummylocalstm}, in the case of an implementation where dummy operations use local variables, it does not find a part corresponding ...
4
votes
1answer
38 views

How to avoid linenumbers in paragraph headers

I want to include line numbers(lineno) in an enumeration of paragraphs. How do I avoid line numbers in front of each paragraph header? What I need is something like \newcommand{\myParagraph}[1]{\...
1
vote
1answer
62 views

Multiple paragraphs in bibliography fields via double line breaks

I would like to add abstracts of certain references (which may contain multiple paragraphs) to the main body of a document. However, when I add them using \citefield{KEY}{abstract}, double line breaks ...
2
votes
1answer
97 views

Question about exercise 14.31 in TeXbook

The following example uses \signed macro from page 106 of TeXbook: \tracingonline=1 \tracingparagraphs=1 \def\signed #1 (#2){{\unskip\nobreak\hfil\penalty50 \hskip2em\hbox{}\nobreak\hfil\sl#1\/ \rm(...
4
votes
1answer
111 views

Question about exercise 14.23 in TeXbook

In answer to exercise 14.23 it is said: The three paragraphs can be combined into a single paragraph, if you use ‘\hfil\vadjust{\vskip\parskip}\break\indent’ instead of ‘\par’ after the first two....
4
votes
2answers
74 views

Stepcounter after paragraph

Code: \documentclass{article} \newcounter{mycounter} \setcounter{mycounter}{1} \begin{document} \paragraph{\arabic{mycounter}}% \stepcounter{mycounter}% \paragraph{\arabic{mycounter}}% \...
0
votes
0answers
15 views

How to make a paragraph appear closer to the itemization than the preceeding paragraph? [duplicate]

We have done blah blah blah Reasons: \begin{itemize} \item The need to blah blah \item The problem of blah blah \item \ldots \end{itemize} Results: As you can see the single-word paragraph "...
0
votes
1answer
35 views

How to calculate “badness” for ragged right margins?

In TeXbook (p.30) it is said: When \raggedright has been specified, badness reflects the amount of space at the right margin, instead of the spacing between words. That is, in ragged-right case, ...
2
votes
2answers
74 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
51 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
151 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
99 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
77 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
144 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
35 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
34 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
30 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
25 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
36 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
75 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
41 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
35 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
48 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
49 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
147 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
39 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
61 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
44 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
79 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
26 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
301 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
101 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
43 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
270 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
49 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, \...