Tag Info

Hot answers tagged

8

What Plass proved in his PhD thesis was that paginating documents using dynamic programming with very specific functions for optimisation are NP complete but also that for other functions this is not the case. Nevertheless Knuth felt that there isn't any method (i.e., a reasonable goal function to minimize) that would both work in practice with the computer ...


7

This is very interesting problem. So I tried to solve this in my favorite macro package, i.e. plain TeX. You can be inspired by this and you (or somebody else) can try to re-implement these ideas to LaTeX. We need to set the \output routine in order to do the specified page design. I din't do this (for sake of simplicity and for the reason that plain TeX ...


5

For pdfTeX: \documentclass{report} \pagenumbering{Roman} \begin{document} \chapter{chap1} Bla bla bla \cleardoublepage % Best place at the start of the Arabic numbered pages % after \cleardoublepage and before the page number is % reset in \pagenumbering{arabic}. \pdfcatalog{% /PageLabels<<% /Nums[% % Page numbers are zero based. ...


4

The \pagenumbering command applies to the current page. Issuing before \chapter{Introduction} means that it applies to the page you are on at that time, in this case the List of Abbreviations. Instead you can move \pagenumbering it to just after \chapter{Introduction} to get the new numbering to start on that page. Had you been using the book class ...


4

By considering the default setup for ps@plain found in the amsclass documentation, I was able to change the plain pages to use header numbering (with no running title) as follows: \makeatletter \def\ps@plain{\ps@empty \def\@evenhead{% \normalfont\scriptsize \rlap{\thepage}\hfil }% \def\@oddhead{% \normalfont\scriptsize \hfil ...


4

This should serve as a starting point. \documentclass[ebook,oneside,openany,17pt]{memoir} \usepackage[margin=0.3in]{geometry} \usepackage[hidelinks]{hyperref} \usepackage{blindtext} %% for demo \setsecnumformat{} \pagestyle{empty} \makeatletter \let\ps@plain\ps@empty \makeatother \providecommand\chapfont{} \makechapterstyle{mychap}{ ...


4

FWIW, in ConTeXt you can use \startpostponing to print content on a particular page. For example, to position text (or float) on the next page, use: \starttext .... \startpostponing[+1] ... \stoppostponing ... \stoptext To position text or float on a particular page (say 20), use \startpostponing[20] ... \stoppostponing \starttext .... % Content must ...


3

My first thought would be to use TikZ, but you don't need TikZ if you're willing to load the xcolor package. Here's my poor man's version: \documentclass{article} \usepackage{xcolor} \usepackage{fancyhdr} \fancyhf{} \pagestyle{fancy} \renewcommand{\sectionmark}[1]{\markboth{\thesection.\ #1}{}} \renewcommand{\headrulewidth}{0.3pt} ...


3

Because of you are using the KOMA-Script class scrartcl I would suggest to use scrlayer-scrpage instead fancyhdr. Then you can define and insert a new layer for the background of the pagenumber. \documentclass[12pt,numbers=enddot,parskip=full]{scrartcl} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \usepackage{blindtext} ...


2

Package hyperref also adds support for the PDF page labels. It uses \thepage for this purpose. The cover page can be labeled by \thispagepagelabel: \documentclass{report} \usepackage{hyperref} \begin{document} \begin{titlepage} \hypersetup{pageanchor=false} \thispdfpagelabel{Cover} \Huge Cover \end{titlepage} \pagenumbering{roman} \tableofcontents ...


2

Here is one example using the \AddThispageHook feature of the everypage package, which as you will see upon compilation, converts to red font between pages 1 and 2, which is after the actual invocation point. \documentclass{article} \usepackage{everypage,lipsum,xcolor} \begin{document} \lipsum[1] \AddThispageHook{\color{red}} \lipsum[2-8] \end{document} ...


2

KOMA-Script class I guess you are using a twosided KOMA-Script class. If that is true do not load the package scrextend. Instead use one the class option cleardoublepage=<page style>. Example: \documentclass[ cleardoublepage=plain ]{scrbook} \usepackage[automark,headsepline=1pt]{scrlayer-scrpage} \setkomafont{pagehead}{\normalfont\sffamily} ...


2

If the only issue is that of blank pages, then you could redefine prepend some code to \chapter to achieve this (first suggested solution): %\documentclass[twoside,open=right]{scrbook} \documentclass[oneside]{scrbook} \usepackage{blindtext} \let\oldchapter\chapter \renewcommand{\chapter}{% \clearpage% Move to next page \ifodd\value{page}\else% If this ...


2

Since KOMA-Script version 3.17 (current version on CTAN) you have to redefine the commands \sectionformat, \subsectionformat etc. instead \othersectionlevelsformat. \documentclass{scrartcl}[2015/04/23] \renewcommand\sectionformat{\makebox[0pt][r]{\thesection\autodot\enskip}} \renewcommand\subsectionformat{\makebox[0pt][r]{\thesubsection\autodot\enskip}} ...


2

Since floating is discouraged anyway ... % DOCUMENT TYPE \documentclass[a4paper]{book} \usepackage[english]{babel} \usepackage[margin=10pt,font=footnotesize,labelfont=bf]{caption} \usepackage{lipsum} \usepackage{fancyhdr} \usepackage{graphicx} \usepackage{pgffor} \usepackage{afterpage} \usepackage{xifthen} \usepackage[top=1in, bottom=1in, left=1in, ...


1

This uses the \SuspendCounters feature of (my) package assoccnt, which prevents specific counters to be increased until \ResumeSuspendedCounters is used. I additionally 'killed' the page number formatting to prevent the page numbers to appear. \documentclass[twoside]{book} \usepackage[globalsuspend=true]{assoccnt} \usepackage{blindtext} \begin{document} ...


1

The easiest way is to use the notitlepage option \documentclass[a4paper, twoside, 14pt,notitlepage]{extreport} \title{Page resetting title} \author{J Smith} \begin{document} \pagenumbering{arabic} first page \newpage second page \newpage third page \maketitle \newpage fifth page \newpage sixth page \end{document}


1

The only thing I can think of is to patch the definition of the titlepage environment: \documentclass[a4paper, twoside, 14pt]{extreport} \usepackage{etoolbox} \makeatletter \patchcmd{\titlepage} {\setcounter{page}\@ne} {} {}{} % Also: \patchcmd{\endtitlepage} {\if@twoside\else\setcounter{page}\@ne\fi} {} {}{} \makeatother ...


1

With a KOMA-Script class you could set twoside=semi and use scrlayer-scrpage to change the header and footer to oneside-layout. \documentclass[twoside=semi,open=right]{scrbook} \usepackage[automark]{scrlayer-scrpage} \clearpairofpagestyles \chead{\leftmark} \cfoot{\pagemark} \usepackage{blindtext} \begin{document} \blinddocument \Blindtext \blinddocument ...


1

(My previous answer was probably wrong, so I deleted it and am giving this one, which is better.) Andrew Swann is absolutely right that we need a minimal working example; but let's see one way you could get this done. Assuming you're using the article class, and your page number is centered in the footer: \documentclass{article} \usepackage{fancyhdr} ...


1

As mentioned by Heiko, just use the hyperref package. Example: \documentclass{report} \usepackage[pdfpagelabels,hyperindex,hyperfigures]{hyperref} \begin{document} Hola. This is my cover page \pdfbookmark[0]{Cover}{initialpage} \end{document} Output:


1

There is a cheap answer in the standard LaTeX document classes: When there are no other floats (figures or tables) around, you can use a float to achieve what you want: 1) At begin of the next page: \begin{figure}[t] \C \end{figure} 2) At end of the current page (i.e. before pagebreak) \begin{figure}[b] \C \end{figure} When you have to deal with ...


1

You can use Enrico’s answer in the other question, provided you define a macro that outputs the Bengali numerals, as in the code below: \documentclass{article} \makeatletter \def\bengalidigits#1{\expandafter\@bengali@digits #1@} \def\@bengali@digits#1{% \ifx @#1 \else ...


1

Just set \pagestyle{empty} in the title page part using \cleardoublepage after \end{titlepage}. Use \pagenumbering{alph} in order to keep hyperref happy, in case you end up using it. After the last title page, switch to \pagenumbering{roman} for the abstract, then to \pagenumbering{arabic} for the main text. \documentclass[12pt,a4paper,twoside]{report} ...


1

I managed to get this done by renewing the \chapter command which increments two counters. One counter for the current ChapterIndex and another for the NextChapterIndex. Every chapter creates a \label with the key ch:\theChapterIndex which can then be referenced when the head or foot is rendered. The chapter relative page number can be calculated using the ...



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