4
votes
0answers
42 views

Minimum number of characters in the last line of a paragraph [duplicate]

Last line of paragraph should end with a minimum of five characters of the word. Is it possible to obtain this with LaTeX ?
1
vote
2answers
30 views

Line break after description label

How can I ger a line break after the label of a description environment item? I'd like to keep the indentation and the bold face for the item label, but I'd like to have the body of the item in a ...
5
votes
2answers
150 views

How to break a paragraph between double {}

Document class I use the following document class: sig-alternate.cls The document class can be found at: http://www.acm.org/sigs/publications/proceedings-templates Problem: I have the following ...
0
votes
0answers
56 views

LaTeX adds a line break when the last line in a paragraph extends to the right margin

Could someone tell me why LaTeX adds a linebreak after stanza 11? [Edit: sorry, I think I should have used \par instead of double backslash \getroot{§10§} \par \getroot{§11§} \par \getroot{§12§} ...
6
votes
1answer
86 views

Paragraph with a given aspect ratio?

I using tikz together with package varwidth, I find myself playing out with different values for paragraph width, so as to achieve an "optimal" aspect ratio. Ideally, I would have liked to have an ...
3
votes
1answer
74 views

How to apply \looseness=-1 to ALL the paragraphs?

I'm writing a short document of (3-4 pages), and try to condense it into the allowed space. Putting \looseness=-1 at the end a paragraph helps quite a lot. Is there a way to tell LaTeX to treat ...
9
votes
2answers
137 views

I'm using the standalone package. How can I get regular paragraph breaks?

I'm using the standalone class to render images for individual math problems that will be displayed in an app, so the cropping functionality is essential. However, the package seems to destroy ...
3
votes
1answer
199 views

Should I use \\ to end a line or a paragraph? [duplicate]

I am somewhat confused as to how to approach the following issue. In my thesis is have a lot of text and want to group this is using line breaks and paragraphs. Up to now I have been using \\ to ...
6
votes
2answers
205 views

Manual linebreak with justification but without empty line afterwards

What do I write at the end of a paragraph if my text is a couple letters short of being flush from left to right and I want the last line stretched slightly so that no empty space is left that the ...
0
votes
0answers
44 views

Equating line length in paragraph [duplicate]

Is there a way to let Latex automatically insert a line break not when it runs out of space, but earlier so that the lines in that paragraph have roughly equal length? In my case, I am trying to ...
13
votes
2answers
607 views

Format a verbatim paragraph

How can I format a verbatim paragraph? I.e. break, fill and join input lines to produce globally balanced output with the lengths of each line approaching the target \textwidth as closely as possible. ...
6
votes
1answer
365 views

Is there an alternative to LaTeX which isn't whitespace sensitive?

I have been using LaTeX for about a year now, and I quite like it. However, I like to space out my source code. In most languages, this doesn't cause an issue, as extra newlines don't affect meaning. ...
1
vote
1answer
233 views

New paragraph without \newline?

I am writing on a larger text and sometimes I want to begin a new paragraph. So I don't want to have a new heading, just a space for visiual reasons. Currently I use the solution with \\ \newline For ...
6
votes
1answer
190 views

biblatex: no linebreaks in name lists when typesetting ragged-right

When typesetting a bibliography \raggedright, biblatex seems to have trouble breaking a line between an author's first/last/middle names (and, if multiple authors are present, between two authors). ...
23
votes
4answers
520 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". ...
3
votes
2answers
564 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 ...
3
votes
2answers
678 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. ...
18
votes
1answer
197 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 ...
48
votes
2answers
6k views

When to use \par and when \\

What is the difference between \par and \\ and when should I use \par instead of \\?
8
votes
1answer
266 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 ...
4
votes
1answer
172 views

\newcommand creates underfull\hbox (badness 10000) in paragraph

I have a 2-column document with repeating boxes. So I created these macros (don't mind the colors and boxheight): % ------------------------------------------------------- % aitparagraph % % gives ...
5
votes
1answer
119 views

Implicit newline at the end of each paragraph?

In certain styles of text I define \parindent 0pt in the preamble and write the text in this manner: paragraph 1\\ paragraph 2\\ and so forth. I wonder if there is anything I can include in the ...
13
votes
3answers
4k views

How to avoid using \sloppy document-wide to fix overfull \hbox problems?

How to avoid using \sloppy document-wide to fix overfull \hbox problems? This is my minimal working example. \documentclass[12pt]{report} \usepackage[english,ngerman]{babel} ...
10
votes
2answers
804 views

How to break URLs when footnotes are on same line?

Question Footnotes on the same line revealed that it is a good idea to use \usepackage[para]{footmisc}. However, this does not seem to work with URLs: \documentclass{article} \usepackage{hyperref} ...
16
votes
3answers
39k views

How to insert vertical space between paragraphs [duplicate]

Possible Duplicate: Is there an easy way to have my whole document with a space between paragraphs rather than indentation? Googling didn't give required results. (Many, but not applicable ...
2
votes
2answers
309 views

Two paragraphs side-by-side and page breaks

I have a little mind puzzle here. This idea was bugging me since I saw a question about breaking cells in a table on a page break. Let's think of a table row that's built from cells that are ...
17
votes
1answer
1k views

How to join paragraphs with a pilcrow \P?

Background There are many typographically distinct ways to separate paragraphs from one another, the most common being starting each paragraph on a new line with either an indent or additional ...
16
votes
3answers
1k views

How to wrap text around a figure? (revised)

This question has been asked before (and in fact I stole the diagram below from that question) but the answers are not sufficient for my needs (at least near as I can tell). What I want is the ...
0
votes
1answer
2k views

“There's no line here to end” error when pages break at unfortunate locations

I'm recieving seemingly random There's no line here to end errors at different parts in my code. At first I thought they were truly random and that I had some weird configuration error somewhere, but ...
0
votes
3answers
3k views

Why gap + indent after \\ and [return]

I'm using TeXLive (pdftex) with TexShop on my Mac and usually, I don't format my .tex files. Now that I have to write some bigger ones, the code soon gets too messy to read and I tried to insert some ...
14
votes
2answers
27k views

New line after paragraph? [duplicate]

Possible Duplicate: paragraph style - how to force line break? \paragraph{} \\ - make paragraph a header? I have the following problem. I have a paragraph and only after this single ...
149
votes
5answers
5k views

How to define the badness of a river?

I've written an algorithm to try and detect rivers in paragraphs and it actually detects quite a lot when I run it. Some of them are clearly false positives, but there are others that are indeed ...
29
votes
2answers
686 views

Ensure minimal length of last line

This question led to a new feature in a package: impnattypo One rule in French typography is that the last line of a paragraph should not be shorter than the double of the indentation of the ...
11
votes
3answers
482 views

How to display only certain lines of a paragraph?

From reading Knuth's TeX Book (Chapter 14 How TeX Breaks Paragraphs into Lines), I understand that entire paragraphs are read in and then "massaged" by the "line-breaking algorithm" in an optimal way ...
2
votes
1answer
283 views

Testing for multi-line paragraphs

I'm running into a situation where I need to insert some code (specifically, \hfill) only if my paragraph runs more than one line. This isn't a simple alignment thing, as I'm working with ...
8
votes
1answer
6k views

Change text background within paragraph (with automatic linebreaks)

How do I change the text color as well as the text background color for e.g. a sentence within a paragraph? I know \textcolor for coloring the font and \colorbox for background coloring ...
10
votes
3answers
2k views

How to use \sloppy for just some references?

I’m using XeLaTeX within MiKTeX and also the biblatex package for the literature. I’ve noticed that my bibliography set using \printbibliography is not set with the \sloppy option by default, which ...
3
votes
1answer
233 views

How to properly break text with lots of inline formulas?

I have the following document: \documentclass{article} \begin{document} \textbf{Theorem:} $\forall x_0\cdots\forall x_{n+2}( \forall x_{n+3}(x_{n+3}\in x_{n+1}\leftrightarrow ...
5
votes
2answers
255 views

How to spread words in several lines uniformly?

In TeX, I can use \hbox to 1in{foo bar baz} to get Is it possible generalize the use, to get this result: by typing a paragraph foo bar baz test text only? I tried \break to break lines at ...
19
votes
3answers
2k views

When can I safely add an empty line?

I really like spacing my LaTeX to stay organized, but I'm always scared that adding a space will affect the output when all I really wanted to do was separate the "code" a bit. So most of the time I ...
3
votes
2answers
392 views

Extra line after the paragraph ended by dash with overfull

Consider the following example (Plain TeX): %%%%% Tttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt- Test. \end %%%%% The first ...
20
votes
2answers
3k views

Reduce bibliography to one line

Quick question, hopefully with a quick answer. I'm writing a paper where I'm limited by length (2 pages) and I need references, but it doesn't have to look nice. I'd like LaTeX to compress my ...
59
votes
5answers
4k views

Avoiding “rivers” in successive lines of type

This question led to a new feature in a package: impnattypo The following quote is from James Felici, The Complete Manual of Typography (2003), p. 161: Rivers occur when word spaces stack ...
16
votes
3answers
959 views

Changing the style of the first *typeset* line of a paragraph

I've been playing around with dropcaps in LaTeX (with the yfonts and lettrine packages), and one typographical effect you often see after dropcaps is having the entire first line of the paragraph ...
12
votes
1answer
2k views

Typeset a dialogue?

I need to typeset a dialogue in LaTeX, it's for a translation assignment. The original dialogue does something like this: - I found it, I told him. My finger was in the book, where George Best's ...
16
votes
2answers
634 views

Is it good style to use \newline instead of just leaving a blank line in order to get a new paragraph?

The two alternatives in my question of course lead to very different results. If you use \newline, then your paragraph will not begin indented. Also the spacing between the paragraphs differs. I am ...