Math & Sciencetabular alignment

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
jaybz
Posts: 90
Joined: Sun Jul 11, 2010 6:02 pm

tabular alignment

Post by jaybz »

Why aren't the "2." and the "4." aligning in my document?

Code: Select all

\documentclass[10pt,letter,english]{article}
\usepackage[top=14mm, bottom=14mm, left=28mm, right=28mm]{geometry}
\usepackage{array}
\begin{document}
  \begin{minipage}{\linewidth}
    \setlength{\extrarowheight}{6mm}
    \begin{tabular}{@{\hspace{0mm}}l@{\hspace{4mm}}r@{\hspace{10mm}}r@{\hspace{6mm}}r}
      1. $\displaystyle \frac{1}{(1-x)}$, & $x=3,5,7$ & 2. $\displaystyle\frac{1}{1+x},$ & $x=3,5,7$\\
      3. $\displaystyle \sqrt{1+x}$, & $x=3,5,7$  & 4. $\displaystyle\sqrt[3]{1-x},$ & $x=3,5,7$\\
    \end{tabular}
  \end{minipage}  
\end{document}
Last edited by jaybz on Fri May 06, 2011 11:54 pm, edited 1 time in total.

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: 10359
Joined: Mon Mar 10, 2008 9:44 pm

Re: tabular alignment

Post by Stefan Kottwitz »

Hi jaybz,

just change the r column to a l column to get 2. and 4. (left) aligned.

Stefan
LaTeX.org admin
jaybz
Posts: 90
Joined: Sun Jul 11, 2010 6:02 pm

Re: tabular alignment

Post by jaybz »

Thank you.
Post Reply