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 am using a university template and want to modify it just a little bit.

How can I remove the dot behind the chapter in the headings?

Here is a "minimal" example.

\documentclass[paper=a4 , twoside=false, 11pt, numbers=noenddot, bibliography=totoc, listof=totoc]{scrreprt}

\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage[ngerman,USenglish]{babel}

\usepackage{helvet}
\renewcommand{\familydefault}{cmss}

\usepackage{type1ec}

\usepackage{fancyhdr}
\lfoot[\fancyplain{}{}]{\fancyplain{}{}}
\rfoot[\fancyplain{}{}]{\fancyplain{}{}}
\cfoot[\fancyplain{}{\footnotesize\thepage}]{\fancyplain{}{\footnotesize\thepage}}
\lhead[\fancyplain{}{\footnotesize\nouppercase\leftmark}]{\fancyplain{}{}}
\chead{}
\rhead[\fancyplain{}{}]{\fancyplain{}{\footnotesize\nouppercase\sc\leftmark}}


\begin{document}

\pagestyle{plain}

\chapter*{Abstract}

\pagenumbering{Roman}

\tableofcontents
\newpage

\newcounter{romancount}
\setcounter{romancount}{\value{page}}

\setcounter{page}{1}
\pagenumbering{arabic}

\pagestyle{fancy}

\chapter{Introduction}
text
\clearpage
text
\clearpage

\chapter{Conclusion and Outlook}

\newpage
\pagenumbering{Roman}
\setcounter{page}{\value{romancount}}

\listoffigures
\clearpage

\listoftables
\clearpage

\addchap{List of Abbreviations}                 %adds a chapter without numerating it
\markboth{List of Abbreviations}{}          %add the name of the chapter to headings

\end{document}

enter image description here

Edit

changing to a more simple fancyhdr setup like

\fancyfoot[C]{\footnotesize\thepage}
\fancyhead[R]{\footnotesize\scshape\nouppercase{\leftmark}}

and then removing the dots with the mentioned code is not working for me, because it also changes the style of the header. And I don't want to change the appearance of the template

my setup

enter image description here

simpler but changed setup

enter image description here

isn't there a way of leaving my setup/the template as it is and just remove the dots?

share|improve this question
    
I think you should start by incorporating the answers to the other questions you have asked on this site today. The fancyhdr code you include above is out of date (belonging the fancyheadings package), and egreg has shown you a correct version. –  Andrew Swann Aug 13 '13 at 12:58
1  
I don't know if you "feel" to change to titleps, but see my edited answer to see how it is simple to use. –  karlkoeller Aug 13 '13 at 16:25
    
@karlkoeller I really like your solution! Here, the only problem is the problem I have in the other thread: Now all pagenumbers of pages who are not fanncy (abstract, ALL first pages of chapters, appendix) are not affected and therefore have normal sized page numbers. How can I change them also to footnoted pagenumbers? (@all: sorry for these two threads I will merge them when I have finished this work) –  Benjamin Massow Aug 13 '13 at 16:41
1  
@BenjaminMassow In my answer they are changed to footnote size. –  karlkoeller Aug 13 '13 at 17:00
    
@BenjaminMassow If you want to do that with fancyhdr add this in the preamble: \fancypagestyle{plain}{\fancyhf{} \fancyfoot[C]{\footnotesize\thepage} \renewcommand{\headrulewidth}{0pt} \renewcommand{\footrulewidth}{0pt}} –  karlkoeller Aug 13 '13 at 18:37

2 Answers 2

up vote 4 down vote accepted

First, make \leftmark consist of just the chapter heading by adding:

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

This line should be placed after \pagestyle{fancy}.

Next, use the new \leftmark to make a header in the desired format.

\rhead[\fancyplain{}{}]{\fancyplain{}{\footnotesize\nouppercase\sc{\chaptername\ \thechapter\ \leftmark}}}
share|improve this answer
    
Welcome to TeX.SX. You can highlight code by selecting it and clicking the button marked {} above the text field. This will indent blocks by four spaces, or enclose words in backticks (`). –  Torbjørn T. Aug 13 '13 at 10:55
    
Thanks! I am indeed new here, although I've used the answers on the forum many times before. It looks a lot clearer now. –  GrowMyHair Aug 13 '13 at 10:57
    
:-( I do not get it run with my code. Can u assist me? –  Benjamin Massow Aug 13 '13 at 12:00
    
I noticed there was an extra \ in the 'Without dot' code. That might be the problem... –  GrowMyHair Aug 13 '13 at 12:10
1  
Made some modifications to the answer, to make the implementation clearer. I did run it this time and it did work for me. –  GrowMyHair Aug 13 '13 at 14:34

If you don't want to deal with the complexity of fancyhdr hacking, you can switch to the titleps package, which is really simpler to manage.

Try the following example

\documentclass[paper=a4 , twoside=false, 11pt, numbers=noenddot, bibliography=totoc, listof=totoc]{scrreprt}

\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage[ngerman,USenglish]{babel}

\usepackage{helvet}
\renewcommand{\familydefault}{cmss}

\usepackage{type1ec}

\usepackage{titleps}

\renewpagestyle{plain}{%
  \sethead{} % left
          {} % center
          {} %right
  \setfoot{} % left
          {\footnotesize\thepage} % center
          {} %right
}

\newpagestyle{fancy}{%
  \sethead{} % left
          {} % center
          {\footnotesize\scshape\chaptername~\thechapter~~\chaptertitle} %right
  \setfoot{} % left
          {\footnotesize\thepage} % center
          {} %right
  \setheadrule{.4pt}
}

\begin{document}

\pagestyle{plain}

\chapter*{Abstract}

\pagenumbering{Roman}

\tableofcontents
\newpage

\newcounter{romancount}
\setcounter{romancount}{\value{page}}

\setcounter{page}{1}
\pagenumbering{arabic}

\pagestyle{fancy}

\chapter{Introduction}
text
\clearpage
text
\clearpage

\end{document}  

which gives the desired headings

enter image description here

and desired footings in footnote size, even in plain pages.

EDIT

You can change

          {\footnotesize\scshape\chaptername~\thechapter~~\chaptertitle} %right

to

          {\footnotesize\MakeUppercase{\chaptername~\thechapter~~\chaptertitle}} %right

if you want this result:

enter image description here

share|improve this answer

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.