mirror of
https://github.com/typst/typst
synced 2025-07-26 13:57:53 +08:00
Update Guide for LaTeX users
This commit is contained in:
parent
c80d8b07c7
commit
7a7be9c71c
@ -83,8 +83,8 @@ pub struct ImageElem {
|
||||
/// [`source`]($image.source) (even then, Typst will try to figure out the
|
||||
/// format automatically, but that's not always possible).
|
||||
///
|
||||
/// Supported formats are `{"png"}`, `{"jpg"}`, `{"gif"}`, `{"svg"}`, `{"pdf"}`,
|
||||
/// `{"webp"}` as well as raw pixel data.
|
||||
/// Supported formats are `{"png"}`, `{"jpg"}`, `{"gif"}`, `{"svg"}`,
|
||||
/// `{"pdf"}`, `{"webp"}` as well as raw pixel data.
|
||||
///
|
||||
/// When providing raw pixel data as the `source`, you must specify a
|
||||
/// dictionary with the following keys as the `format`:
|
||||
|
@ -665,12 +665,3 @@ applicable, contains possible workarounds.
|
||||
[`page` function]($page) which will force a page break. If you just want a few
|
||||
paragraphs to stretch into the margins, then reverting to the old margins, you
|
||||
can use the [`pad` function]($pad) with negative padding.
|
||||
|
||||
- **Include PDFs as images.** In LaTeX, it has become customary to insert vector
|
||||
graphics as PDF or EPS files. Typst supports neither format as an image
|
||||
format, but you can easily convert both into SVG files with [online
|
||||
tools](https://cloudconvert.com/pdf-to-svg) or
|
||||
[Inkscape](https://inkscape.org/). The web app will automatically convert PDF
|
||||
files to SVG files upon uploading them. You can also use the
|
||||
community-provided [`muchpdf` package](https://typst.app/universe/package/muchpdf)
|
||||
to embed PDFs. It internally converts PDFs to SVGs on-the-fly.
|
||||
|
Loading…
x
Reference in New Issue
Block a user