0

Due to COVID-19, we have to answer examinations online. We are given an examination paper and are answering it accordingly on our own.

The question paper comes in the format Question 3.A, Question 3.B etc.

I was wondering if there was a way to change the Latex section referencing format to appear like this?

Thank you.

1 Answer 1

2

try this!

\documentclass{article}

\begin{document}

\renewcommand{\thesubsection}{\thesection.\Alph{subsection}} % 

\section{Title}

\subsection{Subtitle}
\renewcommand{\thesubsection}{\thesection.\alph{subsection}} % 

\subsection{Subtitle}
\renewcommand{\thesubsection}{\thesection.\Roman{subsection}} % 
\subsection{Subtitle}
\renewcommand{\thesubsection}{\thesection.\roman{subsection}} % 
\subsection{Subtitle}
\renewcommand{\thesubsection}{\thesection.\arabic{subsection}} % 
\subsection{Subtitle}

\end{document}
2
  • Thank you! Just what was looking for! And if I wanted to remove the capitlisation of the letter? May 11, 2020 at 22:13
  • see all options now!! =) May 11, 2020 at 22:31

You must log in to answer this question.

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