feat: initial commit

This commit is contained in:
johannes committed 2026-07-26 11:42:17 +02:00
commit b802ff49ab
454 files changed
+52429

No files matched your search

+58
View File
@@ -0,0 +1,58 @@
---
sidebar_position: 1
---
# Pdfpc
[pdfpc](https://pdfpc.github.io/) is a "Presenter Console with multi-monitor support for PDF files." This means you can use it to display slides in the form of PDF pages and it comes with some known excellent features, much like PowerPoint.
pdfpc has a JSON-formatted `.pdfpc` file that can provide additional information for PDF slides. While you can manually write this file, you can also manage it through Touying.
## Adding Metadata
Touying remains consistent with [Polylux](https://polylux.dev/book/external/pdfpc.html) to avoid conflicts between APIs.
For example, you can add notes using `#pdfpc.speaker-note("This is a note that only the speaker will see.")`.
## Pdfpc Configuration
To add pdfpc configurations, you can use
```typst
#pdfpc.config(
duration-minutes: 30,
start-time: datetime(hour: 14, minute: 10, second: 0),
end-time: datetime(hour: 14, minute: 40, second: 0),
last-minutes: 5,
note-font-size: 12,
disable-markdown: false,
default-transition: (
type: "push",
duration-seconds: 2,
angle: ltr,
alignment: "vertical",
direction: "inward",
),
)
```
Add the corresponding configurations. Refer to [Polylux](https://polylux.dev/book/external/pdfpc.html) for specific configuration details.
## Exporting .pdfpc File
Assuming your document is `./example.typ`, you can export the `.pdfpc` file directly using:
```sh
typst query --root . ./example.typ --field value --one "<pdfpc-file>" > ./example.pdfpc
```
With the compatibility of Touying and Polylux, you can make Polylux also support direct export by adding the following code:
```typst
#import "@preview/touying:0.6.1"
#context touying.pdfpc.pdfpc-file(here())
```
+46
View File
@@ -0,0 +1,46 @@
---
sidebar_position: 2
---
# Pympress
[Pympress](https://github.com/Cimbali/pympress) is a PDF presentation tool designed for dual-screen setups such as presentations and public talks. Highly configurable, fully-featured, and portable
## Speaker Notes
```typst
#import "@preview/touying:0.6.1": *
#import themes.university: *
#show: university-theme.with(
aspect-ratio: "16-9",
config-common(show-notes-on-second-screen: right),
)
= Animation
== Simple Animation
We can use `#pause` to #pause display something later.
#pause
Just like this.
#meanwhile
Meanwhile, #pause we can also use `#meanwhile` to #pause display other content synchronously.
#speaker-note[
+ This is a speaker note.
+ You won't see it unless you use `config-common(show-notes-on-second-screen: right)`
]
```
![image](https://github.com/touying-typ/touying/assets/34951714/b43c7f99-c5f9-4084-aa70-c1561e8aafee)
Then we can use the pympress to show it.
![image](https://github.com/touying-typ/touying/assets/34951714/afbe17cb-46d4-4507-90e8-959c53de95d5)
@@ -0,0 +1,15 @@
---
sidebar_position: 3
---
# Typst Preview in Tinymist
The Tinymist extension for VS Code provides an excellent slide mode, allowing us to preview and present slides.
Press `Ctrl/Cmd + Shift + P` and type `Typst Preview: Preview current file in slide mode` to open the preview in slide mode.
Press `Ctrl/Cmd + Shift + P` and type `Typst Preview: Preview current file in browser and slide mode` to open the slide mode in the browser.
Now, you can press keys like `F11` to enter fullscreen mode in the browser, making it suitable for slide presentations.
Since Typst Preview is based on SVG, it can play GIF animations, which is very helpful for dynamic slides.