% example file to change the style of LaTeX % Tony Roberts May 2004 % first colour for latex or pdflatex \ifx\pdfoutput\@undefined\usepackage[usenames,dvips]{color} \else\usepackage[usenames,dvipsnames]{color} % and fix pdf colour problems \IfFileExists{pdfcolmk.sty}{\usepackage{pdfcolmk}}{} \fi % second test for a5paper \ifdim\paperwidth=148mm \usepackage[a5paper]{geometry}\fi % lastly load colour hyperref \usepackage[colorlinks]{hyperref} \let\LaTeXtitle\title \renewcommand{\title}[1]{\LaTeXtitle{\color{Brown}\textsf{#1}}} \pagestyle{headings} % crunching MakeUppercase is very naughty \renewcommand{\MakeUppercase}[1]{\color{OliveGreen}\textsf{#1}} \renewcommand{\abstractname}{\color{blue}Abstract} \renewcommand{\figurename}{\color{Sepia}Figure} \renewcommand{\tablename}{\color{Sepia}Table} \let\LaTeX@startsection\@startsection \renewcommand{\@startsection}[6]{\LaTeX@startsection% {#1}{#2}{#3}{#4}{#5}{\color{blue}\raggedright #6}}