メモ:rmarkdown
差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン次のリビジョン両方とも次のリビジョン | ||
メモ:rmarkdown [2020/09/28 10:54] – [PDF出力用の基本設定] Wiki Editor | メモ:rmarkdown [2020/12/24 11:39] – [PDF出力用の基本設定] Wiki Editor | ||
---|---|---|---|
行 16: | 行 16: | ||
number_sections: | number_sections: | ||
always_allow_html: | always_allow_html: | ||
- | geometry: no | + | |
+ | # どこかのバージョンアップにて設定項目があるとエラーになるようになったため削除 | ||
+ | #geometry: no | ||
header-includes: | header-includes: | ||
- \usepackage{amsmath, | - \usepackage{amsmath, | ||
- | - \usepackage{mathspec} | + | |
+ | # 別のパッケージと競合して1ページ目に無駄な文字列が出力されるので無効に | ||
+ | #- \usepackage{mathspec} | ||
+ | | ||
- \usepackage{indentfirst} | - \usepackage{indentfirst} | ||
- \parindent = 1em | - \parindent = 1em | ||
行 34: | 行 39: | ||
- \titlespacing{\section}{0pt}{5pt}{3pt} | - \titlespacing{\section}{0pt}{5pt}{3pt} | ||
- \titlespacing{\subsection}{0pt}{5pt}{3pt} | - \titlespacing{\subsection}{0pt}{5pt}{3pt} | ||
- | - | + | |
+ | | ||
+ | - \sectiondot{section} # セクション番号に「.」を追加 | ||
+ | | ||
- \renewcommand{\labelitemi}{■} | - \renewcommand{\labelitemi}{■} | ||
- \renewcommand{\labelitemii}{$\circ$} | - \renewcommand{\labelitemii}{$\circ$} | ||
行 72: | 行 80: | ||
- \newcommand{\blandscape}{\begin{landscape}} | - \newcommand{\blandscape}{\begin{landscape}} | ||
- \newcommand{\elandscape}{\end{landscape}} | - \newcommand{\elandscape}{\end{landscape}} | ||
+ | | ||
+ | # header、footerのカスタマイズ | ||
+ | # 余白を調整するとそのままでは本文文字にページ番号などが被る場合がある | ||
+ | # fancyhdrパッケージで調整する。複雑なヘッダ、フッタも作成できるが、とりあえず余白との兼ね合いを調整するためだけに読み込み | ||
+ | - \usepackage{fancyhdr} | ||
+ | - \pagestyle{fancy} # ページスタイルを適用 | ||
+ | - \lhead{} # ヘッダ左 | ||
+ | - \chead{} # ヘッダ中央 | ||
+ | - \rhead{} # ヘッダ右・・・いずれも空にする | ||
+ | - \renewcommand{\headrulewidth}{0.0pt} # ヘッダの区切り線を消す | ||
+ | - \cfoot{\thepage} # フッタ中央にページ番号記載 | ||
| | ||
documentclass: | documentclass: |
メモ/rmarkdown.txt · 最終更新: 2023/06/22 11:00 by Wiki Editor