Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I am working on some project in pdflatex. I am not an expert in this so I really need your help :). Well what I am trying to do:

  • I (or somebody) will make some common .tex file (with some text) with regular PDF output using article class.
  • But I want my \chapter , \title, \sections, \subsections and \items to be automatically colored.

Any ideas how can I achieve this effect?

I firstly tried to use just the beamer class and beamerposter.sty to transform the presentation page into A4 size and keep those colors. But the problem was that I can't see my section and subsection (they are only visible in \tableofcontents).

EXAMPLE CODE (and I want this to look a little bit colorful...check out the screenshot)

\documentclass{article}

\usepackage[cp1250]{inputenc}
\usepackage[slovak]{babel}
\usepackage[left=2cm,text={17cm, 23cm},top=3cm]{geometry}
\usepackage{graphicx}


\begin {document}

    \begin{center}
    \rm \large \textbf {blabalablabla}
    \vfill 
    \rm \LARGE \textbf {TITLE}\\    
    \rm \large \textbf {(blabla)}
    \vfill 
    \end{center}

\chapter{CHAPTER}

\section{sec1}

    text - in section 1

\section{sec2}      

    text in section 2

    \begin{itemize}
    \item ITEM
    \end{itemize}

\section{sec3}
    \subsection{subsec1}
        \subsubsection{subsubsec1}

\end {document}

This is just a simple example to show you what i mean.

This is just a simple example to show you what i mean.

share|improve this question
    
Do you have something specific in mind? Do you only need the titles of the sections to be colored or the whole body of them? It would really help if you can provide specific details such that everybody can contribute on different points. –  percusse Dec 26 '11 at 16:13
    
I answered this in the thread that's entitled Changing standard output presentation page size into A4 size –  Marc van Dongen Dec 29 '11 at 14:32
    
I have put some more details into my question. –  Banny Dec 29 '11 at 14:44

1 Answer 1

up vote 4 down vote accepted

Have a look at the following link Fancy Chapter Headings. It uses TikZ to modifiy the style of the heading, maybe it gives you a starting point. Also have a look at the titlesec package which makes it much easier to adjust the sections in TeX.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.