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!
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
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)
===================================