Skip to content

Added front-matter parameter to #algo(). #30

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
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
4 changes: 4 additions & 0 deletions algo.typ
Original file line number Diff line number Diff line change
Expand Up @@ -655,6 +655,8 @@
// body: Algorithm content.
// header: Algorithm header. Overrides title and parameters.
// title: Algorithm title. Ignored if header is not none.
// front-matter: Content to appear after the header but before the
// algorithm body, above the line numbers.
// Parameters: Array of parameters. Ignored if header is not none.
// line-numbers: Whether to have line numbers.
// strong-keywords: Whether to have bold keywords.
Expand Down Expand Up @@ -684,6 +686,7 @@
header: none,
title: none,
parameters: (),
front-matter: none,
line-numbers: true,
strong-keywords: true,
keywords: _algo-default-keywords,
Expand Down Expand Up @@ -751,6 +754,7 @@
#set align(start + top)
#algo-header
#v(weak: true, row-gutter)
#front-matter
#align(left, algo-table)
]

Expand Down