Latest news 2019-11-04: The giveaway of two signed copies of “Quack, quack, quack. Give my hat back!” has closed and the winning entrants have been selected. Thank you to everyone who took part.

Feature Request Tracker

ID26
StatusOpen
Categoryglossaries
Summarycreate link, but no link target by \gls macros

Report

I have the problem with dual entries (p 106 in manual) but it may be a feature in other places, too. I have reverences from the list of acroyms to glossary and vice versa. These appear in the numberlist, which is not very clever. It is possible to kill the hyper feature for a \gls macro completely, but ist is not possible to shut down one of the two aspects (for my problem, the second): * creating a link to a glossary entry and * being a link target and my page number is appearing in the number list in the glossary I think it would be very neat to being able to define \gls[hyper=true, innumberlist=false]{OMG} Or even make this the standard whilst being in the \begin{theglossary} environment

Stefan

Comment from Stefan
Date: 2014-10-10 05:21:55 CDT

after fiddeling around with my example**, I figured out, that it is vital that innumberlist=false is the standard option in \begin{theglossary}, because the targets are placed, even if there are no links in the name-items (name=#4 in glos and #3 in acr)

\newcommand*{\newacroglossentry}[5][]{ %
\newglossaryentry{#2__}{ %
name={#4}, %
text={#3\glsadd{#2}}, %
description={(#2) #5}, %
#1} %
\newacronym[text=#3\glsadd{#2__}]{#2}{#3}{\glsname{#2__}} %
}

\newacroglossentry{N}{N}{a number}{precessor of \glsname[innumberlist=false]{NPO}}
\newacroglossentry{NPO}{N+1}{another number}{successor of \glsname[innumberlist=false]{N}}

** desired link structure is (works despite of the nonumberlist-issue):
first to glos
next to acr

acrdesc to glos (no numberlist item)
acrnumberlist to first and next

glosdesc-usedacr to acr (no numberlist item)
glosdesc-usedglos to glos (no number list item)
glosnumberlist to first and next

Evaluation

It sounds as though you just need to use \glshyperlink, which creates a hyperlink but doesn't add a line to the glossary file. If this is the case, then I can close this as already implemented.

Comment from Stefan
Date: 2016-01-03 14:31:28 CST

Hello,
thanks for watching over my request. I now accidentally found it again after failing to find it while searching.

I helped myself by creating macros using \glshyperlink as you wrote here.

the full code was in the end:

\newcommand*{\newacroglossentry}[5][]{ %
\newglossaryentry{#2__}{ %
name={#4}, %
text={#3\glsadd{#2}}, %
description={(#3) #5}, %
#1} %
\newacronym[text=#3\glsadd{#2__}, #1]{#2}{#3}{\glsname{#2__}} %
}

\newcommand{\glslinkacro}[2][]{%
\glshyperlink[\glsentrydesc{#2}#1]{#2}%
}
\newcommand{\glslinkacroshor}[2][]{%
\glshyperlink[\glsentryname{#2}#1]{#2}%
}
\newcommand{\glslinkgloss}[2][]{%
\glshyperlink[\glsentrytext{#2}#1]{#2}%
}
\newcommand{\glslinkacrogloss}[2][]{%
\glshyperlink[\glsentrydesc{#2}#1]{#2__}%
}
\newcommand{\glslinkacroglossshort}[2][]{%
\glshyperlink[\glsentryname{#2}#1]{#2__}%
}

still, using macros other than \gls is a bit a pain

Comment from Nicola Talbot
Date: 2016-01-05 09:53 GMT

This feature will be added to the pending glossaries-extra package, which is currently only available in the experimental code page.

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 Topic ID" field helps to protect against spambots. Please enter the feature request ID (which you can find at the top of this page).

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

To unsubscribe from all notifications use the notifications page.

Comment

You can append a comment to this 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 Feature Request ID" field helps to protect against spambots. Please enter the feature request ID (which you can find at the top of this page).

(Optional. If provided, it will be shown with the comment.)
Confirm Feature Request 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