-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathnews.cls
74 lines (68 loc) · 2.87 KB
/
news.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
% Auth: Nicklas Vraa
% Docs: https://github.com/NicklasVraa/LiX
% ------------------------------------------------------------------------------
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{news}[2023/02/10 For newspapers]
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{book}}
\ProcessOptions\relax
\LoadClass[12pt]{book}
% SETUP: -----------------------------------------------------------------------
\RequirePackage[basics, figures, formatting, header, headings, metadata, periodical, publish, size]{lix}
\RequirePackage{times, yfonts}
% OVERRIDES: -------------------------------------------------------------------
\authorfont{\normalsize}
\setlength\parindent{0pt}
\geometry{a3paper, top=22mm, left=14mm, right=14mm, bottom=18mm}
\setlength{\droptitle}{-3.8em}
\setlength{\columnsep}{5mm}
\setcounter{secnumdepth}{0}% Levels of heading that will be numbered.
\titlespacing{\numberless}{0pt}{14pt}{4pt}
\titlespacing{\section}{0pt}{14pt}{4pt}
\titlespacing{\subsection}{0pt}{14pt}{4pt}
\titlespacing{\subsubsection}{0pt}{14pt}{4pt}
\titleformat*{\section}{\Large\bfseries\scshape}
\titleformat*{\subsection}{\bfseries\scshape}
\titleformat*{\subsubsection}{\bfseries\scshape}
\titleformat*{\paragraph}{\bfseries\scshape}
\RenewDocumentCommand{\h}{m}{\section{#1}\label{#1}}
\RenewDocumentCommand{\hh}{m}{\subsection{#1}\label{#1}}
\RenewDocumentCommand{\hhh}{m}{\hh{#1}}
\RenewDocumentCommand{\hhhh}{m}{\hh{#1}}
% HEADER AND FOOTER: -----------------------------------------------------------
\pagestyle{fancy}
\fancyhf{}
\fancyhead[C]{{\footnotesize\textbf{\theDate}}}
\fancyhead[LE,RO]{\textgoth{\theTitle} -- {\footnotesize\textbf{Vol. \theVolume}}}
\fancyhead[RE]{{\footnotesize\textbf{International}} -- \textbf{\thepage}}
\fancyhead[LO]{{\textbf{\thepage} -- \footnotesize\textbf{International}}}
\renewcommand{\headrule}{\vspace*{-2.5mm}\hspace*{-0.5mm}\noindent{\scriptsize\dotfill\hspace*{-0.5mm}}}
\fancypagestyle{front}{%
\fancyhf{}
\fancyhead[C]{{\footnotesize\textbf{\theDate}}}
\fancyhead[L]{{\footnotesize\textbf{Vol. \theVolume\ -- No. \theIssue\ --\ \theLocation}}}
\fancyhead[R]{{\footnotesize\textbf{\theCost}}}
}
\thispagestyle{front}
% LAYOUT: ----------------------------------------------------------------------
\wrap{%
\oldtitle{}
\begin{figure}[H]%
\begin{minipage}[H]{0.20\columnwidth}%
\centering{\small\textit{"\theSubtitle"}}
\end{minipage}%
\begin{minipage}[H]{0.6\columnwidth}%
\begin{center}\scalebox{2}{\Huge\textgoth{\theTitle}}\end{center}
\end{minipage}%
\begin{minipage}[H]{0.20\columnwidth}%
\centering{\small\textit{Editorial Board: \\ \theAuthor}}
\end{minipage}%
\end{figure}
\vspace*{-7.5mm}
\vspace*{-1mm}\hspace*{-0.5mm}\noindent{\scriptsize\dotfill\hspace*{-0.5mm}}
\oldauthor{}
\olddate{}
\addMetadata
\begin{multicols}{4}
}{
\end{multicols}
}