Created
April 3, 2013 03:48
-
-
Save adeel/5298307 to your computer and use it in GitHub Desktop.
new latex style files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\ProvidesPackage{aak-layout} | |
\usepackage[colorlinks=true,linkcolor=blue]{hyperref} | |
\RequirePackage[ | |
textheight=0.7\paperheight, | |
textwidth =0.7\paperwidth, | |
top =0.1\paperheight, | |
bottom =0.2\paperheight, | |
left =0.1\paperwidth, | |
right =0.2\paperwidth]{geometry} | |
\RequirePackage{setspace} | |
\onehalfspacing | |
% \parindent 0pt | |
\parskip 0.3cm | |
%% TITLE; SECTIONS; PARAGRAPHS | |
\RequirePackage{titlesec} | |
\RequirePackage{etoolbox} | |
\RequirePackage{titletoc} | |
\titlelabel{\thetitle.\ } | |
\titleformat{\section}{\centering\large\bfseries\uppercase}{\S\ \thesection.\ }{0em}{} | |
\titleformat*{\paragraph}{\bfseries} | |
\titleformat{\subparagraph}[runin]{\bfseries}{\thesubparagraph.\ }{0em}{} | |
\titlecontents{section}[1.5em]{}{\S\thecontentslabel.\ }{}{\titlerule*[1pc]{.} \thecontentspage} | |
% paragraph numbering | |
\newcounter{parano}[section] | |
\renewcommand{\theparano}{\ifdef{\aaknosections}{\arabic{parano}}{\arabic{section}.\arabic{parano}}} | |
\newcommand{\para}[1][]{\refstepcounter{parano}\paragraph{(\theparano)}% | |
\ifblank{#1}{}{\label{#1}}} | |
\titlespacing{\paragraph}{% | |
15pt}{% left margin | |
0.5\baselineskip}{% space before (vertical) | |
1em}% space after (horizontal) | |
%% DEFINITIONS; CLAIMS | |
\newcommand{\dfn}[1]{\emph{#1}} | |
\newcommand{\claim}[1]{\emph{#1}} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\ProvidesPackage{aak-macros} | |
\RequirePackage{amsmath} | |
\RequirePackage{amssymb} | |
\RequirePackage{amsfonts} | |
\RequirePackage{amsopn} | |
\RequirePackage{amsthm} | |
\RequirePackage{mathrsfs} % script font | |
% diagrams | |
\RequirePackage[all]{xy} | |
% \numberwithin{equation}{section} | |
%% non-italicized capital letters | |
\DeclareMathSymbol{A}{\mathalpha}{operators}{`A} | |
\DeclareMathSymbol{B}{\mathalpha}{operators}{`B} | |
\DeclareMathSymbol{C}{\mathalpha}{operators}{`C} | |
\DeclareMathSymbol{D}{\mathalpha}{operators}{`D} | |
\DeclareMathSymbol{E}{\mathalpha}{operators}{`E} | |
\DeclareMathSymbol{F}{\mathalpha}{operators}{`F} | |
\DeclareMathSymbol{G}{\mathalpha}{operators}{`G} | |
\DeclareMathSymbol{H}{\mathalpha}{operators}{`H} | |
\DeclareMathSymbol{I}{\mathalpha}{operators}{`I} | |
\DeclareMathSymbol{J}{\mathalpha}{operators}{`J} | |
\DeclareMathSymbol{K}{\mathalpha}{operators}{`K} | |
\DeclareMathSymbol{L}{\mathalpha}{operators}{`L} | |
\DeclareMathSymbol{M}{\mathalpha}{operators}{`M} | |
\DeclareMathSymbol{N}{\mathalpha}{operators}{`N} | |
\DeclareMathSymbol{O}{\mathalpha}{operators}{`O} | |
\DeclareMathSymbol{P}{\mathalpha}{operators}{`P} | |
\DeclareMathSymbol{Q}{\mathalpha}{operators}{`Q} | |
\DeclareMathSymbol{R}{\mathalpha}{operators}{`R} | |
\DeclareMathSymbol{S}{\mathalpha}{operators}{`S} | |
\DeclareMathSymbol{T}{\mathalpha}{operators}{`T} | |
\DeclareMathSymbol{U}{\mathalpha}{operators}{`U} | |
\DeclareMathSymbol{V}{\mathalpha}{operators}{`V} | |
\DeclareMathSymbol{W}{\mathalpha}{operators}{`W} | |
\DeclareMathSymbol{X}{\mathalpha}{operators}{`X} | |
\DeclareMathSymbol{Y}{\mathalpha}{operators}{`Y} | |
\DeclareMathSymbol{Z}{\mathalpha}{operators}{`Z} | |
%% shortcuts | |
\RequirePackage{xspace} | |
\newcommand{\R}{\ensuremath{\mathbf{R}}\xspace} | |
\newcommand{\C}{\ensuremath{\mathbf{C}}\xspace} | |
\newcommand{\Q}{\ensuremath{\mathbf{Q}}\xspace} | |
\newcommand{\Z}{\ensuremath{\mathbf{Z}}\xspace} | |
\newcommand{\N}{\ensuremath{\mathbf{N}}\xspace} | |
\newcommand{\A}{\ensuremath{\mathbf{A}}\xspace} | |
\renewcommand{\P}{\ensuremath{\mathbf{P}}\xspace} | |
\renewcommand{\k}{\ensuremath{k}\xspace} | |
\newcommand{\mbb}[1]{\mathbb{#1}} | |
\newcommand{\mcal}[1]{\mathcal{#1}} | |
\DeclareMathOperator{\sgn}{\mathrm{sgn}} | |
\DeclareMathOperator{\GL}{\mathrm{GL}} | |
\DeclareMathOperator{\PGL}{\mathrm{PGL}} | |
\let\Re\undefined | |
\let\Im\undefined | |
\DeclareMathOperator{\Re}{\mathrm{Re}} | |
\DeclareMathOperator{\Im}{\mathrm{Im}} | |
\newcommand{\id}{\mathrm{id}} | |
\newcommand{\Id}{\mathrm{Id}} | |
\DeclareMathOperator{\Ker}{\mathrm{Ker}} | |
%\DeclareMathOperator{\im}{\mathrm{im}} | |
\DeclareMathOperator{\Aut}{\mathrm{Aut}} | |
\DeclareMathOperator{\Hom}{\mathrm{Hom}} | |
\DeclareMathOperator{\Sym}{\mathrm{Sym}} | |
\DeclareMathOperator{\Span}{\mathrm{Span}} | |
\DeclareMathOperator{\Tr}{\mathrm{Tr}} | |
\DeclareMathOperator{\Frac}{\mathrm{Frac}} | |
\DeclareMathOperator{\Cyl}{\mathrm{Cyl}} | |
\let\div\undefined | |
\DeclareMathOperator{\div}{\mathrm{div}} | |
\DeclareMathOperator{\grad}{\mathrm{grad}} | |
\DeclareMathOperator{\ord}{\mathrm{ord}} | |
\DeclareMathOperator{\chr}{\mathrm{char}} | |
\newcommand{\Mb}{\mathrm{Mb}} | |
\newcommand{\eps}{\varepsilon} | |
\renewcommand{\bar}[1]{\overline{#1}} | |
\renewcommand{\cal}[1]{\mathcal{#1}} | |
\newcommand{\sub}{\subset} | |
\newcommand{\sube}{\subseteq} | |
\newcommand{\incl}{\hookrightarrow} | |
\newcommand{\iso}{\stackrel{\sim}{\to}} | |
%% algebraic geometry | |
\DeclareMathOperator{\Spec}{\mathrm{Spec}} | |
\DeclareMathOperator{\Proj}{\mathrm{Proj}} | |
\renewcommand{\O}{\mathscr{O}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment