The following is a sample tex file with glossary
documentclass{article}
usepackage[colorlinks]{hyperref}
usepackage{glossaries} % make a separate list of acronyms
makeglossaries
newglossaryentry{sample}{name={sample},
description={a sample entry}}
newacronym[glsshortpluralkey=cas,glslongpluralkey=contrived
acronyms]{aca}{aca}{a contrived acronym}
begin{document}
A gls{sample} entry and gls{aca}. Second use: gls{aca}.
Plurals: glspl{sample}. Reset acronymglsreset{aca}.
First use: glspl{aca}. Second use: glspl{aca}.
printglossaries
end{document}
Firstly, in your texmaker installation, go to user > user commands > edit user commands, choose 1 and add the line below. after which you should compile your tex file with latex and then make glossary. This should work as opposed to makeglossaries % which many tutorials say. Reason is on the mac, path is not detected by TexMaker.
“/usr/texbin/makeglossaries” %
My custom command which builds and rebuilds the bibtex and includes glossaries is this,
“/usr/texbin/latex” -interaction=nonstopmode %.tex|”/usr/texbin/bibtex” %.aux|”/usr/texbin/makeglossaries” %|”/usr/texbin/latex” -interaction=nonstopmode %.tex|”/usr/texbin/pdflatex” -interaction=nonstopmode %.tex|open %.pdf
or
“/usr/texbin/pdflatex” -interaction=nonstopmode %.tex|”/usr/texbin/pdflatex” -interaction=nonstopmode %.tex|”/usr/texbin/bibtex” %.aux|”/usr/texbin/makeglossaries” %|”/usr/texbin/pdflatex” -interaction=nonstopmode %.tex|”/usr/texbin/pdflatex” -interaction=nonstopmode %.tex|open %.pdf
To do text count…
“/usr/texbin/texcount” %