Math & ScienceRelative Alignment of Equations to Diagram

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
ghostanime2001
Posts: 402
Joined: Fri May 20, 2011 9:41 am

Relative Alignment of Equations to Diagram

Post by ghostanime2001 »

How can I align a set of equations relative to a figure/diagram? In the following PDF the equations beginning with "s = r\theta .... 1.34 rad" have their left margin aligned with the left margin of the set of equations above. How can I set the left alignment spacing of this small set of equations relative to the diagram and not to the above set of equations?

My code:

Code: Select all

\documentclass[fleqn]{article}
\usepackage{fullpage}
\usepackage[left=1in,right=1in,top=1in,bottom=1in]{geometry}
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage[makeroom]{cancel}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{xfrac}
\usepackage{siunitx}
\sisetup{%
  output-decimal-marker={.},
  load-configurations=abbreviations,
  group-separator={,},
  per-mode=fraction,
  fraction-function=\sfrac}
\usepackage{fix-cm}
\pagestyle{empty}
\begin{document}
\begin{enumerate}
\item
\raisebox{1.85ex}{\parbox[t]{2in}{\null\includegraphics[width=\linewidth]{Diagram1}}}
\hspace{0.5cm}
\begin{minipage}[t]{2in}
$\begin{aligned}[t]
r&=\text{3840 \cancel{mi}}\left(\dfrac{\text{1.609 \cancel{km}}}{\text{1 \cancel{mi}}}\right)\left(\dfrac{\text{1000 m}}{\text{1 \cancel{km}}}\right)=6.18 \\
s&=\text{5150 \cancel{mi}}\left(\dfrac{\text{1.609 \cancel{km}}}{\text{1 \cancel{mi}}}\right)\left(\dfrac{\text{1000 m}}{\text{1 \cancel{km}}}\right)=8.29 \\
\theta&=\text{?}
\end{aligned}$
$\begin{aligned}[t]
s&=r \theta \\
\cfrac{s}{r}&=\theta \\
\cfrac{8.29}{6.18}&=\theta \\
\text{1.34 rad}&=\theta 
\end{aligned}$
\end{minipage}
\end{enumerate}
\end{document}
Attachments
LaTeX3.pdf
(227.24 KiB) Downloaded 139 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Post Reply