\documentclass{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[english]{babel} \usepackage[hidelinks]{hyperref} \usepackage{cleveref} \usepackage{cleveref-icelandic} \usepackage{booktabs} \usepackage{listings} \usepackage{xcolor} \lstset{ language=[LaTeX]TeX, basicstyle=\ttfamily\small, keywordstyle=\color{blue}, commentstyle=\color{gray}, breaklines=true, frame=single, literate= {á}{{\'a}}1 {é}{{\'e}}1 {í}{{\'i}}1 {ó}{{\'o}}1 {ú}{{\'u}}1 {ý}{{\'y}}1 {Á}{{\'A}}1 {É}{{\'E}}1 {Í}{{\'I}}1 {Ó}{{\'O}}1 {Ú}{{\'U}}1 {Ý}{{\'Y}}1 {ð}{{\dh}}1 {Ð}{{\DH}}1 {þ}{{\th}}1 {Þ}{{\TH}}1 {ö}{{\"o}}1 {Ö}{{\"O}}1 {æ}{{\ae}}1 {Æ}{{\AE}}1 {→}{{$\rightarrow$}}1 } \title{\texttt{cleveref-icelandic} --- Icelandic declension for cleveref\\ \large v0.1} \author{Sindri Smárason} \date{1 April 2026} \begin{document} \maketitle \begin{abstract} The \texttt{cleveref-icelandic} package adds Icelandic grammatical declension to cross-references produced by \texttt{cleveref}. It allows references to figures, tables, equations, and sections to appear in the correct grammatical case --- nominative, accusative, dative, or genitive --- in both singular and plural, with automatic case selection from prepositions. \end{abstract} \tableofcontents \newpage %%% ----------------------------------------------------------------------- \section{Introduction} The \texttt{cleveref} package automates cross-reference formatting in LaTeX but has no Icelandic language support and can only produce the nominative case. Icelandic is a heavily inflected language with four grammatical cases, and reference nouns such as \textit{mynd} (figure), \textit{tafla} (table), \textit{jafna} (equation), and \textit{kafli} (section) must be declined according to their grammatical role in the sentence. \texttt{cleveref-icelandic} solves this by storing declension tables for each reference type and allowing the user to specify the case via a simple optional argument. Icelandic has four cases: \begin{itemize} \item \textbf{Nominative} (\textit{nefnifall}) --- subject position \item \textbf{Accusative} (\textit{þolfall}) --- direct object, some prepositions \item \textbf{Dative} (\textit{þágufall}) --- indirect object, most locative prepositions \item \textbf{Genitive} (\textit{eignarfall}) --- possession, some prepositions \end{itemize} %%% ----------------------------------------------------------------------- \section{Requirements and loading} \texttt{cleveref-icelandic} automatically loads the following packages: \begin{itemize} \item \texttt{hyperref} \item \texttt{cleveref} \item \texttt{xparse} \end{itemize} Load the packages in the following order in your preamble: \begin{lstlisting} \usepackage[hidelinks]{hyperref} % or colorlinks=true \usepackage{cleveref} \usepackage{cleveref-icelandic} \end{lstlisting} %%% ----------------------------------------------------------------------- \section{Main commands} \subsection{\texttt{\textbackslash icref}} \begin{lstlisting} \icref[]{