Last active
June 19, 2017 19:17
-
-
Save ahmaurya/0ce84c89f782106e62bc4216d0784be9 to your computer and use it in GitHub Desktop.
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
| % document setup | |
| \documentclass[twoside,11pt,english,utf8ttf]{article} | |
| \documentclass[twoside,11pt,english,utf8ttf,letterpaper]{article} | |
| \documentclass[twoside,11pt,english,utf8ttf,a4paper]{article} | |
| % packages | |
| \usepackage[1-25]{pagesel} | |
| \usepackage[bf]{caption} | |
| \usepackage[margin=1in]{geometry} | |
| \usepackage[table]{xcolor} | |
| \usepackage[toc,page]{appendix} | |
| \usepackage{algorithmic} | |
| \usepackage{algorithm} | |
| \usepackage{amsmath} | |
| \usepackage{amssymb} | |
| \usepackage{bbm} | |
| \usepackage{bm} | |
| \usepackage{enumitem} | |
| \usepackage{fancyhdr} | |
| \usepackage{graphicx} | |
| \usepackage{hyperref} | |
| \usepackage{jmlr2e} | |
| \usepackage{longtable} | |
| \usepackage{rotating} | |
| \usepackage{subcaption} | |
| \usepackage{times} | |
| \usepackage[T1]{fontenc} | |
| \usepackage{lmodern} | |
| \usepackage{microtype} | |
| \usepackage{babel} | |
| \usepackage{blindtext} | |
| \usepackage{natbib} | |
| % sloppy hyphenation | |
| \sloppy | |
| % real deep lists | |
| \setlistdepth{9} | |
| \newlist{myEnumerate}{enumerate}{9} | |
| \setlist[myEnumerate,1]{label=\arabic*.} | |
| \setlist[myEnumerate,2]{label=(\alph*)} | |
| \setlist[myEnumerate,3]{label=\Alph*.} | |
| \setlist[myEnumerate,4]{label=\roman*.} | |
| \setlist[myEnumerate,5]{label=(\alph*)} | |
| \setlist[myEnumerate,6]{label=(\arabic*)} | |
| \setlist[myEnumerate,7]{label=(\Roman*)} | |
| \setlist[myEnumerate,8]{label=(\Alph*)} | |
| \setlist[myEnumerate,9]{label=(\roman*)} | |
| % hyperlinks | |
| \hypersetup{colorlinks=true, linkcolor=black, citecolor=blue, urlcolor=magenta, filecolor=blue} | |
| % hyperref and algorithmic misbehave sometimes. can fix this with the following command | |
| \newcommand{\theHalgorithm}{\arabic{algorithm}} | |
| % line spacing | |
| \usepackage{setspace} | |
| \doublespacing | |
| \onehalfspacing | |
| % margins | |
| \oddsidemargin0cm | |
| \topmargin-2cm | |
| \textwidth16.5cm | |
| \textheight23.5cm | |
| % multiple columns - three choices | |
| \documentclass[twocolumn]{article} | |
| \twocolumn | |
| \onecolumn | |
| \usepackage{multicol} | |
| \begin{multicol}{#}...\end{multicol} | |
| % single column abstract | |
| \usepackage{abstract} | |
| \begin{onecolabstract} | |
| Your abstract text here | |
| \end{onecolabstract} | |
| % refer to a root document from input documents | |
| % !TEX root = main.tex |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment