How to eliminate the word "Chapter" from the header using "book" documentclass

I'm writing an user manual for an application I made, and I'm using the book documentclass. I was able to eliminate the word "Chapter" from both the begining of the chapter and the table of contents, so it only shows the number and the chapter name. BUT I don't know how to remove it from the page header as well. A MWE (maybe not so minimal...) is as follows:

% !TeX encoding = UTF-8 \documentclass[letterpaper,12pt,oneside]{book} \usepackage[utf8]{inputenc} \usepackage[spanish]{babel} \usepackage[spanish]{layout} \usepackage{graphics,graphicx} \usepackage[bottom=2.5cm,top=3cm,left=1.8cm,right=1.8cm,footnotesep=0.5cm]{geometry} % ,showframe \usepackage[flushmargin]{footmisc}  \makeatletter \def\@makechapterhead#1{%     \vspace*{50\[email protected]}%     {\parindent \[email protected] \raggedright \normalfont         \ifnum \[email protected] >\[email protected]         \[email protected]         %\huge\bfseries \@chapapp\space \thechapter         \Huge\bfseries \thechapter.\space%         %\par\nobreak         %\vskip 20\[email protected]         \fi         \fi         \interlinepenalty\@M         \Huge \bfseries #1\par\nobreak         \vskip 40\[email protected]     } } \def\@makeschapterhead#1{%     \vspace*{50\[email protected]}%     {\parindent \[email protected] \raggedright \normalfont         \ifnum \[email protected] >\[email protected]         \[email protected]         %\huge\bfseries \@chapapp\space \thechapter         \Huge\bfseries \thechapter.\space%         %\par\nobreak         %\vskip 20\[email protected]         \fi         \fi         \interlinepenalty\@M         \Huge \bfseries #1\par\nobreak         \vskip 40\[email protected]     } } \makeatother \addtolength{\footnotesep}{2.5mm} \renewcommand{\thefootnote}{\textbf{\arabic{footnote}}}  \begin{document}  \begin{titlepage}     \centering     %\includegraphics[width=6cm]{pics/logo.png}     \par\vspace{1cm}     {\scshape\LARGE Company's shortname\par}     \par\vspace{1cm}     {\scshape\LARGE Manual de Usuario \par}     \par\vspace{1cm}     {\scshape\Large Company's name \par}     \vfill     {\scshape My name ;) \par}     \today \par \end{titlepage}  \frontmatter \tableofcontents  %\include{./TeX_files/intro} \mainmatter %\include{./TeX_files/primeros_pasos} %\include{./TeX_files/cap_actas} %\include{./TeX_files/cap_fotos} \chapter{This is a chapter} Some filler text here... \footnote{This is the footnote.}  \backmatter % bibliography, glossary and index would go here.  \end{document} 

The result of this would be as in the images below:

How to eliminate the word "Chapter" from the header using "book" documentclass
How to eliminate the word "Chapter" from the header using "book" documentclass
How to eliminate the word "Chapter" from the header using "book" documentclass

Thanks in advance! ;)

Replay

Category: header footer Time: 2016-07-28 Views: 1

Related post

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development

search

Front-end development

Database

development tools

Open Platform

Javascript development

.NET development

cloud computing

server

Copyright (C) avrocks.com, All Rights Reserved.

processed in 0.210 (s). 12 q(s)