我想删除文本周围的所有空格。垂直和水平。我以前解决过这个问题,但我找不到根源。我想在手机屏幕上阅读文档,手机屏幕很小,我需要那里的所有空间。
存根启动
\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}
如何删除文本周围的所有空格?
答案1
回答第一个版本的问题。
班级standalone
\documentclass{standalone}
\begin{document}
lorem ipsum
\end{document}
完整页面:
将边距设置为零
\usepackage[margin=0pt]{geometry}
裁剪 PDF 文件
或者可以对 PDF 文件进行后期处理以pdfcrop
去除外部边距。