I am trying to create a table that spans the width of the page, with two columns, aligned right-ragged and left-ragged respectively. However, this is proving weirdly difficult, as I cannot seem to get my tables to behave the way I want them too width-wise.
An example of what I've tried:
\begin{tabular*}{\pagewidth}{l r}
\gray \textbf{Endpoint} & \textbf{0}\\
\end{tabular*}
It seems like a simple problem but the inconsistency of table behavior in LaTeX is really getting to me. Help would be appreciated; perhaps I need to use a minipage
?
Edit:
\documentclass[a4paper, oneside, final, 10pt]{scrartcl} % Paper options using the scrartcl class
\usepackage{scrpage2} % Provides headers and footers configuration
\usepackage{titlesec} % Allows creating custom \section's
\usepackage{marvosym} % Allows the use of symbols
\usepackage{tabularx,colortbl} % Advanced table configurations
\usepackage{fontspec} % Allows font customization
\defaultfontfeatures{Mapping=tex-text}
\titleformat{\section}{\large\scshape\raggedright}{}{0em}{}[\titlerule]
\pagestyle{scrheadings}
\addtolength{\voffset}{-1in}
\addtolength{\textheight}{5cm}
\newcommand{\gray}{\rowcolor[gray]{.90}}
\begin{document}
\begin{center} % Center everything in the document
\begin{tabular*}{\pagewidth}{l r}
\gray \textbf{Apple} & \textbf{Banana}\\
\gray Apple & \textbf{Banana}\\
\gray Apple & \textbf{Banana}\\
\end{tabular*}
\begin{itemize} \itemsep1pt \parskip0pt \parsep0pt
\item Apple
\item Apple
\item Mango
\end{itemize}
\end{center}
\end{document}
\pagewidth
seems weird and is no usually defined length, in addition there are margins to be considered as well! -- What is\gray
supposed to do? – user31729 Oct 18 '15 at 3:22