Generalchapter heading position

LaTeX specific issues not fitting into one of the other forums of this category.
chao
Posts: 20
Joined: Tue Jun 17, 2008 5:52 pm

Re: chapter heading position

Post by chao »

more questions
how to control the vertical spacing between

chapter1
and
Name of the Chapter?

The default spacing seems to big. I tried \singlespacing but with no effect

Another question
I've set
\setlength{\parindent}{0.30in} % First line indentation
However, only the 2nd and following paragraphs show a planned indent

Sorry to bother you guys with such basic questions.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

chapter heading position

Post by Stefan Kottwitz »

Hi Chao,

change the value 20pt in the \titleformat command that we discussed, for example:

Code: Select all

\titleformat{\chapter}[display]
{\centering\large\bfseries}
{\MakeUppercase{\chaptertitlename}\ \thechapter}{10pt}{\large\MakeUppercase}
Usually there's no indentation after \chapter or \section. You can change that by the indentafter-option:

Code: Select all

\usepackage[indentafter]{titlesec}
Stefan
LaTeX.org admin
sabahmed
Posts: 36
Joined: Thu Aug 04, 2011 8:55 pm

chapter heading position

Post by sabahmed »

Hi All,
i want to do the following:
Chapter 1 (in right most corner)
ChaperHeading (in center)

Code: Select all

\begin{flushright}                            
                                              
\large{\chapter{\emph{\textbf{Chapter 1}}}}   
\end{flushright}                              
                                              
\begin{center}                                
\huge{\textbf{Introduction}}                  
\end{center}                                  
i am using the above mentioned code but it is causing to appear chapter 1 twice....
need some help
Last edited by sabahmed on Wed Sep 28, 2011 6:00 am, edited 1 time in total.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

chapter heading position

Post by localghost »

sabahmed wrote:Hi All,
i want to do the following:
Chapter 1 (in right most corner)
ChaperHeading (in center)
[…]
The titlesec package has already been mentioned several times. You just need to read a little bit in its manual.

Code: Select all

\documentclass[11pt]{report}
\usepackage[T1]{fontenc}
\usepackage{titlesec}

\titleformat{\chapter}[display]
{\bfseries\huge}
{\filleft\chaptertitlename\ \thechapter}
{4ex}
{\filcenter\Huge}

\begin{document}
  \chapter{Foo}
\end{document}
And next time please open a new topic instead of answering to one that is several years old.


Thorsten
Post Reply