Hello,
I wonder whether it is possible to add a glossary entry in the text, which is clickable and leads to the corresponding entry where the glossary is created.
I activated the hyperref-options in the document settings, but there is no link at the position of the entry.
LyX ⇒ Adding a glossary entry with hyperref
NEW: TikZ book now 40% off at Amazon.com for a short time.

- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Re: Adding a glossary entry with hyperref
Can you add a minimal example exported to LaTeX to show us what you currently have? That would be very helpful.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Adding a glossary entry with hyperref
This is a minimal example
In my LyX editor I added a nomenclature entry for "strange word" and the entry is created in the nomenclature. What I want is a hyperlink from where the word is mentioned to the explanation in the nomenclature.
Code: Select all
% Quellcode vorschauen
%% LyX 2.0.8.1 created this file. For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\RequirePackage{fix-cm}
\documentclass[12pt,ngerman]{scrreprt}
\renewcommand{\rmdefault}{cmr}
\renewcommand{\familydefault}{\rmdefault}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[a4paper]{geometry}
\geometry{verbose,bmargin=3cm,lmargin=2.5cm,rmargin=2.5cm,footskip=3cm}
\pagestyle{plain}
\usepackage{babel}
\usepackage{setspace}
\usepackage{nomencl}
% the following is useful when we have the old nomencl.sty package
\providecommand{\printnomenclature}{\printglossary}
\providecommand{\makenomenclature}{\makeglossary}
\makenomenclature
\onehalfspacing
\usepackage[unicode=true,
bookmarks=true,bookmarksnumbered=true,bookmarksopen=false,
breaklinks=false,pdfborder={0 0 1},backref=false,colorlinks=false]
{hyperref}
\hypersetup{pdftitle={title},
pdfauthor={author}}
\makeatletter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Textclass specific LaTeX commands.
\usepackage{enumitem} % customizable list environments
\newlength{\lyxlabelwidth} % auxiliary length
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
\usepackage[utf8]{inputenc}
\usepackage{charter}
\usepackage[scaled=.92]{helvet}
\usepackage{courier}
\usepackage{microtype}
\pagenumbering{roman}
\let\myTOC\tableofcontents
\renewcommand\tableofcontents{%
\myTOC
\clearpage
\pagenumbering{arabic}
}
\makeatother
\begin{document}
\title{Testdocument}
\maketitle
\chapter{A test}
\section{Test}
Here comes a nomenclature entry: strange word\nomenclature{strange word}{explanation of strange word}
\settowidth{\nomlabelwidth}{strange word}
\printnomenclature{}
\end{document}
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Adding a glossary entry with hyperref
Package nomencl is quite old, newer and more powerful alternatives would be package acro and glossaries.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.