-
Notifications
You must be signed in to change notification settings - Fork 0
/
acmusal.sty
36 lines (29 loc) · 1012 Bytes
/
acmusal.sty
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
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{acmusal}
% XeLaTeX is required to compile. Throws an error if another engine is being used
\RequirePackage{ifxetex}
\RequireXeTeX
% Language settings
\RequirePackage[spanish]{babel}
\selectlanguage{spanish}
\RequirePackage{graphicx}
% ACM colours
\RequirePackage{xcolor}
\definecolor{acmblue}{RGB}{1,130,172}
\definecolor{acmblack}{RGB}{0,0,0}
\definecolor{acmwhite}{RGB}{255,255,255}
\definecolor{acmyellow}{RGB}{255,214,0}
\definecolor{acmorange}{RGB}{252,146,0}
\definecolor{acmred}{RGB}{253,27,20}
\definecolor{acmlightblue}{RGB}{131,206,226}
\definecolor{acmgreen}{RGB}{166,188,9}
\definecolor{acmpurple}{RGB}{101,1,107}
\definecolor{acmdarkblue}{RGB}{9,53,122}
% Bold and italics go in blue
\DeclareTextFontCommand{\textbf}{\color{acmblue}}
\DeclareTextFontCommand{\textit}{\color{acmblue}}
% Fonts
\RequirePackage{fontspec}
\setmainfont{Myriad Pro}
\newcommand{\acmchaptername}[1]{\def\@acmchaptername{#1}}
\newcommand*{\authors}[1]{\def\@authornames{#1}}