I have a problem with the width of my table. I have defined the width of my text to be 500 pt. I have defined my table to have 2 rows and 4 columns. Widths of the columns are 105pt, 145pt, 105pt and 145pt respectively. This adds up to 500pt but for some reason table turns out much wider than my text?
Does anyone know what causes this (strange) behavior and how to fix it?
Bellow is my code and attachment of my output where you clearly see that the table
is much wider than the rest of the text.
Code: Select all
\documentclass[12pt]{article}
\usepackage{latexsym,amssymb}
\usepackage{array}
\usepackage[croatian]{babel}
\usepackage[margin=1in]{geometry}
\setlength{\textwidth}{500pt}
\setlength{\parindent}{0pt}
\setlength{\textheight}{8in}
\setlength{\voffset}{-1cm}
\setlength{\hoffset}{-0.5cm}
\begin{document}
\textbf{USER DATA:}\\\\
\begin{tabular}{|b{105pt}|b{145pt}|b{105pt}|b{145pt}|}
\hline
\textbf{User e-mail:} & myname@myname.hr & \textbf{Name:} & Name Surname\\
\hline
\textbf{Date:} & 15.9.2010 &\textbf{Question ID:} & 3836127\\
\hline
\end{tabular}\\
U zadanoj kvadratnoj jednadzbi je nepoznanica $x$, dok je parametar $p$
'sporedan'. Stoga moramo malo srediti jednadzbu tako da clanove poredamo
'po redu' (najprije one koji sadrze $x^2$, pa $x$ te one bez icega):
\end{document}