Advertisement
Guest User

Untitled

a guest
May 28th, 2012
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.06 KB | None | 0 0
  1. \ProvidesPackage{nnarticle}
  2.  
  3.  
  4.  
  5. %%% Load these packages
  6. \RequirePackage[l2tabu, orthodox]{nag}
  7. \usepackage[danish, english]{babel} % English language/hyphenation
  8. \usepackage{lmodern}
  9. \usepackage[T1]{fontenc}
  10. \usepackage[utf8]{inputenc} % UTF-8
  11. \usepackage[protrusion=true,expansion=true]{microtype} % Better typography
  12. \usepackage[pdftex]{graphicx} % Enable pdflatex
  13. \usepackage[svgnames]{xcolor} % Enabling colors by their 'svgnames'
  14. \usepackage[hang, small,labelfont=bf,up,textfont=it,up]{caption} % Custom captions under/above floats
  15. \usepackage{epstopdf} % Converts .eps to .pdf
  16. \usepackage{booktabs} % Nicer tables
  17. \usepackage{bold-extra}
  18. \usepackage{caption}
  19. \usepackage{parskip}
  20. \usepackage{wrapfig}
  21.  
  22.  
  23. \renewcommand{\familydefault}{\sfdefault}
  24.  
  25. \newcommand\framedimage[1]{\par\begin{center}\frame{\includegraphics[width=0.90\linewidth]{#1}}\end{center}\par}
  26. \newcommand\unframedimage[1]{\par\begin{center}{\includegraphics[width=0.90\linewidth]{#1}}\end{center}\par}
  27. \newcommand\nncaption[1]{\par\begin{center}{\captionof*{figure}{#1}}\end{center}\par}
  28.  
  29. \usepackage{sectsty} % Custom sectioning (see below)
  30. {% % Change font of al section command
  31. \usefont{OT1}{pcr}{b}{n}% % bch-b-n: CharterBT-Bold font
  32. }
  33.  
  34. \sectionfont{% % Change font of \section command
  35. \usefont{OT1}{pcr}{b}{n}% % bch-b-n: CharterBT-Bold font
  36. }
  37.  
  38.  
  39. %%% Headers and footers
  40. \usepackage{fancyhdr} % Needed to define custom headers/footers
  41. \pagestyle{fancy}
  42.  
  43. %%% Custom headers/footers
  44. \usepackage{lastpage}
  45.  
  46. % Header (empty)
  47. \lhead{}
  48. \chead{}
  49. \rhead{}
  50.  
  51. % Footer (you may change this to your own needs)
  52. \lfoot{\footnotesize \texttt{Nørd Nyt}\postauthor{}}
  53. \cfoot{} % \textbullet ~John Coulthart}
  54.  
  55. \rfoot{\footnotesize Side \thepage\ af \pageref{LastPage}} % "Page 1 of 2"
  56. \renewcommand{\headrulewidth}{0.0pt}
  57. \renewcommand{\footrulewidth}{0.4pt}
  58.  
  59. %%% Creating an initial of the very first character of the content
  60. \usepackage{lettrine}
  61. \newcommand{\initial}[1]{%
  62. \lettrine[lines=3,lhang=0.3,nindent=0em]{
  63. \color{DarkGrey}
  64. {\textsf{#1}}}{}}
  65.  
  66.  
  67. %%% Title, author and date metadata
  68. \usepackage{titling}
  69. \newcommand{\HorRule}{\color{DarkGrey} % Creating a horizontal rule
  70. \rule{\linewidth}{1pt}%
  71. }
  72.  
  73. \pretitle{\vspace{-30pt} \begin{flushleft} \HorRule
  74. \fontsize{20}{20} \usefont{OT1}{phv}{b}{n} \color{Black} \selectfont
  75. }
  76.  
  77. \posttitle{\par\end{flushleft}\vskip 0.5em}
  78.  
  79. \preauthor{\begin{flushleft}
  80. \large \lineskip 0.5em \usefont{OT1}{phv}{b}{sl} \color{Black}}
  81. %\author{Author Name, } % Author name goes here
  82. \postauthor{\footnotesize \usefont{OT1}{phv}{m}{sl} \color{Black}
  83. % Gæsteskribent % Institution of author
  84. \par\end{flushleft}\HorRule}
  85.  
  86. \date{} % No date
  87.  
  88.  
  89. %Diverse:
  90. %Bold, Italic, and Underline
  91. %
  92. %The commands are as follows:
  93. %
  94. %\textbf{ Bold }
  95. %
  96. %\textit{ Italic }
  97. %
  98. %\underline{ Underline }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement