[Assorted-commits] SF.net SVN: assorted: [193] tex-commons/trunk/src
Brought to you by:
yangzhang
From: <yan...@us...> - 2007-12-25 02:07:05
|
Revision: 193 http://assorted.svn.sourceforge.net/assorted/?rev=193&view=rev Author: yangzhang Date: 2007-12-24 18:07:04 -0800 (Mon, 24 Dec 2007) Log Message: ----------- added makefile and first few tex files to tex commons Modified Paths: -------------- tex-commons/trunk/src/common.mk Added Paths: ----------- tex-commons/trunk/src/latin.tex tex-commons/trunk/src/math.tex Modified: tex-commons/trunk/src/common.mk =================================================================== --- tex-commons/trunk/src/common.mk 2007-12-24 21:19:13 UTC (rev 192) +++ tex-commons/trunk/src/common.mk 2007-12-25 02:07:04 UTC (rev 193) @@ -11,9 +11,9 @@ ps: rubber --ps $(FLAGS) $(TARGET) +# prepress should be the highest-quality setting (embeds fonts, etc.) pdf: GS_OPTIONS=-dPDFSETTINGS=/prepress rubber --pdf $(FLAGS) $(TARGET) - # prepress should be the highest-quality setting (embeds fonts, etc.) clean: rubber --pdf --clean $(FLAGS) $(SRCS) Added: tex-commons/trunk/src/latin.tex =================================================================== --- tex-commons/trunk/src/latin.tex (rev 0) +++ tex-commons/trunk/src/latin.tex 2007-12-25 02:07:04 UTC (rev 193) @@ -0,0 +1,4 @@ +\newcommand{\foreign}[1]{{\textit{#1}}} +\newcommand{\ea} {{\foreign{et~al.}}} +\newcommand{\eg} {{\foreign{e.g.}}} +\newcommand{\ie} {{\foreign{i.e.}}} Added: tex-commons/trunk/src/math.tex =================================================================== --- tex-commons/trunk/src/math.tex (rev 0) +++ tex-commons/trunk/src/math.tex 2007-12-25 02:07:04 UTC (rev 193) @@ -0,0 +1,64 @@ +\usepackage{amsmath,amssymb} + +% TODO use a consistent naming scheme! (if only TeX had namespaces...) + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% Math. + +% +% General +% + +\DeclareMathOperator*{\argmin}{arg\,min} +\DeclareMathOperator*{\argmax}{arg\,max} + +% +% Sets +% + +\newcommand{\card} [1]{{\lvert #1 \rvert}} +% TODO make this take 1-3 args so that we can have: +% {1,...,n}, {2,...,n}, {2,4,...,n} +\newcommand{\range}[1]{{\left\{ 1, \dots, #1 \right\}}} + +% +% Linear algebra +% + +\newcommand{\mat} [1]{{\bf #1}} +\newcommand{\norm} [1]{{\lVert #1 \rVert}} +% TODO is mbox necessary? +\newcommand{\bvec} [1]{{\mbox{\boldmath $#1$}}} + +% +% Probability. The CTAN `proba` package doesn't seem to be that good. +% TODO ensuremath does not seem to be a good idea. +% + +\DeclareMathOperator{\E}{E} +\newcommand{\condexp} [2]{{\E \left[ #1 \mid #2 \right]}} +\newcommand{\like} [2]{{\ensuremath{ L \left( #1 \,\middle|\, #2 \right) }}} +\newcommand{\loglike} [2]{{\ensuremath{ l \left( #1 \,\middle|\, #2 \right) }}} +\newcommand{\prob} [1]{{\Pr \left( #1 \right)}} +\newcommand{\condprob}[2]{{\prob{ #1 \,\middle|\, #2 }}} +\newcommand{\dist} {{\sim}} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% Theoretical computer science + +% TODO investigate `complexity` package + +% +% Computational complexity +% + +\DeclareMathOperator{\bigO}{O} +\providecommand{\OO}[1]{\bigO\bigl(#1\bigr)} + +% +% Algorithms +% + +\newcommand{\proc}[1]{{\textsc{#1}}} +\newcommand{\var}[1]{{\emph{#1}}} + This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |