diff --git a/{{cookiecutter.thesis_type}}-{{cookiecutter.thesis_surname}}/wmimgr.cls b/{{cookiecutter.thesis_type}}-{{cookiecutter.thesis_surname}}/wmimgr.cls index 4fc9f56..e4c3b11 100644 --- a/{{cookiecutter.thesis_type}}-{{cookiecutter.thesis_surname}}/wmimgr.cls +++ b/{{cookiecutter.thesis_type}}-{{cookiecutter.thesis_surname}}/wmimgr.cls @@ -411,6 +411,17 @@ zostanie cofni\k{e}ta.\endgraf } \newcommand{\english}[1]{\textit{#1}} \newcommand{\turkish}[1]{\textit{#1}} \newcommand{\code}[1]{\texttt{#1}} +\newcommand{\noqa}[1]{} +\usepackage{hyperref} +\usepackage{xstring} +% Format a reference to a Gonito submission +\newcommand{\gonitoref}[1]{\{\href{https://gonito.net/q/#1}{\StrMid{#1}{1}{6}}\}} +% A bare score from Gonito +\newcommand{\gonitobarescore}[1]{\minput{scores/#1.txt}} +% A score from Gonito along with a reference +\newcommand{\gonitoscore}[1]{\gonitobarescore{#1} \gonitoref{#1}} +% A reference and a score as two cells in a table +\newcommand{\gonitoentry}[1]{\gonitoref{#1} & \minput{scores/#1.txt}} % \endinput {% endraw %} diff --git a/{{cookiecutter.thesis_type}}-{{cookiecutter.thesis_surname}}/{{cookiecutter.thesis_surname}}.tex b/{{cookiecutter.thesis_type}}-{{cookiecutter.thesis_surname}}/{{cookiecutter.thesis_surname}}.tex index 1c6d4dd..1801496 100644 --- a/{{cookiecutter.thesis_type}}-{{cookiecutter.thesis_surname}}/{{cookiecutter.thesis_surname}}.tex +++ b/{{cookiecutter.thesis_type}}-{{cookiecutter.thesis_surname}}/{{cookiecutter.thesis_surname}}.tex @@ -11,20 +11,6 @@ \newcommand\dbr{\discretionary{}{}{}} -\usepackage{hyperref} -\usepackage{xstring} -% Format a reference to a Gonito submission -\newcommand{\gonitoref}[1]{\{\href{https://gonito.net/q/#1}{\StrMid{#1}{1}{6}}\}} -% A bare score from Gonito -\newcommand{\gonitobarescore}[1]{\minput{scores/#1.txt}} -% A score from Gonito along with a reference -\newcommand{\gonitoscore}[1]{\gonitobarescore{#1} \gonitoref{#1}} -% A reference and a score as two cells in a table -\newcommand{\gonitoentry}[1]{\gonitoref{#1} & \minput{scores/#1.txt}} - -\newcommand{\code}[1]{\texttt{#1}} -\newcommand{\noqa}[1]{} - \input{preamble} \input{metadata}