[Tex/LaTex] List of symbols and abbreviations separately

glossariesnomenclnomenclaturesymbols

I needed to get list of symbols and abbreviations for my thesis, by following the MWE which I have got from How to create both list of abbreviations and list of nomenclature using nomencl package?
I was able to get two separate lists, but I want them separately on different pages, like list of symbols and abbreviations.

Any help would be appreciated.

\documentclass{article}
\usepackage{nomencl}
\makenomenclature

%% This removes the main title:
\renewcommand{\nomname}{}
%% this modifies item separation:
\setlength{\nomitemsep}{8pt}
%% this part defines the groups:
%----------------------------------------------
\usepackage{etoolbox}
\renewcommand\nomgroup[1]{%
  \item[\Large\bfseries
  \ifstrequal{#1}{N}{Nomenclature}{%
  \ifstrequal{#1}{A}{List of Abbreviations}{}}%
]\vspace{10pt}} % this is to add vertical space between the groups.
%----------------------------------------------

\begin{document}

\nomenclature[A]{\textbf{IMO}}{in my opinion}
\nomenclature[A]{\textbf{OP}}{original poster}
\nomenclature[N]{$c$}{speed of light in vacuum}
\nomenclature[N]{$h$}{Plank constant}

\printnomenclature[2cm]

\end{document}

Best Answer

UPDATE: This version avoids the initial \clearpage.

\documentclass{article}
\usepackage{nomencl}
\makenomenclature
\newif\iffirstglossary\firstglossarytrue
%% This removes the main title:
\renewcommand{\nomname}{}
%% this modifies item separation:
\setlength{\nomitemsep}{8pt}
%% this part defines the groups:
%----------------------------------------------
\usepackage{etoolbox}
\renewcommand\nomgroup[1]{%
\iffirstglossary
\firstglossaryfalse
\else
\clearpage
\fi
  \item[\Large\bfseries
  \ifstrequal{#1}{N}{Nomenclature}{%
  \ifstrequal{#1}{A}{List of Abbreviations}{}}%
]\vspace{10pt}} % this is to add vertical space between the groups.
%----------------------------------------------

\begin{document}
Here we go!

\nomenclature[A]{\textbf{IMO}}{in my opinion}
\nomenclature[A]{\textbf{OP}}{original poster}
\nomenclature[A]{\textbf{CDM}}{carefully driving marmot}
\nomenclature[N]{$c$}{speed of light in vacuum}
\nomenclature[N]{$h$}{Planck constant}
\nomenclature[N]{$w$}{average weight of a marmot}

\printnomenclature[2cm]

\end{document}
Related Question