niszetの日記

細かい情報を載せていくブログ

(メモ)R Markdownのhtmlのテンプレートに埋め込まれている変数とか

もう少しあるかも。

html_documentの説明はあれど、テンプレート中にどういう変数が使われているのかってあまり解説がなく、テンプレートのなかを見てみるしかないんですよね。結局、Pandocに変数を渡してあげて、Template側がそれを受け取れれば何でも出来てしまうので、テンプレート次第。

とりあえず見つけたのはこのあたり。男は黙って目視…!ってことで👀grepしていたのでもっとあるかもしれないが。

lang
theme
author-meta
date-meta
title-prefix
pagetitle
header-includes
highlightjs
highlighting-css
code_folding
abstract
source_embed
css
kable-scroll
navbar
body_padding
header_padding
code_menu
source_embed
toc_float
toc_collapsed
toc_smooth_scroll
toc_print
include-before
title
subtitle
author
author.name
author.affiliation
author.email
date
abstract
toc
include-after
mathjax-url

HTMLの方が読み解ければそれでいいんだけどそれはそれでツライところがあるので、動かして確認してみるしかないかな…。

まぁ、WordやPowerPointと違ってテンプレートの中身が読めてわかるのでマシかもしれないけど。