From 46d59cd8cdfc2d86fe4c7a50c2dea85a3752edc9 Mon Sep 17 00:00:00 2001 From: rekado Date: Sun, 31 Mar 2013 22:35:46 +0800 Subject: initial commit --- assignment1/mystyle.sty | 97 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 97 insertions(+) create mode 100644 assignment1/mystyle.sty (limited to 'assignment1/mystyle.sty') diff --git a/assignment1/mystyle.sty b/assignment1/mystyle.sty new file mode 100644 index 0000000..4cf03e0 --- /dev/null +++ b/assignment1/mystyle.sty @@ -0,0 +1,97 @@ +% adjustwidth environment +\RequirePackage{changepage} + +% nicer ellipses +%\RequirePackage{ellipsis} + +% nicer numbers +\RequirePackage{numprint} +\npthousandsep{,} + +% nicer tables +\RequirePackage{tabularx} +\RequirePackage{booktabs} +\RequirePackage{color, colortbl} +\definecolor{rowhighlight}{gray}{0.95} + +% fix overfull hboxes +\setlength{\emergencystretch}{1.5em} + +% embed images +\RequirePackage{graphicx} + +% add border around figures +\RequirePackage{float} +\floatstyle{boxed} +\restylefloat{figure} + +% smaller caption, align with text instead of ``figure'', bold ``figure'' +\RequirePackage[hang,small,bf]{caption} + +% nicer descriptions +%\RequirePackage{enumitem} +% inparaenum +\RequirePackage{paralist} + +\RequirePackage{fontspec} +\setmainfont[ + RawFeature={protrusion=default}, + Ligatures=TeX, + Extension=.otf, + UprightFont=*-regular, + BoldFont=*-bold, + ItalicFont=*-italic, + BoldItalicFont=*-bolditalic +]{texgyretermes} + +\RequirePackage{setspace} + \onehalfspacing + +% reset section counter for each part +\usepackage{chngcntr} + \counterwithin*{section}{part} + +% mini-toc +\RequirePackage{titletoc} + +% links +\RequirePackage[usenames,dvipsnames,svgnames]{xcolor} +\definecolor{link}{HTML}{224466} +\RequirePackage[unicode,colorlinks=true,linkcolor=black,citecolor=black,urlcolor=link,linktoc=all,hypertexnames=false]{hyperref} +\urlstyle{same} + + +%\pdfprotrudechars2 % 1 if you don't want to change line breaking +%\RequirePackage[protrusion=true,expansion]{microtype} + +%\RequirePackage{polyglossia} +% \setmainlanguage{english} + +\RequirePackage[american]{babel} +\RequirePackage{csquotes} +\RequirePackage[backend=biber,style=apa,mincitenames=1,maxcitenames=2]{biblatex} +\DeclareLanguageMapping{american}{american-apa} + +% add 3cm margin on the left +%\RequirePackage[left=3cm,right=2.5cm,top=2cm,bottom=2cm]{geometry} +\RequirePackage[left=3cm,right=2.5cm,top=2cm,bottom=3.25cm]{geometry} + +% header: 1.25cm +% footer: 1.25cm +\usepackage{fancyhdr} +\setlength{\headheight}{1.25cm} +\setlength{\footskip}{1.25cm} +\pagestyle{fancyplain} + +\renewcommand{\headrulewidth}{0.2pt} +\renewcommand{\footrulewidth}{0.2pt} +%\newcommand{\headline}[1]{{\begin{center}\linespread{0.9}\headlinefont\Huge\textbf{#1}\end{center}}} +\newcommand{\headline}[1]{{\begin{center}\linespread{0.9}\Large\textbf{#1}\end{center}}} + +%\fancyhead{} +\fancyfoot{} +\fancyfoot[L]{\footnotesize{Ricardo Wurmus (3607635), Assigment 1, 72296 Environmental Impact Assessment}} +\fancyfoot[R]{\thepage} + +\RequirePackage[toc,title]{appendix} +\usepackage[nottoc,numbib]{tocbibind} -- cgit v1.2.3