Hot answers tagged

3

Your code fragment is fine. You should see figures: If you not, than you have something in document, what you not show us. So you need always to provide MWE (Minimal Working example) which reproduce your problem and not only a code fragment. My testing MWE is: \documentclass[twocolumn]{article} \usepackage{graphicx} \usepackage{subcaption} \begin{document}...


2

Tikz is used to clip and position the image (stored in a savebox) on the page. Don't forget to run it twice. \documentclass{article} \usepackage[a4paper]{geometry} \pagestyle{empty} \usepackage{tikz} \newsavebox{\master} \savebox{\master}{\includegraphics[width=2\paperwidth, height=\paperheight]{example-image}} \begin{document} \begin{tikzpicture}[...


2

if figure and table are in the same float, they will be placed on the same page \documentclass{article} \usepackage{graphicx} \usepackage{caption} \usepackage{rotating} \usepackage{pdflscape} \begin{document} \begin{sidewaystable} \centering \begin{tabular}{cc} a & b \\ a & b \\ \end{tabular} \caption{Caption} \vspace{1cm} \...


2

This is primarily based on how LaTeX processes the optional argument to a float. In essence, it captures the optional argument in a different macro (\@fps, specifically), then attempts to expand that macro by looking at it's \meaning. Then it sequentially processes the characters of the meaning. However, the capturing process uses \def, similar to the ...


1

A common misconception is that a tabular environment needs a table environment around it. This is not true: to TeX, a tabular is just like a big character (a box, in more correct terminology), with its vertical and horizontal sizes and its reference point (that can be influenced by using the [t] or [b] options to \begin{tabular}). The same holds for \...


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