1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
|
% polymake LaTeX template for sketch output
% Copyright (c) 1997-2024
% Ewgenij Gawrilow, Michael Joswig, and the polymake team
% Technische Universität Berlin, Germany
% https://polymake.org
\documentclass[12pt]{article}
\usepackage[x11names,rgb]{xcolor}
\usepackage{tikz}
\usepackage{ifthen}
\usepackage{amsmath}
\usetikzlibrary{snakes}
\usetikzlibrary{arrows}
\usetikzlibrary{shapes}
\usetikzlibrary{backgrounds}
\pagestyle{empty}
\usepackage[papersize={640pt, 480pt}, margin=0pt, marginratio=1:1]{geometry}
\newsavebox{\sketchoutput}
\savebox{\sketchoutput}{
%%SKETCH_OUTPUT%%
}
\newlength{\scaledwidth}
\settowidth{\scaledwidth}{\resizebox{!}{400pt}{\usebox{\sketchoutput}}}
\begin{document}
\rlap{\smash{\raisebox{-2.5\baselineskip}{\includegraphics[height=3\baselineskip]{pmlogo.png}} }}%
\vspace*{37.5pt}
\centering
\ifthenelse{\lengthtest{\scaledwidth < 500pt}}{
\resizebox{!}{400pt}{\usebox{\sketchoutput}}
}{
\resizebox{500pt}{!}{\usebox{\sketchoutput}}
}
\end{document}
|