I'm writting a pandoc template inspired on iv054-homework-template. I want something like this:
The code I use is:
\documentclass[11pt]{article}
\usepackage[T1]{fontenc}
\usepackage{titlesec}
\titleformat
{\section} % command
[display] % shape
{\normalfont\bfseries} % format
{}{\vspace{1ex}}
{Question \thesection : \ } % before-code
[\vspace{-0.5ex} \rule{\textwidth}{0.3pt}] % after-code
\begin{document}
\thispagestyle{plain}
\begin{center}
{\Large $title$ } \\
$author$ \\
\today
\end{center}
$body$
\end{document}
but I get this error:
Error producing PDF.
! Undefined control sequence.
l.22 \hypertarget
what happend?
hyperref
hasn't been loaded.