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
1 vote
1 answer
20 views

NewDocumentEnvironment optional argument changes behaviour with \obeylines

I notice that the behaviour of environments with an optional argument that use \obeylines changes based on whether the optional argument is present or not. I would have expected all the environments ...
user avatar
  • 23.7k
0 votes
0 answers
24 views

How to automatically prevent or remove single words in paragraphs? [duplicate]

Is a similar way to automatically remove single words on the last line of a paragraph by either pulling the word to the previous line or bringing down other words along with the single word without ...
user avatar
-2 votes
0 answers
55 views

How to prevent latex from making an empty line when making a new paragraph [closed]

This has been bugging me so much. When a line is full, latex does not stop at the end of the line, but apparently moves onto the next line. This behavior is normally fine, but not when I use a \par ...
user avatar
  • 1
0 votes
1 answer
27 views

How to most cleanly set \emergencystretch for a paragraph directly preceding a theorem-like environment in article?

Feeding \documentclass{article} \newtheorem{theorem}{Theorem} \begin{document} Averylongword-averylongword-averylongword-averylongword-averylongword-averylongword-averylongword-averylongword-...
user avatar
1 vote
1 answer
96 views

How to combine numbered paragraphs, two columns, hanging indentation?

I have trouble combining several features. In an environment like "numberedpars" below, I would like to ... automatically number paragraphs exclusively on the left side in a two-sided book ...
user avatar
3 votes
0 answers
53 views

Best way to write title paragraphs in LaTeX

I was trying to emulate the style found in some math textbooks of having titled paragraphs through a sidebar of sorts, and i was wondering what the best way to go about it was. For now, i am (ab?)...
user avatar
1 vote
1 answer
24 views

Put Table and paragraph side by side

I wanted to put a table and a paragraph side by side like this: After struggling for 2 days I still don't know how to do it. I can only be able to put them one after another as shown below. Could ...
user avatar
  • 13
0 votes
1 answer
31 views

How to make Chapter numbers to be in position of dropcap like in the Bible

How to make Chapter numbers to be in position of dropcap like in the Bible (see picture)? And how can I avoid number '1' for first verse between Chapter number and first letter in first line?
user avatar
1 vote
1 answer
36 views

How to Push a Secondarily Defined Lettrine Out of the Margin of the Page

