# Tag Info

6

You cannot test if your macro is processed right now the page is empty because the processing is asynchronous. But when the page is empty, TeX is in special state in which it ignores all vertical spaces (glues). This means you need to make the rule as "vertical space". This is possible by \leaders primitive: it is only a special type of the vertical or ...

6

The chapter head is set in report.cls by the macro \@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 \interlinepenalty\@M \Huge \bfseries #1\par\nobreak ...

5

This illustrates the default layout of the epigraphs environment which supports multiple quotations: \documentclass{scrreprt} \usepackage{epigraph,url} \begin{document} \chapter{In The Beginning} \begin{epigraphs} \qitem{Friendship with oneself is all-important, because without it one cannot be friends with anyone else in the world.}{Eleanor ...

5

Please always provide a full minimal working example (MWE). I am using the dictum environment KOMA-Script does not have a dictum environment but a \dictum command! If I do two back to back dictums, it simply ignores the first and proceeds with the second. I can't reproduce this when I use the command the way it is shown in the KOMA-Script ...

5

You shouldn't use titlesec with KOMA-script generally. Assuming that you have needs, here is a way. We can use a \parbox or minipage to enclose the chapter title and fix the height of the \parbox/minipage. I have used explicit option for titlesec and used \parbox[t][2\baselineskip][t]{\textwidth} {\MakeUppercase{#1}} Here the height of the box is ...

4

There are no chapter, section or subsection environments. Don't use \begin{chapter} and similar constructions, even if they appear to work. You can make the decision about the numbering automatic: if the section counter is zero, as it is after \chapter, the theorems will be numbered “chapter.theorem”, otherwise “chapter.section.theorem”. No manual resetting ...

4

Rather than abuse the existing chapter and part counters for your metadata, you can create new items to add to the Table of Contents using the existing facilities of tocloft. Then you can use the fncychap formatting for chapters normally. As part of its ability to create new contents lists, tocloft provides a command \newlistentry which lets you populate ...

3

I don't know if this is too late but here is a solution to your problem based on this answer: “Literal” and numerical numbering of chapters and this one too "Literal" numbering of chapters This MWE supports up to 20 chapters but of course you can easily add more chapter numbers in words: \documentclass[12pt,english]{book} \usepackage{fancyhdr} ...

3

OK, let be my comment transformed to the answer. The memoir is very advanced document class, which among many improvements of book class also provide addition ability to define appearance of chapter, section etc title in TOC, heading and in the text. So, for chapter one can say: \chapter[<toc-title>][>head-title>]{<title>}; ...

3

Assuming you do not use the babel package, you could load the hyphenat package with the option none to suppress hyphenation globally: \usepackage[none]{hyphenat} The entry Stopping all hyphenation in the UK List of TeX FAQs lists further possibilities for suppressing hyphenation globally. If, on the other hand, all you want to achieve is to suppress ...

3

It might be a good idea for toptesi to add an option for raggedright titles, but you can add it quite easily. In the example I added a mock word in order to see the hyphenation. \documentclass[12pt, oneside, pdf, english]{toptesi} \usepackage{xpatch} \patchcmd{\section}{\normalfont}{\doraggedright\normalfont}{}{} ...

2

Here's one way to go about implementing issues #1, #2, and #3. (I leave aside #4; but this is an issue that can be dealt with much later on.) \documentclass[11pt,twoside,openright]{book} % If we store the book title in a macro, we can use it in many places \newcommand{\thebooktitle}{Heat and Mass Transfer} % Fonts, encodings, languages ...

2

Too long for a comment: I still don't know, what you want in your headers. You used Contents, so i guess you want the \headmark. There is absolutely no reason to set this by hand. An alternative to fancyhdr would be using the moden package scrlayer-scrpage. And why not use the corresponding KOMA class? \documentclass[10pt,a4paper, twoside]{scrreprt} ...

2

\documentclass[oneside]{book} \begin{document} \chapter*{A} Some text \chapter*{\phantom{A}} Some text without heading, starting at the same position as above. \end{document}

2

If the OP wants to stick to \part .... this answer provides a version with automatic resetting of chapter numbers for each part. In my point of view, the structuring commands should be used differently, see another version below the \part solution. \documentclass[oneside,11pt]{report} % \makeatletter \@addtoreset{chapter}{part} \makeatother ...

2

You have to use the numberless key from titlesec to format \chapter*. I improved and simplified a little your code, using titlesec's tools. I added the geometry package with option showframe to visualize more precisely the resulting layout. \documentclass[draft]{book} \usepackage[table]{xcolor} \usepackage{epigraph} \usepackage[explicit]{titlesec} ...

2

Use the chngcntr package and a manual reset before the 2nd chapter, via \setcounter{thm}{0}. There might be some resetting afterwards necessary! \documentclass{scrreprt} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amsthm} \usepackage{chngcntr}% \theoremstyle{plain}% default \newtheorem{thm}{Theorem}[section] \newtheorem{lem}[thm]{Lemma} ...

2

Simplest hack is to use a group like { %%<--- start the group \backmatter \bibliographystyle{unsrt} \bibliography{xampl} } %%<--- end the group \appendix Code: \documentclass{book} %\usepackage{appendix} \begin{document} \frontmatter \chapter{Some front matter} \mainmatter \chapter{some main matter} ...

1

Within your aghdpl.cls class file, you'll see that chapters are set using a font size \LARGE (line 191-192): \titleformat{\chapter}[block] {\bfseries\LARGE}{\filright \LARGE\thechapter. }{0ex}{} However, ToC-related entries are set using only \Large (line 209): \renewcommand{\cfttoctitlefont}{\bfseries\Large} Since \lstlistoflistings is set just like ...

1

Here's a first cut, but the OP would need to provide more information if he/she would like further refinement. Changes from what the OP provided in his/her MWE are as follows The blue box is moved left by placing it in an \llap The blue margin on either side of the chapter number (argument #2 of \BuildChpNum) was increased from 1ex to 2ex The actual ...

1

I am not entirely sure that I understand what you want but the code below: has a page footer on EVERY page with a line and the page number on the right-hand side has your page headers except on the "first" pages Rather than using fancyhdr etc I define the page headers and footers directly. When you type \pagestyle{mine} what happens is that latex ...

1


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