View source: R/vertical_style.R
| vertical_style | R Documentation |
This function facilitates construction of a complete style set for vertically typeset text, following traditional Japanese typesetting conventions (tategaki): text flows in top-to-bottom columns, headings are centered with space to either side, emphasis is given with emphasis marks (kenten) rather than italics, unordered lists use '・' bullets, ordered lists use kanji numerals (一、二、…), and code blocks are set horizontally (yokogaki) as is customary in Japanese print.
vertical_style(
direction = c("ttb", "ttb-ltr"),
base_size = 12,
body_font = "",
header_font = "",
code_font = "mono",
strong_font = NULL,
emphasis = NULL,
...
)
direction |
The writing direction: |
base_size |
The base font size for the text. All other sizing is based on this |
body_font |
The font family to use for body text |
header_font |
The font family to use for headers |
code_font |
The font family to use for code and code block text |
strong_font |
The font family to use for strong ( |
emphasis |
The emphasis mark (kenten) used for |
... |
Arguments passed on to
|
A style set object
vertical_style(base_size = 16, body_font = "Hiragino Mincho ProN")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.