I managed to get sheading tab, but still there are some problems.

  1. A black box with question number in white.
  2. Insert indent of 1 cm for text throughout the document.
  3. Can we define globally for spacing between items or there is the only way to put '\\'.

Here is the code for your kind reference,

\usepackage[top=0.75in, bottom=0.75in, left=0.55in, right=0.85in]{geometry}
\newcommand{\isep}{-2 pt}
 %Custom commands
 \newcommand{\resitem}[1]{\item #1 \vspace{-2pt}}
 \newcommand{\resheading}[1]{{\small \colorbox{mygrey}{\begin{minipage} 
 {1\linewidth}{\textbf{#1 \vphantom{p\^{E}}}}\end{minipage}}}}
 \begin{tabular*}{6.62in}{l @{\extracolsep{\fill}} r}
 \textsc{{\textbf{#1}}} & \textsc{\textit{[#2]}} \\
  \chapter{Exponents 1}
  %%%% Start Question 1
   \resheading{\hspace{0.5cm}\textbf{1.} }\\[\lsep]\\
 If $x>0$, which of the following is equivalent to the given expression?\\ 
    \item[A)]   3x\\
 \item[B)]  $3x^2$\\
 \item[C)]  18x\\
 \item[D)]  $18x^4$\\
  %%%% End Question 1

There are 3 problems:

  • 2
    Please do not only add an image, describe in words what the problem is. And please add a short compilable code to the question, do not force people to go to a web side they need to register ... – Mensch Mar 6 at 14:24
  • 1
    Crosspost latex.org/forum/… – Johannes_B Mar 8 at 9:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.