LaTeX forum ⇒ Text FormattingHow to align everything

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

How to align everything

Postby abu aasiyah » Sun Oct 25, 2009 12:25 am

Hey,

I have the following code. My intent is to have everything in it aligned.
  1. \documentclass[12pt,a4paper]{article}
  2. \usepackage[latin1]{inputenc}
  3. \usepackage[danish]{babel} % danske overskrifter
  4. \usepackage[T1]{fontenc}
  5. \usepackage{lmodern}
  6. \usepackage{graphicx}
  7. \usepackage{mathtools}
  8. \usepackage{amsmath}
  9.  
  10. \begin{document}
  11.  
  12. \begin{align*}
  13. &\mycirc{1}&:
  14. &\left.
  15. \begin{array}{l}
  16. \text{flytning i vandret retning} \\ \text{ingen lodret flytning} \\ \text{ingen vinkeldrejning}
  17. \end{array} &\right\rbrace & \Rightarrow \text{1 frihedsgrad}&
  18. \\
  19. &\mycirc{2}&:
  20. &\left.
  21. \begin{array}{l}
  22. \text{ingen vandret retning} \\ \text{ingen lodret flytning} \\ \text{ingen vinkeldrejning}
  23. \end{array} &\right\rbrace & \Rightarrow \text{0 frihedsgrad} &
  24. \\
  25. &\mycirc{3}&:
  26. &\left.
  27. \begin{array}{l}
  28. \text{flytning i vandret retning} \\ \text{ingen lodret flytning} \\ \text{vinkeldrejning}
  29. \end{array} & \right\rbrace & \Rightarrow \text{2 frihedsgrad}&
  30. \end{align*}
  31.  
  32. \end{document}

Thanks in advance.

Tags:

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

Postby Stefan Kottwitz » Sun Oct 25, 2009 12:34 am

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
Site admin


Return to “Text Formatting”

Who is online

Users browsing this forum: Google [Bot] and 1 guest