-
Notifications
You must be signed in to change notification settings - Fork 10
/
usepackage.tex
executable file
·45 lines (44 loc) · 1.41 KB
/
usepackage.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
\usepackage{geometry}
% total specifies text width and height should not exceed 170mm,257mm.
% right, bottom margins set automatically
\geometry{a4paper,total={170mm,257mm}, left=20mm, top=20mm}
\usepackage{sagetex}
\usepackage{fancyhdr}
\usepackage{amsmath}
\usepackage{emptypage}
\usepackage{subcaption}
\usepackage{enumerate}
\usepackage{chngcntr} %to change counter of example according to chapter
\usepackage{pgfplotstable}
\usepackage{booktabs}
\usepackage{authblk} %to use Author and Affiliation
\usepackage{graphicx}
\bibliographystyle{ieeetr}
\usepackage[backend=biber]{biblatex}
%====================Macro Definition =====================%
\newcommand{\fig}{Fig.}
\newcommand{\eqn}{Equation}
\newcommand{\chartm}{Chart}
\newcommand{\tablem}{Table}
\newcommand{\fefouronefive}{$Fe$ 415}
\newcommand{\fefivezerozero}{$Fe$ 500}
\newcommand{\fetwofivezero}{$Fe$ 250}
\newcommand{\kn}{kN}
\newcommand{\knpms}{kN/m^2}
\newcommand{\knm}{kNm}
\newcommand{\mm}{mm}
\newcommand{\npmms}{N/mm^2}
\newcommand{\mms}{mm^2}
\newcommand{\mmspm}{mm^2/m}
\newcommand{\given}{\textbf {Given:}}
\newcommand{\solution}{\textbf {Solution:}}
\newcommand{\required}{\textbf{Required:}}
\newcounter{example}
\counterwithin{example}{chapter}
\newenvironment{example}{
\refstepcounter{example}
\textbf{Example~\theexample.}
} %example environment created
\DeclareCaptionType{chart}
\addbibresource{DesignAids.bib}
\DeclareFieldFormat{citetitle}{#1}