LaTeXのmy設定(追記用)


増減表につかう凹凸矢印

%増減表につかう凹凸矢印
\makeatletter
\@ifundefined{UTF}{%
\providecommand{\rcurvearrowne}{\setlength{\unitlength}{.2125ex}
  \begin{picture}(10,10)(2,1)
  \put(2,1){\line(1,0){3}}\put(5,5){\oval(8,8)[rb]}\put(9,5){\vector(0,1){4}}
  \end{picture}}
\providecommand{\lcurvearrowne}{\setlength{\unitlength}{.2125ex}
  \begin{picture}(10,10)(1,2)
  \put(1,2){\line(0,1){3}}\put(5,5){\oval(8,8)[lt]}\put(5,9){\vector(1,0){4}}
  \end{picture}}
\providecommand{\rcurvearrowse}{\setlength{\unitlength}{.2125ex}
  \begin{picture}(10,10)(1,0)
  \put(1,8){\line(0,-1){3}}\put(5,5){\oval(8,8)[lb]}\put(5,1){\vector(1,0){4}}
  \end{picture}}
\providecommand{\lcurvearrowse}{\setlength{\unitlength}{.2125ex}
  \begin{picture}(10,10)(2,1)
  \put(2,9){\line(1,0){3}}\put(5,5){\oval(8,8)[rt]}\put(9,5){\vector(0,-1){4}}
  \end{picture}}}{%
\providecommand{\rcurvearrowne}{\mbox{\UTF{2934}}}
\providecommand{\lcurvearrowne}{\rotatebox[origin=c]{90}{\UTF{2935}}}
\providecommand{\rcurvearrowse}{\rotatebox[origin=c]{-90}{\UTF{2934}}}
\providecommand{\lcurvearrowse}{\mbox{\UTF{2935}}}}
\makeatother


太字

