Hot answers tagged

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]{% ...


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} ...


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 ...


2

Since the environment myItem effectively starts with the center environment, anything written after \begin{myItem} deliberately is centered (unless shifted additionally). I suggest to use an (optional) argument for the description text, this way the description text will be given to \item #1 first and then the centering occurs. ...


1

The following myItem environment redefines \includegraphics to place the image centred. As such, you can place content before or after the image and they will be justified as set previously. \documentclass[twoside,openright,12pt]{report} \usepackage{graphicx} \newenvironment{myItem}{% \item% \let\oldincludegraphics\includegraphics ...


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} ...


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 ...



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