Tag Info

Hot answers tagged

6

The space between chapterprefix and chapter is set by \chapterheadmidvskip. If there should be no additional space between this two lines you could use either \renewcommand*\chapterheadmidvskip{\par} or the new interface \RedeclareSectionCommand[innerskip=0pt]{chapter} \addchap changes secnumdepth locally, so \ifnumbered{chapter}. So your ...


4

Use \strut: The code: \documentclass{report} \usepackage{siunitx} \usepackage{microtype,textcomp,textgreek,mathspec} \usepackage{xpatch} % can exclude etoolbox. xpatch loads it anyway, since egreg (xpatch author) extends etoolbox \makeatletter %http://zoonek.free.fr/LaTeX/LaTeX_samples_chapter/0.html \def\thickhrulefill{\leavevmode \leaders \hrule ...


4

Perhaps the following would suffice in order to get what you're looking for: \documentclass{report} \usepackage{xparse,adforn,lipsum} \let\origchapter\chapter \makeatletter \DeclareDocumentCommand\chapter{s o m}{% \IfNoValueTF{#2}{\def\myshortchtitle{#3}}{\def\myshortchtitle{#2}}% \clearpage \thispagestyle{empty}% \vspace*{.25\textheight}% ...


3

Add \adjustmtc after the unnumbered chapter, see page 37 in the manual, section 1.3.4. \documentclass[12pt]{amsbook} \usepackage[english]{babel} \usepackage[utf8]{inputenc} \usepackage{minitoc} \setcounter{minitocdepth}{2} \title{Thesis} \begin{document} \maketitle \dominitoc[n] \nomtcrule \tableofcontents \chapter*{Introduction} \adjustmtc ...


3

If the line above the chapter heading should only be inserted if the chapterprefix is written you could insert this line in \chapterformat. This works also for \chapter* and \addchap*. \documentclass[chapterprefix=true]{scrbook} \RedeclareSectionCommand[ beforeskip=0pt, afterskip=1\baselineskip ]{chapter} \usepackage{etoolbox} ...


3

Note that the following suggestions are limited to chapter headings with only one line. One possibility is appending the gray rule to \chapterheadstartvskip: \documentclass{scrreprt} \usepackage[utf8]{inputenc} \usepackage{blindtext} \usepackage[T1]{fontenc} \usepackage{xcolor} \usepackage{calc} \usepackage{etoolbox} \appto\chapterheadstartvskip{% ...


3

A solution without hardcoding or editing the .cls file directly: The O.P. was right in his assumption about \@makechapterhead: \def\@makechapterhead#1{% \vspace*{50\p@}% {\parindent \z@ \raggedright \normalfont \ifnum \c@secnumdepth >\m@ne \huge\bfseries \@chapapp\space \thechapter \par\nobreak \vskip 20\p@ \fi ...


2

Only if you can switch to an other class: With class memoir you could use the command \chapterstyle{section} to get the desired result. \documentclass[a4paper]{memoir} \chapterstyle{section} \usepackage{blindtext} \begin{document} \blinddocument \end{document} And the class scrbook knows an option chapterprefixline=false ...


2

use \titleformat{\chapter}[display]{\normalfont\bfseries}{\thechapter}{0pt}{\Large} ^^^^^^^^^^^^ or \titleformat{\chapter}[block]{\normalfont\bfseries}{\thechapter}{1em}{\Large} ^^^^^^^^ ^^^^^^^^^^^^ ^^^^ for " 1 title"


2

I've reused the code from my answer to this question Add both part and chapter titles to list of figures with formatting and line wrapping and just added a condition if figure counter is greater than zero, a \caption has been used (most likely). Clearly, this requires a per chapter resetting of the figure counter, which is true in standard classes (and ...


2

The following is based on the definition of \chapter found in base.sty for book class and may not work for modified versions of \chapter. Also, it probably conflicts with the lastpage package. Oh, and you have to manually insert \lastpage at the end of each chapter. \documentclass{book} \usepackage{lipsum} \makeatletter \newcommand{\newlastpage}[2]% ...


2

With the KOMA-Script class scrreprt you can use the option listof=flat to get Note that this needs an additional run. Code: \documentclass[abstract=on, listof=totoc, bibliography=totoc, twoside, BCOR=5mm, listof=flat% <- added ]{scrreprt} \usepackage[ngerman]{babel} \usepackage[T1]{fontenc} \usepackage{lmodern} \begin{document} \listoffigures ...


2

Only a first trial, not perfect. The chapter heading is typeset within \@makechapterhead -- Instead of the standard code, a table can be inserted there, which does the lines 'automatically' \documentclass{book} \usepackage{array} \usepackage{xpatch} \newcolumntype{C}[1]{>{\centering\arraybackslash}m{#1}} \makeatletter \def\@makechapterhead#1{% ...


2

article doesn't have a \chapter command, so what's happening is that this text is being treated as a new paragraph. really, you're not using the article markup at all. since putting in null \section won't do any harm, i'm just going to suggest that you enter your title as \noindent{\Large \bfseries CHAPTER 1: INTRODUCTION} oh, and \maketitle doesn't do ...


2

Despite their name the usual way with KOMA-Script is to redefine \chapterheadstartvskip and \chapterheadendvskip: \documentclass[chapterprefix=true]{scrbook} \renewcommand*\chapterheadstartvskip{\noindent\rule{\linewidth}{4pt}\par} \renewcommand*\chapterheadendvskip{\noindent\rule{\linewidth}{2pt}\par\vspace{\baselineskip}} \usepackage{blindtext} ...


1

if you use the appendix package it is easy. \usepackage[page]{appendix} Here, page option puts the extra page before starting the appendices.


1

% arara: pdflatex \documentclass{report} \usepackage{titlesec} \titleformat{\chapter}[display] {\normalfont% \huge% %change this size to your needs for the first line \bfseries}{\chaptertitlename\ \thechapter}{20pt}{% \Huge %change this size to your needs for the second line } \begin{document} \chapter{Introduction} \section{Motivation} ...


1

The chapter title is set with \@makechapterhead, being called within \@chapter, which is itself is used by \chapter. The normal definition of \@makechapterhead is (see book.cls) \def\@makechapterhead#1{% \vspace*{50\p@}% {\parindent \z@ \raggedright \normalfont \ifnum \c@secnumdepth >\m@ne \if@mainmatter \huge\bfseries ...


1

Another solution with titlesec, which works also with multiline titles: \documentclass[twoside]{book} \usepackage[right=5cm, showframe]{geometry} \usepackage[x11names]{xcolor} \usepackage[explicit]{titlesec} \titleformat{\chapter}{\Huge\bfseries}{\rlap{\hspace*{\dimexpr\textwidth + \marginparsep}\color{IndianRed3}\chaptername{} \thechapter}}{0pt}{#1} ...


1

You can do this just with commands from memoir. If you are using a standard class nextpage offers some additional convenience commands, such as \cleartoevenpage[], which work similarly to those defined by memoir. Here, \cleartoevenpage[] is used in a redefinition of memoir's \clearforchapter: \documentclass{memoir} \usepackage{kantlipsum} ...


1

Use a couple of \MakeUppercase instructions: \documentclass{book} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[spanish]{babel} \usepackage{titlesec} \titleformat{\chapter}[hang] {\normalfont\Large\bfseries} {\MakeUppercase{\chaptertitlename}\ \thechapter:} {.5em} {\MakeUppercase} \begin{document} \mainmatter \chapter{Marco ...



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