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 need to create some kind of title style that must not appear into the TOC and must looks like this, maybe more close to the paragraph.

enter image description here

I try this,

\newcommand{\littt}[1]{
    \begin{flushleft}
    \textbf{#1}
    \end{flushleft}
    \vspace{-1cm}
}

but sometimes looks perfect and sometimes appears over the text.

share|improve this question
    
Have you looked at the titlesec package? –  cmhughes Jan 20 '12 at 4:24
    
With a class from KOMA Script you could simply use the \minisec command. –  Thorsten Donig Jan 20 '12 at 9:04
add comment

2 Answers

Creating your own style is not that difficult. The following minimal example provides \littt{<stuff>} that typesets <stuff> in \large\bfseries and adds a vertical \bigskip between the "title" and the "body". It also prepares the following paragraph to have \noindent:

enter image description here

\documentclass{article}
\newcommand{\littt}[1]{%
  \noindent{\large\bfseries #1}\par\nobreak%
  \kern\bigskipamount\nobreak\noindent\ignorespaces
}
\begin{document}
\littt{Nested Lists}
LaTeX will happily \ldots
\end{document}

The addition of \nobreak discourages page breaks between the "title" and "body". Moreover, since this does not use sectional commands, it won't make its way into the ToC. Reducing the space is also possible by choosing a different value to \kern (for example, \medskipamount or \smallskipamount, or any TeX length for that matter.

Of course, more modifications are also possible (like specifying local changes via an optional argument, for example).

share|improve this answer
add comment

You could use the starred versions of the sectional unit commands (\chapter*, \section*, and so on). These commands insert the title in the same style as their non-starred equivalent, but they leave out the number and don't appear in the table of contents.

Since the starred versions don't insert the titles in the table of contents, they also don't take an optional argument. The normal (non-starred) versions of the sectional unit commands do take an option, which they insert into the table of contents instead of the regular (mandatory) argument.

\chapter*{Nested Lists}

{\LaTeX} will happily, \ldots.

Chapter Title: Nested Lists

\chapter[Wales]%
        {My Amazingly Amusing Adventures in
         Llanfairpwllgwyngyllgogerychw%
         yrndrobwllllantysiliogogogoch}

Short Chapter Title: Wales

share|improve this answer
add comment

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.