样式模板(tsu-hl.sty):
\ProvidesPackage{tsu-hl} \RequirePackage{xcolor} \RequirePackage{tikz} \RequirePackage{adjustbox} \RequirePackage{mdframed} \RequirePackage{enumerate} \RequirePackage{showframe, geometry} \RequirePackage{setspace} \RequirePackage[unicode, hidelinks]{hyperref} % Localization \RequirePackage{ucs} \RequirePackage[utf8]{inputenc} \RequirePackage[T1,T2A]{fontenc} \RequirePackage[english,ukrainian]{babel} % Various symbols \RequirePackage{ marvosym } % Martin Vogel’s Symbols font \RequirePackage{ wasysym } % Waldi Symbol font % Needed for the logo \RequirePackage{epstopdf} \RequirePackage[some]{background} % To customize headers and footers and frames \RequirePackage{fancyhdr} \RequirePackage{fancyvrb} % Custom colours \definecolor{tsublack}{cmyk}{.10,0,0,0.95} \definecolor{tsublue1}{cmyk}{1,.4,0,0} \definecolor{tsublue2}{cmyk}{.85,.3,.19,0} \definecolor{tsugreen}{cmyk}{.56,0,.58,0} % Subtitle \newcommand\@subtitle{} \@ifundefined{subtitle}{% \newcommand{\subtitle}1{% \makeatletter% \renewcommand\@subtitle{#1}% \makeatother% }% } % Define headers and footers
\pagestyle{fancy} \fancyhf{} \renewcommand{\headrulewidth}{0pt} \renewcommand{\sectionmark}1{\markboth{#1}{}} \lhead{\textbf{\leftmark}} \rhead{\textbf{\rightmark}} \lfoot{\textbf{\thepage \quad | \@title \quad | \@subtitle}}
\renewcommand\maketitle{ \begin{titlepage} \newgeometry{left=16mm,top=10mm,right=22mm} % TITLES
\restoregeometry \clearpage \end{titlepage} }
\newcommand\makeabstract{ \thispagestyle{empty} \hrulefill \vfill \begin{abstract} \begin{minipage}{0.1\textwidth} % PAGE with contacts \end{minipage} \end{abstract} \clearpage }
文档(whatever.tex):
\documentclass[a4paper, 11pt]{article} \usepackage{tsu-hl} \usepackage{blindtext}
\date{23.03.18} \title{Template} \subtitle{Template Developement}
\begin{document}
\maketitle \makeabstract \thispagestyle{empty} \tableofcontents \clearpage
\section{Title 1} \blindtext
\subsection{Title 2} \blindtext[2]
\subsection{Title 3} \blindtext[3]
\section{Title 2} \blindtext
\subsection{Title 2} \blindtext[2]
\subsection{Title 3} \blindtext[3] \end{document}
结果: