Tag Info

Hot answers tagged

21

Below I present two options: \documentclass{beamer} \usepackage{tikz} \definecolor{color1}{RGB}{173,216,230} \definecolor{color2}{RGB}{255,140,0} \newcounter{totavalue} \def\aux{1} \def\radius{20pt} \newcommand\circcounteri{% \ifnum\inserttotalframenumber<2\relax \else \setcounter{totavalue}{\inserttotalframenumber}% \fi% ...


13

Basically, this answer is just a minor revision from my previous one Visual counter for LaTeX? and I will present a few version, all customizable through a user-friendly key-value interface. From the original solution, a few changes should be performed: removed beamer useless option; set radius and thickness options to the same value to get sectors; set a ...


8

The \pagebreak command works differently when given inside a paragraph or when between paragraphs (that is, with a blank line before it). In your case, the second \pagebreak belongs to the paragraph having the text Want this to be page ii, but it appears as 1 instead and it will have effect only after the paragraph has been broken into lines, which ...


6

You can patch \titlepage to change the default empty page style used there to plain: \documentclass{report} \usepackage{etoolbox} \patchcmd{\titlepage} {\thispagestyle{empty}} {\thispagestyle{plain}} {} {} \begin{document} \author{test} \title{mytitle} \maketitle \end{document} Without the patching, you can redefine the environment as defined in ...


6

KOMA-Script uses page style empty for pages generated by \cleardoublepage since version 3.00 (see documentation, section "3.13. Interleaf Pages"). This can be changed by option cleardoublepage: \KOMAoptions{cleardoublepage=plain} Example: \documentclass[twoside,openright]{scrreprt} \KOMAoptions{cleardoublepage=plain} \begin{document} \tableofcontents ...


4

Since there is no example to work on here, this answer involves some guesswork, and is indebted to the suggestion from @cfr in the comments. I've included some comments in the code to explain it a bit. The crucial (and rather clever) idea given by @cfr is to turn on a special page style for the abstract, but suppress it on the first page only. ...


4

To expand on samcarter's comment, this is how such a counter can be displayed using the visualcounter module in ConTeXt. (Full disclosure: I am author of visual counter module). First, we need to define a Metapost graphic that draws the appropriate shapes. See the documentation for what the predefined parameters mean: \usemodule[visualcounter] \unprotect ...


4

You can put all things inside a tikzpicture without using \chapter*{..} \documentclass[12pt,oneside]{book} \usepackage{background} \usepackage{lipsum} \usetikzlibrary{calc} \backgroundsetup{ angle=0, scale=1, opacity=1, color=black, contents={% \begin{tikzpicture}[remember picture, overlay] \node[anchor=center,inner sep=0pt] at ($(current page.north west) + ...


3

Checking for page numbering can also be done using a \label-\ref approach. Below I use the expandable \getpagerefnumber from refcount to condition on the page number: \documentclass{article} \usepackage{refcount}% http://ctan.org/pkg/refcount \newcounter{oddpagecheck} \makeatletter \newcommand{\ifoddpage}{% \ifoddpage{<odd>}{<even>} ...


3

You can only control, the page contents and show the number of pages there: Example with zref-abspage: \documentclass{book} \usepackage{zref-abspage} \makeatletter \AtBeginDocument{% \newcommand*{\mainpages}{}% \edef\mainpages{% \zref@ifrefundefined{afterlastmain}{??}{% \the\numexpr\zref@extractdefault{afterlastmain}{abspage}{1}-1\relax ...


3

The titlepage environment in the article class resets the page number to 1 both at the beginning and at the end; when the titlepage option is specified, abstract uses the titlepage environment internally. Since you want continuous numbering, the remedy is to redefine titlepage in order to remove the page number resetting. ...


2

I have started hacking the \thispagestyle and \setcounter commands, but it wasn't a good idea, please try \addtocounter{page}{2}, I enclose an example. \documentclass[12pt,titlepage]{article} \usepackage{setspace} \begin{document} % Beginning of hack... %\let\oldthispagestyle=\thispagestyle % If we want to see a page number. %\def\thispagestyle#1{} % If we ...


2

\pagestyle{plain} puts the page number centered in the footer. This is usually the page style for the first page of a chapter (or table of contents). The standard classes are using the page style plain as default. In your case there is probably another page style active (explicitly set or implicitly by the class). If the whole document should use page style ...


2

this may or may not work, but it's too complicated for a comment. hepthesis.cls loads scrbook.cls. scrbook.cls defines \mainmatter thus: \newcommand*\mainmatter{% \if@twoside\cleardoubleoddpage\else\clearpage\fi \@mainmattertrue\pagenumbering{arabic}% } hepthesis.cls does some fancy tinkering with \mainmatter: %% Environment for the thesis main ...


1

The linking via page numbers will not work properly, if hypertexnames is disabled. Therefore it should not set to false. The following example works for me: \documentclass{article} \usepackage[ pagebackref, hypertexnames, % default is true since a long time colorlinks, ]{hyperref} \renewcommand*{\backref}[1]{% \ifx\relax#1\empty \else (page ...


1

If you set the pagestyle to empty for just that page, then you can add the page number into the figure using \thepage. \documentclass{scrreprt} \usepackage[demo]{graphicx} \begin{document} \thispagestyle{empty} \begin{figure} \centering \includegraphics[height=24cm]{name}\\ \thepage \end{figure} \pagebreak \begin{figure} \centering ...



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