Re: [SLUG] Latex question: chapter style

2007-10-10 Thread Nick Croft
* Alan L Tyree ([EMAIL PROTECTED]) wrote:
> 
>
> the Memoir class seems to
> provide facilities to make this kind of design easy: see page 86 of the
> Memoir manual.
> 
> Cheers,
> Alan
> 
Thanks for that Alan.

I am looking at memman.pdf right now, and am printing it out the relevant
pages. 

Nick
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Latex question: chapter style

2007-10-09 Thread Joseph Goncalves
On Tue, 9 Oct 2007, Nick Croft wrote:
> Hi
>
> I'm using latex to (re-)produce a technical manual which is typeset
> in a compact format, and I wish to keep close to the original
> formatting.
>
> The chapter style is quite simple but I can't find the way to modify
> any of the available packages to reproduce it.
>
> So far I've resorted to formatting the chapter heading in-line, as it
> occurs, rather that using a LaTeX technique.
>
> The look of the chapter heading is such that the 'chaptername' and
> 'chapternumber' in \small size, to the left, and the 'chaptertitle'
> is centered, in \LARGE small caps and bold.

I believe you need to use the "titlesec" package. Here is the code that 
I used to colourise the section and subsection commands:

\titleformat*{\section}{\Large\bf\color{clrheadings}}
\titleformat*{\subsection}{\large\bf\color{clrheadings}}

This is the documentation on the package:
http://www.tex.ac.uk/tex-archive/macros/latex/contrib/titlesec/titlesec.pdf

Now when you use \section or \subsection then they will use the 
perscribed style you defined.

This is a good faq that I use regarding your question:
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=secthead

Or in general look at for future questions:
http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes

Regards
-- 
Joseph Goncalves
mailto:[EMAIL PROTECTED]
66D6 71CF 87F9 6B17 6824 C692 9FF0 1DAF 7DAE E661


signature.asc
Description: This is a digitally signed message part.
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Re: [SLUG] Latex question: chapter style

2007-10-09 Thread Alan L Tyree



> There seems to be plenty of help available for fancy chapter
styles.
> What I want is so simple that I haven't been able to find it by
> googling. The essential difficulty is that the chapter name and
> number are to be on the left, while the chapter title is to be
> centered.
> 
> Any ideas? Or do I finally buy the Latex Companion?

Hi Nick,
I haven't actually tried it myself, but the Memoir class seems to
provide facilities to make this kind of design easy: see page 86 of the
Memoir manual.

Cheers,
Alan


> 
> Nick
> -- 
> SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
> Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
> 


-- 
Alan L Tyreehttp://www2.austlii.edu.au/~alan
Tel: +61 2 4782 2670Mobile: +61 427 486 206
Fax: +61 2 4782 7092FWD: 615662
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Latex question: chapter style

2007-10-09 Thread Mike Lake
Hi

> The chapter style is quite simple but I can't find the way to modify
> any of the available packages to reproduce it.

Are you using the Book class or the Article class in the begindocument? 

One can define your own command for this
\newcommand{\mychap}[1]{%
Chapter \thechapter
\vspace{-2mm}
\begin{center}
\LARGE\textsc{\textbf{#1}}
\end{center}
\vspace{2mm}
}

and use it like \mychap{Getting Started}

or you can redefine the \chapter command.
It's tricky. This is what I did ages ago. Have not tested it again.

\makeatletter
%Goosens p 28,29
\renewcommand{\chapter}{\newpage\secdef\cmda\cmdb}
\newcommand{\cmda}[2][default]{%
   \begin{center}%
   \sffamily\Large\bfseries #2%% Arg 2 -> Main Title
   \end{center}%
   \addcontentsline{toc}{section}{#1}% % Arg 1 -> TOC
}
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] Latex question: chapter style

2007-10-09 Thread Nick Croft
Hi

I'm using latex to (re-)produce a technical manual which is typeset in a 
compact format,
and I wish to keep close to the original formatting.

The chapter style is quite simple but I can't find the way to modify any of the
available packages to reproduce it.

So far I've resorted to formatting the chapter heading in-line, as it occurs, 
rather that using
a LaTeX technique.

The look of the chapter heading is such that the 'chaptername' and 
'chapternumber' in \small size, to the left, and the 'chaptertitle' is
centered, in \LARGE small caps and bold.

The following lines produce the right format:

chapter 1
\vspace{-2mm}
\begin{center}
  \LARGE\textsc{\textbf{Getting Started}}
\end{center}
\vspace{2mm}

However I think I should be doing it the latex way...

There seems to be plenty of help available for fancy chapter styles. What I
want is so simple that I haven't been able to find it by googling. The
essential difficulty is that the chapter name and number are to be on the left,
while the chapter title is to be centered.

Any ideas? Or do I finally buy the Latex Companion?

Nick
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html