I'm trying to setup a custom document for my maths assignments. I've modified one of the internet but it's not giving me the output I'm aiming for.
Code: Select all
\newenvironment{problem}[2][Problem]{\begin{trivlist}
\item[\hskip \labelsep {\bfseries #1} \hskip \labelsep {\bfseries #2.}]}{\end{trivlist}}
\newenvironment{question}[2][Question]
{
\begin{trivlist}
\item[\hskip \labelsep {\bfseries #1}\hskip \labelsep {\bfseries #2.}]
\\
}
{\end{trivlist}}
Question 1
Problem (a)
When given this:
Code: Select all
\begin{question}{1}
\begin{problem}{(a)}
Code: Select all
\begin{question}{1}
\\
\begin{problem}{(a)}