# Tag Info

6

memoir provides the condition \if@mainmatter which you can use to condition on whether or not you're in the \mainmatter section of your document: \documentclass[a4paper,11pt,titlepage,oneside,openany]{book} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{kantlipsum} % empty style for the first page of every chapter, except in \frontmatter ...

4

\pagestyle applies the page style locally, so you ought to put it before the group for \setstretch, or maybe better invoke \clearpage just before the end of the group. \documentclass[11pt,a4paper]{article} \usepackage{fancyhdr} \usepackage{setspace} \lhead{} \rhead{} \chead{Very title\\ Very myself} \cfoot{\thepage} \begin{document} \pagestyle{empty} ...

4

The alphalph commands needs \value{countername} instead of the counter name only, just like \number, e.g. \number\value{countername} always will print the counter as a number, not as defined \thecountername, which could have been defined somewhere else to be totally different what is expected. The correct usage of \AlphAlph is ...

4

Well, this is 'tricky'. Page names are page labels in the sense of PDF. One has to insert a PageLabels object into the pdfcatalog and enable pdfpagelabels=true for the hyperref package. There a label prefixes, specified with the PDF command /P -- here set to 'Cover' The syntax is as follows /Nums[ 0 << /P (Cover) >> 1 << /S /D ...

3

The page where \maketitle has effect uses the plain page style. Redefine it. \documentclass[12pt]{article} \usepackage{fullpage} \usepackage{fancyhdr} \pagestyle{fancy} \fancyhf{} \fancyfoot[R]{Page \thepage} % redefine the plain page style \fancypagestyle{plain}{% \renewcommand{\headrulewidth}{0pt}% no rule above! \fancyhf{}\fancyfoot[R]{Page ...

3

It is impossible to make the page infinitely long, hovever the maximal length is a distance of about 18.892 feet (5.7583 meters). Hence you can write in the preamble e.g. \textheight570cm, which should be enough. I would however recommend smaller values, slightly above the real space needed.

3

The titlesec package provides the \assignpagestyle{\chapter}{<style>} command, which can be used just like \pagestyle but changes only the first page of each chapter. It's the same you are doing with \thispagestyle{}, but without explicitly renewing \chapter.

3

As per the comment, you can use \addtopagecounter{page}{-1} \documentclass[a4paper,11pt,twoside,openany]{book} \usepackage{lipsum} \begin{document} \lipsum[1-4] \newpage\null\thispagestyle{empty}\addtocounter{page}{-1}\newpage \lipsum[5-8] \newpage\null\thispagestyle{empty}\addtocounter{page}{-1}\newpage \lipsum[9-12] ...

2

Using the new and modern package scrlayer-scrpage gives you all you need. Of course, you can use fancyhdr for your document as well. The length of the rules can be changed pretty easily using scrlayer-scrpage but need much more effort with fancyhdr as the default width is synchronized with the headwidth. \documentclass[twoside, ...

2

With the fancyhdr package you can define what is displayed in the header and footer. Getting your desired page numbers would require you to define \fancyfoot[FC]{\{ \thepage \}} in your preamble EDIT: The F is not needed.

2

2

If I understand your setup correctly, you want the first page of every chapter-level unit, whether numbered or unnumbered, to have no page number at all -- neither at the bottom center of a page nor in the header line. You haven't indicated how you've achieved this look for the other chapter-level units, but one way of achieving this look globally, i.e., ...

2

I suggest you insert the instruction \phantomsection between \newpage and \begin{minted}. The purpose of this instruction is to provide an "anchor" of sorts for hyperref, so that a cross-reference to an object that doesn't have an automatic counter associated with it will still take you to the intended location within the document.

2

the \pagenumbering command takes effect immediately, on the current page-in-progress. i suspect that your introduction is not more than one page long, so that would still be "live" when you reset \pagenumbering{arabic}. to delay the effect of this command, insert \clearpage before you issue \pagenumbering.

2

I don't know the answer for the book document class, but with memoir it's a piece of cake: \aliaspagestyle{part}{empty} Consider that memoir was intended to replace book, report and article, offering more power to tweak it at the same time. EDIT: If you still wish to use the book class, put \makeatletter \renewcommand{\part}{% \if@openright ...

2

The problem is quite subtle and lipsum is not really involved. Analysis of the problem The mparhack package makes some annotations in the .aux files, using \newcommand*\mph@outputpage@hook{% \bgroup \advance\c@page\m@ne \immediate\write\@auxout{% \string\mph@setcol{ii:\thepage}{\string\mph@nr}% }% \egroup } and the problem ...

2

REVISED APPROACH (using \contentsline revision, to handle hyperref) With this revision, I totally reworked the approach. The first key was the invocation of the phantom section as \phantomsection\addcontentsline{toc}{Z}{% \protect\rule{0pt}{5ex}{\Large Appendices}} to use type sectioning type Z instead of section. To handle this possibility, I ...

1

If you want that effect only when using \newpage, the code below works \let\anewpage\newpage \renewcommand{\newpage}{\anewpage\addtocounter{page}{1}}

1

Ok, I got something, but I'm not sure it's correct - so more erudite responses will be appreciated. By using package {trace}, I compared the trace outputs for the correct [english] and the problematic [greek,english] options for babel. Both variants end up in this stack trace: \mph@outputpage@hook ->\bgroup \advance \c@page \m@ne \immediate \write ...

1

You could use \renewcommand*{\cftchapterformatpnum}[1]{% \cftchapterformatpnumhook{#1}% %\hb@xt@\@pnumwidth{\hfil\cftchapterpagefont #1} {\quad\cftchapterpagefont #1} } Also see my comment on \chapter*

1

The titlesec package with the pagestyles option lets you define different styles and assign them to 'normal' pages with \pagestyle{<style>} or just for the chapter pages with \assignpagestyle{\chapter}{<style>}. Since you are using the book class, you can define the header and the footer for even and odd sides independently. For example: ...

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