Tagged Questions

{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.

learn more… | top users | synonyms (1)

23
votes
4answers
660 views

unexpected interaction between \raggedright and \parshape

While answering Random start of line, I came upon a strange interaction between \raggedright and \parshape. If a ragged-right paragraph ends in a short line, this line will be "the most ragged". ...
2
votes
0answers
26 views

How can I make a command/environment for a titled paragraph but with the text indented to the title (picture inside)? [duplicate]

Basically I want to make this: **The title** Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nam vestibulum accumsan nisl. Phasellus lacus. Lorem ipsum dolor sit ...
5
votes
1answer
929 views

How to apply formatting (sans-serif, color etc.) to multiple paragraphs?

Some LaTeX formatting commands like \textcolor{red}{...}, \sout{...} or \textsf{...} work fine when the thing inside is a single paragraph but fail to compile if you put a paragraph break in the ...
5
votes
1answer
337 views

Flexible vspace

I created a macro to insert diary-like right-aligned paragraphs. \newcommand{\diarydate}[1]{\begin{flushright}\textit{#1}\end{flushright}} Example: \diarydate{New York, August 1992} This looks ...
26
votes
3answers
723 views

When is it better to use \par than \endgraf?

Just yesterday I had to patch a package file (changing the description to indicate that the file had changed) to replace some \par to \endgraf because the code had bad interactions with non-\long ...
4
votes
1answer
112 views

The biblatex has problems with \par having \prevdepth

Russian paragraphs have not too short last lines as the \Arussian substitution for \par does. But this approach creates conflicts with biblatex package. Is there any method to make it run? Here is a ...
6
votes
3answers
171 views

PGF keys error with key filter for keys containing \par

I am trying to use pgfkeys to store some text for use later. The end goal is to use a key filter to process options first and then apply them to text before it is stored. In the MWE below, if it try ...
0
votes
0answers
49 views

Space Above Equations [duplicate]

Possible Duplicate: Vertical spacing before and after equation environment: empty line or not? I am using iPython Notebooks and a utility called nbconvert to translate notebooks into LaTeX. ...
2
votes
1answer
105 views

Octavo environment stanza break spacing

In the octavo document-class, there is (as in many others) a verse environment for the setting of poetry; however, breaking stanzas appears to be unimplemented: there's no difference in vertical ...
3
votes
2answers
943 views

Shorthand for empty line or \\ \indent

This page says that \\ starts a new paragraph. However, it does not end up looking the same as inserting an empty line in my source code (which I have always used to define paragraphs), which also ...
5
votes
1answer
164 views

How to best split long strings?

I would like to do a simple \StrSplit (from the xstring package) on a string I have, however, the string in question may contain a \par, and it appears that \@xs@StrSpl@t@@, which I can only imagine ...
6
votes
1answer
132 views

Going back to the end of the previous paragraph

Is there a way to define a TeX command that checks if the current position in the text is at the beginning of a paragraph, and if true, then to go back to the end of the previous paragraph? Edit: The ...
0
votes
0answers
128 views

Empty line between paragraphs [duplicate]

Possible Duplicate: Is there an easy way to have my whole document with a space between paragraphs rather than indentation? Adding an empty line between paragraphs does not work, \newline ...
7
votes
2answers
545 views

Making mdframed paragraph behave like normal paragraphs in terms of spacing

I'm using the mdframed package to highlight a paragraph with rules on both sides. However, the mdframed-environment creates a box for the paragraph inside of it and so the spacing around it is ...
1
vote
1answer
133 views

Subsection, subsubsection, etc. title outside (left of) the subsection, subsubsection, etc. content block

How could I get subsections, subsubsections, paragraphs, and subparagraphs (which I'll call "sections" from now on) that look like the one in this PDF file ? In this PDF example, the indentation ...
3
votes
2answers
1k views

Framebox with long paragraph and line break

I want to make a border to a paragraph, so I use \framebox to do it. But I have a problem that my paragraph is so long, I can't insert a line break and my paragraph cross the frame. ...
10
votes
1answer
444 views

Using \hangindent within enumerate

I would like to have a hanging indent within the paragraph of an enumerate item. I have the following: \begin{document} \begin{enumerate} \item Lorem ipsum dolor sit amet, consectetur adipiscing ...
1
vote
2answers
812 views

Vertical spacing for paragraph environment

When I use \paragraph{...}, the vertical spaces in general are too big. I need to manually put \vspace{-5em} in front to adjust the spacing. It is not robust and unnatural. One reason may be that I ...
1
vote
0answers
35 views

Hiding and revealing interlaced paragraphs [duplicate]

Possible Duplicate: Commenting out large sections I am writing a document and I want to prepare two versions. Version 1 will contain the 'text'. Version 2 will contain the 'text' as well ...
3
votes
2answers
338 views

Paragraph indent after multicols environment

I'm using the multicol package and have found that the paragraph immediately following the multicols environment is indented. This happens even when there is no blank line between the end of the ...
6
votes
1answer
1k views

Adding vertical lines to each side of a paragraph

How can I add vertical lines to each side of a paragraph? To illustrate, what I need is: some paragraphs... |My paragraph begins| |here and goes like | |this... ~~~~~~~~~~~| |~~~~~~~~~~~~~~~~~~~| ...
18
votes
1answer
215 views

Why does a color meant for the first typeset line *only* (with package magaz) affect the *entire* document?

I am trying to make a nice layout that gives a different style to the first line in a section using the package magaz. All examples I have seen feature some variation of small caps {\scshape text} or ...
2
votes
1answer
163 views

Empty sections cannot be broken, making page look stretched out

This is almost duplicate to question Random unwanted space between paragraphs but I don't even use \par. I'm using pdflatex to compile a .tex file. As I wrote my text I noticed a sudden change in how ...
3
votes
1answer
2k views

Images on same page as text (paragraph)

I have 3 paragraphs with text (but without use \paragaph, just ext) and I have 3 images to these paragraphs. When I create pdf I have these paragraphs on one page (with text before) then on next page ...
13
votes
1answer
306 views

No indent in the first paragraph in a section in Plain TeX

I have checked no indent in the first paragraph in a section? but I think my question warrants a new thread, because my question is about Plain TeX. I am using Plain TeX. I would like to write a ...
1
vote
0answers
46 views

How to hold all lines in a defined environment? [duplicate]

\def\Grammercaption{\textbf{Grammer}} \def\grammer{\bgroup\ignorespaces\Grammercaption\fontsize{10}{13pt}\selectfont} \def\grammer{\egroup} I want all lines of text within this environment stick ...
5
votes
2answers
258 views

Getting the interlinear spacing correct within a paragraph when using minipages

Let me start by saying that this is very similar to a previously posted question, How to keep a constant baselineskip when using minipages (or \parboxes)?, for which egreg gave a very nice solution. ...
1
vote
1answer
275 views

Multiple paragraphs break custom command

first of all sorry if the question seems repetitive: I have tried to find a solution in previously asked questions but none of the hints provided seems to work for me. Here is my situation. I am ...
7
votes
2answers
356 views

Unexpected list spacing when trying to implement vertical lists in paragraph style (with enumitem)

I'm trying to create a styling for certain numbered lists where they are formatted as normal paragraphs; i.e., a paragraph indent before the label, with all subsequent lines of each item unindented. ...
1
vote
0answers
52 views

Prevent figures from breaking lists, paragraphs and stay in current section [duplicate]

Possible Duplicate: How to protect text from being split by a float? I have quite some images in my report and I insert them with this command I made: \newcommand{\image}[3]{\begin{figure} ...
59
votes
2answers
11k views

When to use \par and when \\

What is the difference between \par and \\ and when should I use \par instead of \\?
5
votes
3answers
310 views

Automatically stretch/fit contents of a paragraph

I am preparing my thesis and in many places I find the Overfull/Underfull warnings. Usually it is not very alarmingly visible in the document but sometimes it is painfully out of the specified ...
6
votes
1answer
365 views

Newline, indentation, parskip - when to use what in what stylistic manner?

I intend to use scrbook. In real-life literature, English and German language, the text often looks like this: Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod ...
6
votes
1answer
210 views

No gridding for a single paragraph (ConTeXt)?

Is there a possibility to deactive grid=yes in the text for a single paragraph only? It should be something like \nogrid{ paragraph.... }. There is \placeongrid{} - but this does not allow ...
3
votes
1answer
81 views

How to indent part of line to certain amount?

I apologize if this is a basic question, but I'm new to LaTeX and typography in general, and I'm not sure how to articulate my question properly. I have a document which looks like this: ...
3
votes
1answer
549 views

space between paragraph and list

In this code, I'm confused about why the space between First paragraph and Second paragraph is not equal to the space between Second paragraph and First bullet. How can I make them equal? ...
4
votes
1answer
2k views

Paragraph after \section doesn't indent [duplicate]

Possible Duplicate: How can I indent the paragraphs which follow a heading? I want to ask why "Hello!" doesn't indent. % work1.tex \documentclass{article} \begin{document} ...
11
votes
2answers
191 views

Define a command to affect everything until the end of the paragraph?

Is it possible to define a command so that it affects everything until the end of the current paragraph? As a minimal example, I am trying to define a command using syntax similar to the following: ...
5
votes
1answer
906 views

Formatting – title with underline and box around paragraph

Can you help me please with formatting? I like this format: How can I define this title with grey underline (width of all page)? Font is sans serif (Arial). And how can I make grey box around some ...
6
votes
1answer
136 views

Is there a way to configure a command to affect the following paragraph?

I have made the following small command to insert visible section breaks in a manuscript: \makeatletter \newcommand{\subsectionbreak}{ \vspace{1\baselineskip} \centerline{\char"E030} ...
8
votes
1answer
348 views

How can I tie two pieces of text together so LaTeX tries not to break exactly between them?

I'd like to typeset two chunks of text (a problem statement and solution) next to each other, but I don't want the problem to be the last thing on a page and the solution to be the first thing on the ...
9
votes
1answer
1k views

Remove indent of paragraph and add line skip with tufte-latex

I'm using tufte-latex and I want paragraphs to have no indent, but a line skip instead. Normally you can achive this with: \usepackage[parfill]{parskip} Using tufte-latex this does not work ...
1
vote
1answer
816 views

Single paragraph with styling and larger \parskip

I'd like to use something like this: {\bfseries\small Some text here...\setlength{\parskip}{1em}} More text here in the next paragraph... In order to increase the spacing after a single paragraph, ...
3
votes
2answers
249 views

“Math paragraphs”: display a lot of small formulas, automatically placing line and page breaks

I have a lot of short formulas that I want to set out all together—short enough that usually two or three will fit on each line—so I would like to simply give all the formulas, and let TeX place the ...
8
votes
1answer
361 views

Identical vertical spacing between paragraphs of different textsize

Something that happens to me very often is that I change the size of certain formula-like material (something close to but not identical to pseudocode in my case) but get inconsistent vertical ...
1
vote
0answers
45 views

Suppressing pagebreaks within paragraphs [duplicate]

Possible Duplicate: How to avoid page-breaks inside paragraphs? The style spec for a document requires that pagebreaks come between paragraphs or list items, so paragraphs are never split ...
2
votes
1answer
109 views

Prevent paragraph ending before display equation in TeX4ht

I'm using TeX4ht and I noticed that the displayed equations always forces the current paragraph to end. For example, if I write: We define \[ x = 3 \] and continue the discussion. I would expect ...
6
votes
2answers
1k views

Indenting the first line of figure captions

I want to create a small indentation in the first line of figure captions, similar to the way LaTeX indents the first line of paragraphs. The caption package does not seem to support this. Is it ...
2
votes
1answer
1k views

Line alignment with \par

I was writing a document in LaTeX and found out that I am not able to properly align the text when I use \\ or \newline Here is the code. \par{ {\bfseries{\today}} \vspace{1\baselineskip} Name \\ ...
1
vote
2answers
249 views

Correct spacing around environments without the comment symbol when using parskip?

I prefer inserting blank lines between paragraphs, and no indenting. I know that the package parskip can offer this functionality, but it comes with a catch. When writing \documentclass{article} ...