I can't seem to get section references working in this scrartcl class article (from a template called Eisvogel). I usually use \label{sec:intro} and \ref{sec:intro} and it works fine, now I just see a blank space in the pdf. Am I missing a package?

% Use setspace anyway because we change the default line spacing.
% The spacing is changed early to affect the titlepage and the TOC.
  \usepackage{textcomp} % provide euro and other symbols
\else % if luatex or xetex
  \usepackage{unicode-math} % this also loads fontspec
  % xetex/luatex font selection
% Use upquote if available, for straight quotes in verbatim environments
\IfFileExists{microtype.sty}{% use microtype if available
  \UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
\@ifundefined{KOMAClassName}{% if non-KOMA class
  }{% else
    \setlength{\parskip}{6pt plus 2pt minus 1pt}}
}{% if KOMA class
% add backlinks to footnote references, cf. https://tex.stackexchange.com/questions/302266/make-footnote-clickable-both-ways
\setlength{\emergencystretch}{3em} % prevent overfull lines
\setcounter{secnumdepth}{-\maxdimen} % remove section numbering
% get rid of language-specific shorthands (see #6817):
  \usepackage{selnolig}  % disable illegal ligatures
\IfFileExists{xurl.sty}{\usepackage{xurl}}{} % add URL line breaks if available
  pdftitle={Vinaque sanguine metuenti cuiquam Alcyone fixus},
  pdfauthor={Author Name},
  pdfkeywords={Markdown, Example},
  pdfcreator={LaTeX via pandoc with the Eisvogel template}}
\title{Vinaque sanguine metuenti cuiquam Alcyone fixus}
\providecommand{\subtitle}[1]{% add subtitle to \maketitle
  \apptocmd{\@title}{\par {\large #1 \par}}{}{}
\subtitle{Aesculeae domus vincemur et Veneris adsuetus lapsum}
\author{Author Name}

%% added

% for the background color of the title page

% break urls

% When using babel or polyglossia with biblatex, loading csquotes is recommended
% to ensure that quoted texts are typeset according to the rules of your main language.

% captions
\usepackage[font={stretch=1.2}, textfont={color=caption-color}, position=top, skip=4mm, labelfont=bf, singlelinecheck=false, justification=raggedright]{caption}

% blockquote

% Source Sans Pro as the default font family
% Source Code Pro for monospace text
% 'default' option sets the default
% font family to Source Sans Pro, not \sfdefault.
\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
  \else % if not pdftex

  % XeLaTeX specific adjustments for straight quotes: https://tex.stackexchange.com/a/354887
  % This issue is already fixed (see https://github.com/silkeh/latex-sourcecodepro/pull/5) but the
  % fix is still unreleased.
  % TODO: Remove this workaround when the new version of sourcecodepro is released on CTAN.
      { Numbers   = \sourcecodepro@figurestyle,
        Scale     = \SourceCodePro@scale,
        Extension = .otf }
      [ UprightFont    = *-\sourcecodepro@regstyle,
        ItalicFont     = *-\sourcecodepro@regstyle It,
        BoldFont       = *-\sourcecodepro@boldstyle,
        BoldItalicFont = *-\sourcecodepro@boldstyle It ]

% heading color
% When using the classes report, scrreprt, book,
% scrbook or memoir, uncomment the following line.

% variables for title, author and date
\title{Complexity and Green Bonds}
\author{Alexander Kartun-Giles and Nadia Ameli}
\date{1st of December 2023}

% tables

% remove paragraph indentation
\setlength{\parskip}{6pt plus 2pt minus 1pt}
\setlength{\emergencystretch}{3em}  % prevent overfull lines

% Listings

% general listing colors
\definecolor{listing-keyword-2}{HTML}{1284CA} % additional keywords
\definecolor{listing-keyword-3}{HTML}{9137CB} % additional keywords

  language         = java,
  numbers          = left,
  xleftmargin      = 2.7em,
  framexleftmargin = 2.5em,
  backgroundcolor  = \color{listing-background},
  basicstyle       = \color{listing-text-color}\linespread{1.0}%
  breaklines       = true,
  frame            = single,
  framesep         = 0.19em,
  rulecolor        = \color{listing-rule},
  frameround       = ffff,
  tabsize          = 4,
  numberstyle      = \color{listing-numbers},
  aboveskip        = 1.0em,
  belowskip        = 0.1em,
  abovecaptionskip = 0em,
  belowcaptionskip = 1.0em,
  keywordstyle     = {\color{listing-keyword}\bfseries},
  keywordstyle     = {[2]\color{listing-keyword-2}\bfseries},
  keywordstyle     = {[3]\color{listing-keyword-3}\bfseries\itshape},
  sensitive        = true,
  identifierstyle  = \color{listing-identifier},
  commentstyle     = \color{listing-comment},
  stringstyle      = \color{listing-string},
  showstringspaces = false,
  escapeinside     = {/*@}{@*/}, % Allow LaTeX inside these special comments
  literate         =
  {á}{{\'a}}1 {é}{{\'e}}1 {í}{{\'i}}1 {ó}{{\'o}}1 {ú}{{\'u}}1
  {Á}{{\'A}}1 {É}{{\'E}}1 {Í}{{\'I}}1 {Ó}{{\'O}}1 {Ú}{{\'U}}1
  {à}{{\`a}}1 {è}{{\`e}}1 {ì}{{\`i}}1 {ò}{{\`o}}1 {ù}{{\`u}}1
  {À}{{\`A}}1 {È}{{\`E}}1 {Ì}{{\`I}}1 {Ò}{{\`O}}1 {Ù}{{\`U}}1
  {ä}{{\"a}}1 {ë}{{\"e}}1 {ï}{{\"i}}1 {ö}{{\"o}}1 {ü}{{\"u}}1
  {Ä}{{\"A}}1 {Ë}{{\"E}}1 {Ï}{{\"I}}1 {Ö}{{\"O}}1 {Ü}{{\"U}}1
  {â}{{\^a}}1 {ê}{{\^e}}1 {î}{{\^i}}1 {ô}{{\^o}}1 {û}{{\^u}}1
  {Â}{{\^A}}1 {Ê}{{\^E}}1 {Î}{{\^I}}1 {Ô}{{\^O}}1 {Û}{{\^U}}1
  {œ}{{\oe}}1 {Œ}{{\OE}}1 {æ}{{\ae}}1 {Æ}{{\AE}}1 {ß}{{\ss}}1
  {ç}{{\c c}}1 {Ç}{{\c C}}1 {ø}{{\o}}1 {å}{{\r a}}1 {Å}{{\r A}}1
  {€}{{\EUR}}1 {£}{{\pounds}}1 {«}{{\guillemotleft}}1
  {»}{{\guillemotright}}1 {ñ}{{\~n}}1 {Ñ}{{\~N}}1 {¿}{{?`}}1
  {…}{{\ldots}}1 {≥}{{>=}}1 {≤}{{<=}}1 {„}{{\glqq}}1 {“}{{\grqq}}1

% Java (Java SE 12, 2019-06-22)
    % normal keywords (without data types)
    % var is an identifier
  morekeywords={[2] % data types
    % primitive data types
    % String
    % primitive wrapper types
    % number types
    % other
  morekeywords={[3] % literals
    % reserved words for literal values
  morecomment  = [l]//,
  morecomment  = [s]{/*}{*/},
  morecomment  = [s]{/**}{*/},
  morestring   = [b]",
  morestring   = [b]',

  morestring      = [b]",
  moredelim       = [s][\bfseries\color{listing-keyword}]{<}{\ },
  moredelim       = [s][\bfseries\color{listing-keyword}]{</}{>},
  moredelim       = [l][\bfseries\color{listing-keyword}]{/>},
  moredelim       = [l][\bfseries\color{listing-keyword}]{>},
  morecomment     = [s]{<?}{?>},
  morecomment     = [s]{<!--}{-->},
  commentstyle    = \color{listing-comment},
  stringstyle     = \color{listing-string},
  identifierstyle = \color{listing-identifier}

% header and footer

  \ihead*{Vinaque sanguine metuenti cuiquam Alcyone fixus}
  \ifoot*{Author Name}

%% end added


%% begin titlepage
\newgeometry{top=2cm, right=4cm, bottom=3cm, left=4cm}
\tikz[remember picture,overlay] \node[inner sep=0pt] at (current page.center){\includegraphics[width=\paperwidth,height=\paperheight]{background.pdf}};

% The titlepage with a background image has other text spacing and text size
  \vskip -8em
  \noindent {\huge \textbf{\textsf{Complexity}}}
    \vskip 1em
  {\Large \textsf{Network science}}
    \vskip 2em
  \noindent {\Large \textsf{John} \vskip 0.6em \textsf{1st of December 2023}}


%% end titlepage

% \maketitle


Some text, see \ref{sec:market}.

\section{A summary of market challenges...}\label{sec:market}
  • 1
    is that really the most minimal example you could make? Nov 30, 2023 at 20:03
  • 400!! lines of code but I tried it and it stopped with ! Unable to load picture or PDF file 'background.pdf'. and produced no output. Nov 30, 2023 at 20:05
  • can use any pdf image, its a file from the template folder. See github.com/Wandmalfarbe/pandoc-latex-template, look for examples, then title-page-custom subfolder
    – apg
    Nov 30, 2023 at 20:09
  • I know its not minimal, but the pandoc thing made this from the markdown file (from the link above), and now I'm tangled up.
    – apg
    Nov 30, 2023 at 20:09
  • no you should remove the image reference not make everyone trying to help find an image, similarly you are asking people to trace tex behaviour but then add packages such as tikz which add literally thousands of extra lines that potentially need tracing. pandcoc may have made the original but you posted this here and you could have reduced it before posting (see the form I posted in my answer this time) Nov 30, 2023 at 20:26

1 Answer 1


A more reasonable example would be


\setcounter{secnumdepth}{-\maxdimen} % remove section numbering



Some text, see \ref{sec:market}.

\section{A summary of market challenges...}\label{sec:market}

As you have suppressed section numbering there is no number for \ref to generate.

  • Thank you. I don't know why they suppress this in the template by default!
    – apg
    Nov 30, 2023 at 20:35

You must log in to answer this question.

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