This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass[foldmarks=false, backaddress=false, fromemail, fromlogo, fromrule]{scrlttr2} | |
\usepackage{polyglossia} | |
\setmainlanguage{english} | |
\usepackage[babel]{microtype} | |
\usepackage{unicode-math} | |
% Fonts can be customized here. | |
\setmainfont{TeX Gyre Pagella} | |
\setmathfont{TeX Gyre Pagella Math}[Scale=MatchLowercase] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%%% Dark magic | |
\makeatletter | |
\def\font@loop#1{% define a loop | |
\ifx\relax#1% if we get to \relax, do nothing | |
\else% otherwise... | |
% define \cA=\mathcal{A}, etc | |
\expandafter\def\csname c#1\endcsname{\mathcal{#1}} | |
% define \sA=\mathsf{A}, etc | |
\expandafter\def\csname s#1\endcsname{\mathsf{#1}} | |
% define \bA=\mathbf{A}, etc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.SYNOPSIS | |
Splits a PDF file containing multiple exams along ranges specified in a CSV file, to be used with Moodle. | |
.DESCRIPTION | |
Given a CSV file named "exams.csv" with the following content: | |
Name;ID;Start;End | |
John Doe;1234;1;2 | |
Jane Doe;5678;3;4 |