XeTeX inserting unwanted left padding/gutter into document

Reinhard Kotucha reinhard.kotucha at web.de
Fri Dec 4 01:37:03 CET 2020


On 2020-12-04 at 00:00:20 +0000, Siddharth Jain wrote:

 > Hello,
 >
 > I have a document like this:
 >
 > \documentclass[12pt]{article}
 > \usepackage[paperheight=9.50in,paperwidth=16.20in,margin=0in]{geometry}
 > \usepackage[dvipsnames,prologue,table]{pstricks}
 >
 > \begin{document}
 > \pagestyle{empty}
 >
 > \psset{unit=1in}
 > \begin{pspicture}(16.20in,9.50in)
 >
 > \psframe[fillstyle=solid,fillcolor=Black](0,0)(16.20in,9.50in)
 >
 > \end{pspicture}
 > \end{document}
 >
 > When this document is processed by xelatex I notice an unwanted
 > padding/margin/white gutter on the left side as shown in image
 > below:


Hi Sid,
you also get the message

  Overfull \hbox (17.62482pt too wide) in paragraph at lines 13--14

17.62482pt is the value of \parindent which controls indentation of
the first line of each paragraph.

The pspicture environment is actually the first line of a new
paragraph and therefore indented by the value of \parindent.

The solution is

  \noindent\begin{pspicture}(16.20in,9.50in)

Regards,
  Reinhard

--
------------------------------------------------------------------
Reinhard Kotucha                            Phone: +49-511-3373112
Marschnerstr. 25
D-30167 Hannover                    mailto:reinhard.kotucha at web.de
------------------------------------------------------------------



More information about the texhax mailing list.