Top > LaTeX > マクロメモ


マクロメモ

太文字(ボールド)

%\bm{文字列} で太字(ベクトルなどに)
\newcommand{\bm}[1]{\mbox{\boldmath{$#1$}}}


Displaystyle短縮形

%\dis{}で、\displaystyle{}と同じ役割
\newcommand{\dis}{\displaystyle} 


引用記号書式

%文中に引用マークを入れる時の形式変更
\renewcommand\citeform[1]{#1)} 


引用記号付加位置変更

%文中に引用マークを入れる時上付きにする
\renewcommand\citeform[1]{#1)}
\makeatletter
\def\@cite#1{\textsuperscript{#1}}
\makeatother 


図・表の書式変更(Fig. Table)

\renewcommand{\figurename}{Fig.}
\renewcommand{\tablename}{Table} 


キャプション名書式変更

%図や表のキャプション名の「:」を取る
\makeatletter
\long\def\@makecaption#1#2{
\vskip\abovecaptionskip%
%\sbox\@tempboxa{#1: #2}% <--- original
\sbox\@tempboxa{#1 \ #2}
\ifdim \wd\@tempboxa >\hsize%
%#1: #2\par <--- original
#1 #2\par
\else
\global \@minipagefalse
\hb@xt@\hsize{\hfil\box\@tempboxa\hfil}
\fi
\vskip\belowcaptionskip}
\makeatother 


enumerate書式変更

%enumerate 環境のitemに括弧を付ける
\renewcommand{\labelenumi}{\arabic{enumi})}

リロード   凍結解除 コピー 名前変更   ホーム 一覧 検索 最終更新 バックアップ リンク元   ヘルプ   最終更新のRSS
Last-modified: Mon, 03 Jun 2019 14:37:49 UTC (1573d)