could someone help me here. I am compiling a Latex document with pdflatex. The Process Exit normally. The Latex gives a pdf document of 4 Pages. But it takes around 2 min it. For a document of 20 pages, the program mostly crashes. I have to compile a document of 150 pages. Here is my preamble. Please could someone answer me?
\documentclass[12pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[margin=1in]{geometry}
%\usepackage[demo]{graphicx}
\usepackage{graphicx}
\usepackage{subfig}
%\graphicspath{Bilder-Promotion}
\usepackage{fancyhdr}
\usepackage{pdfpages}
\usepackage{caption}
\usepackage{float}
\usepackage{amssymb}
\usepackage{mathdots}
\usepackage[classicReIm]{kpfonts}
\usepackage{enumitem}
%\usepackage[dvips]{graphicx} %%% use 'pdftex' instead of 'dvips' for PDF output
%\newcolumntype{P}[1]{>{\centering\arraybackslash}p{#1}}
%\addbibresource{mybib.bib}
\usepackage[english]{babel}
\usepackage{lmodern}
\usepackage{textcomp}
\pagestyle{fancy}
%\fancyhead[]
%\fancyfoot[]
\usepackage{amsmath}
%\includeonly{fundamental}
\usepackage{chemist}
%\includeonly{Intro,filename2,...}
\usepackage[colorlinks=true, breaklinks=true,citecolor=black,linkcolor=blue,
menucolor=black,urlcolor=blue]{hyperref}
%\usepackage{siunitx}
\usepackage{txfonts}
\usepackage[classicReIm]{kpfonts}
\usepackage{array,booktabs}
\usepackage{calc}
\numberwithin{table}{section}
\numberwithin{figure}{section}
\numberwithin{equation}{section}
\setlength{\parindent}{4em}
\setlength{\parskip}{1em}
\renewcommand{\baselinestretch}{1.5}
\usepackage{titling}
\makeatletter
\renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}%
{-2.5ex\@plus -1ex \@minus -.25ex}%
{1.25ex \@plus .25ex}%
{\normalfont\normalsize\bfseries}}
\makeatother
\setcounter{secnumdepth}{4} % how many sectioning levels to assign numbers to
\setcounter{tocdepth}{4} % how many sectioning levels to show in ToC
\usepackage{glossaries}
\makeglossaries
%%%%%%%%%%%%%%%%%%%%%%%%%%%%liste des abréviations%%%%%%%%%%%%%%
\usepackage[english]{nomencl}
\makenomenclature
\renewcommand{\nomname}{Liste des abréviations, des sigles et des symboles}
\tracingall
\tracingall? Just printing out all that output should impose a nontrivial delay (though I doubt it explains your 30 seconds per page). – ShreevatsaR Oct 26 '17 at 19:03\tracingallis not a good idea if you have no problem with your code – Oct 26 '17 at 19:08