This is my sample script. I want to print glosssaries. I am trying to do that but nothing gets printed. I am using
\documentclass[oneside,12pt]{report}
\usepackage{fancyheadings}
\usepackage[acronym]{glossaries}
\makeglossaries
\newglossaryentry{electrolyte}{name=electrolyte,%
description={solution able to conduct electric current}}
\newacronym{svm}{SVM}{support vector machine}
\begin{document}
\printglossary[type=acronym]
\printglossary
\chapter{\textbf{Background}}
Some text about \gls{svm}.
Some more text about \gls{svm}.
Some text about \gls{electrolyte}.
Some more text about \gls{electrolyte}.
\end{document}
Now I hope that this script works. I minimized the whole script to the point of problem. I compiled this..no glossaries are printing to my document..fortunately i can see them in .glo file..My command to execute the file is latexmk -pdf filename.tex..I included the following code in .latexmk file..
add_cus_dep('glo', 'gls', 0, 'makeglossaries');
add_cus_dep('acn', 'acr', 0, 'makeglossaries');
sub makeglossaries {
system "makeglossaries $_[0]";
if ( -z "$_[0].glo" ) {
open GLS, ">$_[0].gls";
close GLS;
}
return 0;
}
My .glo file contents:
\glossaryentry{electrolyte?\glossaryentryfield{electrolyte}{\glsnamefont{electrolyte}}{solution able to conduct electric current}{\relax }|setentrycounter[]{page}\glsnumberformat}{2}
\glossaryentry{electrolyte?\glossaryentryfield{electrolyte}{\glsnamefont{electrolyte}}{solution able to conduct electric current}{\relax }|setentrycounter[]{page}\glsnumberformat}{2}
My .acn file contents:
\glossaryentry{SVM?\glossaryentryfield{svm}{\glsnamefont{SVM}}{support vector machine}{\relax }|setentrycounter[]{page}\glsnumberformat}{2}
\glossaryentry{SVM?\glossaryentryfield{svm}{\glsnamefont{SVM}}{support vector machine}{\relax }|setentrycounter[]{page}\glsnumberformat}{2}
Now, I hope i get some response..tack..
\usepackage[demo]{graphicx}
, then the actual image file won't be needed for others to compile. And ensure you have\printgloassary
somewhere.nomencl
package, but themakeglossaries
script is part of another package ->glossaries
that you are using as well. You are mixing the packages which may not be a good idea, but mainly you seem to miss a call ofmakindex
fornomencl
to work. Check the documentation ofnomencl
and see how this is done. My advise would be to chose 1 package only. As it seems you need more than 1 list, theglossaries
package is best