Skip to content

Commit

Permalink
Merge pull request #2 from SebastianJL/patch-1
Browse files Browse the repository at this point in the history
Separate #LaTeX definition into two separate definitions.
  • Loading branch information
sitandr authored Nov 21, 2023
2 parents b783ec8 + 2d1fe65 commit 5317915
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions src/snippets/logos.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,28 @@ Using SVG-s images is totally fine. Totally. But if you are lazy and don't want

**Important**: _Typst in text doesn't need a special writing (unlike LaTeX)_. Just write "Typst", maybe "**Typst**", and it is okay.

## LaTeX
## TeX and LaTeX
```typ
#let TeX = {
set text(font: "New Computer Modern", weight: "regular")
box(width: 1.7em, {
[T]
place(top, dx: 0.56em, dy: 0.22em)[E]
place(top, dx: 1.1em)[X]
})
}
#let LaTeX = {
set text(font: "New Computer Modern", weight: "regular")
box(width: 2.55em, {
[L]
place(top, dx: 0.3em, text(size: 0.7em)[A])
place(top, dx: 0.7em)[T]
place(top, dx: 1.26em, dy: 0.22em)[E]
place(top, dx: 1.8em)[X]
place(top, dx: 0.7em)[#TeX]
})
}
I'd like to avoid writing #LaTeX if I can.
Typst is not that hard to learn when you know #TeX and #LaTeX.
```

TODO: math/emptyset

0 comments on commit 5317915

Please sign in to comment.