re-export page template

g-exam Docs

Configuration

The template will include a header in the exam, with the information entered in the template. We can indicate a logo of the educational center, a description of the exam, subject, content, academic level, …

#show: exam.with(
author: (
name: "Carl Friedrich Gauss",
email: "matheschool@outlook.es",
watermark: "Teacher: Carl", ),
school: (
name: "Sunrise Secondary School",
logo: read("./logo.png", encoding: none),
),
exam-info: (
academic-period: "Academic year 2023/2024",
academic-level: "1st Secondary Education",
academic-subject: "Mathematics",
number: "2nd Assessment 1st Exam",
content: "Radicals and fractions",
model: "Model A"
),
)
#show: exam.with(
author: (
name: "Carl Friedrich Gauss",
email: "matheschool@outlook.es",
watermark: "Teacher: Carl", ),
school: (
name: "Sunrise Secondary School",
logo: read("./logo.png", encoding: none),
),
exam-info: (
academic-period: "Academic year 2023/2024",
academic-level: "1st Secondary Education",
academic-subject: "Mathematics",
number: "2nd Assessment 1st Exam",
content: "Radicals and fractions",
model: "Model A"
),
)

Question

To enter the questions, use the q-question, followed by the text of the question. You can include the score of the question by entering the parameter point.

#question(points: 2)[Question text.]
#v(1fr)
#question(points: 2)[Question text.]
#v(1fr)

To create sub-questions, it will be done in the same way with the q-subquestion, command, which will be nested to the question asked in the previous line. In the same way, the score of the question can be indicated, in case of indicating a score to the question and the sub-questions, it will be added to the total. Therefore, it is advisable to only indicate the score in one level.

The following example asks a first question, with no sub-questions, with a score of two points and a second question with two sub-questions with a score of 2 points each, which will show that the second question is worth a total of four points in the scorecard.

#import "@preview/g-exam:0.4.4": *
#show: exam.with()
#question(points: 2)[List prime numbers]
#v(1fr)
#question[Complete the following sentences]
#subquestion(points: 2)[Don Quixote was written by ...]
#v(1fr)
#subquestion(points: 2)[The name of the continent we live on is ...]
#v(1fr)
#import "@preview/g-exam:0.4.4": *
#show: exam.with()
#question(points: 2)[List prime numbers]
#v(1fr)
#question[Complete the following sentences]
#subquestion(points: 2)[Don Quixote was written by ...]
#v(1fr)
#subquestion(points: 2)[The name of the continent we live on is ...]
#v(1fr)

Information in the document’s metadata

If a pdf document is generated, the information will be saved in the document. Such as the author’s name, e-mail, watermark, exam information, …

#show: exam.with(
author: (
name: "Leonhard Euler",
email: "matheschool@outlook.es",
watermark: "Teacher: Leonhard", ),
school: (
name: "Sunrise Secondary School",
logo: read("./logo.png", encoding: none),
),
exam-info: (
academic-period: "Academic year 2023/2024",
academic-level: "1st Secondary Education",
academic-subject: "Mathematics",
number: "2nd Assessment 1st Exam",
content: "Radicals and fractions",
model: "Model A"
),
#show: exam.with(
author: (
name: "Leonhard Euler",
email: "matheschool@outlook.es",
watermark: "Teacher: Leonhard", ),
school: (
name: "Sunrise Secondary School",
logo: read("./logo.png", encoding: none),
),
exam-info: (
academic-period: "Academic year 2023/2024",
academic-level: "1st Secondary Education",
academic-subject: "Mathematics",
number: "2nd Assessment 1st Exam",
content: "Radicals and fractions",
model: "Model A"
),

This information can be consulted in the properties of the pdf document.