Editors such as "Gummi" show a split-screen with the LaTeX source code on the left, and a preview of the later document on the right. However, having a substantial paper margin makes editing more tedious due to the extra scrolling and the fact that the "Fit Page Width" scaling is not suitable when working with small screens.
For editing documents with a wide variety of document classes, which are often publisher-dependent, it would be nice to have a simple way of removing the page margin to 1 or 2 millimeters.
Is there some package for LaTeX that can read the current page layout settings and modify them accordingly, so that the publisher's layout stays the same? Of course, this could be done by defining the page geometry by hand, but this is relatively tedious as it would have to be done for every style file separately. In principle, shouldn't it be possible to have a package doing that for the user when being included?
Surely, the effect can be obtianed using "pdfcrop" or similar tools, but that slows down live preview considerably, not mentioning that some editors (such as "Gummi") do not support customizing the build command.
Edit: Here is an example for which tohecz's easy-to-use solution unfortunately does not work due to a "Package geometry Error: \paperheight (0.0pt) too short.":
\documentclass{sig-alternate}
\usepackage[paperwidth=\dimexpr\the\textwidth+2em\relax, hmargin=1em]{geometry}
\begin{document}
Hello World
\end{document}
Without the second line, the TeX code compiles file. The class file can be downloaded from http://acm.org/sigs/publications/sig-alternate.cls
\addtolength{\hoffset}{-110pt}