rmarkdownを使ってレンダリングされたPDF文書の表紙を作成したいと思いますが、右揃えに画像cover.png
ページの境界線に対して私のYAMLで、私は現在、そのページを中心にしています。どのように私はそれを右に移動するのですか?r-markdownのページ境界に画像を右揃えするPDF文書
---
title: \vspace{3cm} \fontsize{1.5cm}{2cm}\selectfont Report Title
header-includes:
- \usepackage{titling}
- \pretitle{\begin{center}\includegraphics[width=20cm]{cover.png}\\[\bigskipamount]}
- \posttitle{\end{center}}
- \pagenumbering{gobble}
output:
pdf_document:
latex_engine: xelatex
mainfont: Calibri
editor_options:
chunk_output_type: console
---
答えていただきありがとうございます。しかし、私はタイトルの上の写真が欲しかった。 '\ includegraphics'の前に' \ hspace * {2cm} 'を追加すると、それが完了しました。 – Phil
答えは、画像をタイトルページに右揃えするために使用できる機能の最小限の例でした – Chris