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.

6
votes
2answers
125 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
28 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
53 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
38 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
65 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
16 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} \...
-1
votes
1answer
87 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
57 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
39 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
232 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
84 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
32 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
25 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
49 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
30 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
277 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
64 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
36 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
31 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
45 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
38 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
104 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
16 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
53 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{...
5
votes
2answers
78 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
22 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
48 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
31 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
47 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
129 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
46 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
92 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
86 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 ...
7
votes
2answers
308 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
68 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
103 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
70 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
39 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
36 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
122 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
60 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
79 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
69 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 ...