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

Trouble with titlesec package

255 views
Skip to first unread message

rodney elliott

unread,
Apr 3, 2000, 3:00:00 AM4/3/00
to
Hello Again,

Thankyou to everone for their help with my last problem concerning the
redefinition of the "\chapter" command. I ended up using the "titlesec"
package which works when I use the following code in my main *.tex file
(abridged for brevity):

\documentclass[10pt,a4paper,openright]{report}
\usepackage{c:/latex/localtexmf/sty/fancyhdr/fancyhdr}
\usepackage{c:/latex/localtexmf/sty/named/named}
\usepackage{c:/latex/localtexmf/sty/rotating/rotating}
\usepackage{c:/latex/localtexmf/sty/titlesec/titlesec}

\renewcommand{\chaptertitlename}{}
\titleformat{\chapter}[display]
{\normalfont\huge\bfseries}
{\chaptertitlename}
{0ex}
{\titlerule\vspace{1ex}\thechapter. \Huge}
[\vspace{0.5ex}\titlerule]

But, when I try and use the following modification of the second code
section:

\renewcommand{\chaptertitlename}{}
\titleformat{name=\chapter}[display]
{\normalfont\huge\bfseries}
{\chaptertitlename}
{0ex}
{\titlerule\vspace{1ex}\thechapter. \Huge}
[\vspace{0.5ex}\titlerule]

\titleformat{name=\chapter,numberless}[display]
{\normalfont\huge\bfseries}
{\chaptertitlename}
{0ex}
{\titlerule\vspace{1ex}\Huge}
[\vspace{0.5ex}\titlerule]

then I run into some trouble. Miktex compalins that it cannot find a file
called "ttlkeys.def". However, this file is in the directory
c:\latex\localtexmf\sty\titlesec along with all the others that came in the
package tar.gz file. Can anyone tell me what is going on please? I should
not that in the documentation for the "titlesec" package there is mention of
the fact that in order to use the "name=" switch it is necessary to have the
package "keyval". Now I tried installing this and including:

\usepackage{c:/latex/localtexmf/sty/graphics/graphics}

and also:

\usepackage{c:/latex/localtexmf/sty/graphics/keyval}

but to no avail. Help me Obi Wan Kenobi - your my only hope!

rodney elliott

unread,
Apr 3, 2000, 3:00:00 AM4/3/00
to
OK - I have just solved this problem by putting the "ttlkeys.def" file in
with all my *.tex files. I don't know why miktex did'nt find it in the
...sty\titlesec directory though...any thoughts?

Ralf Stubner

unread,
Apr 3, 2000, 3:00:00 AM4/3/00
to
"rodney elliott" <r.el...@mech.canterbury.ac.nz> writes:

Have you told MiKTeX that you are using a local texmf tree?
Have you refreshed the filename database after installing any new
packages? I think at least to one of these questions your answer will
be no, as you had to use the full path to your *.sty files in the
example you just posted. That is something that is never needed in a
properly setup system.

cheerio
ralf

Giuseppe Bilotta

unread,
Apr 3, 2000, 3:00:00 AM4/3/00
to
rodney elliott <r.el...@mech.canterbury.ac.nz> wrote in message
95472414...@newsch.es.co.nz...

> I ended up using the "titlesec"
> package which works when I use the following code in my main *.tex file
> (abridged for brevity):
>
> \documentclass[10pt,a4paper,openright]{report}
> \usepackage{c:/latex/localtexmf/sty/fancyhdr/fancyhdr}
> \usepackage{c:/latex/localtexmf/sty/named/named}
> \usepackage{c:/latex/localtexmf/sty/rotating/rotating}
> \usepackage{c:/latex/localtexmf/sty/titlesec/titlesec}
>

rathen than specifying the paths, you should use \usepackage{titlesec} etc
(without path); to make sure latex finds the packages, regenerate the
filename database
(with MiKTeX, do a MiKTeX-> Maintenance -> Refresh Filename Database)

> \renewcommand{\chaptertitlename}{}

You shouldn't touch \chaptertitlename; why this?

I don't think this is needed ...

> and also:
>
> \usepackage{c:/latex/localtexmf/sty/graphics/keyval}
>

are you sure the package il loaded? (check the log file; and again, try not
to use the paths, and refresh the filename db)

--
Giuseppe Bilotta
obl...@freemail.it

====================================
This paper contains much that is new
and much that is true.
Unfortunately, that which is true is not new
and that which is new is not true.
(Referee's report)
===================================


0 new messages