Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ glossarium.pdf
/.gtm/
out/
diff/
.direnv/
.DS_Store
6 changes: 6 additions & 0 deletions advanced-docs/main.typ
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,12 @@ any suggestions or need help, please open an issue on the #link(
"https://github.com/typst-community/glossarium",
)[GitHub repository].

Internal functions (for example all `default-print-*` functions showed in the following) are exported from a module `internal`:

```typ
#import "@preview/glossarium:x.x.x": internal
```

There are effectively two requirements for a user to use `glossarium`:
+ Write a #typc("show: make-glossary") rule to transform all #typc("@key") and
#typc("@key:pl") into #typc("#gls(key)") or
Expand Down
33 changes: 33 additions & 0 deletions glossarium.typ
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,39 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.

#import "themes/default.typ" as internal: (
glossarium_version,
ATTRIBUTES,
default-shorthands,
default-capitalize,
there-are-refs,
is-first,
has-short,
has-long,
has-artshort,
has-artlong,
has-plural,
has-longplural,
has-description,
has-group,
has-sort,
has-styles,
has-custom,
get-attribute,
is-upper,
default-plural,
refrule,
default-print-back-references,
default-print-description,
default-group-break,
default-print-gloss,
default-print-glossary,
default-print-group-heading,
default-print-reference,
default-print-title,
default-group-break,
)

#import "themes/default.typ": (
gls,
agls,
Expand Down
Loading