5
votes
4answers
119 views

How to add a line break in math mode but number the whole as one formula?

I am trying to get the following formula on two lines like this: \begin{equation} W \in \mathbf{M}_N \rightarrow W' \in \mathbf{M}_{N+1}\\ (w_{ij})_{1\leq i,j\leq N} \mapsto (w_{ij})_{1\leq i,j\leq ...
7
votes
2answers
768 views

LaTeX is crossing its limits

Pardon for the funny title. I have a large report in the middle of which there is a sentence Let $\mathcal{L}$ : $\mathcal{O}$ $\rightarrow$ $\mathcal{S}$ be a function This shows in the report as ...
3
votes
1answer
69 views

Typesetting mathematical formulas in line breaking

When you typeset a mathematical formula is there a rule regarding the breaking of the formula in a new line, meaning if for instanse the formula breaks in a plus sign (+) or in a equal sign (=) then ...
7
votes
4answers
144 views

Line breaks of math expressions in subfloat environment

I would like to show a figure in which there are a graph representation above its edge and node lists in LaTeX. I have written something like this: \begin{figure}[!ht] \subfloat[First figure]{ ...
10
votes
4answers
299 views

How to break this long radical into multiple lines?

I've got a very long radical in a display-math environment, so long that the equation spills in the right margin. How can I break that equation over multiple lines, so that it doesn't go into the ...
4
votes
4answers
250 views

Breaking and aligning equations

I have the following MWE \documentclass[10pt, a4paper]{article} \usepackage{amsfonts, amsmath, amssymb, amsfonts} \begin{document} \begin{align} \sum_i{ c_i} &= \cos \sin\cos \sin\cos ...
0
votes
0answers
65 views

How to make two line apex

I'd like to split the apex in two lines. I'm commenting a part of an equation with \overbrace and I need to split the comment in two line because it is too long. $$ x = \overbrace{y}^{very big ...
1
vote
1answer
80 views

I can't find/fix the errors in order to be able to compile it

\documentclass{article} \usepackage{amsmath} \begin{document} $These are two truth tables for the following: $\neg (p \vee q)$ is logically equivalent to $(\neg p) \wedge (\neg q)$ ...
1
vote
0answers
65 views

Alternative for `\linebreak` in inline math mode

Looking at this question and the chat that followed it, I was wondering what would be considered best practise to include line breaks in inline math mode (breqn does not quite work; there's some ...
7
votes
1answer
85 views

How can I find out the linebreak penalty at a given point of text or a math formula?

How can I find out the linebreak penalty at a given point of text or a math formula? An example would be the point before and after the equals sign here: \(a + b = c\). If I write complex formulas, I ...
2
votes
1answer
97 views

Line break in formula [duplicate]

I have a math, that is too long for only one line. Now I want it to break like this: f(x) = x + ... Or what is the mathematic right way to break such a long formula into several line? Thanks ...
7
votes
1answer
91 views

Is it necessary to give a \\ before \intertext?

I am not sure which one is correct when using \intertext or \shortintertext. Adding \\ before them or not. \documentclass[preview,border=12pt]{standalone} \usepackage{amsmath} \begin{document} ...
1
vote
0answers
51 views

\relpenalty=1000 problem [closed]

I was trying use \relpenalty to fix a formula which was breaking and I tried to use \relpenalty=1000: turns out now my layout got crazy and most of my images are now at the end of the chapters, in the ...
0
votes
0answers
118 views

Detect a newline after dollar $ sign

I would like to be able to use \ifnextchar to check if the next character is a new line character. The reason is that I would like to redefine the $ sign to behave differently if it is followed by a ...
1
vote
1answer
98 views

Split line if too long

I am sure that this has been answered here many times, but I can't find a duplicate. My question is what to do with lines that are "too long", i.e. that overflow into the margin. I think the problem ...
1
vote
1answer
511 views

Add a percentage error using siunitx package

I have a problem with the siunitx package. What I would like to do is the following. I have a number which for instance equals 145 and has the units mm. However, there is also an error expressed in ...
0
votes
0answers
92 views

Long math expression in the middle of text exceeds the width page [duplicate]

I have a long math expression in the text, and it exceeds the width page. How can I fix it in middle of text? $x \in \left(10\%, 15\%, 20\%, 30\%, 40\%, 50\%, 60\%, 70\%, 80\%, 90\%\right)$
4
votes
2answers
151 views

Math-mode overrun in newtheorem

I would like to have a long math-mode "title" in a newtheorem environment: \documentclass[twocolumn]{article} \usepackage{amsthm} \newtheorem{definition}{Definition} \begin{document} ...
4
votes
1answer
69 views

Discourage linebreaks before/after math

I would like to discourage linebreaks right before and after inline math displays, such that now let $f$ be the function that connects acts similar to now let~$f$~be the function that connects ...
3
votes
1answer
92 views

Retain line breaking behaviour inside macro

I use a macro which just wraps its argument in a pair of delimiters (brackets). It interferes with the way LaTeX would normally wrap an inline math expression. The following illustrates: ...
1
vote
1answer
72 views

Two hyphenation problems with non-language items

The first hyphenation problem occurs with the double-word "algébrico-géometriques", which is in French, and I'm writing in English. Unfortunately, I already tried different variants of ...
2
votes
1answer
80 views

Line break in math environment

I've typed this: $A,A+k,A+2k,\ldots,A+nk,B$, kde $k$ je \textit{krok} and the line breaks in the middle of A+2k. Is it OK or should I break the line manually before this expression?
2
votes
1answer
201 views

Extra } or missing \right

I'm having this error each time i try to build the file "Missing \right or extra } error". I tried to figure it out but I could not know in which part is the error. I need break line because without ...
8
votes
2answers
784 views

Why \allowbreak is not working?

So, here's the code I have: \usepackage{amsthm} \begin{theorem} ...could be now considered as an algebraic structure $DB_E = \left\langle \mathbb{S},\allowbreak \mathbb{E},\allowbreak f,\allowbreak ...
2
votes
1answer
76 views

Is it possible to break the following aligned?

I don't want to use the displayed math environment for which \allowdisplaybreak is designed. Shortly speaking, is it possible to break the following alined by defining something like ...
8
votes
4answers
435 views

Splitting root symbol

How can the \sqrt command be modified to split root symbol into two or more lines automatically? Example: \documentclass{standalone} \begin{document} \begin{minipage}[t]{0.8\textwidth} ...
2
votes
2answers
206 views

Breaking a long math expression

I am trying to type long expression by using parenthesis inserting some sentences, as an example I have a expression like product of \documentclass{12 pt}{article} \begin{document} \begin{multline} ...
3
votes
1answer
85 views

Inline equation doesn't fit in page

I have an inline equation that I don't want to split in lines. If I use foo bar foo bar foo bar foo bar foo bar foo bar foo bar ${ B = A \cap \{ T \leq n \} }$ It doesn't fit in the page's width ...
2
votes
1answer
109 views

Inline math: Line breaking and stretching only in specified places

Is it possible to have document-wide solution for all inline formulas was breakable and stretchable only in pointed positions? Like $longformula1 \/ longformula2 \/ longformula3$ was able to break ...
2
votes
1answer
559 views

Automatic line break for writing context-free grammars?

I am currently writing context-free grammars in Latex, I have one production in each line, e.g. S -> a | B B -> C C -> D | d Currently I am using the math mode for this and a manual line ...
1
vote
0answers
44 views

How to break long expressions automatically in displaymode? [duplicate]

Whenever an expression is too long, it will be broken automatically in inline mode but done nothing in displaymode E.g. MWE: \documentclass[11pt]{article} \begin{document} ...
8
votes
3answers
227 views

Useful macro definitions

This question is related to Question: linebreak in macros, however it is not asking for the same information and I separated it out: In my documents, I make use of commands like the following: ...
6
votes
2answers
1k views

Forcing math mode to be on the same line

I would like to have math mode expressions in dollar signs always to stay on the same line, which is what happens to a sequence of characters with no spaces while not in math mode. Is there a way to ...
4
votes
1answer
63 views

Breaking inline equation at several punctuation characters

I am trying to define a command which automatically allows linebreaks inside inline equations at several punctuation characters — I am aware of \allowbreak but don’t want to manually insert it; here, ...
4
votes
2answers
2k views

Equation does NOT go new lines, while using \newline

I've been trying to typset an equation which, at a certain point, spans several lines, but is a single step (so no numbering may occur). For this I used newline, but this doesn't seem to work. How do ...
4
votes
1answer
656 views

automatic \allowbreak around mathbin and mathrel characters

I would like linebreaks to be permitted within math formulas on both sides of any characters of the mathbin and mathrel character classes. It seems like linebreaking is by default only permitted after ...
8
votes
3answers
427 views

How to achieve line break in simple $formula$-mode

I want to have inline math text like Figure \ref{figure:example graph} shows an example of a graph $G = (\{v_{1}, \dots, v_{5}\}, \{(v_{1}, v_{2}), (v_{2}, v_{3}), (v_{1}, v_{3}), (v_{2}, v_{5}), ...
2
votes
1answer
3k views

New line in a math block [duplicate]

Possible Duplicate: Linebreak in equations I am very new to latex, its been a super frustrating I spend almost close to two hours on getting a new line inside the math block \[{P(g(X) \neq ...
1
vote
2answers
78 views

Linebreak in math environment

I have an odd problem, I tried already all possible things, align, eqnarray, $, \[ \] and so on, but the following stays the same: I have a formula inside text and it is not broken, so it goes into ...
7
votes
1answer
216 views

Allow line breaks but not page breaks in inline formulas

It often happens that LaTeX breaks up an inline formula over two lines. However, I find it quite distracting when it breaks an inline formula over multiple pages. For example: ...
6
votes
3answers
2k views

Break an inline math formula

I have a theorem that looks like this: Now I would like to break the (A....D) math expression. The problem is, that nothing I did from the solution of this answer helped (since probably people will ...
7
votes
3answers
1k views

Alternative to \substack{} for a related purpose

I would like to write something like the following, but involves mathematical symbols: I tried using the \substack{} but it makes the font smaller. I'd like a novel alternative to achieve this. ...
1
vote
1answer
257 views

How to break this function up between multiple lines?

I need to split the equation $$f(x)=\bigg(\prod_{i=1}^n((y(\lceil\frac{i-1}{i}\rceil)+1|(\lceil\frac{i-1}{i}\rceil)-1|) ...
7
votes
2answers
423 views

Environment to allow line breaks at `,` in math mode

I find the question and accepted answer to Allowing line break at ',' in inline math mode? very useful, BUT I would like to make an environment (e.g. "allowbreaks"} out of it. The problem is that I'm ...
5
votes
1answer
435 views

Hyphenation points within rigidly typeset formulas

Because I am not fond of the look of tracking ("stretching") for math formulas, I generally use ${...}$ instead of $...$ for math formulas. (Please respect this aesthetic preference of mine.) However ...
4
votes
2answers
384 views

How to stop mathmode straddling two lines (without overfull boxes)?

I do not like it when my maths spills over onto a second line. For example, what I am currently doing spits out stuff like, ...just some talking then we have some maths Aut(G) < H/K and lo! it has ...
0
votes
0answers
92 views

How to make sure that $ formula $ will be on one line? [duplicate]

Possible Duplicate: How can I prevent LaTeX from breaking inline formulas globally? How do I keep a string of text together without it doing a line break? So I have code like (sorry for ...
6
votes
1answer
2k views

line break inside cases environment

I have an equation using a cases environment, with one case with a long description text: \begin{eqnarray*} \begin{cases} 1 \text{too long description of the first case, not ...
8
votes
2answers
7k views

Writing an equation in a new line

I wish to write an inline equation using $%math...$, but the current line is too long, so the equation is broken into two parts, first one in the original line, and the other in a new line. I don't ...
4
votes
2answers
764 views

How to make text in math mode which would cause an `overfull \hbox` automatically start on the next line?

I have text within $s following normal text, which runs off the end of the line and creates an overfull \hbox warning. By default, LaTeX doesn't let the stuff in math mode run off the end of the ...