\newcommand{\Pmb}[1]{{\relax\ifmmode\mathchoice%
{\mbox{\boldmath$\displaystyle#1$}}%
{\mbox{\boldmath$#1$}}%
{\mbox{\boldmath$\scriptstyle#1$}}%
{\mbox{\boldmath$\scriptscriptstyle#1$}}%
\else\textbf{\boldmath#1}\fi}}%


ページ設定

\setlength{\textwidth}{\paperwidth}
\addtolength{\textwidth}{-2in}
\setlength{\textheight}{\paperheight}
\addtolength{\textheight}{-2in}
\setlength{\voffset}{0truemm}
\setlength{\hoffset}{0truemm}
\setlength{\topmargin}{0truemm}
\setlength{\headheight}{0truemm}
\setlength{\headsep}{0truemm}
\setlength{\footskip}{0truemm}
\setlength{\marginparsep}{0truemm}
\setlength{\marginparwidth}{0truemm}
\setlength{\oddsidemargin}{0truemm}
\setlength{\evensidemargin}{\oddsidemargin}


... such that ...

\newcommand{\ST}{\mathrel{}\vrule width0.5pt\mathrel{}\thinspace}


倍角ダッシュ

\def\―{\kern-.5zw―\kern-.5zw―}


anarchy mark

\newcommand{\anarc}{\textcircled{\raisebox{-.05em}{\large A}}}

M\anarc S\anarc. T\anarc K\anarc. 


見出しが自由に指定できる定理環境。

\def\fenv{dummy}\newtheorem*{freethm}{\fenv}
\newenvironment{ffthm}[1]{\def\fenv{#1}\begin{freethm}}{\end{freethm}}

注:\begin{ffthm}{見出し}……\end{ffthm}と使う。


displaymathモードでは\toを自動的に\longrightarrowに。

\def\to{\ifinner\rightarrow\else\longrightarrow\fi}

注:displaymathモードで短い右矢印を使いたいときは\rightarrowを使う。


弧を表す上付きの弓の記号の定義。

\newcommand{\arc}[1]{%
 \settowidth{\dimen0}{\ensuremath{#1}}%
 \divide\dimen0 by 2%
 \overset{\rotatebox{-90}{\ensuremath{\left(\rule{0pt}{\dimen0}\right.}}}{#1}%
}


:=の定義。

\usepackage[varg]{txfonts}
\makeatletter\@ifundefined{coloneqq}{\newcommand{\coloneqq}{\mathrel{\mathop:}=}}\makeatother


数式番号を定理と同じ通し番号に。定理型環境の定義が終わった後に以下を置く。

\makeatletter
  \let\c@equation\c@thm
  \def\theequation{\thesection.\@arabic\c@equation}
  \@addtoreset{equation}{section}
\makeatother


スライド原稿用に。

\renewcommand{\kanjifamilydefault}{\gtdefault}
%\renewcommand{\familydefault}{\sfdefault}
\renewcommand{\seriesdefault}{\bfdefault}
\begin{document}\sloppy\boldmath

http://www.math.tohoku.ac.jp/~atsushi/Tex/Projector/easy2see.html#font がいいかも。


私的なフォント埋め込み用ファイル("C:\texlive\texmf-local\fonts\map\dvipdfmx\kb.map")。
ファイル作成後はコマンドプロンプト(管理者)で mktexlsr を実行(または C:\usr\local\share\texmf-dist\ls-R を削除)。

rml           UniJIS-UTF16-H                  ipaexm.ttf
rmlv          UniJIS-UTF16-V                  ipaexm.ttf
rml           Identity-H                      ipaexm.ttf
rmlv          Identity-V                      ipaexm.ttf
rml           H                               ipaexm.ttf
rmlv          V                               ipaexm.ttf
unijmin-h     UniJIS-UTF16-H                  ipaexm.ttf
unijmin-v     UniJIS-UTF16-V                  ipaexm.ttf
cidmin-h      Identity-H                      ipaexm.ttf/AJ16
cidmin-v      Identity-V                      ipaexm.ttf/AJ16

gbm           UniJIS-UTF16-H                  ipaexg.ttf
gbmv          UniJIS-UTF16-V                  ipaexg.ttf
gbm           Identity-H                      ipaexg.ttf
gbmv          Identity-V                      ipaexg.ttf
gbm           H                               ipaexg.ttf
gbmv          V                               ipaexg.ttf
unijgoth-h    UniJIS-UTF16-H                  ipaexg.ttf
unijgoth-v    UniJIS-UTF16-V                  ipaexg.ttf
cidgoth-h     Identity-H                      ipaexg.ttf/AJ16
cidgoth-v     Identity-V                      ipaexg.ttf/AJ16

otf-ujmr-h    UniJIS-UTF16-H                  ipaexm.ttf
otf-ujmr-v    UniJIS-UTF16-V                  ipaexm.ttf
otf-cjmr-h    Identity-H                      ipaexm.ttf/AJ16
otf-cjmr-v    Identity-V                      ipaexm.ttf/AJ16
hminr-h       H                               ipaexm.ttf
hminr-v       V                               ipaexm.ttf

otf-ujgr-h    UniJIS-UTF16-H                  ipaexg.ttf
otf-ujgr-v    UniJIS-UTF16-V                  ipaexg.ttf
otf-cjgr-h    Identity-H                      ipaexg.ttf/AJ16
otf-cjgr-v    Identity-V                      ipaexg.ttf/AJ16
hgothr-h      H                               ipaexg.ttf
hgothr-v      V                               ipaexg.ttf

otf-ujmb-h    UniJIS-UTF16-H                  KBMinchoM.ttf
otf-ujmb-v    UniJIS-UTF16-V                  KBMinchoM.ttf
otf-cjmb-h    Identity-H                      KBMinchoM.ttf/AJ16
otf-cjmb-v    Identity-V                      KBMinchoM.ttf/AJ16
hminb-h       H                               KBMinchoM.ttf
hminb-v       V                               KBMinchoM.ttf

otf-cjgb-h    Identity-H                      MigMix-2P-bold.ttf/AJ16
otf-cjgb-v    Identity-V                      MigMix-2P-bold.ttf/AJ16
otf-ujgb-h    UniJIS-UTF16-H                  MigMix-2P-bold.ttf
otf-ujgb-v    UniJIS-UTF16-V                  MigMix-2P-bold.ttf
hgothb-h      H                               MigMix-2P-bold.ttf
hgothb-v      V                               MigMix-2P-bold.ttf

otf-ujmgr-h   UniJIS-UTF16-H                  MigMix-1M-regular.ttf
otf-ujmgr-v   UniJIS-UTF16-V                  MigMix-1M-regular.ttf
otf-cjmgr-h   Identity-H                      MigMix-1M-regular.ttf/AJ16
otf-cjmgr-v   Identity-V                      MigMix-1M-regular.ttf/AJ16
hmgothr-h     H                               MigMix-1M-regular.ttf
hmgothr-v     V                               MigMix-1M-regular.ttf


KBMinchoは
KBMincho043.zip (KBMincho043.zip) ダウンロード | Kobo Hack Uploader | uploader.jp


MigMixフォントは
MigMixフォント : M+とIPAの合成フォント


秀丸からは:

save;
#encode = encode & 0x3F;
$enc = "";
if (#encode==1) $enc = " --kanji=sjis "; 
if (#encode==3) $enc = " --kanji=euc "; 
if (#encode==4) $enc = " --kanji=jis "; 
if (#encode==6) $enc = " --kanji=utf8 "; 
title "  コンパイル...";
run "cmd /c ptex2pdf.exe -l -synctex=1 -ot \"" + $enc + "\" -od " + "\"-f kb.map -V 4\" " + basename;
endmacro;