Skip to content

Instantly share code, notes, and snippets.

@kasnder
Last active May 6, 2022 22:59
Show Gist options
  • Save kasnder/e03d7f0fb828be371a2d1237ad60f4cd to your computer and use it in GitHub Desktop.
Save kasnder/e03d7f0fb828be371a2d1237ad60f4cd to your computer and use it in GitHub Desktop.
Responsive figures for ACM TAPS submission. UPDATE: While this script theoretically works, the TAPS system is actually not compatible with it (despite it being legitimate Latex code).
%insert before \begin{document}
\usepackage{wrapfig}
\makeatletter%
\newenvironment{responsivefig}[2]{%
\if@twocolumn%
\begin{figure}%
\else%
\wrapfigure{#1}{#2}%
\fi%
}{%
\if@twocolumn%
\end{figure}%
\else%
\endwrapfigure%
\fi%
}%
\makeatother
@kasnder
Copy link
Author

kasnder commented May 6, 2022

UPDATE: While this script theoretically works, the TAPS system is actually not compatible with it (despite it being legitimate Latex code).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment