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.

0
votes
1answer
28 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
93 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
1answer
28 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
47 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
45 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
59 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
29 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
22 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
33 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
35 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>} ...
0
votes
0answers
19 views

Indenting Paragraph Beginnings in proof environment

I would like to type a proof using the amsthm proof environment that's broken into multiple paragraphs, but the indentation style within the environment is different from plain text. For example, when ...
1
vote
1answer
28 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
22 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
21 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 ...
0
votes
0answers
18 views

Justifying Text under 'newenvironment' Environment Name

I apologize for how bad this probably looks, as I am relatively new to LaTeX. Here is the code I have: \documentclass[10pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \...
3
votes
2answers
58 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
9 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
24 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
38 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
21 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
98 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 ...
2
votes
1answer
85 views

Why do I have to use \par if I change font size withing a group scope?

I was working on a Beamer presentation, and noticed that, if I open a group scope and use a \tiny, the font size will bet set, but there will be a large space between lines. However, if I issue a \par ...
3
votes
1answer
161 views

How to find the length of last line of a right to left paragraph

This question is a follow up of my previous question Colors bizarre results with right to left text, \color command works well in right to left text if included at the beginning of paragraph, then I ...
0
votes
1answer
32 views

Custom paragraph command, prevent page break

I am using the book class to write a document that will have numbered paragraphs. Wanted the (auto-incremented) paragraph numbers to be bold and centred, then the text below, and the paragraph number ...
0
votes
1answer
44 views

Indent a paragraph - all lines but the first

I have multiple paragraphs in a chapter. I want to indent all but the first lines each. Is there any way to achieve this? I tried \begin{hangparas}{1em}{1} but this will indent all but the first ...
1
vote
1answer
25 views

Paragraph numbers with titlesec

I am using titlesec in order to redefine \paragraph to appear hanging as a \section. Strangely (to me, at least), the paragraph numbers do not appear. This is a minimal working example: \...
1
vote
2answers
111 views

Tuning Paragraph shape for makeup

Recently I happened to process ~4500 paragraphes in my 6-volum book set, ~1500 A4 pages, and I had many operations for page-proofing (widow and orphan control, amount of lines of last paragraph of the ...
0
votes
3answers
38 views

\paragraph command start below heading

When using the \paragraph command, how do get the text that follows to start below the heading (and not in the same line)?
0
votes
0answers
25 views

Adding extra section levels in amsart documentclass

My latex code is: \documentclass[reqno]{amsart} \usepackage{titlesec} \setcounter{secnumdepth}{4} \titleformat{\paragraph} {\normalfont\normalsize\bfseries}{\theparagraph}{1em}{} \titlespacing*{\...
1
vote
0answers
30 views

Indenting and justifying a paragraph [duplicate]

I would like to force the justification (after a \raggedright command) of a paragraph while also having it indented. I tried the following commands but this doesn't seem to work (only the first line ...
1
vote
0answers
31 views

Linespacing with cutwin

The problem is that the first and the last lines have different line spacing compared with the rest of the text. This is the code: \documentclass[10pt]{tufte-book} \usepackage[utf8]{inputenc} \...
0
votes
0answers
19 views

Paragraph exceeds page margins [duplicate]

I'm writing an article using only Titles, i.e., section, subsection, subsubsection and paragraph. Doing so, some paragraphs exceeds page bottom margins (right, left and top margins are ok). If I add ...
3
votes
2answers
35 views

How to suppress space between two specific paragraphs only

I defined a new commentaire environment to one of my projet in order to bring enlightment to a specific paragraph of the document. It takes as entry the author of the comment and obviously the text. ...
0
votes
0answers
20 views

Change number to letter for \paragraph [duplicate]

I would like to use \paragraph{} as a subsubsubsection. It's working fine but I want to change the number to a letter. For example instead of having 1.1.1.1 I would like to have 1.1.1.a. How can I ...
1
vote
1answer
32 views

How to adjust the gaps that parskip produces?

So when I use the setting, \setlength{\parindent}{0pt} \usepackage[parfill]{parskip} in the preamble to set line gaps between paragraphs then it seems I am getting less gaps than when I explicitly ...
2
votes
0answers
50 views

How to place figures between paragraphs?

I want to insert figures between text just like this: . So I use the following code: ** \begin{document} Text here. \begin{figure} \centering \begin{subfigure}[!h]{0.3\textwidth} \...
-2
votes
1answer
101 views

hbox error 10000 [duplicate]

\documentclass[10pt,a4paper]{article} \usepackage[latin1]{inputenc} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{graphicx} \usepackage{newtxtext,newtxmath} \usepackage[...
0
votes
0answers
38 views

Paragraph numbering extension, automated with option to opt-out and outside margin

I'm trying to get a numbering of the paragraph on my book in a similar fashion as this example. The manual approach works fine, but now I'm considering two extension cases. 1) Automated numbering ...
0
votes
1answer
103 views

Strike a paragraph of text

I want to strike obliquely one or more paragraphs of text, to indicate cancellation, like in this picture: I would need to strike also if the paragraph spans in two pages. I tried the cancel package,...
0
votes
0answers
46 views

Do not start paragraph on last line of page [duplicate]

Similar to how sections try to avoid starting on the last line of a page, how can I apply similar behavior to paragraphs? In other words, do not start a paragraph on a page unless there is room for ...
3
votes
2answers
64 views

Specify the point on the page where a paragraph ends

Is there any way to control the point on the page where a paragraph ends? Consider the following MWE: \documentclass{article} \usepackage[a4paper,margin=3cm]{geometry} \usepackage{microtype} \...
1
vote
1answer
42 views

LyX indentations are not kept under automatic line breaking

I am new to LyX (few weeks) and I am having trouble with line breaks. When I am writing in paragraph mode, I have my text indented (as intended :)), but of I have a long line, LyX doesn't know when to ...
1
vote
1answer
35 views

Dynamically set line & paragraph spacings relative to current font-size

I am writing my PhD thesis using the basic report class because my advisor asked me to keep it simple and avoid KOMA-classes/memoir for now. At the moment, I am using the setspace package to set my ...
1
vote
1answer
85 views

Insert word, character, or symbol at beginning of all hanging indents in paragraph

In the same vein as this question (and somewhat similar to this question), I am trying to insert anything (e.g. a word, character, or symbol) at the beginning of each wrapped line in a paragraph. ...
3
votes
1answer
64 views

How to use \paragraph without seeing the title in the final pdf?

I am writing a review and using Latex to create the document. Since I have to go back to many many references I want to take advantage of the folding option with each paragraph I write so I can easily ...
3
votes
1answer
43 views

left align first line, right align second

I am typesetting a manually created author index. I want to put the name in the left margin and the page number in the right. I manage to right align the second line in cases where a linebreak is ...
5
votes
1answer
133 views

Should there be paragraph break between a leading text and itemized list?

What is the right convention for rendering itemized-lists? Is it like this without any paragraph break between the previous line and the list? \documentclass{article} \begin{document} There are 10 ...
0
votes
1answer
108 views

Problem with paragraphs and marginnote

I created a layout with marginnotes. On the end of the page the paragraph (here Paragraph B) following the marginnote (D) will automatic jump to the next page. Example: How can I inhibit that? I'd ...
0
votes
0answers
30 views

Mathpartir: How to insert “\\” between entries with macro?

I'm using a tool to generate large amounts of LaTeX, which contain inference rules that I'm typesetting using mathpartir. Below, I've got a MWE that's very similar to the code I've got generated. ...