mirror of
https://github.com/typst/typst
synced 2025-05-14 04:56:26 +08:00
laurenz review adjustments
This commit is contained in:
parent
ec3c058220
commit
c4d7faf527
@ -63,17 +63,20 @@ use crate::World;
|
|||||||
/// ```
|
/// ```
|
||||||
///
|
///
|
||||||
/// # Styling
|
/// # Styling
|
||||||
///
|
|
||||||
/// By default, the `raw` element uses the `DejaVu Sans Mono` font, available
|
/// By default, the `raw` element uses the `DejaVu Sans Mono` font, available
|
||||||
/// by default in Typst, with a smaller font size of `0.8em` (that is, 80% of
|
/// by default in Typst, with a smaller font size of `0.8em` (that is, 80% of
|
||||||
/// the global font size). You can customize these properties with a show-set
|
/// the global font size). This is because monospace fonts tend to be visually
|
||||||
/// rule:
|
/// larger than non-monospace fonts.
|
||||||
|
///
|
||||||
|
/// You can customize these properties with show-set rules:
|
||||||
///
|
///
|
||||||
/// ````example
|
/// ````example
|
||||||
/// // Switch to Cascadia Code for both inline and block raw.
|
/// // Switch to Cascadia Code for
|
||||||
|
/// // both inline and block raw.
|
||||||
/// #show raw: set text(font: "Cascadia Code")
|
/// #show raw: set text(font: "Cascadia Code")
|
||||||
/// // Make raw blocks 20% larger than normal text,
|
///
|
||||||
/// // while keeping inline raw smaller than text.
|
/// // Make raw blocks 20% larger than their default size.
|
||||||
|
/// // Keep inline raw at the same size.
|
||||||
/// #show raw.where(block: true): set text(1.2em)
|
/// #show raw.where(block: true): set text(1.2em)
|
||||||
///
|
///
|
||||||
/// Now using the `Cascadia Code` font for raw text.
|
/// Now using the `Cascadia Code` font for raw text.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user