Latest news 2021-09-06: new blog post "Legacy Documents and TeX Live Docker Images".

Bug Tracker

ID 55🔗
Date: 2014-03-14 04:54:38
Status Closed (Fixed)
Category makeglossaries (Perl)
Version 4.06
Summary makeglossaries assumes 3 character extension
OS OS X 10.9.2

Sign in to subscribe to notifications about this report.

Description

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

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

MWE

Download (921B)

%%!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}

Evaluation

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

Comments

0 comments.


Add Comment

Name (optional):

Are you human? Please confirm the bug report ID (which can be found at the top of this page) or login if you have an account.

Comment:

You can use the following markup:

Block:

[pre]Displayed verbatim[/pre]
[quote]block quote[/quote]

In line:

[tt]code[/tt]
[file]file/package/class name[/file]
[em]emphasized text[/em]
[b]bold text[/b]
[url]web address[/url] [sup]superscript[/sup]
[sub]subscript[/sub]

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

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

You can use the Preview button to review your message formatting before submitting.

Page permalink: https://www.dickimaw-books.com/bugtracker.php?key=55