summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r--Master/texmf-dist/tex/latex/elegantpaper/elegantpaper.cls79
1 files changed, 79 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/elegantpaper/elegantpaper.cls b/Master/texmf-dist/tex/latex/elegantpaper/elegantpaper.cls
new file mode 100644
index 00000000000..328e08f375b
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/elegantpaper/elegantpaper.cls
@@ -0,0 +1,79 @@
+% Current Version: 0.01
+% Author: ddswhu
+% Homepage: https://ddswhu.me/
+% Email: ddswhu@outlook.com
+% Lastest Version: https://ddswhu.me/resource/
+
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesClass{elegantpaper}[2018/11/22 v0.01 ElegantLaTeX Paper class]
+
+\LoadClass[11pt]{article}
+
+% font setting for text and math
+\RequirePackage[T1]{fontenc}
+\RequirePackage{newtxtext}
+\RequirePackage{newtxmath}
+\RequirePackage[scale=0.85]{newtxtt}
+\RequirePackage{type1cm}
+
+% more pretty font
+\linespread{1.3}
+\RequirePackage{microtype}
+
+% indentation, table and figure package
+% \RequirePackage{indentfirst}
+\RequirePackage{booktabs}
+\RequirePackage{multicol}
+\RequirePackage{xcolor}
+\RequirePackage{graphicx}
+\RequirePackage{fancyvrb}
+\graphicspath{{image/}{figure/}{fig/}{img/}}
+
+% caption settings
+\RequirePackage[font=small,labelfont={bf}]{caption}
+\captionsetup[table]{skip=3pt}
+\captionsetup[figure]{skip=3pt}
+
+% list/itemize/enumerate setting
+\RequirePackage[shortlabels]{enumitem}
+\setlist{nolistsep}
+
+% define the hyperref color
+\RequirePackage{xcolor}
+\definecolor{winered}{rgb}{0.5,0,0}
+
+% bib-settings
+\RequirePackage{natbib}
+\setlength{\bibsep}{0.0pt}
+\def\bibfont{\footnotesize}
+
+% settings for the geometry
+\RequirePackage{hyperref}
+\hypersetup{
+ pdfborder={0 0 0},
+ colorlinks=true,
+ linkcolor={winered},
+ urlcolor={winered},
+ filecolor={winered},
+ citecolor={winered},
+ linktoc=all,
+}
+\RequirePackage[left=1in, right=1in, top=1in, bottom=1in]{geometry}
+
+% add the \email cmd
+\newcommand\email[1]{\href{mailto:#1}{\nolinkurl{#1}}}
+
+
+\DeclareSymbolFont{cmlargesymbols}{OMX}{cmex}{m}{n}
+\DeclareMathSymbol{\intop}{\mathop}{cmlargesymbols}{"5A}
+ \def\int{\intop\nolimits}
+\DeclareMathSymbol{\ointop}{\mathop}{cmlargesymbols}{"49}
+ \def\oint{\ointop\nolimits}
+\DeclareMathSymbol{\sumop}{\mathop}{cmlargesymbols}{"58}
+ \let\sum\sumop
+\DeclareMathSymbol{\prodop}{\mathop}{cmlargesymbols}{"59}
+ \let\prod\prodop
+
+\newcommand\figref[1]{\textbf{Figure}~\ref{#1}}
+\newcommand\tabref[1]{\textbf{Table}~\ref{#1}}
+