Hot answers tagged

5

A float environment is like \savebox all macros are resolved at the point the environment is met and the content typeset into a box register. LaTeX maintains lists of (numbers of) box registers starting with a "free list", as each float is encountered a box is taken from the free list and filled with typeset the environment contents. At a page break LaTeX ...


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

You have a runaway argument as you are using graphicx syntax [height=...] with the graphics package. You need \usepackage{graphicx} That will fix the runaway argument error but then as other commenters have noted you will need to use " around filenames with spaces, or preferably don't have spaces in filenames.


2

See, if the following solution is close to ones you looking for: To your MWE I add showframe (for see page layout, in real use it should be omitted), options font=small and justification=RaggedRight to package caption (with this the height of images is slightly reduced) and usetwo image environment for hack to obtain desired form of page. Package lipsum ...


1

Yet another option using TikZ: \begin{figure} \centering \begin{tikzpicture} \node[draw] (fig) { \includegraphics[YOUR_SETTINGS_HERE]{figures_PAL} }; \node [anchor=north east,color=darkgray,inner sep=0,xshift=-5pt,yshift=-3pt] at (fig.south east) {\footnotesize Source: YOUR_SOURCE}; \end{tikzpicture} \caption{Simplest ...


1

Based on this answer to another question (suggested by @UlrikeFischer), I hit upon the atbegshi package, which lets you run things when a page is being typeset (in this case, adding the /Rotate 90 command to the PDF page). I originally tried to make do like this (simplified some things that seemed unnecessary from the original answer, as well as changing it ...


1

This combines sidwaysfigure and pdflscape into one environment. Nore: The everypage hook runs after the page is laid out, whereas \afterpage runs before the next page starts. The result appears to be compatible with pdflscape. \documentclass{article} \usepackage{blindtext} \usepackage{graphicx} \usepackage{everypage} \usepackage{afterpage} ...


1

Your image only showed the one frame. Additional frames can be created using \fbox and minipage in exactly the same way as the first one. \documentclass[a4paper,fleqn,12pt]{article} \usepackage[hypcap]{caption} \usepackage{graphicx} \usepackage{subcaption}% bundled with caption \begin{document} %\title{Facing and obstacle} %\maketitle ...



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