言語アイコン
翻訳率
21%
言語アイコン
未翻訳

このページはまだ翻訳されていません。原文の内容が表示されています。

highlight
要素関数

Highlights text with a background color.

Example

This is #highlight[important].
Preview

引数

fill
設定可能引数

The color to highlight the text with.

デフォルト値:

rgb("#fffd11a1")

右矢印アイコン
例を表示
This is #highlight(
  fill: blue
)[highlighted with blue].
Preview

stroke
設定可能引数

The highlight's border color. See the rectangle's documentation for more details.

デフォルト値:

(:)

右矢印アイコン
例を表示
This is a #highlight(
  stroke: fuchsia
)[stroked highlighting].
Preview

top-edge
設定可能引数

The top end of the background rectangle.

使用可能な文字列値:
  • ascender

    The font's ascender, which typically exceeds the height of all glyphs.

  • cap-height

    The approximate height of uppercase letters.

  • x-height

    The approximate height of non-ascending lowercase letters.

  • baseline

    The baseline on which the letters rest.

  • bounds

    The top edge of the glyph's bounding box.

デフォルト値:

"ascender"

右矢印アイコン
例を表示
#set highlight(top-edge: "ascender")
#highlight[a] #highlight[aib]

#set highlight(top-edge: "x-height")
#highlight[a] #highlight[aib]
Preview

bottom-edge
設定可能引数

The bottom end of the background rectangle.

使用可能な文字列値:
  • baseline

    The baseline on which the letters rest.

  • descender

    The font's descender, which typically exceeds the depth of all glyphs.

  • bounds

    The bottom edge of the glyph's bounding box.

デフォルト値:

"descender"

右矢印アイコン
例を表示
#set highlight(bottom-edge: "descender")
#highlight[a] #highlight[ap]

#set highlight(bottom-edge: "baseline")
#highlight[a] #highlight[ap]
Preview

extent
設定可能引数

The amount by which to extend the background to the sides beyond (or within if negative) the content.

デフォルト値:

0pt

右矢印アイコン
例を表示
A long #highlight(extent: 4pt)[background].
Preview

radius
設定可能引数

How much to round the highlight's corners. See the rectangle's documentation for more details.

デフォルト値:

(:)

右矢印アイコン
例を表示
Listen #highlight(
  radius: 5pt, extent: 2pt
)[carefully], it will be on the test.
Preview

body
必須引数
位置引数

The content that should be highlighted.