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

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

User avatar
Stefan Kottwitz
Site Admin
Posts: 10360
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