Math & Science ⇒ Flush-right Math Equation
-
- Posts: 402
- Joined: Fri May 20, 2011 9:41 am
Flush-right Math Equation
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- Stefan Kottwitz
- Site Admin
- Posts: 10359
- Joined: Mon Mar 10, 2008 9:44 pm
Re: Flush-right Math Equation
Stefan
-
- Posts: 402
- Joined: Fri May 20, 2011 9:41 am
Flush-right Math Equation
Use it like align, begin a line with two ampersand symbols &.
- Stefan Kottwitz
- Site Admin
- Posts: 10359
- Joined: Mon Mar 10, 2008 9:44 pm
Flush-right Math Equation
Use it like align: it has the same syntax like the align environment.ghostanime2001 wrote:What do you mean by ...Use it like align, begin a line with two ampersand symbols &.
begin a line with two ampersand symbols &&: such a line line in the flalign environment can look like
Code: Select all
&& x+y=z \\
-
- Posts: 402
- Joined: Fri May 20, 2011 9:41 am
Re: Flush-right Math Equation
- Stefan Kottwitz
- Site Admin
- Posts: 10359
- Joined: Mon Mar 10, 2008 9:44 pm
Re: Flush-right Math Equation
Stefan
-
- Posts: 402
- Joined: Fri May 20, 2011 9:41 am
Flush-right Math Equation
here is the code I'm using:
Code: Select all
\documentclass[fleqn]{article}
\usepackage{fullpage}
\usepackage[margin=1in]{geometry}
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage{xfrac}
\usepackage[makeroom]{cancel}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{siunitx}
\pagestyle{empty}
\sisetup{%
output-decimal-marker={.},
load-configurations=abbreviations,
group-separator={,},
per-mode=fraction,
fraction-function=\sfrac}
\usepackage{fix-cm}
\setlength{\mathindent}{0pt}
\begin{document}
\begin{enumerate}
\item
\raisebox{1.85ex}{\parbox[t]{2in}{\null\includegraphics[width=\linewidth]{Diagram9}}}
\begin{minipage}[t]{3in}
$\begin{aligned}[t]
m_{1}&=\text{0.52 kg} \\
m_{2}&=\text{2.14 kg} \\
F_{ext}&=\text{9.26 N}
\end{aligned}$
\begin{align*}
F_{ext}-T-m_{1}g\cos\theta=m_{1}a
\end{align*}
\raisebox{1.85ex}{\parbox[t]{1.3in}{\null\includegraphics[width=\linewidth]{Diagram10}}}
$\begin{aligned}[t]
T&=m_{2}a
\end{aligned}$
\begin{align*}
T&=m_{2}a \\
T&=(2.14)(2.46) \\
T&=\text{5.28 N}
\end{align*}
\end{minipage}
\begin{align*}
F_{ext}-m_{2}a-m_{1}g\cos\theta&=m_{1}a \\
F_{ext}-m_{1}g\cos\theta&=m_{1}a+m_{2}a \\
F_{ext}-m_{1}g\cos\theta&=a(m_{1}+m_{2}) \\
\dfrac{F_{ext}-m_{1}g\cos\theta}{m_{1}+m_{2}}&=a \\
\dfrac{9.26-(0.52)(9.8)\cos\SI{58}{\degree}}{0.52+2.14}&=a \\
\text{2.46 m/s}^{2}&=a
\end{align*}
\end{enumerate}
\end{document}
-
- Posts: 402
- Joined: Fri May 20, 2011 9:41 am