Skip to content

Commit

Permalink
Migrate to 0.4.1 version
Browse files Browse the repository at this point in the history
  • Loading branch information
andres-gimenez committed Nov 19, 2024
1 parent f1fcf8e commit fe9d810
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 16 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ To use this package, simply add the following code to your document:
#### Source:

```typ
#import "@preview/g-exam:0.4.0": *
#import "@preview/g-exam:0.4.1": *
#show: exam.with(
school: (
Expand Down Expand Up @@ -59,6 +59,10 @@ To use this package, simply add the following code to your document:

## Changelog

### v0.4.1
- Fix student data.
- Fix Indenting subquestion.

### v0.4.0
- Change g-exam for exam.
- Change g-question and g-subquestion for question and subquestion.
Expand Down
2 changes: 1 addition & 1 deletion docs-shiroa/g-exam-doc/examples/exam-big-image.doc.typ
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#import "@preview/g-exam:0.4.0": *
#import "@preview/g-exam:0.4.1": *

#show: exam.with(
author: (
Expand Down
2 changes: 1 addition & 1 deletion docs-shiroa/g-exam-doc/introduction.typ
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ solutions, watermark with information about the exam model and teacher.

```typ
#import "@preview/g-exam:0.4.0": *
#import "@preview/g-exam:0.4.1": *
#show: exam.with(
school: (
Expand Down
6 changes: 3 additions & 3 deletions docs-shiroa/g-exam-doc/latexmit/latexmit.typ
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Examples of LaTex Mit exam template.


// <!-- {% highlight typ %}
// #import "@preview/g-exam:0.4.0": *
// #import "@preview/g-exam:0.4.1": *

// #show: exam.with(
// author: (
Expand All @@ -26,7 +26,7 @@ Examples of LaTex Mit exam template.
// {% endhighlight %} -->

// ```python
// #import "@preview/g-exam:0.4.0": *
// #import "@preview/g-exam:0.4.1": *

// #show: exam.with(
// author: (
Expand All @@ -37,7 +37,7 @@ Examples of LaTex Mit exam template.
// ```

// ```typst
// #import "@preview/g-exam:0.4.0": *
// #import "@preview/g-exam:0.4.1": *

// #show: exam.with(
// author: (
Expand Down
9 changes: 0 additions & 9 deletions src/auxiliary.typ
Original file line number Diff line number Diff line change
Expand Up @@ -61,28 +61,19 @@
assert(group-value in (none, true, false, "first-page", "all-pages", "odd-pages"), message: "Invalid group-value value in show-student-data")
assert(date-value in (none, true, false, "first-page", "all-pages", "odd-pages"), message: "Invalid date-value value in show-student-data")

// [#family-name-value - #page \ ]
// if page == "first" or page == "pair" {
// [si \ ]
// }

if family-name-value == false or (family-name-value == "first-page" and page != "first") or (family-name-value == "odd-pages" and not(page == "first" or page == "odd")) {
// [2-a #family-name-value - #page \ ]
family-label = []
}

if give-name-value == false or (give-name-value == "first-page" and page != "first") or (give-name-value == "odd-pages" and not(page == "first" or page == "odd")) {
// [2-b #give-name-value - #page \ ]
give-label = []
}

if group-value == false or (group-value == "first-page" and page != "first") or (group-value == "odd-pages" and not(page == "first" or page == "odd")) {
// [2-c #group-value - #page \ ]
group-label = []
}

if date-value == false or (date-value == "first-page" and page != "first") or (date-value == "odd-pages" and not(page == "first" or page == "odd")) {
// [2-d #date-value - #page \ ]
date-label = []
}
}
Expand Down
2 changes: 1 addition & 1 deletion template/1er exam.typ
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#import "@preview/g-exam:0.4.0": *
#import "@preview/g-exam:0.4.1": *

#show: exam.with(
school: (
Expand Down

0 comments on commit fe9d810

Please sign in to comment.