# Tag Info

11

I replaced the original answer to combine dice and pre-generated headers. First is the main file: \documentclass{article} \usepackage{fancyhdr} \usepackage{tikz} \input{dice}% file containing shape definitions \pagestyle{fancy} \chead{\csname dice\Roman{page}\endcsname} %%%%%%%%%%%%%%%%%%%%%%%%% dice macros %%%%%%%%%%%%%%%%%%%%%%%%%%% \newcounter{dice} ...

8

You can use the background package to put things on every page, the rest is done by TikZ: Code \documentclass{scrartcl} \usepackage[margin=25mm]{geometry} \usepackage{background} \usepackage{lipsum} \usetikzlibrary{calc,shapes.geometric} \backgroundsetup% { contents=% { \begin{tikzpicture} [ overlay, remember picture, ...

5

I leave my original answer. Some possible changes according to the edit in the question are listed below. A little piece to cover all the details of the question is still missing and explained in the last section. Original answer I tried to find a solution within the following design principles: No changes in the files include.tex, deck_1.tex, ...

5

The problem is that first pages of chapters and similar ones (ToC, etc.) use the plain style even when you redefine the global style. In KOMA-script classes this behavior can be changed modifying the meaning of \chapterpagestyle to be pgnumbottomcenter, i.e. \renewcommand{\chapterpagestyle}{pgnumbottomcenter} MWE \documentclass[ twoside, ...

3

After \pagestyle{fancy} it's usually better to say \fancyhf{} that clears all the six fields, so that you can decide what to put in each one. If you don't specify \fancyfoot, nothing will go in the footer. \documentclass{article} \usepackage{lipsum,fancyhdr} \pagestyle{fancy} \fancyhf{} \fancyhead[L]{My name} \fancyhead[R]{My affiliation} \begin{document} ...

3

there are two problems here: omit the page number from the title page. this can be done by adding \thispagestyle{empty} after \maketitle. change the page number after the pdf-page (which is now 2) to 3. this can be done by inserting \stepcounter{page} after the \clearpage.

3

You potentially can use the combine package, but it may take work. The default for the combine package is for all the individual documents to be of the same class and for that class to be supported (article, memoir, book, report, and letter). The documentation says that with some limitations and work you can get it to work for other cases. Despite your ...

2

Sorry to add my late answer but this can be done without the use of any package, just by adding at the end a label \label{LastPage}. The total number of page being a \pageref{LastPage}. Hey, but this doesn't work with complex page numbering ??!! Well, that's not true : One has to put the label at the end of the part where total page number is required. To ...

2

As proposed by the question-opener in the comments to my first answer, here a different approach: Change section to subsection and include the different decks a sections. No changes in deck_n.tex. Replace \section by \subsection in deck_n_slides.tex. To specify the appearance of the "Deck TOC" use the options for for \tableofcontents. (e.g. use ...

2

While my preferred style is to use C for calculations and LaTeX for typesetting, there is enough general interest in random numbers that I decided to make my own LaTeX PRNG (pseudo random number generator). \documentclass{article} \usepackage{fancyhdr} \usepackage{tikz} \input{random}% file containig PRNG \input{dice}% file containing shape definitions ...

2

2

The problem is that the title is too long in that particular chapter, so the whole title page block gets moved to the next page, which is numbered. You can change your chapter macro so that the title is set in a box of a fixed height: write \parbox[t][height]... and include some \vspace at the end that can stretch or shrink: \documentclass[10pt]{book} ...

2

In a twosided document, you need to tell LaTeX not only to clear a single page (\clearpage), but to clear a double page if necessary (\cleardoublepage). \documentclass{article} \usepackage[twoside, bindingoffset=5mm]{geometry} \usepackage{lipsum} \usepackage{showframe} \begin{document} \pagenumbering{gobble} \lipsum[1-4] \cleardoublepage ...

1

You can define \pagenumberingnoreset: \makeatletter \newcommand\pagenumberingnoreset[1]{\gdef\thepage{\csname @#1\endcsname\c@page}} \makeatother However, as I said in the comments, this is strongly against typographical principles, which is (one of) the reasons why it doesn't exist in LaTeX. The definition above is based on the original definition of ...

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