sample.
\printnoidxglossaries follows: ??
Glossary
sample an example 1
Too late to define an entry with the docdef=restricted setting. (Defini-tions must come before \printglossary.)
New entry just defined: sample2. This will cause an error (or warning with undefaction=warn) in \printnoidxglossaries. This missing entry will cause a missing entry marker ?? at the start of the glossary (before the header).