2

I want to produce a list that is indented as the following:

enter image description here

My latex working is as follows:

\documentclass[12pt]{article}

\usepackage{times,color,pdfpages,epsf, graphicx,setspace,parskip,mathrsfs,enumerate,fancyhdr,lastpage,amsmath,amssymb,amscd,amsthm,amsfonts,array,paralist,subcaption,framed,epsf,helvet,scrextend,ragged2e}
\usepackage[a4paper, margin=1in, headsep=.2in]{geometry}
\usepackage[T1]{fontenc}
\usepackage[none]{hyphenat}
\usepackage[labelfont=bf]{caption}
\setlength{\labelsep}{.215in}
\usepackage[shortlabels]{enumitem}

\newcommand{\di}{\displaystyle}
\newcommand{\rvline}{\hspace*{-\arraycolsep}\vline\hspace*{-\arraycolsep}}
\pagestyle{fancy}
\fancyhf{}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\arraystretch}{1.5}
\setlength{\footskip}{32pt}
\cfoot{\fontsize{12pt}{12pt}
    \selectfont{\thepage
        %       \ of \pageref{LastPage}
    }
}

\setlength\parindent{0pt}
\linespread{1.35}


\def\endpaper{\centering\textbf{END OF QUESTION PAPER}}
%\def\endpaper{\centering\textbf{-END OF MARKING SCHEME-}}

\begin{document}
    
    %% choose cover
    \include{Titlepage_paper}  %Use cover for paper
    %\include{Titlepage_markingscheme} %Use cover for marking scheme
    
    \rhead{\textbf{2122I/BUM1433}
        %   T\Sessionshort/\Coursecode
        %   /\Version
    }
    \lhead{\textbf{CONFIDENTIAL}}   
    \onehalfspacing
    \renewcommand{\arraystretch}{1.5}
    
    \clearpage
    \setcounter{page}{2}
    
    \begin{enumerate}[labelsep=1cm, label=(\alph*), itemindent=0.65cm, leftmargin=0.8cm]
        \item Basket Robbins will launch two new flavors in 2023 for Eid-Fitr that are chocolate mint and chocolate caramel. A few months prior to the lunch, they distributed the sample of the flavors to $360$ respondents to collect their feedback. It was found that $25\%$ of them like both flavors, $15\%$ of them do not like both flavors and half of them like the chocolate mint flavor only.
    \end{enumerate}

\endpaper

\end{document}

which produces the following:

enter image description here

How can I can fix this?

2
  • 1
    Off-topic: You should replace \rhead{\textbf{2122I/BUM1433} with \rhead{\textbf{2122I/BUM1433}%, i.e., terminate the line with a % symbol.
    – Mico
    Dec 10, 2022 at 14:38
  • Also off-topic: The name of the American ice cream company is "Baskin-Robbins", not "Basket Robbins". :-)
    – Mico
    Dec 10, 2022 at 15:27

2 Answers 2

3

I suggest you replace

itemindent=0.65cm,leftmargin=0.8cm

with

left=0pt,align=left

enter image description here

The framelines around the text block and header line are drawn because I've loaded the geometry package with the option showframe.


I've annotated your code here and there:

\documentclass[12pt]{article}

\usepackage{%
      %times,  % see below
      %helvet, % see below
      %color,
      xcolor,
      pdfpages,
      %epsf, % not needed
      graphicx,setspace,parskip,mathrsfs,
      %enumerate, % don't load both 'enumerate' anf 'enumitem'
      fancyhdr,lastpage,
      amsmath,amssymb,
      %amscd,    % redundant
      %amsfonts, % redundant
      amsthm,
      newtxtext,newtxmath, % Times Roman text and math font
      array,paralist,subcaption,framed,
      %epsf, % not needed/don't load packages twice
      scrextend,ragged2e}
\usepackage[scaled=0.86]{helvet} % match x-height of Times Roman

\usepackage[a4paper, margin=1in, headsep=.2in, showframe
           ]{geometry}
\usepackage[T1]{fontenc}
\usepackage[none]{hyphenat}
\usepackage[labelfont=bf]{caption}
%\setlength{\labelsep}{.215in}
\usepackage[shortlabels]{enumitem}

\newcommand{\di}{\displaystyle}
\newcommand{\rvline}{\hspace*{-\arraycolsep}\vline\hspace*{-\arraycolsep}}

\pagestyle{fancy}
\fancyhf{}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\arraystretch}{1.5}
\setlength{\footskip}{32pt}
\cfoot{\fontsize{12pt}{14.4pt}\selectfont%
        {\thepage%
        %       \ of \pageref{LastPage}
        }
      }

