0
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

LaTeXプリアンブル

Last updated at Posted at 2023-06-06

日本語文章

\RequirePackage{plautopatch}
\documentclass[uplatex,dvipdfmx,a4j,11ptj]{jsarticle} % 10ptj->1r44w, 11ptj->1r38w

% packages
\usepackage[margin=25mm]{geometry}
\usepackage[dvipdfmx]{graphicx}
\usepackage[dvipsnames,svgnames,x11names,dvipdfmx,table,xcdraw]{xcolor}
\usepackage[breakable,skins]{tcolorbox}
\usepackage[expert,deluxe,uplatex]{otf} % font ja
\usepackage{tikz}
\usepackage{scsnowman} %「本質」
\usepackage{amsmath,amssymb,amsthm,bm,mleftright,diffcoeff,stackengine,dsfont} % math packages
\usepackage{mathtools}
\mathtoolsset{showonlyrefs=true} % equation*をしなくても良いように
\usepackage{siunitx} % 単位
\usepackage{url}
\usepackage{hyperref}
\hypersetup{colorlinks=true,citecolor=blue,linkcolor=blue,urlcolor=blue}
\usepackage[nobreak]{cite}
\usepackage{enumitem} % itemize/enumerateの余白調整
\setlist[enumerate]{leftmargin=0.5cm}
\setlist[itemize]{leftmargin=0.5cm}

% fonts
\usepackage[T1]{fontenc}
\usepackage[scaled=0.95]{newpxtext}
\usepackage[scaled=1.0]{newpxmath}
\usepackage[scaled=.95]{helvet}
\usepackage{courier}
\usepackage[noalphabet,unicode,noto-otc]{pxchfon} % https://onl.bz/SuWhidS

% environments
\theoremstyle{definition}
\newtheorem{definition}{定義}\newtheorem*{definition*}{定義}
\newtheorem{theorem}{定理}\newtheorem*{theorem*}{定理}
\newtheorem{proposition}{命題}\newtheorem*{proposition*}{命題}
\newtheorem{lemma}{補題}\newtheorem*{lemma*}{補題}
\newtheorem{corollary}{系}\newtheorem*{corollary*}{系}
\newtheorem{claim}{主張}\newtheorem*{claim*}{主張}
\renewcommand\proofname{\bf{証明}}

日本語スライド

\RequirePackage{plautopatch}
\documentclass[uplatex,dvipdfmx,11pt,aspectratio=43]{beamer}

\usetheme{Madrid}\usecolortheme{seahorse} % default/seahorse
\setbeamercolor{structure}{fg=blue} % teal/cyan/blue/orange
\setbeamertemplate{navigation symbols}{}
\setbeamertemplate{itemize items}{\rule[0.25ex]{1ex}{1ex}}
\setbeamertemplate{itemize subitem}{$\bullet$}
\setbeamertemplate{footline}[frame number]
\setbeamersize{text margin left=11pt,text margin right=11pt}

\usepackage[expert,deluxe,uplatex]{otf}
\usepackage[noalphabet,unicode,noto-otc]{pxchfon}
\renewcommand{\kanjifamilydefault}{\gtdefault}
\usepackage[T1]{fontenc}
\usepackage[default]{lato}
\usepackage[scaled=1.0]{newtxsf}
\usepackage{tikz}
\usepackage{scsnowman} %「本質」
\usepackage{amsmath,amssymb,amsthm,bm,mleftright,diffcoeff,stackengine,dsfont} % math packages
\usepackage{mathtools}
\mathtoolsset{showonlyrefs=true}
\usepackage{siunitx}
\sisetup{detect-all}
\usepackage{url}
\usepackage{hyperref}
\hypersetup{colorlinks=true,citecolor=orange,linkcolor=orange,urlcolor=orange}
\usepackage[nobreak]{cite}

