Updated latexstubs and extractText to keep sections with titles