Latest news 2019-12-05: new blog post "RSS Feeds and Other Notifications."

Bug Tracker

ID55
StatusClosed (Fixed)
Categoryglossaries
Version4.06
InterpreterPerl v5.16.2
Summarymakeglossaries assumes 3 character extension

Report

Howdy,

I'm using makeglossaries to create one glossary at a time. Unfortunately the makeglossaries script seems to be hard coded to expect exactly 3 character extensions.

The sampleacronyms.tex sample file defines a 4 character extension and

makeglossaries sampleacronyms.acn2
fails.

Good Luck,
Herb Schulz

MWE

%%!TEX TS-program = pdflatexmk
 % This file is public domain
 % If you want to use arara, you need the following directives:
 % arara: pdflatex: { synctex: on }
 % arara: makeglossaries
 % arara: pdflatex: { synctex: on }
\documentclass{article}

\usepackage[acronym,footnote,acronymlists={main,acronym2}]{glossaries}

\newglossary[alg2]{acronym2}{acr2}{acn2}{Statistical Acronyms}

\makeglossaries


\renewcommand{\glossaryname}{Calculus Acronyms}

\newacronym[type=main]{vc}{VC}{Vector Calculus}
\newacronym[type=main]{ftoc}{FTOC}{Fundamental Theorem of Calculus}


\renewcommand{\acronymname}{Computer Acronyms}

\newacronym{kb}{kb}{KiloBit}
\newacronym{kB}{kB}{KiloByte}


\newacronym[type=acronym2]{svm}{SVM}{Support Vector Machine}

\begin{document}
\section{Sample Section}
\gls{kb}. \gls{kB}. \gls{vc}. \gls{ftoc}. \gls{svm}.

\gls{kb}. \gls{kB}. \gls{vc}. \gls{ftoc}. \gls{svm}.

\printglossaries
\end{document}
Bug fix diff:
229a230,233
> # (HS) changes fix for 3 character extension limit
> my ($basename,$extension) = ($name =~ m/^(.*?)(?:\.([^\.]*))?$/);
> # (HS) end of changes fix for 3 character extension limit
> 
232,238c236,244
< if (length($ARGV[0]) > 3 and substr($ARGV[0],-4,1) eq ".")
< {
<   $name = substr($ARGV[0],0,length($ARGV[0])-4);
< 
<   $ext = substr($ARGV[0],-3,3);
< 
<   if (lc($ext) eq 'tex')
---
> # (HS) changes fix for 3 character extension limit
> #if (length($ARGV[0]) > 3 and substr($ARGV[0],-4,1) eq ".")
> #{
> #  $name = substr($ARGV[0],0,length($ARGV[0])-4);
> #
> #  $ext = substr($ARGV[0],-3,3);
> #
> #  if (lc($ext) eq 'tex')
>   if (length($extension) == 3 and lc($extension) eq 'tex')
245c251,257
< }
---
> #}
> # (HS) end of fix for 3 character extension limit
> 
> # (HS) changes fix for 3 character extension limit
> $ext = $extension;
> $name = $basename;
> # (HS) end of changes fix for 3 character extension limit

Evaluation

Fixed in glossaries v4.08 update. (makeglossaries v2.15)

Add comment.

Watch This Report

If you would like to be notified whenever updates are made to this report, please fill in your email address in the box below and click on "Notify Me of Changes" button. (Please ensure the address is valid.) Your details won't be passed on to third parties in line with this site's Privacy Policy.

If you supply your name, it will be used in the email greeting, which provides a more personal message, otherwise you'll just get a generic greeting. If you have previously supplied your name when signing up for notifications, you don't need to resupply it unless you want to change it.

If you have previously subscribed to notifications for this report, you can unsubscribe by clicking on the "Stop Notification" button.

The "Confirm Bug ID" field helps to protect against spambots. Please enter the bug ID (which you can find at the top of this page).

(Optional.)
E mail:
Confirm E mail:
Confirm Bug ID:

To unsubscribe from all notifications use the notifications page.

Comment

You can append a comment to the report using the form below. Comments are checked first before being added. Any spam or offensive content will be removed first according to this site's Terms of Website Use. Please bear in mind that I develop and maintain free software in my spare time. If you want commerical level support then you can hire a TeX consultant.

The "Confirm Bug ID" field helps to protect against spambots. Please enter the bug ID (which you can find at the top of this page).

(Optional. If provided, it will be shown with the comment.)
Confirm Bug ID:

You can use the following markup:

[pre]Displayed verbatim[/pre]
[tt]monospace text[/tt]
[em]emphasized text[/em]
[b]bold text[/b]
[url]web address[/url]

Ordered list:
[ol]
[li]first item[/li]
[li]second item[/li]
[/ol]

Unordered list:
[ul]
[li]first item[/li]
[li]second item[/li]
[/ul]

Click on the Preview button to preview the message.

Return to list.

© 2019 Dickimaw Books. "Dickimaw", "Dickimaw Books" and the Dickimaw parrot logo are trademarks. The Dickimaw parrot was painted by Magdalene Pritchett.

Terms of Use Privacy Policy Cookies Site Map FAQs