0

I would like to remove all spacing around text. Vertical and horizontal. I have solved this problem before but I cannot find the source. I want to read the document on my phone's screen which is small and I need all space there.

Stub start

\documentclass{article}

%%% I need to have these things in the body. 
\usepackage[T1]{fontenc} % for pipe symbol
%% http://tex.stackexchange.com/questions/40748/use-sections-inline
\makeatletter
\renewcommand\section{%
  \@startsection{section}{1}{-1.5em}%
                            {1ex \@plus1ex \@minus.2ex}%
                            {0em}%
                            {\normalfont\normalsize\bfseries}}
\makeatother
\renewcommand{\thesection}{\arabic{section}}
\renewcommand{\thesubsection}{\arabic{subsection}}

\begin{document}

\section{}What is the difference between | this | and | lorem | plaa.

\section{}What is the difference between | this | and | lorem | plaa.

\section{}What is the difference between | this | and | lorem | plaa.

\end{document}

How can you remove all Spacing around text?

lockstep
  • 250,273

1 Answers1

2

An answer to the first version of the question.

Class standalone

\documentclass{standalone}
\begin{document}

lorem ipsum

\end{document}

Full page:

Result

Settings the margins to zero

\usepackage[margin=0pt]{geometry}

Cropping the PDF file

Or the PDF file can be post-processed with pdfcrop to remove the outer margins.

Heiko Oberdiek
  • 271,626
  • @Masi Very unclear. Except for the different font encoding, the body of the document of the question does not use any of the things added to the preamble. – Heiko Oberdiek May 21 '16 at 12:50