New answers tagged line-breaking
1
vote
text on multiple lines inside tikz baseline with node
Use \\ with align option in the node.
\documentclass{beamer}
\usepackage{tikz}
\begin{document}
\begin{frame}
\tikz[baseline]{ \node[draw=black, align=center] (t1) { Test Test \\ Test Test Test ...
1
vote
Accepted
force line breaks in long character strings that contain highlighted text (seqsplit does not work here)
You can coerce soul to cooperate, but without seqsplit.
\documentclass{scrreprt}
\usepackage{soul}
\usepackage{xcolor}
\ExplSyntaxOn
\NewDocumentCommand{\seqsplit}{om}
{
\group_begin:
\...
1
vote
Accepted
Test if Current Color is Black (with line breaks)
When you do
\newcommand*{\TypsetInBlueOnlyIfCurrentColorIsBlack}[1]{%
...
}
you are telling LaTeX that the argument to \TypsetInBlueOnlyIfCurrentColorIsBlack cannot contain blank lines (or \par).
...
5
votes
Accepted
Why isn't every space between words a feasible breakpoint?
Let's try and compute the badness. The text
Mr.~Drofnats---or ``R. J.,'' as
has a width of 125.88911pt, to which we add 20pt because of \parindent.
The \hsize is 469.75499pt, so we need to stretch ...
8
votes
Why isn't every space between words a feasible breakpoint?
No, not every break can be reached without badness exceeding the tolerance: they would require too much stretching. You can try it out yourself: just insert a \break to force the break.
\...
0
votes
How to add a forced line break inside a table cell
It's been a long time, but now you can just use Optex without any packages:
\thistable{\tabskipl=0pt plus1fil \tabskipr=\tabskipl} % center the able
\table{p{5cm\fC}c}{%\fC centers cell
\crll
Here\...
1
vote
Split a huge matrix across lines to fit on page
I'm not sure this is a good idea, but it accomplishes what you want. You can use the trimclip package to literally cut your huge matrix into two pieces. Then use the multline environment to place the ...
0
votes
How to break long text in black box in tcolorbox?
With minipage
\documentclass{article}
\usepackage[most]{tcolorbox}
\tcbset{
boxsep=4pt, left=0pt,right=0pt,top=0pt,bottom=0pt,
colframe=white,colback=black,
...
2
votes
Split a huge matrix across lines to fit on page
Even if you render the (unnumbered) equation in landscape format -- say, with the help of the rotating package and its sidewaysfigure environment -- you'll still need to round the numbers from 4 to 3 ...
1
vote
Accepted
Automatic line breaking of boxes
You need to use \global before \setbox, because \foreach from pgf does each loop-step in a group. The local setting is forgotten when the group is leaved. And you want to use \penalty0 in order to ...
0
votes
Biblatex: Removing underlining of journal title and enabling line break of it
Although the MWE in the question does not show it, the comments indicate that in the real document the ulem package was used. This causes underlining of text that is displayed with \emph, which is ...
3
votes
Indentation in Beamer Frametitle
With that clues, the answer only can be "stop doing whatever you are doing to change the default output":
\documentclass[12pt]{beamer}
\usetheme{Goettingen}
\begin{document}
\begin{...
4
votes
Why does LaTeX neither break at nor hyphenate after a "user kern"?
Kerns are mostly used for correcting unsightly clashes between letters; for instance, the italic correction is a kern that can be used to break ligatures, where you usually don't want line breaks.
...
3
votes
Why does LaTeX neither break at nor hyphenate after a "user kern"?
I think this is as good of an explanation as one can get from the TeXbook.
\ddanger According to the rules above, there's an important distinction
between implicit and explicit kerns, because \TeX\ ...
0
votes
How can I split an equation over two (or more) lines
Kind of a hack solution (uses \hspace) from me which however, sticks to the amsmath alignat environment in order to maintain the alignment between the first and any further lines of the split ...
0
votes
Using seqsplit and truncate together
The common way to do it is using package hyperref, where you replace your commands simply by \url{someURL}.
\documentclass{article}
\usepackage{booktabs}
\usepackage{tabularx}
%\usepackage{seqsplit}...
0
votes
References spilling out of margin in bibliography
In my case \newgeometry solved the problem.
Something like this:
\newgeometry{top=32mm, bottom=27mm, left=40mm,right=15mm}
\bibliography{ref}
also you can try this:
%SHIFT HORIZONTAL MARGIN ON EVEN/...
0
votes
Beamer: extra blank line between display math and enumerate
Placing a negative \vspace works.
\documentclass{beamer}
\begin{document}
\begin{frame}
\begin{columns}[t]
\begin{column}{.5\linewidth}
Assume
\[
f+g=h
\]
\vspace{...
2
votes
Accepted
line height varies with wrapping text
Do not use \\[ ] as an inter-paragraph spacing, typeset proper paragraphs, ending them before changing the type size. And use ragged2e and a proper language set-up:
\documentclass[11pt,a4paper]{...
0
votes
Suppress black box at end of line
Fixing the illness directly, not the symptoms
The black boxes usually occur alongside the error:
Overfull \hbox (3.14159pt too wide) in paragraph at lines 41--42
This usually means that there is too ...
Top 50 recent answers are included
Related Tags
line-breaking × 2621tables × 204
math-mode × 189
hyphenation × 173
spacing × 163
equations × 129
paragraphs × 112
listings × 102
urls × 92
horizontal-alignment × 85
biblatex × 77
macros × 75
formatting × 73
page-breaking × 65
align × 62
boxes × 58
sectioning × 55
hyperref × 55
tikz-pgf × 51
lists × 51
indentation × 51
warnings × 50
line-spacing × 47
amsmath × 45
bibliographies × 43