雑多な技術系メモ

自分用のメモ。内容は保証しません。よろしくお願いします。

tex

【tex】正規分布の記号Nをtexで表示する

$\mathcal{N}$ \mathcal{N}

はてなブログのmarkdown編集で、最適化問題を記述するためのコードメモ

$$ \begin{aligned} & \text{maxmize} && m \\\\ & \text{subject to} && \sum\_{a\_1 \in A\_2}\pi(s, a\_1)Q(s, a\_1, a\_2) \leq m && \forall a\_2 \in A\_2 \end{aligned} $$ 以下、出力 $$ \begin{aligned} & \text{maxmize} && m \\ & \text{subject …

シグマの下添字をシグマの真下に書きたい時

tex

結論から言うと\displaystyleを使えばできるようです. 例 $$ \begin{eqnarray} y = {\displaystyle \sum_{x \in X }}x \end{eqnarray} $$ $$ \begin{eqnarray} y = {\displaystyle \sum\_{x \in X }}x \end{eqnarray} $$

beamer で参考文献を表示するときのサンプル

\documentclass[dvipdfmx]{beamer} \usepackage[style=authortitle,backend=bibtex]{biblatex} \addbibresource{yourref.bib} \begin{document} \section{Sample} \begin{frame}{Sample} Sample \footcite{sample} \end{frame} \begin{frame}[allowframebrea…

【tex】 表に斜線をいれる方法

tex

slashbox.styを用いる。 以下のサイトからダウンロードできる https://ctan.org/tex-archive/macros/latex/contrib/slashbox \usepackage{slashbox} \backslashbox{A}{B} 参考 https://www.biwako.shiga-u.ac.jp/sensei/kumazawa/tex/slashbox.html

texで目次をいれる

tex

サンプルコード \begin{document} \tableofcontents % 目次の表示 \section{}

texでメモするときに使えるライブラリTodonotesのダウンロード

tex

以下のサイトからzip のダウンロード https://ctan.org/pkg/todonotes ダウンロードしたzipを解凍して、以下のコマンドを実行 latex todonotes.ins 生成されてtodonotes.styを読み込んで使う

【tex】texの数式関連メモ

tex

記号関連 ドイツ文字など 括弧関連 なぜなら 等号関連 集合関連 参考 max 比例 定義 参考 記号関連 入力 出力 メモ \widetilde{a} $\widetilde{a}$ \bar{a} $\bar{a}$ \tilde{a} $\tilde{a}$ \because $\because$ なぜなら ドイツ文字など https://phasetr.c…

windows10にtexをインストールする方法

以下インストール手順 1 以下のサイトから「install-tl-windows.exe」をクリックし、ダウンロード Installing TeX Live over the Internet - TeX Users Group 2 あとはインストーラを起動し特に希望がなければnextを押し続ければok ただし、2時間程度かかる…

mathjaxでマイナスがうまく表示されない時の対処法

問題 数式を書くときに引っかかった。 以下のコマンドがうまく動かなかった \begin{equation} y\_{ij} = \sum^{m-1}\_{s=0}\sum\^{n-1}\_{t=0} w\^{k}\_{st} x\_{(i+s)(j+t)} + b\^k \end{equation} マイナス(-)がうまく反応していないようだったので、以下…

texで数式や参考文献が参照できなかった

tex

問題 \citeなどがうまくいかなかい。参照したように書いても??になってしまったり 対処法 完全に私のミス。 platexを実行した際に出力される.auxファイルを削除していた。 .auxファイルが参考文献や数式を参照する際に必要になるらしい。 参考 cns-guide.sfc…