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

Bug Tracker

ID116
StatusClosed (Not a Bug)
Categoryglossaries
Version4.21
Interpreterv5.22.1
SummaryGlossary quote not linked after first use

Report

I defined the command `\glsquotation` as you can see in my source code. The command takes the label of a glossary entry and prints the name of the glossary entry and its description. The name should be linked to the glossary and the description shouldn't. It works fine for the first entry but every entry after the first one doesn't link to the glossary. I made links blue so you can see it easily.

Christoph Michelbach

MWE

\documentclass[a4paper,11pt]{report}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[german]{babel}
\usepackage[a4paper, total={6in, 10in}]{geometry}
\usepackage{booktabs}
\usepackage[colorlinks]{hyperref}
\usepackage[acronym,toc]{glossaries}

\title{LaTeX Bug Report Example Document}
\author{Christoph Michelbach}

\hypersetup{
	colorlinks,
	citecolor=black,
	filecolor=black,
	linkcolor=blue,
	urlcolor=black,
	pdftitle={\@title},
	pdfauthor={\@author},
	bookmarks=true
}

\newcommand{\glsquotation}[1]{
	\paragraph{\gls{#1}:} \glsdesc*{#1}.
}


\makeglossaries

\newglossaryentry{Objekt}
{
	name=Objekt,
	plural=Objekte,
	description={Siehe \gls{Datenobjekt}},
}

\newglossaryentry{Datenobjekt}
{
	name=Datenobjekt,
	plural=Datenobjekte,
	description={Repräsentiert Informationen},
}

\newglossaryentry{Subjekt}
{
	name=Subjekt,
	plural=Subjekte,
	description={Benutzer eines Systems oder Objekt, das im Auftrag von Benutzern im System aktiv sein kann (z.B. Prozess, Server, Prozedur)},
}

\newglossaryentry{Autorisierung}
{
	name=Autorisierung,
	plural=Autorisierungen,
	description={Besitzt ein \gls{Subjekt} die Berechtigung, auf ein \gls{Objekt} zuzugreifen, so nennt man das Subjekt für diesen Datenzugriff autorisiert},
}

\newglossaryentry{Authentizitaet}
{
	name=Authentizität,
	plural=Authentizitäten,
	description={Echtheit und Glaubwürdigkeit eines \glslink{Objekt}{Objekts} bzw. \glslink{Subjekt}{Subjekts}, die anhand seiner Identität und seiner charakteristischen Eigenschaften überprüfbar ist},
}

\newglossaryentry{vertraulich}
{
	name=vertraulich,
	description={System ermöglicht keine \glslink{Autorisierung}{unautorisierte} Informationsgewinnung},
}

\newglossaryentry{integer}
{
	name=integer,
	description={Subjekten ist es nicht möglich, Daten \glslink{Autorisierung}{unautorisiert} und unbemerkt zu manipulieren},
}

\newglossaryentry{verfuegbar}
{
	name=verfügbar,
	description={Authentifizierte und \glslink{Autorisierung}{autorisierte} \glspl{Subjekt} werden in der Wahrnehmung ihrer Berechtigungen nicht \glslink{Autorisierung}{unautorisiert} beeinträchtigt},
}

\begin{document}
\maketitle
\tableofcontents

\chapter{Chapter}
\section{Section}
\glsquotation{Authentizitaet}\\

Das klassische Schutzziel-Trio besteht aus Vertraulichkeit, Integrität, und Verfügbarkeit:

\glsquotation{vertraulich}
\glsquotation{integer}
\glsquotation{verfuegbar}


\glsaddallunused
\printglossaries

\end{document}

Evaluation

(I've moved this from makeglossaries to glossaries, since it's related to the package rather than the Perl script.)

The problem is the use of nested links, which the glossaries manual warns against. This is a documented feature rather than a bug. You can't use \glsdesc if the description contains commands like \gls or \glslink. However, there's no need for \glsdesc in this context. Just use \glsentrydesc instead.

\newcommand{\glsquotation}[1]{
        \paragraph{\gls{#1}:} \glsentrydesc{#1}.
}

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