1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
|
% Package info
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{test-custom-cls-speed}[2020/01/01 v1.0 Custom class]
% Class dependencies
\LoadClass[12pt, a4paper]{report}
\RequirePackage[hyperref]{xcolor}
\RequirePackage[pdfusetitle]{hyperref}
% Graphics
\RequirePackage{graphicx}
% Language
\RequirePackage{polyglossia}
\RequirePackage{csquotes}
\setmainlanguage{english}
% Layout
\RequirePackage[nomarginpar]{geometry}
% Mathematics
\RequirePackage{amssymb, amsmath, amsthm}
\RequirePackage[cmintegrals]{newtxmath}
\newcommand{\true}{\mkern1mu\top\mkern1mu}
\newcommand{\false}{\mkern1mu\bot\mkern1mu}
\renewcommand{\emptyset}{\varnothing}
\newcommand{\eps}{\varepsilon}
\newcommand{\cd}{\cdot}
\newcommand{\dd}{\,\mathrm{d}}
\newcommand{\pd}{\partial}
% Fonts
\RequirePackage{fontspec}
\setmainfont{Ubuntu}
% Layout
\RequirePackage[parfill]{parskip}
\frenchspacing
% Tables
\RequirePackage{array}
\RequirePackage{booktabs}
\RequirePackage{makecell}
\RequirePackage{colortbl}
\RequirePackage{setspace}
\setlength{\abovetopsep}{0pt}
\setlength{\belowrulesep}{0pt}
\setlength{\arrayrulewidth}{1pt}
\setlength{\tabcolsep}{0.5em}
\newcolumntype{^}{>{\global\let\currentrowstyle\relax}}
\newcolumntype{+}{>{\currentrowstyle}}
\newcommand{\rowstyle}[1]{\gdef\currentrowstyle{#1}#1\ignorespaces}
\let\@bottomrule\bottomrule\renewcommand{\bottomrule}{\@bottomrule\rowstyle{\bfseries}}
% Contents
\newlength{\halfline}\setlength{\halfline}{0.5\baselineskip}
\newcommand{\justify}[1]{\makebox[\linewidth][s]{#1}}
\newcommand{\addindent}{\hspace{\parindent}}
\newcommand{\addline}{\vspace{\baselineskip}}
\newcommand{\image}[2][]{\includegraphics[#1]{\string#2}}
|