Here in my code i want to slightly (approximately 2cm) move table on left side. Is it possible?
MWE
\documentclass[12pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{parskip}
\usepackage[shortlabels]{enumitem}
\usepackage{mathrsfs}
\usepackage{array}
\usepackage{cellspace}
\setlength\cellspacetoplimit{7pt}
\setlength\cellspacebottomlimit{7pt}
\pagestyle{empty}
\usepackage{amssymb}
\renewcommand{\baselinestretch}{1.0}
\usepackage[left=1.300cm, right=1.300cm, top=1.300cm, bottom=1.300cm]{geometry}
\begin{document}
\begin{enumerate}[\bfseries(A),left=0pt]
\item Calculate for given data.
\begin{tabular}{|c| % <---
*{10}{S{>{$}c<{$}}|}} % <---
\hline
$x$ & 43 & 44 & 36 & 38 & 47 & 40 & 41 & 54 & 37 & 46\\ \hline
$y$ & 74 & 76 & 60 & 68 & 79 & 70 & 71 & 94 & 65 & 78\\ \hline
\end{tabular}
\item
\item
\end{enumerate}
\end{document}
Best Answer
I suspect that you like to move table to the left text border. As mentioned @DavidCarlisle, table inside list start at
\leftmarigini
, so you need to move for this amount to the left by use of the\hspace*
:(red lines indicate text borders)
Addendum: What you mean with right side? That the right border of table is aligned with right border of text area? In this case consider @Werner comments below. With it the result of above MWE is: