Skip to content

Commit

Permalink
printnomencl and windows .bat file
Browse files Browse the repository at this point in the history
  • Loading branch information
Krishna Kumar committed Nov 26, 2013
1 parent 76a733e commit 00bc0c5
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 5 deletions.
6 changes: 4 additions & 2 deletions Classes/PhDThesisPSnPDF.cls
Original file line number Diff line number Diff line change
Expand Up @@ -575,8 +575,10 @@
}% matches Roman Symbols > A

% Add nomenclature to contents and print out nomenclature
\newcommand{\printnomencl}{
\printnomenclature
\newcommand{\printnomencl}[1][]{
\ifthenelse{\equal {#1}{}}
{\printnomenclature}
{\printnomenclature[#1]}
\addcontentsline{toc}{chapter}{\nomname}
}

Expand Down
47 changes: 47 additions & 0 deletions compile-thesis-windows.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
SET FILENAME=thesis

DEL "%FILENAME%.aux"
DEL "%FILENAME%.bbl"
DEL "%FILENAME%.blg"
DEL "%FILENAME%.d"
DEL "%FILENAME%.fls"
DEL "%FILENAME%.ild"
DEL "%FILENAME%.ind"
DEL "%FILENAME%.toc"
DEL "%FILENAME%.lot"
DEL "%FILENAME%.lof"
DEL "%FILENAME%.idx"
DEL "%FILENAME%.out"
DEL "%FILENAME%.nlo"
DEL "%FILENAME%.nls"
DEL "%FILENAME%.pdf"
DEL "%FILENAME%.ps"
DEL "%FILENAME%.dvi"

pdflatex -interaction=nonstopmode "%FILENAME%.tex"
bibtex "%FILENAME%.aux"
makeindex "%FILENAME%.aux"
makeindex "%FILENAME%.idx"
makeindex "%FILENAME%.nlo" -s nomencl.ist -o "%FILENAME%".nls
pdflatex -interaction=nonstopmode "%FILENAME%.tex"
makeindex "%FILENAME%.nlo" -s nomencl.ist -o "%FILENAME%".nls
pdflatex -interaction=nonstopmode "%FILENAME%.tex"


DEL "%FILENAME%.aux"
DEL "%FILENAME%.bbl"
DEL "%FILENAME%.blg"
DEL "%FILENAME%.d"
DEL "%FILENAME%.fls"
DEL "%FILENAME%.ild"
DEL "%FILENAME%.ind"
DEL "%FILENAME%.toc"
DEL "%FILENAME%.lot"
DEL "%FILENAME%.lof"
DEL "%FILENAME%.idx"
DEL "%FILENAME%.out"
DEL "%FILENAME%.nlo"
DEL "%FILENAME%.nls"


"%FILENAME%.pdf"
5 changes: 3 additions & 2 deletions compile-thesis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,9 @@ if [ $1 = $clean ]; then
elif [ $1 = $compile ]; then
echo "Compiling your PhD Thesis...please wait...!"
pdflatex -interaction=nonstopmode $filename.tex
bibtex $filename.aux
pdflatex -interaction=nonstopmode $filename.tex
bibtex $filename.aux
makeindex $filename.aux
makeindex $filename.idx
makeindex $filename.nlo -s nomencl.ist -o $filename.nls
pdflatex -interaction=nonstopmode $filename.tex
makeindex $filename.nlo -s nomencl.ist -o $filename.nls
Expand Down
Binary file modified thesis.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion thesis.tex
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,9 @@

\listoftables

% \printnomenclature[space] space can be set as 2.5cm between symbol and description
\printnomencl


% ***********************************Main Matter***********************************
\mainmatter

Expand Down

0 comments on commit 00bc0c5

Please sign in to comment.