From 7d853cbea180e0ba635e8d8de11b820d5f9432fe Mon Sep 17 00:00:00 2001 From: Laurenz Date: Fri, 8 Nov 2019 18:33:17 +0100 Subject: [PATCH] =?UTF-8?q?Update=20examples=20due=20to=20new=20syntax=20h?= =?UTF-8?q?ighlighting=20=F0=9F=8C=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/layouting.rs | 2 +- tests/layouts/align.typ | 2 +- tests/layouts/coma.typ | 6 +++--- tests/layouts/pagebreaks.typ | 2 +- tests/layouts/styles.typ | 9 +++------ 5 files changed, 9 insertions(+), 12 deletions(-) diff --git a/tests/layouting.rs b/tests/layouting.rs index 9a41b7907..1a406c8c5 100644 --- a/tests/layouting.rs +++ b/tests/layouting.rs @@ -141,7 +141,7 @@ fn test(name: &str, src: &str) { fn preprocess<'a>(src: &'a str) -> (String, Option) { let include_regex = Regex::new(r"\{include:((.|\.|\-)*)\}").unwrap(); let lorem_regex = Regex::new(r"\{lorem:(\d*)\}").unwrap(); - let size_regex = Regex::new(r"\{(size:(([\d\w]*)\*([\d\w]*)))\}").unwrap(); + let size_regex = Regex::new(r"\{(size:(([\d\w]*)\sx\s([\d\w]*)))\}").unwrap(); let mut size = None; diff --git a/tests/layouts/align.typ b/tests/layouts/align.typ index c971cb41b..49365afc4 100644 --- a/tests/layouts/align.typ +++ b/tests/layouts/align.typ @@ -1,4 +1,4 @@ -{size:150pt*215pt} +{size:150pt x 215pt} // ---------------------------------- // // Without newline in between. diff --git a/tests/layouts/coma.typ b/tests/layouts/coma.typ index 83900e03c..4adabe0de 100644 --- a/tests/layouts/coma.typ +++ b/tests/layouts/coma.typ @@ -1,6 +1,6 @@ -{size:420pt*300pt} +{size:420pt x 300pt} -[box: flow=horizontal][ +[box: flow = horizontal][ *Technical University Berlin* [n] *Faculty II, Institute for Mathematics* [n] Secretary Example [n] @@ -17,7 +17,7 @@ *Alle Antworten sind zu beweisen.* ] -[box: flow=horizontal][ +[box: flow = horizontal][ *1. Aufgabe* [align: right][(1 + 1 + 2 Punkte)] ] diff --git a/tests/layouts/pagebreaks.typ b/tests/layouts/pagebreaks.typ index 3644f6629..6252ecb93 100644 --- a/tests/layouts/pagebreaks.typ +++ b/tests/layouts/pagebreaks.typ @@ -1,4 +1,4 @@ -{size:150pt*200pt} +{size:150pt x 200pt} {lorem:100} [page.break] diff --git a/tests/layouts/styles.typ b/tests/layouts/styles.typ index c76feb217..c718ae180 100644 --- a/tests/layouts/styles.typ +++ b/tests/layouts/styles.typ @@ -1,4 +1,4 @@ -{size:250pt*500pt} +{size:250pt x 500pt} _Emoji:_ Hello World! 🌍 @@ -9,14 +9,11 @@ _Styles with functions:_ This [bold][word] is made bold and [italic][that] itali using the standard library functions `bold` and `italic`! [italic] -Styles can also be changed through [bold] context modification. +Styles can also be changed through context modification. This works basically in the same way as the built-in syntax. _ -This is not italic anymore, but still bold. -[bold] - -This is completely reset. 😀 +This is not italic anymore. 😀 [box][ [italic]