document で beamer のような box を使いたい
フォントのあれこれ
好きなフォント
Serif
- \usepackage{mathpazo} : 基本はこれ
- \usepackage{XCharter}\usepackage[notext]{stix2}
- \usepackage{libertinus,libertinust1math}
- \usepackage{boisik} : ブサイク過ぎて逆に捗る
Sans Serif
- \usepackage{helvet} : Helvetica
- \usepackage[default]{lato} : Lato
- \usepackage[defaultsans,scaled=.85]{droidsans}
- \usepackage[scaled=0.95]{newtxsf} : math font
- \usepackage{helvet}\usepackage[default]{lato} : 効果はわからないけど2つを同時に使うのを最も愛用している
Githubとの連携
コンパイルの速度を上げたい
[I]t is only one thing that really makes a difference: Single-Threaded CPU power!
[T]he result roughly is: compilation times scale nearly linear with the CPU clock. It's the fasted Core i7 that makes the run; memory and disk plays only a minor role (given that you provide modest quality and size of both).
To sum up: For a "LaTeX machine" it is the processor and in particularly it's single-core throughput one should look for. However, the latter is not always easy to figure out, as basically all processors nowadays are multi-core and benchmarked and advertised with their multi-core throughput. A good starting point is the PassMark CPU Benchmarks site, which provides a frequently updated report on "Single Thread Performance" for all current IA32e/AMD64 CPUs.
\emph or \textit
If you want to emphasize a word or some text, use \emph. Don't just make the text italic or bold.
If you want to get italic text, use \textit. \emph might have a different effect, a package like ulem might change it to underlining for instance.
alignの無駄なスペースが大きすぎる
2つ目の記事の以下のコマンドを利用するようになった、\begin{document}の前に
\usepackage{etoolbox}
\newcommand{\zerodisplayskips}{%
\setlength{\abovedisplayskip}{0pt}%
\setlength{\belowdisplayskip}{0pt}%
\setlength{\abovedisplayshortskip}{0pt}%
\setlength{\belowdisplayshortskip}{0pt}}
\appto{\normalsize}{\zerodisplayskips}
\appto{\small}{\zerodisplayskips}
\appto{\footnotesize}{\zerodisplayskips}
\headheight is too small (12.0pt): Make it at least 14.49998pt.
以下のコマンドを入れてエラーメッセージ消去
\setlength{\headheight}{14.49998pt}
ファイルの1部だけをインプットしたい
%<*tag> と %</tag> で囲む (最初と最後、*と/が異なる) ことに注意
VS Codeの色をカスタムしたい
https://gist.github.com/Yarakashi-Kikohshi/948720cb69d0baafe71e62ec6cb2cb54
https://github.com/dsrkafuu/vscode-theme-aofuji
blockの空白
\addtobeamertemplate{block begin}{
\vspace{0pt}}{ % space before block
\vspace{-3pt}} % space of above block body
特定の文字列に色を付けたり太字にしたい (VS Code)
"highlight.decorations": { "rangeBehavior": 3 },
"highlight.regexFlags": "gi",
"highlight.regexes": {
"(frame)": [
{
"color": "",
"fontWeight": "bold",
"fontStyle": "",
}
],
"(block)": [
{
"color": "",
"fontWeight": "",
"fontStyle": "italic",
}
],
},
"highlight.maxMatches": 250,
複数行のスライド
item で行間を整わせたい
formatしたい