mirror of
https://github.com/typst/typst
synced 2025-05-14 04:56:26 +08:00
Drop iso-
prefix for A papers
This commit is contained in:
parent
b42ecbd6a6
commit
adf52a873f
@ -92,7 +92,7 @@ impl PageStyle {
|
|||||||
|
|
||||||
impl Default for PageStyle {
|
impl Default for PageStyle {
|
||||||
fn default() -> Self {
|
fn default() -> Self {
|
||||||
let paper = Paper::ISO_A4;
|
let paper = Paper::A4;
|
||||||
Self {
|
Self {
|
||||||
class: paper.class(),
|
class: paper.class(),
|
||||||
size: paper.size(),
|
size: paper.size(),
|
||||||
|
@ -87,18 +87,18 @@ macro_rules! papers {
|
|||||||
papers! {
|
papers! {
|
||||||
// ---------------------------------------------------------------------- //
|
// ---------------------------------------------------------------------- //
|
||||||
// ISO 216 A Series
|
// ISO 216 A Series
|
||||||
(ISO_A0: Base, 841.0, 1189.0, "iso-a0")
|
(A0: Base, 841.0, 1189.0, "a0")
|
||||||
(ISO_A1: Base, 594.0, 841.0, "iso-a1")
|
(A1: Base, 594.0, 841.0, "a1")
|
||||||
(ISO_A2: Base, 420.0, 594.0, "iso-a2")
|
(A2: Base, 420.0, 594.0, "a2")
|
||||||
(ISO_A3: Base, 297.0, 420.0, "iso-a3")
|
(A3: Base, 297.0, 420.0, "a3")
|
||||||
(ISO_A4: Base, 210.0, 297.0, "iso-a4")
|
(A4: Base, 210.0, 297.0, "a4")
|
||||||
(ISO_A5: Base, 148.0, 210.0, "iso-a5")
|
(A5: Base, 148.0, 210.0, "a5")
|
||||||
(ISO_A6: Book, 105.0, 148.0, "iso-a6")
|
(A6: Book, 105.0, 148.0, "a6")
|
||||||
(ISO_A7: Base, 74.0, 105.0, "iso-a7")
|
(A7: Base, 74.0, 105.0, "a7")
|
||||||
(ISO_A8: Base, 52.0, 74.0, "iso-a8")
|
(A8: Base, 52.0, 74.0, "a8")
|
||||||
(ISO_A9: Base, 37.0, 52.0, "iso-a9")
|
(A9: Base, 37.0, 52.0, "a9")
|
||||||
(ISO_A10: Base, 26.0, 37.0, "iso-a10")
|
(A10: Base, 26.0, 37.0, "a10")
|
||||||
(ISO_A11: Base, 18.0, 26.0, "iso-a11")
|
(A11: Base, 18.0, 26.0, "a11")
|
||||||
|
|
||||||
// ISO 216 B Series
|
// ISO 216 B Series
|
||||||
(ISO_B1: Base, 707.0, 1000.0, "iso-b1")
|
(ISO_B1: Base, 707.0, 1000.0, "iso-b1")
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
[#page(margins: 0pt, left: 20pt) Overriden]
|
[#page(margins: 0pt, left: 20pt) Overriden]
|
||||||
|
|
||||||
// Flipped predefined paper.
|
// Flipped predefined paper.
|
||||||
[#page(paper: "iso-a11", flip: true) Flipped A11]
|
[#page(paper: "a11", flip: true) Flipped A11]
|
||||||
|
|
||||||
// Flipped custom page size.
|
// Flipped custom page size.
|
||||||
#page(width: 40pt, height: 120pt)
|
#page(width: 40pt, height: 120pt)
|
||||||
|
@ -11,7 +11,7 @@ A
|
|||||||
#box[
|
#box[
|
||||||
B
|
B
|
||||||
#pagebreak()
|
#pagebreak()
|
||||||
#page("iso-a4")
|
#page("a4")
|
||||||
]
|
]
|
||||||
C
|
C
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user