New answers tagged

0

Although I am not quite satisfied myself with this “hacky” solution, you could achive such behavior by conditionally changing the page break penalties of lists: If the song starts on an odd page, page breaks between enumerate environments would be disallowed, but allowed on even pages. However, this requires that (a) no song (on an odd page) would be larger ...


1

You can use beginpenalty: \documentclass{article} \usepackage{enumitem} \usepackage{blindtext} \newenvironment{examples} {% \par\medskip\noindent \textbf{Examples} % HEADLINE \begin{enumerate}[leftmargin=4em,label={\alph*)},labelsep=4em,beginpenalty=10000] \setlength{\itemsep}{1em} \setlength{\parskip}{0.5em} ...


0

What's about \leavevmode\thispagestyle{empty}\newpage ?


0

The following gives the expected result, use \thispagestle{plain} to get a pagenumber. Stolen from How to make intentionally left blank pages? \makeatletter \def\cleardoublepage{\clearpage\if@twoside% \ifodd\c@page\else \vspace*{\fill} \hfill \begin{center} This page intentionally left blank. \end{center} \vspace{\fill} ...


1

Possibly the simplest fix here is to add \looseness=-1 as in: \begin{figure}[p] \includegraphics[width=\textwidth,height=\textheight,keepaspectratio]{imagenotfound.jpg} \end{figure} \looseness=-1 Consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam ...


1

Set the entire document inside flowframes: \documentclass{article} \pagestyle{empty} \usepackage[paper=a4paper]{geometry} \usepackage{flowfram,lipsum} % \newflowframe[<page list>]{<width>}{<height>}{<x>}{<y>}[<label>] \newflowframe{10cm}{8cm}{4cm}{16cm}% Top of page \newflowframe{10cm}{8cm}{4cm}{7.5cm}% Middle of ...


3

I think you just want to create logical pages of size 10x8 and put them 3on1 a4 page using pgfpages: \documentclass{article} \usepackage[ paperwidth=10cm, paperheight=8cm, margin=2pt, ]{geometry} \pagestyle{empty} \usepackage[small,compact,bf,sf]{titlesec} \usepackage{blindtext} \usepackage{pgfpages,tikz} \pgfpagesdeclarelayout{10x8 on ...


2

Since there's an overflow from one palm card to the next, you can do this in a two-stage process: Create the document palm_cards.pdf with a geometry of 10cm x 8cm; Merge palm_cards.pdf into a separate A4 page document using pdfpages. Here would be what we do for (1) above: \documentclass{article} \pagestyle{empty} ...


3

Speaking of scaling an image to fit the remaining page... (Needs to run twice.) \documentclass{article} \usepackage{mwe} \usepackage{lipsum} \usepackage{tikzpagenodes} \usepackage{showframe} \newlength{\maxheight} \newcommand{\maxgraphics}[1]% #1 = filename {\settoheight{\maxheight}{\includegraphics[width=\columnwidth]{#1}}% \tikz[remember picture]{% ...


2

Here is a way to achieve what you want... Use \addtocounter{algocf}{-1} to reduce the Algorithm counter before setting a countinued algorithm. Use \strut as part of the caption to ensure that they present at a similar height if you want to avoid a "jumping" effect when skipping between pages. Mark the end of an algorithm with a \label that you can use to ...


4

Users of ConTeXt can use a combination of the \page and \dorecurse commands to insert a certain number of empty pages. When the page should be empty without headers and footers the empty keyword can be used as argument for the \page command. \starttext \dorecurse{10}{\page[empty]} \stoptext When the empty pages should contain the header and footer texts ...


6

With xparse we can use \prg_replicate:nn \documentclass{article} \usepackage{xparse} \ExplSyntaxOn \NewDocumentCommand{\blankpages}{O{}m} { \clearpage \prg_replicate:nn { #2 } { #1 \mbox{} \clearpage } } \ExplSyntaxOff \begin{document} % ten blank pages with page number \blankpages{10} % four really blank pages ...


6

Here another possibility using a recusrion: \documentclass{article} \usepackage{lipsum} \makeatletter \newcommand\blankpage[1][1]{% \ifnum#1<0\else \@tempcnta#1 \@tempcntb\z@ \bl@nkpage \fi } \newcommand\bl@nkpage{% \bl@nkp@ge \advance\@tempcntb\@ne \ifnum\@tempcntb<\@tempcnta \bl@nkpage \fi } ...


6

I don't know any, but this should work: \newcount\ipp \ipp=0 \newcount\numberOfPages \numberOfPages=10 % or else; never 0!!! \loop \newpage \mbox{} \advance\ipp by1 \ifnum\ipp<\numberOfPages\repeat If you package it into a newcommand, it looks like this: \newcommand{\fillInPages}[1]{ \newcount\ipp \ipp=0 \newcount\numberOfPages \numberOfPages=#1 ...



Top 50 recent answers are included