Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

problems with pdflatex and titlesec package

2,158 views
Skip to first unread message

Thomas Götz

unread,
Sep 3, 2003, 2:33:19 AM9/3/03
to
I have the following problem when I'm trying to compile a document with
pdflatex

---snip---

> pdflated document.tex

[...]

! Package titlesec Error: Entered in horizontal mode.

See the titlesec package documentation for explanation.
Type H <return> for immediate help.
...

l.46 \chapter{Einleitung}

---snip---

The corresponding section in my document:

\titleformat{\chapter}
{\huge\sffamily\bfseries\textcolor{grau_dunkel}}
{\thechapter}{6.1ex}{}
\titlespacing{\chapter}{-15ex}{3.5ex plus .1ex minus .2ex}{1.5ex minus .1ex}
\chapter{Introduction}
\thispagestyle{empty}


can't get a hint out of the titlesec-documentation. Anybody knows what this
error could mean? If I compile with 'latex document.tex' I don't get any
error messages...

Ulrike Fischer

unread,
Sep 3, 2003, 4:45:01 AM9/3/03
to
Thomas Götz <t...@richmountain.de> schrieb:

Sent a complete (and real) minimal document that demonstrates your
problem and the error message that belongs to this example. (Your error
message mentions "\chapter{Einleitung}" but your example use
\chapter{Introduction}.)

Ulrike Fischer

Javier Bezos

unread,
Sep 3, 2003, 5:10:00 AM9/3/03
to
Thomas Götz <t...@richmountain.de> wrote in message news:<PWf5b.3541489$mA4.4...@news.easynews.com>...

> \titleformat{\chapter}
> {\huge\sffamily\bfseries\textcolor{grau_dunkel}}

I presume you mean \color. Read the graphics documentation.

Javier

Robin Fairbairns

unread,
Sep 6, 2003, 7:52:54 PM9/6/03
to
jbe...@wanadoo.es (Javier Bezos) writes:
>Thomas Götz <t...@richmountain.de> wrote...

>> \titleformat{\chapter}
>> {\huge\sffamily\bfseries\textcolor{grau_dunkel}}
>
>I presume you mean \color. Read the graphics documentation.

i wasn't surprised by that. does titlesec not preserve the latex rule
that the last thing in the "format" argument may take an argument?

which is not to say it's easy to guess what's going wrong here. as
ulrike said, a _real_ example would help.
--
Robin Fairbairns, Cambridge

Javier Bezos

unread,
Sep 8, 2003, 4:01:19 AM9/8/03
to
r...@cl.cam.ac.uk (Robin Fairbairns) wrote in message news:<bjds0m$qva$4...@pegasus.csx.cam.ac.uk>...

> jbe...@wanadoo.es (Javier Bezos) writes:
> >Thomas Götz <t...@richmountain.de> wrote...
> >> \titleformat{\chapter}
> >> {\huge\sffamily\bfseries\textcolor{grau_dunkel}}
> >
> >I presume you mean \color. Read the graphics documentation.
>
> i wasn't surprised by that. does titlesec not preserve the latex rule
> that the last thing in the "format" argument may take an argument?

Yes, of course, but not here. This argument is reserved for the
global format to be applied to the whole sectioning title, including
the number. In a later argument (ie, that formatting the title itself)
you can do that. Read the titlesec manual :-).



> which is not to say it's easy to guess what's going wrong here. as
> ulrike said, a _real_ example would help.

A real minimal example is essential, indeed.

Javier

0 new messages