Commit d6e8be5
Changed files (1)
src
contents
posts
src/contents/posts/test.typ
@@ -16,42 +16,96 @@
// ======================================
-== Equations
+#outline()
-Some equations here: $E = m c^2$
+= Equations <eq>
-$ integral_(0)^(+infinity) (ln x) / (x^2 - 1) dif x = 1/2integral_(x > 0) integral_(y>0) (dif x dif y) / ((1+y)(1+x^2 y)) = pi^2 / 4. $
+Some equations here: $E = m c^2$.
-== Plain Text
+$
+ integral_(0)^(+infinity) (ln x) / (x^2 - 1) dif x = 1/2integral_(x > 0) integral_(y>0) (dif x dif y) / ((1+y)(1+x^2 y)) = pi^2 / 4.
+$
-Some random text#footnote[A footnote here.]:
+Above equation employs some tricks from complex analysis.
+
+= Plain Text
+
+Some#footnote[A footnote here.] random#footnote[Another footnote here.] text#footnote[Yet another long footnote here. #lorem(20)]:
#lorem(20)
-== Table
+#lorem(30)
+
+#lorem(15)
+
+= Table
A table here:
-#table(
- columns: 4,
- ..lorem(20).split(" ")
+#figure(
+ table(
+ columns: 4,
+ table.header(..lorem(4).split(" ")),
+ ..lorem(20).split(" "),
+ ),
+ caption: [Test table],
)
-== Code Block
+= Code
A code block here:
-```typ
-#metadata(
- (
- title: "Test page",
- author: "HPCesia",
- desc: "Test Page",
- date: datetime(
- year: 2025,
- month: 2,
- day: 3,
- ),
- )
-)<frontmatter>
+```rust
+fn main() {
+ println!("Hello, World! This is a long message from Typst's code block!");
+}
```
+
+And some inline code: `print("Hello, World!")`.
+
+Maybe you want Typst's special inline code with syntax highlighting: ```rust println!("Hello, World!"); ```
+
+= List/Enumeration
+
+Example of enumeration:
+
+- Item 1
+- Item 2
+- Item 3
+- Long Item 4:
+ #lorem(30)
+
+ #lorem(25)
+- Nested Item 5:
+ - Subitem 1
+ - Subitem 2
+ - Subitem 3
+ - Subsubitem 1
+ - Subsubitem 2
+
+Example of ordered list with specified numbering:
+
+1. Item 1
+2. Item 2
+3. Item 3
+5. Item 4
+
+Example of ordered list:
+
++ Item 1
++ Item 2
++ Item 3
+25. Item 4
++ Item 5
+
+ #lorem(20)
+
+= Term List
+
+/ Ligature: A merged glyph.
+/ HTML: HyperText Markup Language, a standard for structuring web content.
+/ Kerning: A spacing adjustment between two adjacent letters.
+/ Test1: A vary lang first line here. #lorem(50)
+
+ Another paragraph here. #lorem(30)
+/ Test2: A vary lang first line here. #lorem(50)