有用なリンク
基本
- TeX-LaTeX Stack Exchange
- An essential guide to LaTeX2e usage
- The Not So Short Introduction to LaTeX2e
- LaTeX2e: An unofficial reference manual
- TeX Live ドキュメント案内
ベストプラクティス
- LaTeX の「アレなデフォルト」 傾向と対策
- 今さら人に聞けない「日本語でBeamer」のキホン
- Suboptimal LaTeX
- LaTeX Best Practices: Lessons Learned from Writing a PhD Thesis
- LaTeX Best Practices by Simon Harrer
- LaTeX Tips
- Packages I Wish I Knew When Starting LaTeX
- 日本語 LaTeX の新常識 2021
雑多
- xparse パッケージでスゴイ LaTeX マクロを作ろう!
- LaTeX2e まくろの八衢
- (u)pLaTeXのデフォルトの日本語フォントを好きなやつに変える方法
- [改訂新版]upLaTeXを使おう
- A Look at some Recent TeX Fonts
- XeLaTeX で日本語する件について
- TikZ and PGF examples
- TeX処理系御伽話
- Awesome Latex
- TeX/LaTeX resources
- Tips on Writing a Thesis in LaTeX
- LaTeXで全角記号を一括で字詰め(疑似カーニング)する方法
- 個人的beamer.cls用プリアンブル
テンプレート
日本語用 (u)pLaTeX
\RequirePackage{plautopatch}
\documentclass[a4paper, papersize, dvipdfmx]{jsarticle}
%\documentclass[uplatex, a4paper, papersize, dvipdfmx]{jsarticle}
\title{}
\author{松尾 信一郎}
\date{\today}
%\address{
% 名古屋大学大学院多元数理科学研究科 \\
% 464-8602 愛知県名古屋市千種区不老町
%}
\email{shinichiroh_at_math.nagoya-u.ac.jp}
%\urladdr{https://www.math.nagoya-u.ac.jp/~shinichiroh/}
%==============================================================================%
%\usepackage[parfill]{parskip}
%==============================================================================%
\usepackage[utf8]{inputenc} % Encoding UTF-8
\usepackage[T1]{fontenc} % Font Encoding T1
\usepackage{textcomp} % Font Encoding TS1
\usepackage[expert, jis2004, deluxe]{otf} % ひらがなが文字化けするときには expert を外す.
\usepackage{lmodern}
%\usepackage[scale=1]{tgtermes} %Termes (Times clone)
%\usepackage[scale=0.95]{tgheros}\renewcommand{\bfdefault}{bx} %Heros (Helvetica-like)
%\usepackage[varqu]{zi4} %Inconsolata
%\usepackage[mtpccal,mtpscr,mtpfrak,mtphrb,straightbraces]{mtpro2}
\renewcommand{\emph}[1]{ {\bfseries \sffamily #1} }
%==============================================================================%
\usepackage{mathtools}
\mathtoolsset{showonlyrefs=true}
%\usepackage{amssymb}
\usepackage{amsthm}
\theoremstyle{definition}
\newtheorem{definition}{定義}[section]
\newtheorem{theorem}[definition]{定理}
\newtheorem{proposition}[definition]{命題}
\newtheorem{lemma}[definition]{補題}
\newtheorem{remark}[definition]{注意}
\renewcommand{\proofname}{\textbf{証明}}
%==============================================================================%
\usepackage[dvipdfmx]{hyperref}
\usepackage{pxjahyper} % 日本語PDFの目次の文字化け防止
\hypersetup{bookmarksnumbered} % PDFの目次に節番号を付ける.
\usepackage[msc-links]{amsrefs} % hyperrefの後にロードする必要あり.
%==============================================================================%
\begin{document}
\maketitle
\begin{bibdiv}
\begin{biblist}
\end{biblist}
\end{bibdiv}
\end{document}
英語用 pdfLaTeX
\documentclass[a4paper, oneside]{amsart}
\title{}
\author{Shinichiroh Matsuo}
\address{
Graduate School of Mathematics \\
Nagoya University \\
Nagoya, Japan
}
\email{shinichiroh_at_math.nagoya-u.ac.jp}
\urladdr{https://www.math.nagoya-u.ac.jp/~shinichiroh/}
%==============================================================================%
\usepackage{bxpapersize} % for correct papersize
\usepackage{microtype} % for pdfLatex
%==============================================================================%
\usepackage[utf8]{inputenc} % Encoding UTF-8
\usepackage[T1]{fontenc} % Font Encoding T1
\usepackage{textcomp} % Font Encoding TS1
%==============================================================================%
% Cochineal <- Crimson <- Minion
\usepackage[p,osf]{cochineal}
\usepackage[varqu,varl,var0]{inconsolata}
\usepackage[scale=.95,type1]{cabin}
\usepackage[cochineal,vvarbb]{newtxmath}
\usepackage[cal=boondoxo]{mathalfa}
% Palatino
%\usepackage[osf]{newpxtext}
%\usepackage{cabin}
%\usepackage[varqu,varl]{inconsolata}
%\usepackage[bigdelims,vvarbb]{newpxmath}
%\usepackage[cal=boondoxo]{mathalfa}
%==============================================================================%
\usepackage{mathtools}
\mathtoolsset{showonlyrefs=true}
%\usepackage{amssymb}
\theoremstyle{definition}
\newtheorem{definition}{Definition}
\theoremstyle{plain}
\newtheorem{theorem}[definition]{Theorem}
\newtheorem{proposition}[definition]{Proposition}
\newtheorem{lemma}[definition]{Lemma}
\newtheorem{corollary}[definition]{Corollary}
\theoremstyle{remark}
\newtheorem{remark}[definition]{Remark}
%==============================================================================%
\usepackage[strict=true, style=british]{csquotes} % for quotation marks.
\usepackage[l2tabu, orthodox]{nag} % detects deprecated use of latex packages and commands.
\usepackage[notref, notcite]{showkeys}
\usepackage[all]{onlyamsmath} % only the AMS environments allowed.
\overfullrule=2cm % Obviously Visible Bad Box Warnings.
%==============================================================================%
\usepackage{hyperref} % Make sure it comes last of the loaded packages.
\hypersetup{bookmarksnumbered} % Put section numbers in bookmarks.
\usepackage[msc-links]{amsrefs} % Load after hyperref.
%==============================================================================%
\begin{document}
\begin{abstract}
\end{abstract}
\maketitle
\microtypesetup{protrusion=false}
\tableofcontents
\microtypesetup{protrusion=true}
%==============================================================================%
\begin{bibdiv}
\begin{biblist}
\end{biblist}
\end{bibdiv}
\end{document}
日本語用 Beamer XeLaTeX
\documentclass[unicode]{beamer}
\title{}
\author{松尾 信一郎 \\ 名古屋大学大学院多元数理科学研究科}
\date{}
%==============================================================================%
\usetheme[numbering=fraction, block=fill, subsectionpage=progressbar]{metropolis}
\setbeamertemplate{blocks}[rounded]
\usepackage{zxjatype}
\setjamainfont{BIZ UDReimin}
\setjasansfont[BoldFont=BIZ UDShinGo Medium]{BIZ UDShinGo Light}
\setjamonofont{BIZ UDShinGo Light}
%\noautoxspacing %和欧文間空白の挿入を無効にする.%\CJKsetecglue{}
%\CJKspace
\renewcommand{\emph}[1]{ {\bfseries \sffamily #1} }
%==============================================================================%
\usepackage{mathtools}
\mathtoolsset{showonlyrefs=true}
\begin{document}
\maketitle
\end{document}
英語用 Beamer XeLaTeX
\documentclass{beamer}
\title{}
\date{}
\author{Shinichiroh Matsuo \\ Nagoya University, Japan}
%==============================================================================%
\usetheme[numbering=fraction, block=fill]{metropolis}
\setbeamertemplate{blocks}[rounded]
%==============================================================================%
\usepackage{mathtools}
\mathtoolsset{showonlyrefs=true}
\newtheorem{proposition}{Proposition}
%==============================================================================%
\begin{document}
\maketitle
\end{document}
日本語用 XeLaTeX
\documentclass[xelatex,a4paper,ja=standard,no-math]{bxjsarticle}\title{}
\author{松尾 信一郎}
\date{\today}
%\address{
% 名古屋大学大学院多元数理科学研究科 \\
% 464-8602 愛知県名古屋市千種区不老町
%}
\email{shinichiroh_at_math.nagoya-u.ac.jp}
%\urladdr{https://www.math.nagoya-u.ac.jp/~shinichiroh/}
%==============================================================================%
\setjamainfont{BIZ UDReimin}
%\setjamainfont[BoldFont=UD Digi Kyokasho NP-B]{UD Digi Kyokasho NK-R}
\setjasansfont[BoldFont=BIZ UDShinGo Medium]{BIZ UDShinGo Light}
\setjamonofont{BIZ UDShinGo Light}
\setmainfont{Optima}
\setsansfont{Optima}
\setmonofont{JetBrains Mono}
\setxkanjiskip{\getkanjiskip} %和欧文間空白と和文間空白を等しくする.
%\CJKspace %和文での半角と全角の空白をそのままにする.
\renewcommand{\emph}[1]{ {\bfseries \sffamily #1} }
% %%%%% Mathematics %%%%%
\usepackage[upint]{newtxmath}
\let\openbox\undefined
\usepackage{mathtools}
\mathtoolsset{showonlyrefs=true}
\usepackage{amsthm}
\theoremstyle{definition}
\newtheorem{definition}{定義}[section]
\newtheorem{theorem}[definition]{定理}
\newtheorem{proposition}[definition]{命題}
\newtheorem{lemma}[definition]{補題}
\newtheorem{remark}[definition]{注意}
\renewcommand{\proofname}{\textbf{証明}}
% %%%%% Hyperlinks %%%%%
\usepackage[pdfusetitle]{hyperref}
\hypersetup{bookmarksnumbered} % PDFの目次に節番号を付ける.
\usepackage[msc-links]{amsrefs} % hyperrefの後にロードする必要あり.
%==============================================================================%
\begin{document}
\maketitle
\begin{bibdiv}
\begin{biblist}
\end{biblist}
\end{bibdiv}
\end{document}
記号
\newcommand{\Z}{\mathbb{Z}}
\newcommand{\R}{\mathbb{R}}
\newcommand{\C}{\mathbb{C}}
%\usepackage{mathtools}
\DeclarePairedDelimiter{\abs}{\lvert}{\rvert}
\DeclarePairedDelimiter{\norm}{\lVert}{\rVert}
\DeclarePairedDelimiterX{\innerproduct}[2]{(}{)}{#1,#2}
多様体の絵
\usepackage{tikz}
\usetikzlibrary{babel}
\usetikzlibrary{decorations.pathreplacing}
\tikzset{
XPlus/.pic={
\draw (0,0.5) -- (4.5,0.5) arc [start angle=150, end angle=-150, radius=1] -- (0,-0.5);
\node at (5.366,0) {$X_+$};
},
XMinus/.pic={
\draw (0,0.5) -- (-4.5,0.5) arc [start angle=30, end angle=330, radius=1] -- (0,-0.5);
\node at (-5.366,0) {$X_-$};
},
Y/.pic={
\draw [ultra thick] (0,-0.5) -- (0,0.5);
\node at (0,0) [right]{$Y$};
},
finiteNeckY/.pic={
\filldraw [very nearly transparent] (-2,0.5) -- (2,0.5) -- (2,-0.5) -- (-2,-0.5);
\draw [ultra thick] (0,-0.5) -- (0,0.5);
\draw
[->] (-2.2,0) -- (2.2,0) node [right]{$u$};
\draw
(-2,0.06) -- (-2,-0.06) node [below]{$-4$}
(2,0.06) -- (2,-0.06) node [below]{$4$};
},
infiniteHalfCylinderY/.pic={
\draw [ultra thick] (0,-0.5) -- (0,0.5);
\draw (-7,0.5) -- (0,0.5) -- (0,-0.5) -- (-7,-0.5);
\filldraw [very nearly transparent] (-7,0.5) -- (0,0.5) -- (0,-0.5) -- (-7,-0.5);
\node at (-5.366,0) {$(-\infty,0) \times Y$};
},
}
\begin{tikzpicture}
\draw pic {XMinus} pic {Y} pic {XPlus};
\end{tikzpicture}
\begin{tikzpicture}
\draw pic {XMinus} pic {finiteNeckY} pic {XPlus};
\end{tikzpicture}
\begin{tikzpicture}
\draw pic {infiniteHalfCylinderY} pic {XPlus};
\end{tikzpicture}