I am making examination questions, and would like to align the question numbers across the question paper.
This is my effort so far:
\documentclass{article}
\usepackage[a4paper, portrait, margin=0.5in]{geometry}
\usepackage{fontspec}
\usepackage{anyfontsize}
\renewcommand{\familydefault}{\sfdefault}
\newcommand{\RNum}[1]{\uppercase\expandafter{\romannumeral #1\relax}}
\setsansfont{Times New Roman} \fontsize{11.5pt}{13.8pt}\selectfont
\begin{document}
\thispagestyle{empty}
\noindent \textbf{Formatting for Questions} \\
\\
\textbf{1} \hspace{0.5495cm} \textbf{(a)} \hspace{0.2cm} Question here \\
\hspace*{0.8525cm} \textbf{(a)} \hspace{0.1525cm} Question here \\
\hspace*{1.6775cm} Question here \\
\hspace*{0.8525cm} \textbf{(a)} \hspace{0.14cm} \textbf{(i)} \hspace{0.1485cm} Question here \\
\hspace*{0.8525cm} \textbf{(b)} \hspace{0.1175cm} \textbf{(i)} \hspace{0.1485cm} Question here \\
\hspace*{0.8525cm} \textbf{(d)} \hspace{0.1175cm} \textbf{(i)} \hspace{0.1485cm} Question here \\
\hspace*{1.6645cm} \textbf{(i)} \hspace{0.15cm} Question here \\
\hspace*{1.55175cm} \textbf{(ii)} \hspace{0.15cm} Question here \\
\hspace*{1.43925cm} \textbf{(iii)} \hspace{0.1515cm} Question here \\
\hspace*{2.4cm} Question here \\
\hspace*{0.8525cm} \textbf{(b)} \hspace{0.1285cm} Question here \\
\hspace*{0.8525cm} \textbf{(c)} \hspace{0.17375cm} Question here \\
\hspace*{0.8525cm} \textbf{(d)} \hspace{0.12825cm} Question here \\
\hspace*{0.8525cm} \textbf{(e)} \hspace{0.1735cm} Question here \\
\hspace*{0.865cm} Question here
\end{document}
As seen above, I have been using \hspace
to align the question numbers, but it is rather inefficient and slightly inaccurate given the endless combinations of sub-questions.
(a)
,(b)
,(d)
, etc. to start at the red line (not end together)- Second column
Question here
,(i)
to start at the blue line (ignoring(ii)
and(iii)
) (i)
,(ii)
,(iii)
, etc. to end at the green line (not start together)- Fourth column
Question here
to start at the yellow line
Any help would be appreciated. Thanks in advance!