Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

So this is a continuation of my previous question but I didn't know if I should edit that post and ask a new question or just post a new question entirely. Anyway, I have this bit of latex:

\begin{align*}
    C_{in-nand3} & = \frac{5.493 * 1.21739}{3.3098} = 2.02 \rightarrow & \frac{2.02}{2.75} = .735  \\
    C_{in-nand2} & = \frac{(2.02 + 12.97) * 1.21739}{3.3098} = 5.514 \rightarrow & \frac{5.514}{2.75} = 2.005  \\
    C_{in-nand1} & = \frac{5.514 * 1.21739}{3.3098} = 2.0279 \rightarrow & \frac{2.0279}{2.75} = .7374 
\end{align*}

And that gives me:
enter image description here

But what I really want is the answers to the first equation to be centered down a middle column. So for example, I want =2.02-> to be shifted to the right and aligned with all the following values such as =5.514-> down a column. I tried adding a & before the =2.02 but that gave me:
enter image description here

Which is not what I want, that is shifted waaay too much.

share|improve this question
    
Have you tried using \begin{equation}...\end{equation}? –  cryptic0 Mar 28 '13 at 16:50
    
@cryptic0 do I have to wrap \begin{equation}...\end{equation} around every single line? Because I just posted 3 lines of equations, it's actually much more than that –  Richard Mar 28 '13 at 17:08

1 Answer 1

up vote 3 down vote accepted

perhaps this is closer to what you want?

output of following code example

\documentclass{article}
\usepackage{amsmath}

\begin{document}

\begin{alignat*}{5}
    C_{in-nand3} & = \frac{5.493 * 1.21739}{3.3098} && = 2.02 \rightarrow{} & \frac{2.02}{2.75} & = .735  \\
    C_{in-nand2} & = \frac{(2.02 + 12.97) * 1.21739}{3.3098} && = 5.514 \rightarrow{} & \frac{5.514}{2.75} & = 2.005  \\
    C_{in-nand1} & = \frac{5.514 * 1.21739}{3.3098} && = 2.0279 \rightarrow{} & \frac{2.0279}{2.75} & = .7374 
\end{alignat*}

\end{document}

edit: the question Aligning equations with text with alignat addresses a similar problem.

share|improve this answer
    
Okay this worked, thanks a lot ! –  Richard Mar 28 '13 at 17:15
    
Maybe you could mention a link to the question Aligning equations with text with alignat and I'll delete my almost identical answer ? –  Vincent Nivoliers Mar 28 '13 at 17:26
    
@VincentNivoliers -- done. thanks for the suggestion. –  barbara beeton Mar 28 '13 at 19:38

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.