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?

\catcode`\ =9? – Henri Menke May 25 '16 at 11:43