def InitiateBookCreationSequence(self):
     
     self.TexFile = open(self.SongName + '.tex', 'w')
     
     package = ['[paper=a4paper,margin=1.0in]{geometry}', '{amsmath}', '[svgnames]{xcolor}', '{fancyhdr}', '{tikz}', \
                '[pdfpagelayout=TwoPageRight]{hyperref}']
     
     t.tex_preamble(self.TexFile, package)
     PutTitlePreamble(self.TexFile, self.SongName, self.RaagamName, self.TaalamName, self.RaagamObj.ArohanamTex, self.RaagamObj.AvarohanamTex)
     
     t.tex_beginning(self.TexFile, 'Large')
     
     self.TexFile.write(r'\begin{titlepage}' + '\n')
     self.TexFile.write(r'% The line below puts the curly braces and the title' + '\n')
     self.TexFile.write(r'\titleBC %' + '\n')
     self.TexFile.write(r'\titlepagedecoration' + '\n')
     self.TexFile.write(r'\end{titlepage}' + '\n')
     
     t.tex_linestretch(self.TexFile, 1.5)    
     
     #############################################
     
     self.CreatePages()
     
     #############################################
     self.TexFile.write('\n\n')
     self.TexFile.write(r'\end{document}')
     self.TexFile.close()
     
     os.remove('leftpage.txt')
     os.remove('rightpage.txt')
     
     if os.path.isdir(self.SongName) == True:
         shutil.rmtree(self.SongName)
         
     os.mkdir(self.SongName)
     texfilestr = self.SongName + r'/' + self.SongName + r'.tex'
     midfilestr = self.SongName + r'/' + self.SongName + r'.mid'
     shutil.move(self.SongName + r'.tex', texfilestr)
     shutil.move(self.SongName + r'.mid', midfilestr)

# Starting of trial program    
# Parameters
NumAksharam = 4
SwarasPerAksharam = 4
max_lines_page = 12

# Opening file    
f = open('entharotrial.tex','w')

package = ['[paper=a4paper,margin=1.0in]{geometry}', '{amsmath}']

t.tex_preamble(f, package)
t.tex_beginning(f, 'Large')
t.tex_linestretch(f, 1.5)    
    
# t.tex_section(f, 'Trial')

# Getting note list
note_dict_list = []
count = 0
for i in entharo.entharo_note_list:
    note, length, oct, varn, verse = i
    note_dict_list.append(conv_dict_note(note, length, oct, varn, verse))

n = len(note_dict_list)

leftpage = open('leftpage.txt', 'w')
rightpage = open('rightpage.txt','w')