Tagged Questions
11
votes
2answers
229 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
267 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
63 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 ...
5
votes
1answer
68 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
293 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
181 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
132 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.
...
14
votes
1answer
144 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 ...
33
votes
2answers
1k 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
168 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
99 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
79 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 ...
10
votes
3answers
1k 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
430 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}
...
9
votes
3answers
15k 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
243 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 ...
14
votes
1answer
876 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 ...
14
votes
3answers
614 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
1k 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
1k 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 ...
4
votes
2answers
14k 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 ...
108
votes
5answers
3k 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 ...
23
votes
2answers
463 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
412 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
219 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 ...
4
votes
1answer
4k 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 ...
8
votes
3answers
1k 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
217 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
215 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 ...
17
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
358 views
Extra line after the paragraph ended by dash with overfull
Consider the following example (Plain TeX):
%%%%%
Tttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt-
Test.
\end
%%%%%
The first ...
18
votes
2answers
2k 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 ...
53
votes
5answers
3k 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
831 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 ...
11
votes
1answer
1k 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 ...
15
votes
2answers
578 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 ...


