New answers tagged line-breaking
5
votes
Accepted
How to split a long set
To my opinion is your text better readable, if long sets are written in display math form:
For this I use aligned* and multlined of mathtools package:
\documentclass[a4paper,12pt]{article}
\...
3
votes
How to split a long set
I doubt that there's a general rule that answers your question.
There will be cases for which it's clearly preferable to put the math material containing commas out of the running text and into a ...
1
vote
Accepted
Breaking Long Radical Over Multiple Lines
Rather than splitting the contents of the radical I'd use a fractional exponent. By nesting split inside align, you get the equation numbers centered between the lines.
Don't use pxfonts, that's ...
1
vote
Breaking Long Radical Over Multiple Lines
Instead of creating superlong lines (vinculi?) which span two lines, I suggest you switch to [...]^{1/2} notation, with the opening bracket on one line and the ]^{1/2} term on the other.
I would also ...
0
votes
Breaking Long Radical Over Multiple Lines
I was able to work around the problem by splitting the first and second lines into different \align environments and by using the \aligned command to fit multiple lines under the square root:
\begin{...
1
vote
Accepted
First tag of nested description environment with newline style wont appear on new line
Adaptations
\setdescription is deprecated, replaced by \setlist[description,<levels>]{<format>}
defined command \directenv, that can be used, if there is no text following, but directly ...
0
votes
How do I highlight text or formulas?
You cannot use cites or equations inside \hl. The issue with cites can be solved with a \mbox{\cite{...}} at least in some cases (no MWE, not possible to check if that could work in your case), but ...
4
votes
I'm having a problem with sentences breaking when writing input and output in a latex algorithm
You can leave a blank line between your Input and Output statements, which sets the proper alignment:
\documentclass[twocolumn]{article}
\usepackage{algorithm}
\usepackage{algorithmic}
\begin{...
9
votes
Accepted
How to correctly separate paragraphs with a blank line
LaTeX separates paragraphs every time you add at least one empty line between texts. Then, how paragraphs are formatted depends on you. Here's a good helpful website: How to change paragraph spacing ...
3
votes
Accepted
Long url doesn’t break in theorem optional argument (under amsthm, hyperref, xurl)
The problem is that the url is math. The theorem code stores the optional argument in a box that it then unwraps later but TeX performs some optimization in this case and omits the implicite penalties....
3
votes
Long url doesn’t break in theorem optional argument (under amsthm, hyperref, xurl)
You are under no obligation to use the optional argument of the theorem environment to place the URL string.
This approach will have to be modified if the URL string contains certain TeX-special ...
3
votes
How to force a line break right after the name of the proof environment?
I suppose you use amsthm package,
In this package proof is defined as :
\newenvironment{proof}[1][\proofname]{\par
\normalfont
\topsep6\p@\@plus6\p@ \trivlist
\item[\hskip\labelsep\itshape
#...
3
votes
Accepted
How to force a line break right after the name of the proof environment?
Something like this?
\documentclass{article}
\usepackage[ngerman]{babel}
\usepackage{amsthm}
\begin{document}
\begin{proof} \hfill
\noindent
$G1 (a * b) * c = a * (b * c) \forall a, b, c \in G$.
\...
2
votes
How to force a line break right after the name of the proof environment?
Like this?
\documentclass{article}
\usepackage[ngerman]{babel}
\usepackage{amsthm,amsmath,amssymb}
\begin{document}
\begin{proof}\ \\
$G1 \quad (a * b) * c = a * (b * c), \quad \forall a, b, c \in ...
1
vote
Accepted
Changing \autocite format to include page number
Since its not fully clear which biblatex style you're using, here is a simple solution for style=authoryear. But it may also work with other styles, depending on the definition of some macros.
Here a ...
2
votes
Accepted
Is it possible to programmatically add line breaks inside \makecell?
Using L3's \clist_map_inline:nn instead of forarray this works as intended. The issue is that each line in \makecell forms a cell in a nested tabular, and hence is a group. It seems the loop of ...
3
votes
Cannot fit align environment into page even with multiline* or \resizebox
You need to break the long lines, I suggest to use two aligned inner environments. The staggering will tell your readers how to read the formulas.
Avoid ^{\prime} not because it's wrong, but because a ...
2
votes
Cannot fit align environment into page even with multiline* or \resizebox
With use of macro \MoveEqLeft and math environment aligned, both defined in the mathtools package:
\documentclass{article}
%--------------- show page layout. don't use in a real document!
\usepackage{...
4
votes
Accepted
Cannot fit align environment into page even with multiline* or \resizebox
I think you need to break up line 3 into three parts and line 4 into two parts. To simplify the aligning of the three parts of the old line 3, I'd embed the material to the right of the integral ...
0
votes
Accepted
Prevent Overfull \hbox
Although there's no MWE here, and the document class is unknown, the context makes the problem clear.
Remember that in most document classes, the \parindent is nonzero. And that indent will be ...
2
votes
How to stop long words with "+" in them from going into the margins?
Why not just use \babelhyphen{+}?
\documentclass[twocolumn,a5paper]{article}
\usepackage[english]{babel}
\begin{document}
\newcommand\+{\babelhyphen{+}}
\newcommand{\youword}{\textit{This\+Is\+A\+...
6
votes
How to stop long words with "+" in them from going into the margins?
If you have “words” of this form, you can define an infrastructure for commands representing them:
\documentclass{article}
\NewDocumentCommand{\breakingplus}{}{\discretionary{+}{}{+}}
\ExplSyntaxOn
\...
3
votes
How to stop long words with "+" in them from going into the margins?
If you are able to compile your document under XeLaTeX, the fontspec package let's you redefine the hyphenation character temporarily or "on the fly" -- say, to the + character -- and switch ...
11
votes
Accepted
How to stop long words with "+" in them from going into the margins?
Not sure I fully understand your request "without hyphenation". Here, I make the + disappear at line breaks:
\documentclass[a4paper]{article}
\newcommand{\plussy}[1]{%
\begingroup
\...
Top 50 recent answers are included
Related Tags
line-breaking × 2790tables × 221
math-mode × 195
hyphenation × 185
spacing × 173
equations × 135
paragraphs × 123
listings × 103
urls × 96
horizontal-alignment × 87
biblatex × 83
macros × 80
formatting × 77
page-breaking × 69
align × 66
boxes × 60
sectioning × 58
tikz-pgf × 56
hyperref × 56
lists × 54
indentation × 53
amsmath × 50
line-spacing × 50
warnings × 50
bibliographies × 48