-
Notifications
You must be signed in to change notification settings - Fork 0
/
WarmBox.sty
executable file
·155 lines (121 loc) · 4.24 KB
/
WarmBox.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
%\documentclass[oneside]{memoir}
%\documentclass[a4paper]{article}
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{warmbox}
\usepackage[a4paper, total={6.5in, 9.5in}]{geometry}
\pretolerance=1000
%\usepackage[T1]{fontenc}
%\usepackage{newpxtext,eulerpx}
%\usepackage{lmodern}
%\usepackage[T1]{fontenc}
\usepackage{anyfontsize}
\usepackage{sansmathfonts}
% \usepackage{anyfontsize}
\usepackage{lmodern}
\usepackage[T1]{fontenc}
\renewcommand*\familydefault{\sfdefault} %% Only if the base font of the document is to be sans serif
\usepackage{inconsolata}
%\usepackage[sfdefault,thin]{FiraSans} %% option 'sfdefault' activates Fira Sans as the default text font
%\renewcommand*\oldstylenums[1]{{\firaoldstyle #1}}
\usepackage{graphicx} % for images
\graphicspath{ {../images/} }
\usepackage{enumitem} % adds styles to decription (allows to create description lists with newline characters)
\usepackage{amsmath} % math
\usepackage{amsfonts} % math fonts, ex whole numbers
\usepackage{csquotes} % quotations
\usepackage{tabularx} % column type (which adds filling space).
%=============================================== Frame Settings ======================================================%
\usepackage[framemethod=TikZ]{mdframed} % frame environment
%==== Important Frame ====%
\mdfdefinestyle{important} {
middlelinecolor=darkgray,
middlelinewidth=2pt,
fontcolor=light_orange,
backgroundcolor=brownish_gray,
roundcorner=10pt
}
%==== Code Frame ====%
\mdfdefinestyle{output} {
fontcolor=pgreen
}
%\mdfsetup{%
% middlelinecolor=darkgray,
% middlelinewidth=2pt,
% fontcolor=light_orange,
% backgroundcolor=brownish_gray,
% roundcorner=10pt}
%\usepackage[parfill]{parskip}
%=============================================== Page Style ==========================================================%
%\renewcommand{\topfraction}{.85}
%\renewcommand{\bottomfraction}{.7}
%\renewcommand{\textfraction}{.15}
%\renewcommand{\floatpagefraction}{.66}
%\renewcommand{\dbltopfraction}{.66}
%\renewcommand{\dblfloatpagefraction}{.66}
%\setcounter{topnumber}{9}
%\setcounter{bottomnumber}{
%\setcounter{totalnumber}{20}
%\setcounter{dbltopnumber}{9}
%============================================== Colors ===============================================================%
\usepackage{xcolor}
\definecolor{pblue}{rgb}{0.13,0.13,1}
\definecolor{beige}{HTML}{e1c699}
\definecolor{pgreen}{HTML}{1d5239}
\definecolor{pred}{rgb}{0.9,0,0}
\definecolor{palered}{HTML}{AA434E}
\definecolor{pgrey}{rgb}{0.46,0.45,0.48}
\definecolor{light_green}{HTML}{698069}
\definecolor{dark_gray}{HTML}{1f241f}
\definecolor{light_orange}{HTML}{ba6f4e}
\definecolor{brownish_gray}{HTML}{3b312e}
\color{beige}
\pagecolor{dark_gray}
%=============================================== Listing Prefs =======================================================%
\usepackage{listings}
\PassOptionsToPackage{hyphens}{url}\usepackage{hyperref}
\usepackage{color}
\usepackage{biblatex}
%==== Java Listings ====%
\lstdefinestyle{myjava}{language=Java,
basicstyle=\ttfamily,
frame=tb,
aboveskip=3mm,
belowskip=3mm,
columns=flexible,
numbers=left,
% basicstyle=\footnotesize, % the size of the fonts that are used for the code
basicstyle={\small\ttfamily},
numberstyle=\tiny\color{gray}\texttt,
% numbersep=5pt, % how far the line-numbers are from the code
showspaces=false,
showtabs=false,
breaklines=true,
showstringspaces=false,
breakatwhitespace=true,
commentstyle=\color{pgreen},
keywordstyle=\color{light_orange},
stringstyle=\color{olive},
moredelim=[il][\textcolor{pgreen}]{\#\#},
moredelim=[is][\textcolor{pgrey}]{\%\%}{\%\%},
% inputpath=../src
}
\lstdefinestyle{myout}
{
language={},
basicstyle=\ttfamily,
frame=shadowbox,
breaklines=true
}
\lstdefinestyle{err}{
language={},
basicstyle=\ttfamily\color{palered},
frame=shadowbox,
breaklines=true,
}
\setlist[description]{style=nextline}
\title{WarmBox Color Sceme}
\author{Author: Andrzej Zahorski}
%=============================================== Commands =======================================================%
% shorter texttt
\newcommand{\kword}[1]{{\color{light_orange}\texttt{#1}}}
\newcommand{\monobold}[1]{\textbf{\texttt{#1}}}