\newenvironment{wideitemize}{\itemize\addtolength{\itemsep}{5.5pt}}{\enditemize}
\newcommand{\iframe}[2]{\begin{frame}{#1}\begin{wideitemize}#2\end{wideitemize}\end{frame}}
\newcommand{\nitem}{\item[]\hspace{-22pt}}
\newcommand{\emptyline}{\vspace{11pt}}

英語文章

\documentclass[pdftex,12pt]{article}

\usepackage[margin=1in]{geometry}
\usepackage[onehalfspacing]{setspace}
\usepackage{XCharter}\usepackage[notext]{stix2}
% \usepackage{libertinus,libertinust1math}

% \usepackage{indentfirst}
\usepackage{amsmath,amssymb,amsthm,bm,mleftright,diffcoeff,stackengine,dsfont}
\usepackage{mathtools}
\mathtoolsset{showonlyrefs=true}
\usepackage{tikz,multirow,array,nicematrix,diagbox}
\usetikzlibrary{intersections,calc,arrows,patterns}
\usepackage{xcolor,hyperref}
\hypersetup{colorlinks=true,citecolor=blue,linkcolor=blue,urlcolor=blue}
\makeatletter\renewcommand\hyper@natlinkbreak[2]{#1}\makeatother % for citation
\usepackage[longnamesfirst]{natbib}
\usepackage{enumitem} % margin of itemize/enumerate
% \setlist[enumerate]{leftmargin=0.2in}
% \setlist[itemize]{leftmargin=0.2in}

\theoremstyle{plain}
\newtheorem{theorem}{Theorem}\newtheorem*{theorem*}{Theorem}
\newtheorem{proposition}{Proposition}\newtheorem*{proposition*}{Proposition}
\newtheorem{lemma}{Lemma}\newtheorem*{lemma*}{Lemma}
\newtheorem{corollary}{Corollary}\newtheorem*{corollary*}{Corollary}
\newtheorem{claim}{Claim}\newtheorem*{claim*}{Claim}
\theoremstyle{definition}
\newtheorem{definition}{Definition}\newtheorem*{definition*}{Definition}

英語スライド

\documentclass[pdftex,12pt,aspectratio=43]{beamer}

\usetheme{Madrid}\usecolortheme{seahorse}
\setbeamercolor{structure}{fg=blue}
\setbeamertemplate{navigation symbols}{}
\setbeamertemplate{itemize items}{\rule[0.25ex]{1ex}{1ex}}
\setbeamertemplate{itemize subitem}{$\bullet$}
\setbeamertemplate{footline}[frame number]
\setbeamersize{text margin left=12pt,text margin right=12pt}

\usepackage[T1]{fontenc}
\usepackage[default]{lato}
\usepackage[scaled=1.0]{newtxsf}
\usepackage{tikz}
\usepackage{scsnowman}
\usepackage{amsmath,amssymb,amsthm,bm,mleftright,diffcoeff,stackengine,dsfont} % math packages
\usepackage{mathtools}
\mathtoolsset{showonlyrefs=true}
\usepackage{siunitx}
\sisetup{detect-all}
\usepackage{url}
\usepackage{hyperref}
\hypersetup{colorlinks=true,citecolor=orange,linkcolor=orange,urlcolor=orange}
\usepackage[nobreak]{cite}

\newenvironment{wideitemize}{\itemize\addtolength{\itemsep}{6pt}}{\enditemize}
\newcommand{\iframe}[2]{\begin{frame}{#1}\begin{wideitemize}#2\end{wideitemize}\end{frame}}
\newcommand{\nitem}{\item[]\hspace{-24pt}}
\newcommand{\emptyline}{\vspace{12pt}}

マクロ

% macros (text)
\newcommand{\red}[1]{\textcolor{red}{#1}}
\newcommand{\blue}[1]{\textcolor{blue}{#1}}
\newcommand{\green}[1]{\textcolor{green}{#1}}
\newcommand{\gray}[1]{\textcolor{gray}{#1}}
\newcommand{\cyan}[1]{\textcolor{cyan}{#1}}
\newcommand{\enhance}[1]{{\gtfamily\sffamily#1}}

% macros (symbol) (with a subscript downward)
\DeclareMathOperator*{\argmax}{arg~max}
\DeclareMathOperator*{\argmin}{arg~min}

% macros (symbol) (with a subscript slanted downward)
\DeclareMathOperator{\RHS}{RHS}
\DeclareMathOperator{\LHS}{LHS}
\DeclareMathOperator{\const}{const}
\DeclareMathOperator{\finite}{finite}
\DeclareMathOperator{\tr}{tr}
\DeclareMathOperator{\Tr}{Tr}
\DeclareMathOperator{\Det}{Det}
\DeclareMathOperator{\rank}{rank}
\DeclareMathOperator{\diag}{diag}
\DeclareMathOperator{\supp}{supp}
\DeclareMathOperator{\Image}{Im}
\DeclareMathOperator{\conv}{conv}
\DeclareMathOperator{\Int}{Int}
\DeclareMathOperator{\Ext}{Ext}
\DeclareMathOperator{\bdry}{\partial}
\DeclareMathOperator{\cl}{cl}
\DeclareMathOperator{\cone}{cone}
\DeclareMathOperator{\ccone}{ccone} % convex cone
\DeclareMathOperator{\E}{E}
\DeclareMathOperator{\Var}{Var}
\DeclareMathOperator{\Cov}{Cov}
\DeclareMathOperator{\match}{\mathbin{\heartsuit}} % a ♡ b
% \DeclareMathOperator{\bR}{\mathbin{R}} % REVIEW: \DMO or \newcommand
% \DeclareMathOperator{\bP}{\mathbin{P}}
% \DeclareMathOperator{\bI}{\mathbin{I}}
\newcommand{\bR}{\mathbin{R}}
\newcommand{\bP}{\mathbin{P}}
\newcommand{\bI}{\mathbin{I}}
% \DeclareMathOperator{\mand}{\mathord{and}} % REVIEW: \DMO and \mathord? https://onl.bz/F78JypE
% \DeclareMathOperator{\mor}{\mathord{or}}
% \DeclareMathOperator{\mst}{\mathord{s.t.}}
% \DeclareMathOperator{\msuchthat}{\mathord{such~that}}
% \DeclareMathOperator{\mforall}{\mathord{for~all}}
% \DeclareMathOperator{\mforsome}{\mathord{for~some}}
\newcommand{\mand}{\text{ and }} % REVIEW: \DMO and \mathord? https://onl.bz/F78JypE
\newcommand{\mor}{\text{ or }}
\newcommand{\mst}{\text{ s.t. }}
\newcommand{\msuchthat}{\text{ such that }}
\newcommand{\mfor}{\text{ for }}
\newcommand{\mforall}{\text{ for all }}
\newcommand{\mforsome}{\text{ for some }}
\newcommand{\miff}{\text{ if and only if }}
\newcommand{\mwhere}{\text{ where }}
\newcommand{\mif}{\text{ if }}
\newcommand{\mwith}{\text{ with }}
\newcommand{\motherwise}{\text{ otherwise}}

% macros (symbol) (renew)
\renewcommand{\succeq}{\succsim}
\renewcommand{\preceq}{\precsim}
\makeatletter
    \newcommand{\notsuccsim}{\mathrel{\mathpalette\varn@t\succsim}}
    \newcommand{\notprecsim}{\mathrel{\mathpalette\varn@t\precsim}}
    \newcommand{\notsucceq}{\mathrel{\mathpalette\varn@t\succsim}}
    \newcommand{\notpreceq}{\mathrel{\mathpalette\varn@t\precsim}}
    \newcommand{\varn@t}[2]{\vphantom{/{#2}}\ooalign{\hfil$\m@th#1/\mkern2mu$\cr\hfil$\m@th#1#2$\hfil\cr}}
\makeatother
\renewcommand{\subset}{\subseteq}
\renewcommand{\supset}{\supseteq}
\newcommand{\toto}{\rightrightarrows}

% macros (function)
\newcommand{\since}[1]{\quad \mleft( \text{#1} \mright)} % x = 10 (from above)
\newcommand{\relmiddle}[1]{\mathrel{}\middle#1\mathrel{}} % https://onl.bz/34a4Nru
\newcommand{\paren}[1]{\mleft\lparen#1\mright\rparen} % (x)
\newcommand{\parenc}[2]{\mleft(#1\relmiddle|#2\mright)} % (x|y)
\renewcommand{\parenc}[2]{\left(#1 \mid #2\right)} % (x|y)
\newcommand{\set}[1]{\left\{ #1 \right\}} % {x}
\newcommand{\setc}[2]{\left\{ #1 \relmiddle| #2 \right\}} % {x|x<1}
\renewcommand{\setc}[2]{\left\{ #1 : #2 \right\}} % {x:x<1}
\newcommand{\sbra}[1]{\mleft\lbrack#1\mright\rbrack} % [x]
\newcommand{\sbrac}[2]{\mleft[#1\relmiddle|#2\mright]} % [x|y]
\newcommand{\abs}[1]{\left\lvert#1\right\rvert} % |x|
\newcommand{\card}[1]{\left\lvert#1\right\rvert} % |x|
\newcommand{\norm}[1]{\left\lVert#1\right\rVert} % ||x||
\newcommand{\EV}[1]{\E\sbra{#1}} % E[X+Y]
\newcommand{\EVc}[2]{\E\mleft[#1\relmiddle|#2\mright]} % E[X+Y|Z]
\newcommand{\Prob}[1]{\Pr\paren{#1}} % Pr(x)
\newcommand{\Probc}[2]{\Pr\mleft(#1\relmiddle|#2\mright)} % Pr(x|y)
\newcommand{\ubar}[1]{\stackunder[1.2pt]{$#1$}{\rule{.8ex}{.075ex}}} %x_
\newcommand{\order}[1]{\cO \paren{#1}} % O(x)
\newcommand{\dash}[1]{#1^{\prime}} % f'
\newcommand{\ddash}[1]{#1^{\prime\prime}} % f''
\newcommand{\dddash}[1]{#1^{\prime\prime\prime}} % f'''
\newcommand{\hodash}[2]{#1^{(#2)}} % f^(10), high order dash
\newcommand{\fracd}[2]{\genfrac{}{}{}{}{\mathrm{d} #1}{\mathrm{d} #2}} % df(x)/dx
\newcommand{\fracdl}[2]{\mathrm{d} #1 / \mathrm{d} #2}
\newcommand{\fracpd}[2]{\genfrac{}{}{}{}{\partial #1}{\partial #2}} % df(x,y)/dx
\newcommand{\fracpdl}[2]{\partial #1 / \partial #2}
\newcommand{\trans}[1]{#1^{\top}} % right transpose symbol
\newcommand{\seq}[3]{#1_{#2}, \dots, #1_{#3}} % a_1, ..., a_n
\newcommand{\seqvec}[3]{\paren{#1_{#2}, \dots, #1_{#3}}} % (a_1, ..., a_n)
\renewcommand{\seqvec}[3]{( #1_{#2}, \dots, #1_{#3} )}
\newcommand{\seqset}[3]{\set{#1_{#2}, \dots, #1_{#3}}} % (a_1, ..., a_n)
\newcommand{\seqnum}[2]{#1, \dots, #2} % 1, ..., n
\newcommand{\series}[2]{\left( #1 \right)_{#2}} % (x_n)_n

% macros (symbol) (new)
\newcommand{\Real}{\mathbb{R}}
\newcommand{\Quotient}{\mathbb{Q}}
\newcommand{\Complex}{\mathbb{C}}
\newcommand{\Zahlen}{\mathbb{Z}}
\newcommand{\Natural}{\mathbb{N}}
\newcommand{\cA}{\mathcal{A}}\newcommand{\cB}{\mathcal{B}}\newcommand{\cC}{\mathcal{C}}\newcommand{\cD}{\mathcal{D}}\newcommand{\cE}{\mathcal{E}}\newcommand{\cF}{\mathcal{F}}\newcommand{\cG}{\mathcal{G}}\newcommand{\cH}{\mathcal{H}}\newcommand{\cI}{\mathcal{I}}\newcommand{\cJ}{\mathcal{J}}\newcommand{\cK}{\mathcal{K}}\newcommand{\cL}{\mathcal{L}}\newcommand{\cM}{\mathcal{M}}\newcommand{\cN}{\mathcal{N}}\newcommand{\cO}{\mathcal{O}}\newcommand{\cP}{\mathcal{P}}\newcommand{\cQ}{\mathcal{Q}}\newcommand{\cR}{\mathcal{R}}\newcommand{\cS}{\mathcal{S}}\newcommand{\cT}{\mathcal{T}}\newcommand{\cU}{\mathcal{U}}\newcommand{\cV}{\mathcal{V}}\newcommand{\cW}{\mathcal{W}}\newcommand{\cX}{\mathcal{X}}\newcommand{\cY}{\mathcal{Y}}\newcommand{\cZ}{\mathcal{Z}}
\newcommand{\levi}{\varepsilon} % Levi-Civita symbol
\newcommand{\euler}{\varphi} % Euler's totient function
\newcommand{\ip}{\boldsymbol{\cdot}} % inner product
\newcommand{\op}{\boldsymbol{\times}} % outer product
\newcommand{\dcup}{\sqcup} % disjoint cup
\newcommand{\sm}{\setminus}
\newcommand{\dirac}{\mathds{1}} % Dirac's delta func
\newcommand{\meet}{\wedge}
\newcommand{\join}{\vee}
\newcommand{\defarrow}{\overset{\operatorname{def}}{\Leftrightarrow}}
\newcommand{\defeq}{\overset{\operatorname{def}}{=}}
\newcommand{\setempty}{\set{\emptyset}}
0
3
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
0
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?