I am writing a thesis and I want the chapter and its heading right aligned.
On searching in TEX I got an answer to download the titlesec
package.
I downloaded it but I don't know where to insert the package.
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Sign up to join this community
\usepackage[<optional options>]{<package name>}
, i.e. in your case use\usepackage{titlesec}
in the preamble.\usepackage{titlesec}
and see if there is an error.