Text FormattingHow to align everything

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
abu aasiyah
Posts: 26
Joined: Wed Sep 30, 2009 7:04 pm

How to align everything

Post by abu aasiyah »

Hey,

I have the following code. My intent is to have everything in it aligned.

Code: Select all

\documentclass[12pt,a4paper]{article} 
\usepackage[latin1]{inputenc} 
\usepackage[danish]{babel} % danske overskrifter
\usepackage[T1]{fontenc} 
\usepackage{lmodern} 
\usepackage{graphicx} 
\usepackage{mathtools}
\usepackage{amsmath}

\begin{document}

\begin{align*}
&\mycirc{1}&:
&\left.
\begin{array}{l} 
\text{flytning i vandret retning} \\ \text{ingen lodret flytning} \\ \text{ingen vinkeldrejning} 
\end{array} &\right\rbrace & \Rightarrow \text{1 frihedsgrad}&
\\
&\mycirc{2}&:
&\left.
\begin{array}{l} 
\text{ingen vandret retning} \\ \text{ingen lodret flytning} \\ \text{ingen vinkeldrejning} 
\end{array} &\right\rbrace & \Rightarrow \text{0 frihedsgrad} &
\\
&\mycirc{3}&:
&\left.
\begin{array}{l} 
\text{flytning i vandret retning} \\ \text{ingen lodret flytning} \\ \text{vinkeldrejning} 
\end{array} & \right\rbrace & \Rightarrow \text{2 frihedsgrad}& 
\end{align*}

\end{document}
Thanks in advance.

Recommended reading 2024:

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

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

User avatar
Stefan Kottwitz
Site Admin
Posts: 10320
Joined: Mon Mar 10, 2008 9:44 pm

How to align everything

Post by Stefan Kottwitz »

Hi Abu,

please use the code feature of the forum to post code.
Your example is not compilable, the definition of \mycirc is missing.
abu aasiyah wrote:My intent is to have everything in it aligned
How? Vertically, horizontally, at which positions or symbols, the array parts at their top, bottom or centered?
There is already some alignment. What else is intended?

Stefan
LaTeX.org admin
Post Reply