summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-01-10 22:19:11 +0000
committerKarl Berry <karl@freefriends.org>2019-01-10 22:19:11 +0000
commit0b36e207aefc7c595d7acf22e5c68b11b6737ad8 (patch)
tree24bf86b9d6ad9feea9a63c44ad2521b061aa4d0d /Master/texmf-dist/tex
parent45e3a5315a82938122546f24077ca88297b61434 (diff)
elegantpaper (10jan19)
git-svn-id: svn://tug.org/texlive/trunk@49661 c570f23f-e606-0410-a88d-b1316a301751
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}}
+