Tag Info

Hot answers tagged

6

The quickest way is to patch the appropriate commands. To change the spacing before the titles, you need to patch \@makechapterhead (for numbered chapters) and \@makeschapterhead (for unnumbered chapters); to change the spacing after the tiles, you need to patch \DOTI (for numbered chapters) and \DOTIS (for unnumbered chapters). A little example (the second ...


5

The totcount does this without any redefinition. \documentclass[12pt,twoside,letterpaper]{report} \usepackage{totcount} \regtotcounter{chapter} \begin{document} This document has \total{chapter} chapters. \chapter{one} \chapter{two} \chapter{three} \chapter{four} \end{document} The first page will show This document has 4 chapters.


5

If you're using one of the standard document class that provides \chapter (like book or report), then the following works: \documentclass{report} \usepackage{etoolbox}% http://ctan.org/pkg/etoolbox %\usepackage{hyperref}% http://ctan.org/pkg/hyperref \newcounter{subchapter}\renewcommand{\thesubchapter}{\alph{subchapter}} \makeatletter % ...


4

To easily make modifications to the sectional unit headings, you can use the titlesec package: \documentclass{report} \usepackage[top=1.0in,bottom=0.75in,left=1.25in,right=1in]{geometry} \usepackage[onehalfspacing]{setspace} \usepackage{titlesec} \titleformat{\chapter}[block] {\normalfont\LARGE\bfseries}{\chaptertitlename\ \thechapter}{1em}{} ...


4

You can change the code to use \stepcounter{totchapters} rather than \addtocounter{totchapters}{\value{chapter}} Perhaps I have misunderstood the original intent, but here's a complete MWE that works as expected % arara: pdflatex \documentclass{report} \usepackage{etoolbox} \newcounter{totchapters} \providecommand\totchap{} \makeatletter ...


4

The command \cfoot has an optional argument which specifies the plain style which is used for chapter pages. So you can simple do: \cfoot[\raisebox{-0.5em}{ -- \, \textnormal{Page \thepage} \, --}]{\raisebox{-0.5em}{ -- \, \textnormal{Page \thepage} \, --}} Here your modified mwe: \documentclass[a4paper]{scrbook} \usepackage{scrpage2} \clearscrheadfoot ...


4

One possibility is to have two definitions: one for numbered chapters and the other one, for unnumbered chapters, using the numberless key. In the definition for unnumbered chapters, some \phantoms are used to hide the chapter name and the chapter number; for the bonus question, a \rlap will do the job: \documentclass{book} \usepackage[a5paper]{geometry}% ...


4

The problem with your current (re)definition of \chapter is that it removes the ability to use \chapter*{<title>} or \chapter[<ToC entry>]{<title>}. While this may not be a problem in your case, a general approach/solution would be preferred. titleps provides built-in access to the titles of sectional units via \chaptertitle, ...


4

Given the rather strict formatting-related requirements you need to satisfy, the only two free parameters you can vary sensibly for the chapter header page are (i) the amount of additional vertical space inserted above the chapter number (default: 50pt) and (ii) the amount of additional vertical space inserted between the chapter number line and the line(s) ...


4

By adding \setcounter{chapter}{n} before the nth chapter seems to fix the numbering of subsections issue. Also though, you have to reset the numbering of sections. An easy way to do this would to just define a new command. For example: \documentclass{report} \newcommand{\mychapter}[2]{ \setcounter{chapter}{#1} \setcounter{section}{0} ...


4

If I read that correctly, you want chapters to have numbers. These numbers should be shown in the ToC. But the numbers should not be printed in the chapter heading. This can be achieved with the titlesec package: \documentclass{report} \usepackage{titlesec} \titleformat{\chapter} {\Large\bfseries} % format {} % label {0pt} ...


3

The first page of a chapter is typeset using the plain pagestyle so that it stands out from other pages. You can modify it with something like: \fancypagestyle{plain}{% \fancyfoot[LE, RO]{Apurba Paul} \fancyfoot[LO, RE]{Using fancyhdr}} to change the style so your footer is also on the first page of a chapter, leaving the default header unchanged.


3

I don't think that you want to remove the numbering: You want to use words (one, two) instead of numbers in the heading. This can be done (for english) e.g. with the numname package. The exact code depends on your class, here is an example for book: \documentclass{book} \usepackage{numname} \makeatletter %Redefine chapterheading: \def\@makechapterhead#1{% ...


2

You can do something as is done in here. Use code similar to the following: \documentclass{report} \begin{document} \tableofcontents \chapter*{Acknowledgments} \addcontentsline{toc}{chapter}{Acknowledgments} \chapter*{Introduction} \addcontentsline{toc}{chapter}{Introduction} \chapter{Experiments} \chapter{Conclusion} \end{document} The idea is to use ...


2

Here's a way that uses the fabulous arara tool to implement @egreg's solution main.tex % arara: makechapters: {items: [lions, zebras]} \documentclass{report} \begin{document} \include{lions} \include{zebras} \end{document} When you call arara main.tex you will get lions.pdf and zebras.pdf. You can list any number of chapter files in the items ...


2

I think you're taking a wrong approach. You don't need to use \chapter*{Kapitel 1} in order to get that header, just use babel with the ngerman option, which will also give you correct hyphenation. Using \large for getting a larger text font is better substituted by passing the 12pt option to the document class. \documentclass[12pt]{report} ...


2

Usually only information about either the current chapter or section goes in a header, as they need space. The most common way is to have chapter information on left pages (even) and section information on right pages (odd). If your thesis is one-sided, then choose chapters A possible way out is to use two lines in the header, but be careful because it ...


1

To have the header/footer in the first page of every chapter, you can patch (with the help of, for example, etoolbox package) the \chapter command to change the default plain style for fancy. To have the chapter name+chapter number right (left aligned) you can use \filright (\filleft, respectively) in the second argument for \titleformat and then ...


1

You can achieve this by using titlesec package and \titleformat command: \titleformat{\chapter}[display]{\Large\centering}{Chapter \thechapter:}{0pt}{}{} where you choose what command to modify (\chapter), use vertical mode with zero spacing (display and 0pt) and set font and centering (\Large is a 18 pt?). Full listing: \documentclass[12pt]{report} ...


1

So, what I did: copy your \renewcommand*\l@part…, replace \l@part by \l@chapter and remove the \large that I found in this command. So now it looks like: \documentclass{book} \makeatletter \def\@part[#1]#2{% \ifnum \c@secnumdepth >-2\relax \refstepcounter{part}% \addcontentsline{toc}{part}{\protect\numberline{\thepart}#1}%NEW \else ...



Only top voted, non community-wiki answers of a minimum length are eligible