3
votes
2answers
44 views

break an long line in an algorithm

I have a long line in an algorithm and want to break it into two lines. For similar case in equations, split can be used. How do I do this within an algorithm? \documentclass{article} ...
2
votes
1answer
55 views

\tag{} causes line break in align environment. how to prevent?

while using the leqno and fleqn options of amsmath package tags tend to cause line-breaks: MWE: \documentclass{article} \usepackage[leqno, fleqn]{amsmath} \usepackage{mhchem} \begin{document} ...
5
votes
4answers
181 views

Exam Class: how to avoid question going beyond margin

I'm able to create question paper using LaTeX code mentioned below: \documentclass{exam} \usepackage[margin=0.7in,headheight=3.5\baselineskip,headsep=1\baselineskip,includehead]{geometry} ...
7
votes
1answer
107 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} ...
0
votes
1answer
27 views

How to prevent aligned equations to shift when adding a non-aligned line break?

I have an equation in the aligned environment to align the equal signs together. However, the last equation is too long, and I want to break it up. When I insert a linebreak, all the equations above ...
2
votes
1answer
105 views

breaking many long numbered equations

I am having trouble with listing a couple of hundreds of long equations. Most of them need to be broken. The equations should be numbered. I tried many things such as eqnarray in combination with ...
1
vote
2answers
96 views

Unable to split a long equation

I want this equation to break into different lines at each of the line breaks indicated below. f = c_{A1}x_{A1}+c_{A2}x_{A2}+c_{A3}x_{A3}+c_{B1}x_{B1}+c_{B2}x_{B2}+c_{B3}x_{B3} \\ + ...
2
votes
2answers
223 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} ...
1
vote
1answer
164 views

Using split to break a long equation

I am trying to break a long equation over multiple lines. It is here as follows: \begin{equation} \begin{split} L(\textbf{q})=&\prod_{t=0}^{36}{q_{1}^{iB(t)sB(t+1)+iC(t)sC(t+1)}\\ &\quad\cdot ...
5
votes
1answer
516 views

Automatic linebreak in align environment in macros

I have given a selfdefined command like \newcommand{\AND}[2]{\left(#1 \vee #2 \right)} which makes sure that I always give the correct number of parameters to my formula and which handles the ...
6
votes
1answer
211 views

Breaking equation in align enviroment to put textwidth matrix in separate line

I have to put a textwidth pmatrix into an align environment. When using split, it destroys the centered alignment of the other equation. Pseudocode: \begin{align} \vec{a} &= \vec{b} + \vec{c} ...
4
votes
2answers
4k 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 ...
1
vote
1answer
248 views

Linebreaking gather (equation) environment?

Please help me to line break this gather environment. You can clearly see which line I want broken by where I've placed the split environment in my code. It's too long for 1 line. I also want it ...
2
votes
1answer
5k 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 ...
6
votes
1answer
3k 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 ...
4
votes
2answers
6k views

Theorem environment - line break after label [duplicate]

Possible Duplicate: ntheorem environment with indentation Skipping line after “Proof” in proof environment \begin{theorem}[label] The theorem text. \end{theorem} I want to ...
2
votes
1answer
283 views

Unwanted line breaks after equation tag when using fleqn and leqno

When you use fleqn and leqno and assign your own equations tags with \tag to equations in environments such as gather and align and you assign a tag with a certain length, then there's a line break ...
5
votes
1answer
16k views

New line in math mode and indent this line

How can I have a indented new line in math mode? The line after \newindentedline should be indented and start in a new line. \[ X \subset Y \Rightarrow \forall x \in X: x \in Y \newindentedline ...
10
votes
2answers
2k 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} ... \\ ...
40
votes
6answers
13k 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 ...
9
votes
1answer
2k views

Does amsmath provide any medium to auto-break equations?

I'm writing large equations in texlive with amsmath, and I want them to be automatically broken at the end of the line. Is there any way to do that with amsmath? What would you recommend me to do ...