-
Notifications
You must be signed in to change notification settings - Fork 8
/
test_preambles.tex
160 lines (123 loc) · 4.52 KB
/
test_preambles.tex
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
152
153
154
155
156
157
158
159
160
% This is the common preambles for doing any type of tests
% e.g. tinkering a tikz code (for example, see
% ./img/matrix-chain/perfect-bin-trees-with-5-leaves/test.tex)
% you can just start by doing:
% \input{path/to/test_preambles.tex}
% \begin{document}
% % your test codes
% \end{document}
\documentclass[twoside,12pt,a4paper]{book}
% \usepackage[a4paper,vmargin=30mm,hmargin=33mm,footskip=15mm,showframe]{geometry}
\usepackage[a4paper,vmargin=30mm,hmargin=33mm,footskip=15mm]{geometry}
\usepackage[utf8]{inputenc}
\usepackage{polyglossia}
\setmainlanguage[numerals=Bengali,changecounternumbering=true]{bengali}
\newfontfamily\bengalifont[Script=Bengali, Scale=0.9, NFSSFamily=bmfont, WordSpace=1.5, AutoFakeSlant, AutoFakeBold]{SolaimanLipi}
\newenvironment{latin}{\fontencoding{OT1}\ifx\f@family\btt@@name\fontfamily{lmtt}\else\fontfamily{lmr}\fi\selectfont}\relax
\RequirePackage[Latin, Bengali, Devanagari]{ucharclasses}\setTransitionsForLatin{\begin{latin}}{\end{latin}}
\newfontfamily\bengalifonttt{SolaimanLipi}
% \usepackage[english]{babel}
\usepackage{listings}
\usepackage[table]{xcolor}
\usepackage{tikz}
\usepackage{multicol}
\usepackage{hyperref}
\usepackage{array}
% \usepackage{microtype}
% \usepackage{fouriernc}
% \usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage{framed}
\usepackage{amssymb}
\usepackage{amsmath}
% \usepackage{pifont}
\usepackage{ifthen}
\usepackage{makeidx}
\usepackage{enumitem}
\usepackage{tabularx} % https://pastebin.ubuntu.com/p/27JH8NrQGf/
\usepackage{titlesec}
% \usepackage{skak}
\usepackage[scaled=0.95]{inconsolata}
\pagestyle{plain}
% \usepackage{pdfpages}
% \usepackage{afterpage}
% \usepackage{bookstyle_exp}
% \usepackage{xcolor,colortbl}
% \usepackage{array}
% Hints config
\usepackage{answers}
\Newassociation{hint}{Hint}{hint_ostream}
% Code formatting
% \definecolor{keywords}{HTML}{44548A}
% \definecolor{strings}{HTML}{00999A}
% \definecolor{comments}{HTML}{990000}
\lstset{
language=C++,
frame=none,
basicstyle=\ttfamily \small,
commentstyle=\normalfont \itshape,
showstringspaces=false,
columns=flexible
}
\lstset{literate={^}{\caret}{1} {~}{\tilde}{1}}
\lstset{xleftmargin=5pt,xrightmargin=5pt}
\lstset{aboveskip=8pt,belowskip=6pt}
% \lstset{
% commentstyle=\color{comments},
% keywordstyle=\color{keywords},
% stringstyle=\color{strings}
% }
\newcommand{\caret}{\textasciicircum} % usage \caret for ^
\newcommand{\ntilde}{\raise.17ex\hbox{$\scriptstyle\mathtt{\sim}$}} % failed to make \renewcommand*{\tilde} work :(, so gotta use this atm
% Macros
\newcommand{\cbra}[1]{\left \{ #1 \right \}} % c for curly bracket
\newcommand{\bbra}[1]{\left [ #1 \right ]} % b for boxed bracket
\newcommand{\pbra}[1]{\left ( #1 \right )} % p for parentheses
\newcommand{\floor}[1]{\left \lfloor #1 \right \rfloor}
\newcommand{\ceil}[1]{\left \lceil #1 \right \rceil}
\let\emptyset\varnothing % original emptyset is ugly
%%%
\title{\Huge ডাইনামিক প্রোগ্রামিং এ হাতেখড়ি}
\author{\Large তাসমীম রেজা \\ \Large মামনুন সিয়াম}
\date{Draft \today}
\newenvironment{solution}{\noindent \textit{সমাধান।}}{}
\newenvironment{diybox}{\textbf{নিজে করোঃ}}{}
\usepackage{amsthm}
% \usepackage{thmtools}
\theoremstyle{definition}
\newtheorem{theorem}{উপপাদ্য}[section]
\theoremstyle{definition}
\newtheorem*{theorem*}{উপপাদ্য}
\theoremstyle{definition}
\newtheorem{corollary}[theorem]{Corollary}
\theoremstyle{definition}
\newtheorem*{corollary*}{Corollary}
\theoremstyle{definition}
\newtheorem{lemma}[theorem]{লেমা}
\theoremstyle{definition}
\newtheorem*{lemma*}{লেমা}
\theoremstyle{definition}
\newtheorem{proposition}[theorem]{Proposition}
\theoremstyle{definition}
\newtheorem*{proposition*}{Proposition}
\theoremstyle{definition}
\newtheorem{claim}[theorem]{Claim}
\theoremstyle{definition}
\newtheorem*{claim*}{Claim}
\theoremstyle{definition}
\newtheorem{definition}[theorem]{সংজ্ঞা}
\theoremstyle{definition}
\newtheorem*{definition*}{সংজ্ঞা}
\theoremstyle{definition}
\newtheorem{problem}{প্রবলেম}[section]
\theoremstyle{definition}
\newtheorem*{problem*}{প্রবলেম}
\theoremstyle{definition}
\newtheorem{exercise}{অনুশীলনী}[section]
\theoremstyle{definition}
\newtheorem*{exercise*}{অনুশীলনী}
\theoremstyle{definition}
\newtheorem{example}{উদাহরণ}[section]
\theoremstyle{definition}
\newtheorem*{example*}{উদাহরণ}
\newtheorem*{note*}{Note}