pdf_document2_ja: 'rmarkdown' + 'bookdown'...

Description Usage Arguments Details Value See Also

Description

bookdown::pdf_book wrapper format for Japanese typesetting with XeLaTeX or LuaLaTeX /bookdown で PDF文書をビルドする場合, 日本語を適切に表示するためにいろいろ必要だった調整を済ませたフォーマット.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
pdf_document2_ja(
  toc = FALSE,
  toc_unnumbered = TRUE,
  toc_depth = 3,
  toc_bib = FALSE,
  toc_appendix = FALSE,
  number_sections = TRUE,
  fig_align = "center",
  fig_caption = TRUE,
  fig_crop = TRUE,
  fig_height = 4.5,
  fig_width = 6.5,
  dev = "cairo_pdf",
  dev_args = NULL,
  out_width = "100%",
  out_height = "100%",
  out_extra = "keepaspectratio",
  df_print = "default",
  quote_footer = NULL,
  highlight = "default",
  highlight_bw = FALSE,
  code_rownumber = TRUE,
  code_softwrapped = TRUE,
  block_style = c("default", "kframe", "tcolorbox"),
  tombow = FALSE,
  add_folio = FALSE,
  template = "default",
  keep_tex = TRUE,
  keep_md = TRUE,
  latex_engine = c("xelatex", "lualatex", "tectonic"),
  citation_package = "biblatex",
  citation_options = "default",
  latexmk_emulation = !citation_package == "natbib",
  extract_media = FALSE,
  includes = NULL,
  md_extensions = NULL,
  output_extensions = NULL,
  pandoc_args = NULL,
  extra_dependencies = NULL,
  ...
)

Arguments

toc

See rmarkdown::pdf_document, or the documentation of the base_format function.

toc_unnumbered

Whether to add unnumberred headers to the table of contents.

toc_bib

Whether to add the bibliography section to the table of contents.

toc_appendix

Whether to add the appendix to the table of contents.

number_sections

See rmarkdown::pdf_document, or the documentation of the base_format function.

fig_caption

See rmarkdown::pdf_document, or the documentation of the base_format function.

quote_footer

If a character vector of length 2 and the quote footer starts with three dashes (---), quote_footer[1] will be prepended to the footer, and quote_footer[2] will be appended; if NULL, the quote footer will not be processed.

highlight_bw

Whether to convert colors for syntax highlighting to black-and-white (grayscale).

code_rownumber

logical. コードセルに行番号を表示するかどうか.

block_style

character. block/block2 チャンクや Fenced Div. 用のスタイル定義. default, kframe, tcolorbox に対応. defaultkframe と同じ. YAML メタデータに block-style: tcolorbox, kframe: true などと書くこともできる. awesomebox.sty にも近日対応予定.

tombow

logical. 製本時に必要なトンボ (trim markers) を付けるかどうか. トンボは gentombow.sty で作成される.

add_folio

logical. 製本時に全ページにノンブルが必要な場合があるらしいので全ページに表示したい時に.

citation_options

character. citation_package のオプション.

latexmk_emulation

logical. パッケージオプション tinytex.latexmk.emulation に連動する. デフォルトでは, 文献引用エンジンを natbib にしたときのみ FALSE, それ以外は TRUE. これは tinytex が (u)pBibTeX に対応していないため. どうしても BibTeX を使いたい場合以外は操作する必要のない不要なオプションですが, 日本語を含む文書を作成する限りそのような場面はないと思われます.

extract_media

logical. markdown 構文の画像貼り付けに URL が使用されていた場合, ダウンロードするかどうか. Pandoc の --extract-media . に対応. TODO: 現時点では TRUE にすると余計な画像ファイルが生成される副作用があります. これは rmarkdown にもある不具合です.

pandoc_args

See rmarkdown::pdf_document, or the documentation of the base_format function.

...

Other arguments to be passed to base_format.

code_softwrap

logical チャンク内のコードを自動折り返しするかどうか. YAML メタデータ code-softwrapped でも可.

Details

bookdown packages's pdf_document2 format for Japanese typesetting with XeLaTeX/LuaLaTeX

基本的に YAML フロントマター (+ _ouput.yml) や knitr チャンクオプションで設定できることをデフォルト値として埋め込んだだけ. index.Rmd

Value

rmarkdown_output_format

See Also

Other pdf formats: beamer_presentation_ja(), pdf_book_ja_r(), pdf_book_ja()


Gedevan-Aleksizde/rmdja documentation built on Sept. 28, 2021, 2:49 a.m.