I am working on a document in which I would like to incorporate a secondary lettrine outside of the one which is mainly used. Consider the code \documentclass{book} \usepackage{fontspec} \usepackage{...
user avatar
  • 5,285
0 votes
1 answer
43 views

How to automatically linebreak a (small) inline math formula?

I often use small inline math notation such as $\FuncName(a)$ in paragraphs. These math expressions are smaller than some words, so I think it's fine to inline them instead of putting them on their ...
user avatar
  • 111
1 vote
1 answer
57 views

Fully automatic numbering of paragraphs

I'm not sure whether I'm allowed to extend my previous question so I'm asking here. I wanted a way to number paragraphs automatically and Ulrike Fischer provided an excellent solution. I want to ...
user avatar
  • 143
0 votes
2 answers
46 views

Mixing two types of paragraphs

This is a general question about typesetting paragraphs. I was wondering if it is good (or acceptable) practice to mix two different kinds of paragraph skips in a document, e.g. a "real" ...
user avatar
2 votes
2 answers
71 views

how to add paragraph in a table

\begin{table}[thb]\centering \caption{Summary of present reviews.} \label{tab:table2} %\resizebox{0.48\textwidth}{!}{ \large \begin{tabular}{l l} \toprule Ref. & ...
user avatar
1 vote
1 answer
30 views

Double spacing using doublespacing environment

I want to locally apply double spacing in a certain paragraph of the document by using \begin{doublespacing} and \end{doublespacing} from the setspace package. However, I found it only takes effects ...
user avatar
  • 305
1 vote
2 answers
34 views

Automatic numbering of paragraphs in the margin

I want a way to number paragraphs automatically in a way that doesn't require explicit extra code at the end of every paragraph in a document built on LaTeX3. I want the paragraph numbers to appear in ...
user avatar
  • 143
0 votes
1 answer
26 views

fcolorbox not wrapping text

I'm trying to get an fcolorbox to wrap my text according to the standard paragraph width. Here's what I have so far: \documentclass{article} \usepackage{xcolor} \usepackage{lipsum} \begin{document} ...
user avatar
  • 1,382
1 vote
1 answer
58 views

How to get the right page number in the first paragraph of a page?

I have defined a \figref command so that it refers to a labeled figure and gives the page number where the figure is located, unless the figure is on the same page where it is referred to (in which ...
user avatar
  • 387
0 votes
0 answers
33 views

How to leave a space before the first word in the section [duplicate]

I want to leave a small space before the first word in each paragraph I know how to do that by leaving one empty line between this paragraph and the last one (as the image shows) but I can't do this ...
user avatar
0 votes
0 answers
116 views

What font size corresponds to 14pt in Microsoft Word?

I have seen many questions related to this but I didn't understand what to do and what command I have to use exactly. My department has asked me to use 14pt font size for the paragraphs and 16pt font ...
user avatar
4 votes
2 answers
63 views

overfull \hbox when writing chemical formulas in the paragraph

I am writing a paragraph that includes chemical formulas using mhchem package. The problem is that I get overfull lines. Here is an example with my packages: \documentclass[14 pt]{extarticle} \...
user avatar
1 vote
1 answer
57 views

How to Redefine the fbox Command to Increase the Default Space Between It and the Beginning of the Subsequent Sentence

Here is a MWE that displays the use of the \fbox command in multiple paragraphs: \documentclass{book} \usepackage{lipsum} \usepackage{xcolor} \begin{document} \parskip 10pt \Large {\color{red}{\...
user avatar
0 votes
0 answers
52 views

Should I increase the spacing between paragraphs?

By default, as far as I know, there is no spacing between paragraphs in Latex (I'm using Overleaf). The paragraphs look like this: It is possible to set a spacing between paragraphs using \setlength{\...
user avatar
3 votes
0 answers
41 views

How to Prevent Idxlayout's Placement of a Semicolon within the Content of an Index Entry for Paragraph-Type Delineations

Consider the code \documentclass{book} \usepackage{imakeidx} \makeindex \usepackage{idxlayout} %\usepackage[itemlayout=singlepar]{idxlayout} \begin{document} \Large Some words.\index{Examples@\...
user avatar
  • 5,285
3 votes
1 answer
139 views

Changing format of paragraph skip for a 400-pages document

I am writing a long LaTeX document using the book documentclass, and after having typed already almost 400 pages, I have decided I want to change the format for new paragraphs to be more similar to ...
user avatar
4 votes
1 answer
72 views

How to Delineate All Index Entries Under a Heading Horizontally as a Paragraph

Consider the code \documentclass{article} \usepackage{imakeidx} \makeindex \usepackage{idxlayout} \usepackage{xcolor} \begin{document} \Large Some words.\index{Heading@\textbf{Heading}! 1. This is ...
user avatar
  • 5,285
1 vote
1 answer
31 views

How do floats affect the flow of a paragraph?

I've been working on my own custom template but I ran into a behavior I don't understand. Why are some paragraphs indented with a tab? I think it has something to do with floats breaking the flow of a ...
user avatar
2 votes
1 answer
69 views

Latex numbering paragraphs - solution

This seems to be a favourite I thought I'd post my solution and see if there can be improvements So digging around I see references to parano which has dropped off the interwebs - though I found a ...
user avatar
  • 249
1 vote
2 answers
130 views

Proper Use of a Lettrine When the Paragraph Begins with a Roman Numeral

A typography consideration: In a current project, I am encountering the situation where I would like to make use of a lettrine, but the paragraph in which it is to be used begins with a Roman numeral. ...
user avatar
  • 5,285
0 votes
1 answer
62 views

Wrapfig MWE giving different results

I compiled this answer and got a very different result, as shown below. There's no compilation error, with both TeXstudio and TeXworks, just a bunch of warnings about fonts: /usr/bin/pdflatex (file /...
user avatar
  • 117
0 votes
3 answers
51 views

Is it possible to right align the text in the last row of a justified textblock?

is there a way to right align a text, which is at the same time justified? This particularly points onto the last line of the paragraph, which is normaly left aligned, or for example a very short one ...
user avatar
  • 7
0 votes
1 answer
32 views

Make paragraph-formatting apply to all environments but not to short paragraphs

I am aware that this is a hyper specific question but I have been playing around with making all paragraphs perfect rectangles just like in this StackExchange question. And as in these older threads I ...
user avatar
  • 23
2 votes
2 answers
67 views

A Minipage Environment Where the Content is Left-Right Justified Except for the Last Line Which is Flushright

Consider the code \documentclass{book} \begin{document} \thispagestyle{empty} \Large \begin{center} \begin{minipage}{5.75in}\leftskip\fill\rightskip-\leftskip\parfillskip\stretch{2}% \textbf{``The ...
user avatar
  • 5,285
2 votes
3 answers
64 views

Confused about \hrulefill vs. \rule and paragraph breaking

I've got a macro to insert a blank for fill-in-the-blank questions on my tests, but when it is at the beginning of a line, it breaks the paragraph right after the blank and the rest of the question ...
user avatar
  • 25
2 votes
1 answer
59 views

Allowing all figures to break paragraph

The figures always seem to be inserted between two paragraphs. I want to allow the figures to break a paragraph if its positioning between two paragraphs generates large inter-paragraph spaces. The ...
user avatar
0 votes
0 answers
37 views

Paragraph begin with >>

Some paragraphs of my latex document star with >> symbol, but I don't find why. Other paragraphs before star normal.
user avatar
  • 3
0 votes
0 answers
52 views

How to insert an algorithm in the blank space left after a paragraph?

I am writing an algorithm in latex, but I am not able to write it on the same page after a completion of paragraph.
user avatar
2 votes
1 answer
85 views

Changing margins of critical text in reledmac

Reledmac permits to have two kind of text blocks Regular text Blocks of paragraphs of critical texts that have their lines numbered and all sort of possibilities of critical notes, etc. This text is ...
user avatar
  • 101
3 votes
2 answers
166 views

Unexpected Positioning of Paragraphs When Small Capped Letters Do Not Follow the Lettrine

Consider the code \documentclass[foolscap]{octavo} % to get a small image \usepackage{lettrine,lmodern,xcolor} \usepackage[tracking=true]{microtype} \input GoudyIn.fd \renewcommand{\LettrineFontHook}{...
user avatar
  • 5,285
5 votes
1 answer
212 views

How to achieve such justification?

I want my text to be forcibly justified on the left and right and not just centred on the page. I know this, \begin{center} Elizabeth it is in vain you say "Love not" — thou sayest it in so ...
user avatar
  • 205
1 vote
1 answer
37 views

Remove empty lines due to preceeding paragraph at the top of the next page

When I write technical papers, sometimes a para ends at the last line. The "\\" of the last line from the para introduces an unnecessary empty line at the top of the next page. Can such an ...
user avatar
  • 113
0 votes
0 answers
245 views

How to elegantly create a blank line between paragraphs

I use \\ \ \\ ( The middle part is \ followed by a space.) to create a blank line between paragraphs because I could not find an easier way. Can you help me finding a more easy ( elegant ) way to do ...
user avatar
0 votes
1 answer
21 views

How to align qrcode to the right of the page without tables?

In the following example I am using \raggedleft which is supposed to align the text to the right. However it doesn't work. \documentclass{article} \usepackage{qrcode} \def\commit{abcdef} \def\...
user avatar
  • 1,087
0 votes
1 answer
111 views

How to solve the apparent incompatibility between longtblr from the tabularray package and the parskip package?

In my text I need the spacing between paragraphs to be one \baselineskip, so I am using the parskip package with the skip=\baselineskip option. My text also has several long tables, which I am making ...
user avatar
1 vote
0 answers
16 views

Different vertical spacing when applying local formatting via setspace in a new environment

I am trying to create a new environment, which alters some paragraph formatting. I thought I could achieve that via setspace but there is a problem with vertical spaces before a paragraph of interest: ...
user avatar
  • 839
0 votes
1 answer
47 views

How to set specific font for the first paragraph in every chapter/section

I need to have the first paragraph typeset with a different font in every chapter and section and I don't want this to affect \lstlisting. I tried to use \everypar but if \lstlisting is there it ...
user avatar
  • 481
3 votes
2 answers
78 views

How to control horizontal spacing between tcolorboxes?

Similar question but for vertical spacing here: Unwanted vertical separation between tcolorboxes I would like to know how to control the horizontal spacing between tcolorboxes. MWE: \documentclass{...
user avatar
  • 458
1 vote
1 answer
40 views

Use enumerate environment without new creating new paragraph

I want to increase the space between paragraphs but not the space between eunumerate environment and it's containing paragraph. Assume I have following document: \documentclass[a4paper,12pt]{article} ...
user avatar
  • 147
3 votes
2 answers
84 views

Two wrapfigures above each other with multiple paragraphs

I have this following MWE: \documentclass[]{scrbook} \usepackage{wrapfig} \usepackage{graphicx} \begin{document} \begin{wrapfigure}[15]{r}{0.35\textwidth} %\vspace{\baselineskip} \centering \...
user avatar
  • 107
0 votes
1 answer
42 views

Wrap lstlisting in minipage and start on new line

I don't want page-breaks inside my listings, so using \lstnewenvironment I wrap my listings inside a minipage. \documentclass{article} \usepackage{listings} \lstnewenvironment{snippet}[1][]{% \...
user avatar
  • 328
0 votes
0 answers
22 views

Creating custom environment for normal paragraph formatting

I am using a template which plays a lot with the formatting, I need to include a section with an abstract ripped from some other work that is formatted as a "normal" paragraph with the ...
user avatar

1
2 3 4 5
25