Skip to content

Instantly share code, notes, and snippets.

@elliptic-shiho
Created February 23, 2016 10:57
Show Gist options
  • Save elliptic-shiho/8dae177a9ed2d0893f36 to your computer and use it in GitHub Desktop.
Save elliptic-shiho/8dae177a9ed2d0893f36 to your computer and use it in GitHub Desktop.
My LaTeX Template
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{report}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage{amscd}
\usepackage{xypic}
\usepackage{ascmac}
\let\keytop\undefined
\let\return\undefined
\usepackage{okumacro}
\def\Im{\mathrm{Im}}
\def\Ker{\mathrm{Ker}}
\def\Hom{\mathrm{Hom}}
\def\Ext{\mathrm{Ext}}
\theoremstyle{definition}
\newtheorem{theorem}{定理}
\newtheorem*{theorem*}{定理}
\newtheorem{lemma}{補題}
\newtheorem*{lemma*}{補題}
\newtheorem{definition}[theorem]{定義}
\newtheorem*{definition*}{定義}
\numberwithin{theorem}{section}
\makeatletter
\renewenvironment{proof}[1][\proofname]{\par
\normalfont
\topsep6\p@\@plus6\p@ \trivlist
\item[\hskip\labelsep{\bfseries #1}\@addpunct{\bfseries}]\ignorespaces
}{
\endtrivlist
}
\renewcommand{\proofname}{[証明]}
\makeatother
METAPOST := pmpost
TEX := platex
DVIPDF := dvipdfmx
TARGETS:= foo.pdf bar.pdf
all: $(TARGETS)
%.pdf: %.tex
$(METAPOST) -tex=$(TEX) *.mp
$(TEX) $*.tex --file-line-error-style
$(DVIPDF) "$*"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment