Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'm trying to do a very simple task but I'm a beginner in LaTeX, so I have some doubts.

I'd like to change the chapter style. Instead of

Chapter 1

Introduction

I'd like to have

C H A P T E R 1 (bold, centered, underlined and one single space between the letters)

Introduction.

Can someone help me with this?

share|improve this question
    
Welcome to TeX.SX! Please add a minimal working example (MWE) that illustrates your problem. It will be much easier for us to reproduce your situation and find out what the issue is when we see compilable code, starting with \documentclass{...} and ending with \end{document}. –  Adam Liter Feb 25 at 1:55
add comment

1 Answer

I am not sure if something like this is what you want:

\documentclass{book}
\usepackage{titlesec}
\usepackage[tracking=true]{microtype}
\usepackage{lipsum}% juts to generate text for the example

\titleformat{\chapter}[display]
  {\normalfont\huge\bfseries}{\filcenter\underline{\MakeUppercase{\textls[400]{\chaptertitlename}}\ \thechapter}}{20pt}{\Huge}

\begin{document}

\chapter{Introduction}
\lipsum[4]

\end{document}

enter image description here

Notice that underlined bold-faced text might be a bad dasign choice.

share|improve this answer
    
Perhaps! I will try without the underline. Just to check: wich command do I have to use to generate an italic text in CHAPTER 1? –  Gustavo Feb 25 at 1:39
    
By the way: THANKS A LOT! –  Gustavo Feb 25 at 1:40
    
@Gustavo You're welcome! You can add \itshape just before \MakeUppercase to have italicized font –  Gonzalo Medina Feb 25 at 1:43
    
I tried to figure out how to adapt this to use an 'english' rule using swrule but no matter what I do, the result looks like a few blocks stuck together. Not that it matters if the underline is being dropped but maybe I misunderstood what that is supposed to do... –  cfr Feb 25 at 2:15
    
@cfr Perhaps something like this? \newlength\ChapNamNumWd \titleformat{\chapter}[display] {\normalfont\huge\bfseries}{\settowidth\ChapNamNumWd{\MakeUppercase{\textls[400]‌​{\chaptertitlename}}\ \thechapter}\filcenter\MakeUppercase{\textls[400]{\chaptertitlename}}\ \thechapter\llap{\raisebox{-6pt}{\swrule{\ChapNamNumWd}{2pt}}}}{20pt}{\Huge} –  Gonzalo Medina Feb 25 at 2:42
show 3 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.