Add tags
LaTeX specific issues not fitting into one of the other forums of this category.
by 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 xcoordinate. There are my code about two math formula as below:  Code: Select all • Open in online LaTeX editor
\subsection{Cost Time}
The comparison of cost time of QVSM and Smart Shadow Maps Refinement is show in (Figure \ref{fig:7costime}). 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 Problem
 alignment.jpg (26.53 KiB) Viewed 74864 times

akira32

 Posts: 45
 Joined: Tue Nov 13th, 2007
by 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 online LaTeX editor
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

Stefan_K
 Site Admin

 Posts: 7433
 Joined: Mon Mar 10th, 2008
 Location: Hamburg, Germany

by 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
by Stefan_K on Tue Jun 24th, 2008
Like this?  Code: Select all • Open in online LaTeX editor
\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

Stefan_K
 Site Admin

 Posts: 7433
 Joined: Mon Mar 10th, 2008
 Location: Hamburg, Germany

by akira32 on Tue Jun 24th, 2008
This is my preamble about the packages.  Code: Select all • Open in online LaTeX editor
\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 online LaTeX editor
! 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
by localghost on Tue Jun 24th, 2008
You are loading the amsmath package twice. Once with and once without the fleqn option. Best regards Thorsten¹

localghost
 Site Moderator

 Posts: 9218
 Joined: Fri Feb 2nd, 2007
 Location: Braunschweig, Germany
by 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 online LaTeX editor
\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])
 render error
 20100214_0.png (14.29 KiB) Viewed 68075 times

gatoatigrado

 Posts: 6
 Joined: Mon Dec 1st, 2008
by localghost on Sun Feb 14th, 2010
Just delete the second ampersand. It's useless in this case.
Best regards Thorsten

localghost
 Site Moderator

 Posts: 9218
 Joined: Fri Feb 2nd, 2007
 Location: Braunschweig, Germany
by 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 online LaTeX editor
\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
Users browsing this forum: Google [Bot], Yahoo [Bot] and 19 guests
