XeTeX inserting unwanted left padding/gutter into document

Siddharth Jain siddjain at live.com
Fri Dec 4 01:41:31 CET 2020


Thanks Reinhard. This worked like a charm! I am no expert in latex.

________________________________
From: Reinhard Kotucha <reinhard.kotucha at web.de>
Sent: Thursday, December 3, 2020 4:37 PM
To: Siddharth Jain <siddjain at live.com>
Cc: texhax at tug.org <texhax at tug.org>
Subject: Re: XeTeX inserting unwanted left padding/gutter into document

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
------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/texhax/attachments/20201204/26b55ceb/attachment.html>


More information about the texhax mailing list.