###### tags: `markdown editing` # MARP 投影片製作 ## marp 設定 ``` --- marp: true paginate: true headingDivider: [1, 2, 3] footer: 'footer' theme: default --- <style> .columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; } </style> ``` ## Syntax [Image Syntax](https://marpit.marp.app/image-syntax?id=resizing-image) ## 使用 marp cli 匯出成 PDF 檔 ``` npx @marp-team/marp-cli@latest <filename.md> --pdf --pdf-outlines --allow-local-files --pdf-outlines.pages=false ``` - 輸出成 pdf 格式 `--pdf` - 建立 pdf 的大綱 `--pdf-outline` - 大綱中不使用頁數 `--pdf-outlines.pages=false` - 允許存取 local files, 如圖片檔 `--allow-local-files` <img style="width:60%" src="https://hackmd.io/_uploads/r1cFCGtVn.png" /> 參考資料: https://github.com/marp-team/marp-cli
×
Sign in
Email
Password
Forgot password
or
Sign in via Google
Sign in via Facebook
Sign in via X(Twitter)
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
Continue with a different method
New to HackMD?
Sign up
By signing in, you agree to our
terms of service
.