Tag Info

Hot answers tagged

13

You can align on the bottom row of the title: \documentclass{report} \usepackage{color,lmodern,titlesec} \newcommand\chptitle[1]{\parbox[b]{\dimexpr\textwidth-87pt}{\raggedright#1}} \newcommand{\hsp}{\hspace{12pt}} \titleformat{\chapter}[hang]{\huge\bfseries}{{ \fontsize{4.1em}{4.1em}\selectfont\color{black}% ...


8

The image appears to be part of the chapter head design so the most natural place to add it is in \@makechapterhead (or equivalent command in other classes. This adds an image with name \chappic if that command is non empty. \documentclass{book} \usepackage{graphicx} \makeatletter \def\@makechapterhead#1{% \ifx\chappic\@empty \vspace*{50\p@}% \else ...


4

Use \ZeroRoman as defined below: \documentclass{book} \newcommand{\ZeroRoman}[1]{% 0 + \Roman \ifcase\value{#1}\relax 0\else% Chapter 0 \Roman{#1}\fi}% All other chapters \renewcommand{\thechapter}{\ZeroRoman{chapter}} \setcounter{chapter}{-1}% To start chapter numbering from 0 \begin{document} \tableofcontents \chapter{First chapter} ...


4

The TeX error line number points out the source of the error quite accurately (for once:-) it is the \noindent at the end of your chapter toc definition. If you comment out or remove the \noindent on line 37 of your file so it looks like: {\scshape\small\chaptername~\thechapter}\\\sffamily#1% ...


4

This is a quick solution for book.cls, but this does not affect the page chaptermark headings. The book class uses the command\@makechapterhead for setting the chapter heading via \@chapapp\space \thechapter. Replacing this by a patch by \@chapapp\space \Numberstring{chapter} Chapter 1 will be Chapter One etc. The macro \Numberstring from fmtcount ...


4

You are apparently using biblatex, so you can simply use \printbibliography[heading=bibnumbered]


4

In report the page style for \chapter is plain by default. To change this you either need to change the plain page style, which may well have undesired side effects for other formatting in your document, or to patch the \chapter command to use your own style: \usepackage{etoolbox} \patchcmd{\chapter}{plain}{ChapterStyle}{}{} If you had been using ...


4

The OP used \frontmatter in file titlepage.tex -- this is not an error, but there is no \mainmatter as a follow-up, thereby leading the first chapter to be effectively unnumbered and the chapter counter value to be 0. This document shows the wrong usage: \documentclass{scrbook} \begin{document} \tableofcontents \frontmatter \chapter{My sophisticated ...


3

memoir (like most classes) has an [openany] option the same as the standard classes to allow opening pages on either side. After \documentclass[openany]{memoir} \chapter is not constrained to open on an odd page, and so will not throw a blank page but simply place the heading on an even or odd page depending on the current position.


3

In book and report classes the chapter head is set by by \@makechapterhead, the report version is \makeatletter \def\@makechapterhead#1{% \vspace*{50\p@}% {\parindent \z@ \raggedright \normalfont \ifnum \c@secnumdepth >\m@ne \huge\bfseries \@chapapp\space \thechapter % ^^^ ^^ % ...


3

You could use titlesec which offers an interface for customising the titles of the various parts of documents: \documentclass{report} \usepackage{titlesec} \titleformat{\chapter}[hang]{\huge\bfseries}{\makebox[2.5em]{\thechapter\hfill}}{0pt}{} \usepackage{kantlipsum} \begin{document} \chapter{My chapter} \kant[1-2] \end{document}


2

This (trial of a) solution adds an additional optional argument to the \chapter command, which will hold the subtitle and will display it in the next line, using a somewhat smaller fontsize. If not present, there is no subtitle and everything behaves as usual. In my point of view, it's no good idea, to get the subtitle into the page headers, as it will skew ...


2

The book document class issues openright by default, which means that \chapter pages will start on a recto (right) page (typically an odd numbered page): Therefore, it may be that some chapters end without a blank page while others end with one, depending on whether the subsequent page is recto or verso. If you wish to always have a blank page before a ...


2

You can do that easily with titlesec; for instance: \titleformat{\chapter}[block]{\bfseries}{\huge\thechapter}{1em}{\Huge} In this code, block is the shape of label+title (there is no line break between label and title). Next argument is common formatting of label and title ;4th argument is for the label formatting, 5th is separation between label and ...


2

Following the suggestion in How to change the name of document elements like "Figure", "Contents", "Bibliography" etc.?, you need to add the new \chaptername to the greek captions using \addto\captionsgreek{\renewcommand*{\chaptername}{KEFALAIO}} Here is a minimal example showing the adjustment: \documentclass{memoir} ...


2

As far as I understand from the package code, the option CJKnumber has been deprecated and indeed you find ************************************************* * xeCJK warning: "option-deprecated" * * The `CJKnumber' option is deprecated. * You may load the package `CJKnumb' after xeCJK to use its function. * ************************************************* ...


1

Note See the GhostChapters version at the bottom The preliminary entries can be added by faking \addtocontents and omitting the 2nd argument to the original \contentsline{} command, thus removing the page number. In lack of a MWE this works for book, scrbook and memoir classes so far only. \documentclass{book} \usepackage{etoolbox}% ...


1

You can do that using \titlespacing. I also redefined the formatting of the table of contents with the numberless key and removed the \lsstyle command from the toc, as it never should be used with lowercase text. In chpter titles, I apply \lsstyle to the whole title (label+chapter title), with the default value — 0.2em is too large, in my opinion. ...


1

Thesis.cls uses vmargin to configure the page dimensions so you should use this interface if you wish to alter those dimensions. Otherwise, you are likely to get inconsistent and undesired results. The command used by Thesis is: \setmarginsrb {1.5in} % left margin {0.6in} % top margin {1in} % right margin {0.8in} % ...


1

Your image shows that that the chapter number and title are printed on one line INTRODUCTION The number is not prefixed by CHAPTER which we can fix, but first there is an entirely spurious CHAPTER at the start of the table of contents, that is written by the \startthechapters command with the lines \addtocontents{toc}{\protect\mbox{ ...


1

A very basic version could be the following. But to make it bullet proof, more information are needed. \documentclass[oneside]{scrbook} \newkomafont{chapsubtitle}{\normalsize\bfseries} \newcommand{\chapsubvskip}{\vspace{\baselineskip}} \newcommand{\chapsubtitle}[1]{% \begingroup% \usekomafont{disposition}\usekomafont{chapsubtitle}#1\par\endgroup% ...


1

Your MWE does not even use myheadings, but here is a MWE with headings: \documentclass[a4paper]{memoir} \usepackage{lipsum} \makeatletter \addtopsmarks{headings}{}{ % changed left to both \createmark{chapter}{both}{shownumber}{\@chapapp\ }{. \ } } \makeatother \nouppercaseheads \pagestyle{headings} \begin{document} \chapter{test} \lipsum[1-15] ...



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