Tagged Questions
2
votes
1answer
52 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
160 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
119 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
78 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
67 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
142 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
39 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
147 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
217 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
54 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
141 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 ...
3
votes
1answer
320 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 ...
7
votes
3answers
210 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
352 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
62 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
149 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:
...
5
votes
3answers
311 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
612 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
162 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|)
...
6
votes
2answers
239 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
321 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
264 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
82 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
946 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
4k 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
431 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 ...
4
votes
1answer
970 views
Newline within underbrace in math environment [duplicate]
Possible Duplicate:
How can I force a line break within \text{…}?
In the MWE below, is it possible to force a line break in the text under the Z so that the overall equation is more ...
9
votes
3answers
880 views
Force line break inside a \lim argument in align environment
Inside an align environment I have a \lim with two variables which should be displayed in two lines:
\begin{align}
...
f & = \lim _ {a \rightarrow -\infty \linebreak b \rightarrow \infty} ... \\
...
13
votes
4answers
4k views
How can I prevent inline math formulas from overflowing into the margin?
When I compile my document in LaTeX, some formulas in the document in math mode, between $ $, go into the right margin area beyond all the text. Is there a way to fix this aesthetic problem?
3
votes
2answers
1k views
Formula out of margin
I got some issues while writing a formula in LaTeX. I have to print this in my document:
\textit{P3ACM}: $ \left \langle \left \langle ( 09.00, 18.00 ) , \{ Monday, Tuesday, Wednesday, Thursady, ...
0
votes
0answers
113 views
How do I put a linebreak in a displaymath? [duplicate]
Possible Duplicate:
How can I split an equation over two lines
I have a displaymath formula that's too long. \linebreak and other commands that work in inline math don't seem to do ...
9
votes
2answers
495 views
Fixing a code to highlight formulas and text on several lines
In this post I've found the following amazing code to highlight text on several lines.
The problem is that code dosen't work well with formulas : for example, fraction using the mode display are ...
1
vote
2answers
258 views
Linebreak in equations
I have a very simple LaTeX problem with the following LaTeX fragment:
The function computes:
\[
e \leftarrow (((x||a) + (y||b)) \oplus y,\\
r \leftarrow x + y
\]
The result should then be in ...
5
votes
1answer
832 views
“Allowing line break at ',' in inline math mode” breaks citations
In answering another question allowing line break at ',' in inline math mode, Stefan Kottwitz suggested two excellent ways to allow line breaks in inline math mode after ,. One way was to use the ...
3
votes
2answers
247 views
Figure with long list of predicates and conjunctions (\wedge)
I have a figure with a long list of predicates connected with \wedge, here is the code:
\begin{figure}[h]
\small{
$
Defined\_in(subject\_state, concrete\_subject) ...
17
votes
4answers
4k views
Prevent line breaking in inline math, but allow flexible spacing
How can I easily tell Latex to prevent line-breaks inside a part of an inline formula, without affecting inter-word spacing?
Writing something like $ab(c+d)$ in Latex is bad: Latex might put a line ...
2
votes
1answer
323 views
Put long formulas on new line/pgf tikz?
Sometimes I have to work with long formulas that can (or I want) not be split over two lines.
I'm trying to write a macro that sent the formula at the new line if the formula would go over the margin.
...
4
votes
1answer
1k views
Newline in equations
The code looks something like:
$$
If \ abs(dx) = abs(dy) \ then \\
step = abs(dx)\\
else \\
step = abs(dy)\\
$$
I want the '\\' to ...
4
votes
1answer
283 views
Wrapping relational operators
If an expression $A = B$ (or say, $A \leq B$) occurs in a sentence and there is only enough space in the current line to accommodate $A$, LaTeX will place the equals sign beyond the margin and cause ...
17
votes
2answers
1k views
How can I prevent LaTeX from breaking inline formulas globally?
I am using the acmsmall template and my inline formulas are being broken at equal signs and arrows; how can I prevent them from being typeset like that globally (i.e. without having to put tildes ...
1
vote
1answer
440 views
Text crossing the page margin in math environment
I have some long text (a single sentence) which I want to put inside a math environment. But my text just goes accros the page margin and ignores the textwidth specification given in the preamble.
...
23
votes
6answers
6k views
Prevent LaTeX to break an inline math equation
I hope this question was not asked before. At least I haven't found it. I have an inline math equation and LaTeX is breaking it into two parts. In this case I'd prefer to have the whole and short ...
5
votes
2answers
269 views
Automatic repetition of mathematical operators after a line break
In handwritten mathematics it is common for the sake of clarity to repeat the last mathematical operator in those line breaks that occur in the middle of a formula. I mean something like:
We compute ...
21
votes
5answers
4k views
How can I write multiple lines in a subscript?
Is there a way to force a line break inside a math mode text?
My example:
\[
\underbrace{....}_\text{Some long text that should be multiline}
\]
Trying
\text{Some long text that\\ should be ...
3
votes
1answer
1k views
An environment to change the vertical space around a formula
Specially in beamer presentations, I use a custom environment to change the vertical space around a formula. The code is:
\newenvironment{shrinkeq}[1]
{ \bgroup
...
32
votes
4answers
31k views
How can I split an equation over two lines
I am having the following equation:
\begin{equation}
Q(\lambda,\hat{\lambda}) = -\frac{1}{2} P(O \mid \lambda ) \sum_s \sum_m \sum_t \gamma_m^{(s)} (t) \left( n \log(2 \pi ) + \log \left| C_m^{(s)} ...
36
votes
2answers
8k views
Allowing line break at ',' in inline math mode?
In the inline math mode ($...$), if the formula is too long, LaTeX will try to break it on operators, e.g.
very long text followed by a very long equation like $a+b+c+d+e+f+g+h+i+j+k+l$ etc
may be ...
5
votes
3answers
13k views
Bold text and newlines inside equations.
What I'm doing:
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{eucal}
\usepackage{amssymb}
\usepackage{mathrsfs}
% don't know what some of those do, but i think all the math related ones are
% ...

