LoginSignup
1
4

More than 5 years have passed since last update.

Latexitのプリアンブルに書いておくと便利なこと

Last updated at Posted at 2017-08-30

Latexitを使えば簡単に数式の画像ができる。パワポに数式貼りたい時など便利。

プリアンブルには下記を記入しておくと何かと捗る。
```math
%\documentclass[10pt]{article}
\documentclass[platex, a4paper]{jsarticle}
\usepackage[usenames]{color} %used for font color
\usepackage{amssymb} %maths
\usepackage{amsmath} %maths
\usepackage[utf8]{inputenc} %useful to type directly diacritic characters

\usepackage{commath}
\usepackage[english]{babel} % English language/hyphenation
\usepackage{amssymb,amsfonts,amsthm,bm}
\usepackage{booktabs}

\DeclareMathAlphabet{\mathpzc}{OT1}{pzc}{m}{it}

\newcommand{\code}[1]{\lstinline[basicstyle=\ttfamily\color{green!40!black}]|#1|}
\newcommand{\units}[1] {:\text{#1}}%
\newcommand{\SN}{S$_N$}
\newcommand{\cyclus}{\textsc{Cyclus}\xspace}
\newcommand{\Cyclus}{\cyclus}
\newcommand{\citeme}{\textcolor{red}{CITE}\xspace}
\newcommand{\cycpp}{\code{cycpp}\xspace}
\newcommand{\TODO}[1] {{\color{red}\textbf{TODO: #1}}}%

\newcommand{\comment}[1]{{\color{green}\textbf{#1}}}

\newcommand{\E}{\mathbb{E}}
\newcommand{\GP}{\mathpzc{GP}}
\newcommand{\N}{\mathbb{N}}
\newcommand{\LWR}{\mathrm{LWR}}
\newcommand{\FR}{\mathrm{FR}}
\newcommand{\Total}{\mathrm{Total}}
\newcommand{\argmax}{\mathop{\rm argmax}\limits}
\newcommand{\argmin}{\mathop{\rm argmin}\limits}
\newcommand{\CYCLUS}{\mathrm{Cyclus}}
\newcommand{\DYMOND}{\mathrm{DYMOND}}
\newcommand{\I}{\mathbf{I}}
\newcommand{\K}{\mathbf{K}}
\newcommand{\stochastic}{\texttt{`stochastic'}\xspace}
\newcommand{\innerprod}{\texttt{`inner-prod'}\xspace}
\newcommand{\allflag}{\texttt{`all'}\xspace}

\global\long\def\T#1{#1^{\top}}
```

References

1
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
4