気を散らすノート

色々と散った気をまとめておくところ.論文読んだり自分で遊んだりする.たぶん.

LuaTeX-ja + beamer 使ってて今後も絶対調べ直すことのメモ

適宜更新の予定.

まず読んでおくの

日本語・フォント関連

ゴシック体に

  • \renewcommand{\kanjifamilydefault}{\gtdefault}

ギリシャ文字などを欧文フォントで

  • \ltjsetparameter{jacharrange={-2,-3}} (ドキュメントに記載)

    標準では,LuaTEX-ja はギリシャ文字キリル文字和文フォントを使って組む.ギリシャ語などを本格的に組むなどこの状況が望ましくない場合,プリアンブルに … を入れると上記種類の文字は欧文フォントを用いて組まれるようになる

Morisawa Biz UD を使う

ちなみに個人的に Fira Sans和文+beamer では相性が良い気がしているので

\setsansfont[BoldFont={Fira Sans SemiBold}, ItalicFont={Fira Sans BookItalic}]{Fira Sans Book} としている

装飾など

  • 色の名前をいい感じに使いたい→ beamer の option として xcolor={svgnames}.
  • 下線→ ulem

Beamer

セクションはじめに table of contents

  • \AtBeginSection[]{\begin{frame}<beamer>\frametitle{Outline}\tableofcontents[currentsection]\end{frame}}

theme によらず block の角をまるく

  • \setbeamertemplate{blocks}[rounded]

texdoc beamer が実は読みやすいのだ.\useoutertheme[hooks]{tree} とかも試すと良い

右下のクリックできるアイコン要らんのだけど

  • \beamertemplatenavigationsymbolsempty

入れ子の itemize が右側に寄りすぎる

URL で改行を許す

  • \hypersetup{breaklinks=true}

ほかリンクの所の枠線なども設定できるから適宜ドキュメント参照

キャプションシンプルでいいよ

  • \setbeamertemplate{caption}{\insertcaption}

Captions for tables in Beamer - TeX - LaTeX Stack Exchange

Antibes とかで,スライドのタイトルは別に全ページに要らないかな…

header footer - How to remove the short title emplacement from ANTIBES theme in beamer - TeX - LaTeX Stack Exchange

enumitem との衝突

Does enumitem conflict with beamer for lists? - TeX - LaTeX Stack Exchange

biblatex

bibliography の冒頭の謎の文書アイコンを消す

\setbeamertemplate{bibliography item}{\insertbiblabel}

printbibliography の仕方

\begin{frame}[c,allowframebreaks]{References}
    \printbibliography[heading=none] % https://tex.stackexchange.com/a/371416/82577
\end{frame}

参考文献の所フォント小さくていい

\AtBeginBibliography{\scriptsize}

おすすめスタイル

\usepackage[style=authoryear,maxnames=2,backref=true,doi=true,url=false,isbn=false,eprint=false,backend=biber]{biblatex}
\newcommand{\mycite}[1]{\textcolor{darkgray}{{\textsuperscript{\tiny[\cite{#1}]}}}}

表・図

表の中で改行

表の中のかっこいい横線など