summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/glossaries/test-entries/example-glossaries-url.tex
blob: ee82b7d2f7b3895c4a976db24d81d5c875a73813 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
 % This file is part of the glossaries bundle
 % These are test glossary entries with URLs stored in
 % the user1 field.

\newglossaryentry{aenean-url}{name={aenean},
 description={adipiscing auctor est},
 user1={http://uk.tug.org/}}

\newglossaryentry{morbi-url}{name={morbi},
 description={quam arcu, malesuada sed, volutpat et, elementum sit
amet, libero},
 user1={http://www.ctan.org/}}

\newglossaryentry{duis-url}{name={duis},
 description={mattis},
 user1={http://www.tug.org/}}

 % Now try an active character
\newglossaryentry{sed-url}{name={sed},
 description={cursus lectus quis odio (uses
\texttt{\string\protect\string~})},
 user1={http://theoval.cmp.uea.ac.uk/\protect~nlct/}}

\newglossaryentry{sed2-url}{name={sed},
 description={cursus lectus quis odio (uses
\texttt{\string\string\string~})},
 user1={http://theoval.cmp.uea.ac.uk/\string~nlct/}}

\newglossaryentry{sed3-url}{name={sed},
 description={cursus lectus quis odio (uses
\texttt{\string\glstildechar})},
 user1={http://theoval.cmp.uea.ac.uk/\glstildechar nlct/}}

 % How do we deal with a percent character?

 % Temporarily change the category code

\catcode`\%=12
\newglossaryentry{phasellus-url}{name={phasellus},
 description={arcu (catcode change)},
 user1=http://theoval.cmp.uea.ac.uk/%7Enlct
}
\catcode`\%=14

 % Use \%

\newglossaryentry{phasellus2-url}{name={phasellus},
 description={arcu (uses \texttt{\string\%})},
 user1=http://theoval.cmp.uea.ac.uk/\%7Enlct
}

 % Use \glspercentchar

\newglossaryentry{phasellus3-url}{name={phasellus},
 description={arcu  (uses
 \texttt{\string\glspercentchar})},
 user1=http://theoval.cmp.uea.ac.uk/\glspercentchar 7Enlct
}