Skip to content

Commit 479de47

Browse files
committed
Bump to v2.0.1
1 parent 0286e65 commit 479de47

File tree

6 files changed

+13
-20
lines changed

6 files changed

+13
-20
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# elsearticle template
22

3-
[![Generic badge](https://img.shields.io/badge/Version-2.1.0-cornflowerblue.svg)]()
3+
[![Generic badge](https://img.shields.io/badge/Version-2.0.1-cornflowerblue.svg)]()
44
[![MIT License](https://img.shields.io/badge/License-MIT-forestgreen)](https://github.com/maucejo/elsearticle/blob/main/LICENSE)
55
[![User Manual](https://img.shields.io/badge/doc-.pdf-mediumpurple)](https://github.com/maucejo/elsearticle/blob/main/docs/manual.pdf)
66

@@ -13,7 +13,7 @@ This section provides the minimal amount of information to get started with the
1313
To use the `elsearticle` template, you need to include the following line at the beginning of your `typ` file:
1414

1515
```typ
16-
#import "@preview/elsearticle:2.0.0": *
16+
#import "@preview/elsearticle:2.0.1": *
1717
```
1818

1919
### Initializing the template

docs/manual.pdf

6 Bytes
Binary file not shown.

docs/manual.typ

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
#show: mantys(
1313
name: "elsearticle.typ",
14-
version: "2.1.0",
14+
version: "2.0.1",
1515
authors: ("Mathieu Aucejo",),
1616

1717
license: "MIT",
@@ -46,7 +46,7 @@ To mimic the look and feel of the original elsarticle.cls, the following fonts m
4646

4747
To use the #package[elsearticle] template, you need to include the following line at the beginning of your `typ` file:
4848
#codesnippet[```typ
49-
#import "@preview/elsearticle:2.0.0": *
49+
#import "@preview/elsearticle:2.0.1": *
5050
```
5151
]
5252

@@ -141,16 +141,6 @@ keywords: ("Keyword 1", "Keyword 2")
141141

142142
To avoid unexpected behaviors, the value of the `numcol` argument is set to 1 by default and restricted to 1 or 2.
143143
]
144-
145-
// #warning-alert[To make the implementation generic, the last line of the template is like:
146-
// #codesnippet[
147-
// ```typc
148-
// show: column(numcol, body)
149-
// ```
150-
// ]
151-
152-
// This means that a page break must be inserted using the #cmd[colbreak] command and not #cmd[pagebreak].
153-
// ]
154144
]
155145

156146
#argument("line-numbering", default: false, types: "bool")[Enable line numbering in the document]

src/els-utils.typ

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,7 @@
1919
#let nonumeq(body) = {
2020
set math.equation(numbering: none)
2121
body
22-
}
22+
}
23+
24+
// pagebreak
25+
#let pagebreak(weak: false) = colbreak(weak: weak)

template/main.typ

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
// #import "@preview/elsearticle:2.0.0": *
2-
#import "../src/elsearticle.typ": *
1+
#import "@preview/elsearticle:2.0.1": *
2+
// #import "../src/elsearticle.typ": *
33

4-
#let abstract = lorem(200)
4+
#let abstract = lorem(250)
55

66
#show: elsearticle.with(
77
title: "Title of the paper",
@@ -17,7 +17,7 @@
1717
abstract: abstract,
1818
keywords: ("keyword 1", "keyword 2"),
1919
format: "review",
20-
numcol: 2,
20+
// numcol: 1,
2121
// line-numbering: true,
2222
)
2323

typst.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "elsearticle"
3-
version = "2.1.0"
3+
version = "2.0.1"
44
authors = ["Mathieu Aucejo"]
55
license = "MIT"
66
description = "Conversion of the LaTeX elsearticle.cls"

0 commit comments

Comments
 (0)