%\setlength\parindent{0pt} % redundant
%\linespread{1.35}

\def\endpaper{\par\centering\textbf{END OF QUESTION PAPER}\par}
%\def\endpaper{\centering\textbf{-END OF MARKING SCHEME-}}

\begin{document}
    
%% choose cover
%%\include{Titlepage_paper}  %Use cover for paper
%\include{Titlepage_markingscheme} %Use cover for marking scheme
    
    \rhead{\textbf{2122I/BUM1433}}
    \lhead{\textbf{CONFIDENTIAL}}   
    \onehalfspacing
    %% \renewcommand{\arraystretch}{1.5} % see above
    
    \clearpage
    \setcounter{page}{2}
    
    \begin{enumerate}[label=(\alph*), 
                      %itemindent=0.65cm,leftmargin=0.8cm
                      left=0pt,align=left, % <-- new
                      labelsep=1cm]

    \item Basket Robbins will launch two new flavors in 2023 for Eid-Fitr that are chocolate mint and chocolate caramel. A few months prior to the lunch, they distributed the sample of the flavors to $360$ respondents to collect their feedback. It was found that $25\%$ of them like both flavors, $15\%$ of them do not like both flavors and half of them like the chocolate mint flavor only.
    \end{enumerate}

\endpaper

\end{document}
4

Something like this?

enter image description here

You can use global settings with \setlist[enumerate]{...} in a preamble to setup the list, and then use additional setting per level with \setlist[enumerate,n]{...}. Also, page 3 of documentation demonstrates which length name correspond to which part of a list.

\documentclass[12pt]{article}
\usepackage{times,color,pdfpages,epsf, graphicx,setspace,parskip,mathrsfs,enumerate,fancyhdr,lastpage,amsmath,amssymb,amscd,amsthm,amsfonts,array,paralist,subcaption,framed,epsf,helvet,scrextend,ragged2e}
\usepackage[a4paper, margin=1in, headsep=.2in]{geometry}
\usepackage[T1]{fontenc}
\usepackage[none]{hyphenat}
\usepackage[labelfont=bf]{caption}
\setlength{\labelsep}{.215in}
\usepackage[shortlabels]{enumitem}

\usepackage{kantlipsum}   % <--- New package for dummy text


\newcommand{\di}{\displaystyle}
\newcommand{\rvline}{\hspace*{-\arraycolsep}\vline\hspace*{-\arraycolsep}}
\pagestyle{fancy}
\fancyhf{}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\arraystretch}{1.5}
\setlength{\footskip}{32pt}
\cfoot{\fontsize{12pt}{12pt}
    \selectfont{\thepage
        %       \ of \pageref{LastPage}
    }
}
\setlength\parindent{0pt}
\linespread{1.35}

\setlist[enumerate]{                    % <--- New content
    labelwidth=1cm,
    labelsep=0cm,
    align=left,
    itemindent=0cm,
    leftmargin=1cm
}
\setlist[enumerate,1]{label=(\alph*)}    % New content
\setlist[enumerate,2]{label=\roman*)}   % New content

\def\endpaper{\centering\textbf{END OF QUESTION PAPER}}
%\def\endpaper{\centering\textbf{-END OF MARKING SCHEME-}}


\begin{document}
    
    %% choose cover
    \include{Titlepage_paper}  %Use cover for paper
    %\include{Titlepage_markingscheme} %Use cover for marking scheme
    
    \rhead{\textbf{2122I/BUM1433}
        %   T\Sessionshort/\Coursecode
        %   /\Version
    }
    \lhead{\textbf{CONFIDENTIAL}}   
    \onehalfspacing
    \renewcommand{\arraystretch}{1.5}
    
    \clearpage
    \setcounter{page}{2}
    
    \begin{enumerate}
        \item Basket Robbins will launch two new flavors in 2023 for Eid-Fitr that are chocolate mint and chocolate caramel. A few months prior to the lunch, they distributed the sample of the flavors to $360$ respondents to collect their feedback. It was found that $25\%$ of them like both flavors, $15\%$ of them do not like both flavors and half of them like the chocolate mint flavor only.
        \begin{enumerate}
            \item \kant[1][1]
            \item \kant[1][2]
        \end{enumerate}
        \item \kant[2][1]
    \end{enumerate}

\endpaper

\end{document}

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .