1

I want the chapter name to appear on the header without numbering.What should I do?I tried removing the section mark but it doesn't just work?

Here is the code:

%Template for Technical Document
\documentclass{book}
\usepackage[a4paper,margin=1in,bindingoffset=0.2in,centering,headheight=0.3in,heightrounded]{geometry}
\usepackage{fancyhdr}
\usepackage[a4paper,margin=1in,bindingoffset=0.2in,centering,headheight=0.3in,heightrounded]{geometry}
% Can also use centering, or hcentering


\fancypagestyle{myfancy}{
\fancyhf{}
\fancyhead[LE,RO]{\slshape\nouppercase{\rightmark}}
\fancyhead[LO,RE]{\slshape\nouppercase{\leftmark}}
\fancyfoot[LE,RO]{\thepage}
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0.4pt}
}
\renewcommand{\chaptermark}[1]{%
\markboth{#1}{}
}
\renewcommand{\sectionmark}[1]{%
\markright{#1}{}}

\usepackage{microtype}

\usepackage{afterpage}
\let\oldcleardoublepage\cleardoublepage
\renewcommand{\cleardoublepage}{\afterpage{\thispagestyle{empty}}\oldcleardoublepage}

\pagestyle{myfancy}

\begin{document}
\chapter*{Install Backtrack on an Android Device}
\section{What is Backtrack?}
BackTrack is a distribution designed by Jason Dennis based on the Ubuntu Linux distribution aimed at digital forensics and penetration testing use. BackTrack provides users with easy access to a comprehensive and large collection of security-related tools ranging from port scanners to Security Audit. Support for Live CD and Live USB functionality allows users to boot BackTrack directly from portable media without requiring installation, though permanent installation to hard disk and network is also an option.\par
\section{Security Tools in Backtrack}
BackTrack includes many well known security tools including:
\begin{itemize}
    \item Metasploit for integration
    \item Wi-Fi drivers supporting monitor mode (rfmon mode) and packet injection
    \item Aircrack-ng
    \item Gerix Wifi Cracker
    \item Kismet
    \item Nmap
    \item Ophcrack
    \item Ettercap
    \item Wireshark (formerly known as Ethereal)
    \item BeEF (Browser Exploitation Framework)
    \item Hydra
    \item OWASP Mantra Security Framework, a collection of hacking tools, add-ons and scripts based on FirefoX.
    \item Cisco OCS Mass Scanner, a very reliable and fast scanner for Cisco routers with telnet and enabling of a default password.
\end{itemize}

\section{Installing Backtrack on Android Device}
\subsection{Tools Required}
\begin{enumerate}
\item Backtrack 5 ARM.\\
Download Backtrack 5 ARM from Backtrack official site. Backtrack with ARM architecture only on Backtrack 5 version. ARM architecture not available for Backtrack 5 R1, Backtrack 5 R2, and Backtrack 5 R3.
\item Rooted android device \\
Why rooted android device ? Because we need install some application that need Android to be root
\item Busybox, Superuser, Terminal Emulator, and AndroidVNC. \\
You can download search and all of them on Google Play. BusyBox is installer and uninstaller Android program, Superuser is superuser rights manager for Android, Terminal Emulator is Android's built-in Linux command line shell program, and AndroidVNC is a VNC viewer for Android.
\end{enumerate}
\subsection{Installation}
\begin{enumerate}
\item Extract BT5-GNOME-ARM.7z to folder, for example "BT5" folder and then put on device root directory.
\item Open Terminal Emulator on device then go to BT5 folder using the command \verb+ cd sdcard/BT5 +
\item Then run this following command \verb+ su + and \verb+ sh bootbt + and you will see \verb+ root@localhost +
\item Now lets run Backtrack GUI with VNC viewer \verb+startvnc+
\item To connect wth VNC we must know the port where VNC listening. Run \verb+netstat -anpt+ and remember the port where VNC listening. In this case the port is 59016. Open AndroidVNC and fill the form like this: \\
Nickname : BT5\\
Password : toortoor\\
Address  : 127.0.0.1\\
Port     : 5901 \\
\item Connect it and you will see Backtrack 5 interface \par
\textit{Remember! Some of the Backtrack tools can't work properly and do it for your own risk. I hope you can Install Backtrack on Android device without any problems, tell me if you get problems.}
\end{enumerate}
\end{document} 

When I use section* I don't get anything on the header. enter image description here

  • The stared version does not produce a header. Use \chapter{}. – Sigur Feb 1 '14 at 13:06
  • But then I will get chapter 1 in the heading which I dont want and how to remove the numbers – subham soni Feb 1 '14 at 13:17
  • @MarcoDaniel I have already used it in the code, its there – subham soni Feb 1 '14 at 13:43
1

Related to the documentation of fancyhdr and the included example at page 10 you can use:

\renewcommand{\chaptermark}[1]{\markboth{#1}{}}

Here's a reduced example:

\documentclass{book}
\usepackage[a4paper,margin=1in,bindingoffset=0.2in,centering,headheight=0.3in,heightrounded]{geometry}
\usepackage{fancyhdr}

\fancypagestyle{myfancy}{%
\fancyhf{}%
\fancyhead[LE,RO]{\slshape\nouppercase{\rightmark}}%
\fancyhead[LO,RE]{\slshape\nouppercase{\leftmark}}%
\fancyfoot[LE,RO]{\thepage}%
\renewcommand{\headrulewidth}{0.4pt}%
\renewcommand{\footrulewidth}{0.4pt}%
}
\pagestyle{myfancy}
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\renewcommand{\sectionmark}[1]{\markright{#1}}
\usepackage{kantlipsum}

\begin{document}
\chapter{Install Backtrack on an Android Device}
\section{What is Backtrack?}
\kant[1]
\section{Security Tools in Backtrack}
\kant

\section{Installing Backtrack on Android Device}
\subsection{Tools Required}
\kant
\end{document} 
  • I have already used it. It is there in the code – subham soni Feb 1 '14 at 13:42
  • @subhamsoni: Call it after \pagestyle{myfancy} – Marco Daniel Feb 1 '14 at 13:58
  • I don't want Chapter 1 to come on the heading – subham soni Feb 1 '14 at 14:18
  • @subhamsoni: I changed your chapter* to chapter for testing. – Marco Daniel Feb 1 '14 at 14:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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