Featured Book

LaTeX Beginners Guide

Who is online

In total there are 10 users online :: 1 registered, 0 hidden and 9 guests (based on users active over the past 5 minutes)
Most users ever online was 1327 on Tue Nov 05, 2013 7:11 pm

Users browsing this forum: Yahoo [Bot] and 9 guests

Partner Sites

TeXwelt - Fragen und Antworten goLaTeX
TeXblog
TeXnicCenter
TeXample

How to align the math formula to left

Add tags LaTeX specific issues not fitting into one of the other forums of this category.

How to align the math formula to left

Postby akira32 on Mon Jun 23rd, 2008

How to align the math formula to left?
I want to let and Ttotal and Teach tile has the same x-coordinate.

There are my code about two math formula as below:

Code: Select all  •  Open in writeLaTeX
\subsection{Cost Time}

The comparison of cost time of QVSM and Smart Shadow Maps Refinement is show in (Figure \ref{fig:7-costime}). If the red region is the effective shadow region and do not need split into 2x2 subtiles further.

QVSM:\\

$T_{total} = T_{eye} + T_{sm} + T_{SRT} + 4 \times T_{each tile}+ 4 \times 4 \times T_{each tile}$\\
$T_{each tile} = T_{sm} + T_{SRT}$
\\
Attachments
alignment.jpg
Alignment Problem
alignment.jpg (26.53 KiB) Viewed 70648 times
akira32
 
Posts: 45
Joined: Tue Nov 13th, 2007

Re: How to align the math formula to left

Postby Stefan_K on Tue Jun 24th, 2008

Hi,

you could use amsmath and align, if you want to align to the relation symbol:
Code: Select all  •  Open in writeLaTeX
QVSM:
\begin{align*}
T_{total} &= T_{eye} + T_{sm} + T_{SRT} + 4 \times T_{each tile}+ 4 \times 4 \times T_{each tile }\\
T_{each tile} &= T_{sm} + T_{SRT}
\end{align*
}

If you want it left aligned instead, tell us.

Stefan
LaTeX Community Administrator
User avatar
Stefan_K
Site Admin
 
Posts: 6322
Joined: Mon Mar 10th, 2008
Location: Hamburg, Germany

Re: How to align the math formula to left

Postby akira32 on Tue Jun 24th, 2008

Thank you,Stefan_K.
I want to align the formulas to left.
akira32
 
Posts: 45
Joined: Tue Nov 13th, 2007

Re: How to align the math formula to left

Postby Stefan_K on Tue Jun 24th, 2008

Like this?

Code: Select all  •  Open in writeLaTeX
\usepackage[fleqn]{amsmath}
...
QVSM:
\begin{equation*}
T_{total} = T_{eye} + T_{sm} + T_{SRT} + 4 \times T_{each tile}+ 4 \times 4 \times T_{each tile }
\end{equation*}
\begin{equation*}
T_{each tile} = T_{sm} + T_{SRT}
\end{equation*
}

Stefan
LaTeX Community Administrator
User avatar
Stefan_K
Site Admin
 
Posts: 6322
Joined: Mon Mar 10th, 2008
Location: Hamburg, Germany

Re: How to align the math formula to left

Postby akira32 on Tue Jun 24th, 2008

This is my preamble about the packages.
Code: Select all  •  Open in writeLaTeX
\documentclass[12pt]{report}
\usepackage{thesis}
\usepackage{amsmath,amssymb}
\usepackage{float,multicol,epsfig}

\usepackage[fleqn]{amsmath
}  % <====


When I add the last line, it appears an error message:
Code: Select all  •  Open in writeLaTeX
! LaTeX Error: Option clash for package amsmath.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
akira32
 
Posts: 45
Joined: Tue Nov 13th, 2007

Re: How to align the math formula to left

Postby localghost on Tue Jun 24th, 2008

You are loading the amsmath package twice. Once with and once without the fleqn option.


Best regards
Thorsten¹
LaTeX Community Moderator
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes


¹ System: openSUSE 13.1 (Linux 3.11.10), TeX Live 2013 (vanilla), TeXworks 0.5 (r1351)
² Posting stopped indefinitely due to offenses
User avatar
localghost
Site Moderator
 
Posts: 9219
Joined: Fri Feb 2nd, 2007
Location: Braunschweig, Germany

Re: How to align the math formula to left

Postby gatoatigrado on Sun Feb 14th, 2010

I have an align* that's behaving very badly -- there's a huge space after the second ampersand -- any help would be much appreciated.

Code: Select all  •  Open in writeLaTeX
\begin{align*}
    \frac{\partial L}{\partial w(\hat c, \hat f)}(X, w) &= \sum_{c, x \in X}
        \frac{\partial}{\partial w(\hat c, \hat f)} &\left(
            \sum_{f \in \mathcal{F}} w(c, f) x(f) - \log \left( \sum_{c'} e^{\textstyle \sum_f w(c', f) x(f)} \right) \right)
\end{align*
}


This is what it renders like (using fullpage[cm])
2010-02-14_0.png
render error
2010-02-14_0.png (14.29 KiB) Viewed 63859 times
gatoatigrado
 
Posts: 6
Joined: Mon Dec 1st, 2008

Re: How to align the math formula to left

Postby localghost on Sun Feb 14th, 2010

Just delete the second ampersand. It's useless in this case.


Best regards
Thorsten
LaTeX Community Moderator
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes


¹ System: openSUSE 13.1 (Linux 3.11.10), TeX Live 2013 (vanilla), TeXworks 0.5 (r1351)
² Posting stopped indefinitely due to offenses
User avatar
localghost
Site Moderator
 
Posts: 9219
Joined: Fri Feb 2nd, 2007
Location: Braunschweig, Germany

Re: How to align the math formula to left

Postby cohena100 on Fri Nov 11th, 2011

By using flalign and one & at the start of the line and another & at its end.
Code: Select all  •  Open in writeLaTeX
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\section*{}
Some text.
\begin{flalign*}
&T_{total} = T_{eye} + T_{sm} + T_{SRT} + 4 \times T_{each tile}+ 4 \times 4 \times T_{each tile}&\\
&T_{each tile} = T_{sm} + T_{SRT}&
\end{flalign*}
Some other text.
\end{document
}
cohena100
 
Posts: 1
Joined: Fri Nov 11th, 2011
Location: Israel


Return to General

Who is online

Users browsing this forum: Yahoo [Bot] and 9 guests