# Tag Info

7

This is an approach with »titlesec« where you perhaps need to incorporate your font settings. \documentclass[11pt]{report} \usepackage[T1]{fontenc} \usepackage[explicit]{titlesec} \usepackage{calc} \usepackage{lmodern} \usepackage{lipsum} \titleformat{\chapter}[hang] {\filcenter} {\parbox{\widthof{\LARGE\sffamily\MakeUppercase{\chaptername}\enspace}}{% ...

5

Martin's answer at Fancy Chapter Headings produced the following output (zoomed): The comment by the OP discussed taking Martin's definition of \titleformat: \titleformat{\chapter}[display] {\normalfont\Large\raggedleft} {\MakeUppercase{\chaptertitlename}% \rlap{ \resizebox{!}{1.5cm}{\thechapter} \rule{5cm}{1.5cm}}} {10pt}{\Huge} and adding ...

5

This can be done, but not with a simple command or option; a new chapter style has to be defined. Below there's an invhangnum chapter style with the required specifications: \documentclass{memoir} \usepackage{lipsum}% just to generate text for the example \makechapterstyle{invhangnum}{% \setlength\beforechapskip{0pt}% ...

5


5

The problem here is that you set the section title in a TikZ \node, and by default this is a box that doesn't allow line breaking, it will just become as wide as the contents of the node. To fix this, set a text width for the node, this will cause the node text to break when exceeding that width. You probably also want to change the anchor of that node, or ...

4

Redefine it in this way (you were missing a \par at least, and use \dimexpr\linewidth-2\fboxsep-2\fboxrule instead of simply \linewidth to avoid bad boxes) \def\@makeschapterhead#1{% \noindent\fbox{\parbox{\dimexpr\linewidth-2\fboxsep-2\fboxrule}{% \centering\large\bfseries #1% }}\par\nobreak} MWE: \documentclass{report} \makeatletter ...

4


3

If your first and text values are the same, you can achieve this using: \documentclass{report} \usepackage{etoolbox} \usepackage[colorlinks]{hyperref} \usepackage [ nohypertypes={main}% suppress automatic links for main glossary ] {glossaries} % reset entries at the start of each chapter \preto\chapter{\glsresetall} \makeglossaries % Modify the ...

3

The normal behavior with scrbook is not the one you've mentioned, but this one: obtained with \documentclass{scrbook} \begin{document} \chapter{Test} \end{document} I think you want scrbook to simulate the standard book class. Using titlesec, which is not completely advised when using KOMA classes, you can obtain something similar (respecting the ...

3

Turn on this chapter prefix by loading the class with the chapterprefix option. For details please have a look at the »KOMA-Script« user guide. \documentclass[chapterprefix=on]{scrbook} \usepackage[T1]{fontenc} \usepackage{blindtext} \begin{document} \blinddocument \end{document}

3

You can use \markboth{}{} to remove the headers: \documentclass[12pt,a4paper]{book} \usepackage{graphicx} \usepackage[utf8]{inputenc} \usepackage{lipsum} \usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry} \author{G M} \title{How to remove unwanted heading?} \begin{document} \chapter[THIS IS THE FIRST CHAPTER NOT THE CONLCUSION]{Test} ...

3

Quick fix: Redefine \contentsname \renewcommand{\contentsname}{TABLE OF CONTENTS} and apply a patch to \@makeschapterhead locally only for the ToC, that means, when you have to issue \tableofcontents, write the lines: {\makeatletter \patchcmd{\@makeschapterhead} {\raggedright} {\centering} {} {} \tableofcontents \makeatother} MWE: ...

3

The trick is to make \chapter* call the original \chapter. However, one has to patch \tableofcontents and the other list making commands because they have \chapter* in them. \documentclass{book} \usepackage{xparse,xpatch} \usepackage{lipsum} \usepackage{tocvsec2} \let\ORIchapter\chapter \RenewDocumentCommand\chapter{som}{% \IfBooleanTF{#1} { ...

3


3

The titlesec package redefines \chapter at begin document, so you have to delay your own redefinition. I present the version with the glossary, to show that everything goes well; I removed the hack for tocvsec2 since I updated my distributions. \documentclass{book} \usepackage{lipsum} \usepackage{xparse,xpatch} \usepackage{tocvsec2} \usepackage{titleps} ...

2

You are using the Lenny chapter style from fncychap (this style is, in my opinion, a little ugly and perhaps you should reconsider using it). Redefining \thechapter to produce a title and its formatting is not the thing to do; \thechapter is only for the representation of the chapter counter; misusing it as you did in your example code will produce the ...

2

Another solution, also with titlesec, but using tabular environments: \documentclass[12pt,a4paper]{book} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{microtype} \usepackage[svgnames, x11names]{xcolor} \newcommand*\ftsize[1]{\fontsize{#1pt}{\numexpr 1.2*#1\relax pt}\selectfont} ...

2

As suggested by egreg, you can use \titleformat{name=\chapter,numberless}[display] {\normalfont\bfseries\LARGE} {}{1pc} {{\titlerule[0pt]}\vspace{1pc}\MakeUppercase} I have added some lines for \titlespacing also. Adjust the values as you like. Full code: \documentclass{book} \usepackage{xcolor,showframe} %% showframe just for demo ...

2

Loading the emptypage package solves the problem in a different way and I recommend it anyway, because it removes headers and footers from otherwise empty pages. Of course, this wouldn't solve the issue if the conclusions chapter is longer than one page. Another strategy, if you don't have appendices or other numbered material, is to issue \backmatter ...

2

If you want that, you can use this: \documentclass[twoside,openright]{report} twoside: Sets different margins (and some other stuff) in odd and even pages. openright: Chapters open on the right page. You should probably want to use this package too: \usepackage{emptypage} This package makes the blank page really blank, without page number and that ...

1

'I wrote a tikz code for upper right rounded corner box because i don't want to use \usepgflibrary{qrr.shapes.openrectangle} this is my code: \documentclass{book} \usepackage{tikz} \usetikzlibrary{positioning,calc,backgrounds} \definecolor{mybluei}{RGB}{0,173,239} \newcommand{\newtab}[2]{% \begin{tikzpicture} \node[inner sep=2mm,text=white] (#1) ...

1

Since you are using the journal class informs3.cls, it does not provide \chapters. You can modify \chapter to insert a "chapter-like entry in the ToC" or merely write what you want to the ToC. I've done the latter since it's faster/easier: \documentclass{informs3}% ...

1

The following redefinition worked for me: \def\tableofcontents{\@restonecolfalse \if@twocolumn\@restonecoltrue\onecolumn\fi %\chapter*{\,%\contentsname % \@mkboth{\uppercase{\contentsname}}{\uppercase{\contentsname}} % }% %\clearpage \begin{center} \MakeUppercase{\contentsname} \end{center} \par % ...

1

As texenthusiast said, texdoc is your friend, but the little documentation is in german only (although with a english abstract). Nonetheless, the functions of the few new commands that you will see as \smalltableofcontents are rather obvious, but in any case you can just ignore these commands and use only the standard article commands. May be is helping ...

1

I just found the way to solve the problem (please, if somebody can explain to me why does it works, I will be delighted). I changed the definition of makeschapterhead by the following: \def\@makeschapterhead#1{ \begin{center} \fbox{\parbox{\linewidth}{\centering \large\bfseries #1 }} \end{center} } That is, I just enclosed my definition ...

1

I'm not familiar with LyX and unfortunately I have problems installing it. However, your problem can be solved by redefining the chapter command. Add the following to your preamble in LyX: \renewcommand{\thechapter}{\Roman{chapter}} It will look something like this: If you want small roman numerals, simply use \roman{chapter}.

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