Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- \ProvidesPackage{nnarticle}
- %%% Load these packages
- \RequirePackage[l2tabu, orthodox]{nag}
- \usepackage[danish, english]{babel} % English language/hyphenation
- \usepackage{lmodern}
- \usepackage[T1]{fontenc}
- \usepackage[utf8]{inputenc} % UTF-8
- \usepackage[protrusion=true,expansion=true]{microtype} % Better typography
- \usepackage[pdftex]{graphicx} % Enable pdflatex
- \usepackage[svgnames]{xcolor} % Enabling colors by their 'svgnames'
- \usepackage[hang, small,labelfont=bf,up,textfont=it,up]{caption} % Custom captions under/above floats
- \usepackage{epstopdf} % Converts .eps to .pdf
- \usepackage{booktabs} % Nicer tables
- \usepackage{bold-extra}
- \usepackage{caption}
- \usepackage{parskip}
- \usepackage{wrapfig}
- \renewcommand{\familydefault}{\sfdefault}
- \newcommand\framedimage[1]{\par\begin{center}\frame{\includegraphics[width=0.90\linewidth]{#1}}\end{center}\par}
- \newcommand\unframedimage[1]{\par\begin{center}{\includegraphics[width=0.90\linewidth]{#1}}\end{center}\par}
- \newcommand\nncaption[1]{\par\begin{center}{\captionof*{figure}{#1}}\end{center}\par}
- \usepackage{sectsty} % Custom sectioning (see below)
- {% % Change font of al section command
- \usefont{OT1}{pcr}{b}{n}% % bch-b-n: CharterBT-Bold font
- }
- \sectionfont{% % Change font of \section command
- \usefont{OT1}{pcr}{b}{n}% % bch-b-n: CharterBT-Bold font
- }
- %%% Headers and footers
- \usepackage{fancyhdr} % Needed to define custom headers/footers
- \pagestyle{fancy}
- %%% Custom headers/footers
- \usepackage{lastpage}
- % Header (empty)
- \lhead{}
- \chead{}
- \rhead{}
- % Footer (you may change this to your own needs)
- \lfoot{\footnotesize \texttt{Nørd Nyt}\postauthor{}}
- \cfoot{} % \textbullet ~John Coulthart}
- \rfoot{\footnotesize Side \thepage\ af \pageref{LastPage}} % "Page 1 of 2"
- \renewcommand{\headrulewidth}{0.0pt}
- \renewcommand{\footrulewidth}{0.4pt}
- %%% Creating an initial of the very first character of the content
- \usepackage{lettrine}
- \newcommand{\initial}[1]{%
- \lettrine[lines=3,lhang=0.3,nindent=0em]{
- \color{DarkGrey}
- {\textsf{#1}}}{}}
- %%% Title, author and date metadata
- \usepackage{titling}
- \newcommand{\HorRule}{\color{DarkGrey} % Creating a horizontal rule
- \rule{\linewidth}{1pt}%
- }
- \pretitle{\vspace{-30pt} \begin{flushleft} \HorRule
- \fontsize{20}{20} \usefont{OT1}{phv}{b}{n} \color{Black} \selectfont
- }
- \posttitle{\par\end{flushleft}\vskip 0.5em}
- \preauthor{\begin{flushleft}
- \large \lineskip 0.5em \usefont{OT1}{phv}{b}{sl} \color{Black}}
- %\author{Author Name, } % Author name goes here
- \postauthor{\footnotesize \usefont{OT1}{phv}{m}{sl} \color{Black}
- % Gæsteskribent % Institution of author
- \par\end{flushleft}\HorRule}
- \date{} % No date
- %Diverse:
- %Bold, Italic, and Underline
- %
- %The commands are as follows:
- %
- %\textbf{ Bold }
- %
- %\textit{ Italic }
- %
- %\underline{ Underline }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement