astoeckel / smart-thesis

Memoir-based LaTeX theme inspired by Classic Thesis
33 stars 11 forks source link

Problems making Glossaries #4

Closed loetermann closed 6 years ago

loetermann commented 6 years ago

I had some trouble compiling the demo with working glossaries. The .gls file was not created and a warning that 'wolf' was referenced but not defined got printed. Finally the accepted answer on this page helped: https://tex.stackexchange.com/questions/1226/how-to-make-latexmk-use-makeglossaries

I prepended the following lines to latexmkrc and it worked.

add_cus_dep('glo', 'gls', 0, 'makeglo2gls');
sub makeglo2gls {
    system("makeindex -s '$_[0]'.ist -t '$_[0]'.glg -o '$_[0]'.gls '$_[0]'.glo");
}
astoeckel commented 6 years ago

Thank you for reporting this issue!

I can confirm that it doesn't work as it should. Apparently, I've used the code you've posted in my master thesis as well (https://github.com/astoeckel/master-thesis-astoeckel-2015/blob/master/latexmkrc), so I've added it to the repository.