---
title: p.glossary.entry
description: "## Syntax **p.glossary.entry**(level) level nesting level for the entry, any integer **p.glossary.term**(level) level nesting level for the term, any integer **p.glossary.def** ## Purpose Both *glossentry* and *glossterm* are topics, so they have nesting levels as topics do. A *glossterm* can…"
url: "https://www.stilo.com/docs/migrate/acronyms-and-glossary/p-glossary-entry/"
updated: "2021-04-29"
category: Annotations / Acronyms and Glossary
tags:
  - Annotations
---

# p.glossary.entry

## Syntax

**p.glossary.entry**(level)

level

nesting level for the entry, any integer

**p.glossary.term**(level)

level

nesting level for the term, any integer

**p.glossary.def**

## Purpose

Both *glossentry* and *glossterm* are topics, so they have nesting levels as topics do. A *glossterm* can have multiple definitions; in such cases, a separate *glossentry* should be made for each definition.

## Use with

Use with a target-filename annotation for those that start a new topic.

*Example:*

Here is a sample glossary with a title:

Glossary - paragraphs
 Hepatitis
 Inflammation of the liver
 X-ray1
 Electromagnetic radiation of short wavelength, able to pass through opaque bodies
 X-ray2
 Picture made by effect of X-rays on photographic plate, especially showing position of
 bones etc. by their greater absorption of the rays
 Yurt
 Mongolian nomads’ circular skin- or felt-covered tent, with collapsible frame

Since the terms and definitions are in different paragraphs, you will need to use the annotations *p.glossary.term()* and *p.glossary.def* to mark up the paragraphs.

Here is what your rules may look like.

[![Rules for paragraph-level glossary terms and definitions](https://www.stilo.com/wp-content/uploads/2021/03/glossary-paragraph-style-rule.png)](https://www.stilo.com/wp-content/uploads/2021/03/glossary-paragraph-style-rule.png)

Your output may look like this. This is one topic, so just one of the term/defintion pairs.

```
<glossentry>
  <glossterm>Hepatitis</glossterm>
  <glossdef>
    <p>Inflammation of the liver</p>
  </glossdef>
</glossentry>
```
