Clean up Gonito and Autozoil commands

This commit is contained in:
Filip Gralinski 2019-12-02 19:51:17 +01:00
parent 7ef22105cb
commit 590032c897
2 changed files with 11 additions and 14 deletions

View File

@ -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 %}

View File

@ -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}