From ac373c86fafeb08bc9a525318c032886ec271661 Mon Sep 17 00:00:00 2001 From: Stultus Date: Sun, 8 Jul 2012 11:24:34 +0530 Subject: Cleaning/documenting --- Logbook.pdf | Bin 173216 -> 175203 bytes Logbook.tex | 53 ++++++++++++++++++----------------------------------- log.sty | 34 +++++++++++++++++++++++++++++++++- 3 files changed, 51 insertions(+), 36 deletions(-) diff --git a/Logbook.pdf b/Logbook.pdf index 47a0227..1ec91fb 100644 Binary files a/Logbook.pdf and b/Logbook.pdf differ diff --git a/Logbook.tex b/Logbook.tex index 95de573..c341c94 100644 --- a/Logbook.tex +++ b/Logbook.tex @@ -1,39 +1,9 @@ - \documentclass[10pt,twoside,draft]{book} -\usepackage[ - inner=0.75in, - outer=0.75in, - top=0.75in, - bottom=0.75in, - paperwidth=15cm, - paperheight=20cm]{geometry} -\usepackage{fontspec} -\usepackage{xltxtra} -\usepackage[meera]{mlym} \usepackage{log} -\usepackage{fancyhdr} -\usepackage[final]{microtype} -\usepackage{polyglossia} - - - -\pagestyle{fancy} -\fancyhead{} -\fancyfoot{} - -\renewcommand{\headrulewidth}{0pt} -\renewcommand{\footrulewidth}{0pt} - -\linespread{1.1} -\widowpenalty=10000 -\clubpenalty=10000 -\raggedbottom -\sloppy - -%\newcommand{\sectionbreak}{\medskip\centerline{\S}\medskip} -\newcommand{\secstar}[1]{\section*{\addcontentsline{toc}{section}{#1}\centering #1}} \begin{document} + +%------------------------------Title Page -------------------------------------- ~ \vfill { @@ -53,6 +23,8 @@ \vfill ~ \newpage +%------------------------------Dedication -------------------------------------- +\frontmatter ~ \vfill @@ -61,7 +33,8 @@ Lets add the License/dedication here \vfill ~ -\mainmatter +%------------------------------Define Page Headers------------------------------ + \fancyhead[RO,LE]{\thepage} \fancyhead[CO]{\emph{Logbook of an Observer}} \fancyhead[CE]{\emph{ഒരു നിരീക്ഷകന്റെ കുറിപ്പുകള്‍}} @@ -75,12 +48,17 @@ Lets add the License/dedication here \fancyfoot[CE]{\thepage} } +%--------Autogenerated Table of Contents---------------------------------------- +\tableofcontents -\frontmatter -\tableofcontents %have to write Logbook.toc - Hrishi + +%-----------------Articles------------------------------------------------------ \mainmatter \input{foreword.tex} + +% Blog Posts +\chapter{Blog Posts} \input{firstpost.tex} \input{politics.tex} \input{mobile.tex} @@ -97,12 +75,17 @@ Lets add the License/dedication here \input{asuseeepcmigo.tex} \input{studentpolitics.tex} \input{evaluatingfosscontributions.tex} +%-------------------- + + % Hospital Logs +\chapter{Hospital Logs} \input{blog1.tex} \input{blog2.tex} \input{blog3.tex} \input{blog4.tex} +%---------------------- \backmatter \end{document} diff --git a/log.sty b/log.sty index 6a8fcfe..f8e089a 100644 --- a/log.sty +++ b/log.sty @@ -1,9 +1,41 @@ +\usepackage[ + inner=0.75in, + outer=0.75in, + top=0.75in, + bottom=0.75in, + paperwidth=15cm, + paperheight=20cm]{geometry} +\usepackage{fontspec} +\usepackage{xltxtra} +\usepackage[meera]{mlym} +\usepackage{fancyhdr} +\usepackage[final]{microtype} +\usepackage{polyglossia} + \usepackage{url} +\pagestyle{fancy} +\fancyhead{} +\fancyfoot{} + +\renewcommand{\headrulewidth}{0pt} +\renewcommand{\footrulewidth}{0pt} + +\linespread{1.1} +\widowpenalty=10000 +\clubpenalty=10000 +\raggedbottom +\sloppy + + + + +\newcommand{\secstar}[1]{\section*{\addcontentsline{toc}{section}{#1}\centering #1}} + %% Define a new 'leo' style for the package that will use a smaller font. \makeatletter \def\url@leostyle{% \@ifundefined{selectfont}{\def\UrlFont{\sf}}{\def\UrlFont{\small\ttfamily}}} \makeatother %% Now actually use the newly defined style. -\urlstyle{leo} \ No newline at end of file +\urlstyle{leo} -- cgit