-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathshortart.cls
39 lines (29 loc) · 1.17 KB
/
shortart.cls
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
\ProvidesClass{shortart}[2018/01/01 Short Article Class]
\NeedsTeXFormat{LaTeX2e}
\newif\if@useafourpaper
\DeclareOption{fullpage}{\@useafourpapertrue}
\ProcessOptions\relax
\if@useafourpaper
\LoadClass[a4paper]{article}
\else
\LoadClass[a5paper, 10pt]{article}
\RequirePackage[margin=0.4in, includefoot]{geometry}
\fi
\RequirePackage[hidelinks]{hyperref}
\RequirePackage[hang, symbol]{footmisc}
\RequirePackage{microtype}
\RequirePackage{titlesec}
\titleformat{\section}{\normalfont\Large\sc}{\thesection}{1em}{}
\titleformat{\subsection}{\normalfont\large\sc}{\thesubsection}{1em}{}
\renewcommand\tableofcontents{\@starttoc{toc}}
\setcounter{tocdepth}{1}
\def\footnotemargin{10pt}
\date{}
\let\real@title\title
\renewcommand\title[1]{\real@title{#1}\hypersetup{pdftitle={#1}}}
\let\real@author\author
\renewcommand\author[1]{\real@author{#1}\hypersetup{pdfauthor={#1}}}
\AtBeginDocument{\null \begin{center}\vskip 1.4em {\LARGE \@title \par } \vskip 1em{\large \@author}\end{center}\vskip 1.5em\tableofcontents\vskip 1.5em}
\newcommand\qedshift{\vspace{-17pt}}
\newcommand\fakeqed{\pushQED{\qed}\qedhere}
\newcommand\separator{\begin{center}\rule{3cm}{0.2pt}\vspace{2pt}\end{center}}