re-export page template

g-exam Docs

Localization

Languages

You can specify the language in which you want the text to appear. To do this, we use the “languaje” property. It can take the values “en”, “es”, “de”, “fr”, “pt”, “it”, “nl”.

#show: exam.with(
language: "es",
)
#show: exam.with(
language: "es",
)

Customization

To customize an exam text, we can use the localization parameter. For each parameter you can specify the indicated content, for example by indicating text in bold, italics or a different size.

localization: (
grade-table-queston: [Question],
grade-table-total: [Total],
grade-table-points: [Points],
grade-table-grade: [Grade],
point: [point],
points: [points],
page: [page],
page-counter-display: [1 of 1],
family-name: [Surname],
given-name: [Name],
group: [Group],
date: [Date],
draft-label: [Draft],
),
localization: (
grade-table-queston: [Question],
grade-table-total: [Total],
grade-table-points: [Points],
grade-table-grade: [Grade],
point: [point],
points: [points],
page: [page],
page-counter-display: [1 of 1],
family-name: [Surname],
given-name: [Name],
group: [Group],
date: [Date],
draft-label: [Draft],
),

Usefulness of each tag

  • grade-table-queston: Tag question on the grade table.
  • grade-table-total: Tag total on the grade table.
  • grade-table-points: Tag points on the grade table.
  • grade-table-grade: Tag grade on the grade table.
  • point: A label that indicates the punctuation of the singular question.
  • points: A label that indicates the punctuation of the question in the plural.
  • page: Label page in the footer of the exam.
  • page-counter-display: A label that indicates how to indicate the page number in the footer.
  • family-name: Tag family name on the studen information.
  • given-name:Tag given name on the studen information.
  • group: Tag group on the studen information.,
  • date: Tag data on the exam information.,
  • draft-label: Watermark that will appear in draft mode.

Examples

Modify Watermark in Draft Mode

Modify the text of the draft mode watermark.

#show: exam.with(
show-grade-table: true,
draft: "Trial version",
)
#show: exam.with(
show-grade-table: true,
draft: "Trial version",
)

Modify the size of the watermark text in draft mode.

#show: exam.with(
show-grade-table: true,
draft: #text(size: 20pt)[Draft],
)
#show: exam.with(
show-grade-table: true,
draft: #text(size: 20pt)[Draft],
)

Modify the appearance of the student’s information.

If we want the labels of the student’s information to appear in bold.

#show: exam.with(
localization: (
grade-table-queston: [*Question*],
grade-table-total: [*Total*],
grade-table-points: [*Points*],
grade-table-grade: [*Grade*],
),
)
#show: exam.with(
localization: (
grade-table-queston: [*Question*],
grade-table-total: [*Total*],
grade-table-points: [*Points*],
grade-table-grade: [*Grade*],
),
)