[XeTeX] Graphics overwriting text

Wilfred van Rooijen wvanrooijen at yahoo.com
Fri Nov 21 14:15:54 CET 2014


I have a feeling that the JPG image is the source of the problem, and that somehow the calculation of the bounding box (i.e. the calculation of the size of the figure) somehow goes wrong. Apparently, the actual image is larger than what latex expects.
Note the following: LaTeX does not know about figures. LaTeX will open the figure file to determine how much space should be reserved for the figure. LaTeX then leaves so much space white. When LaTeX finishes, and the PDF conversion software starts to process, then the figure is actually included in the PDF. In the present case, apparently the figure is larger in the PDF file than what LaTeX expects.
I think you should inspect the JPG file with some reasonable graphics software like GIMP and correct the settings (bounding box and/or resolution)
Wilfred

 

     On Friday, November 21, 2014 7:12 PM, Johann Spies <johann.spies at alterit.co.za> wrote:
   
 

 I cannot rememember whether I ever had a problem like this.  Today,
xelatex seems to ignore settings like [width=0.8\linewidth] when I use
includegraphics. I had to scale it down to [width=0.25\linewidth] today
to get a a picture in my text which which I could work.

Another problem showed up: the image lies over some text.  In the past
LateX / XeLaTeX respected the boundaries and that did not happen. The
following code cased the output in the attachment:
--------------------------
\item  ``It must be help which is quite uncalculating.  Those who
  helped did not think that they were helping Christ, and thus piling
  up eternal merit; they helped because the could not stop themselves
  helping'' \cite[359]{barclay_gospel_1968}.

\end{itemize}

\includegraphics[scale=0.1]{DSC_3936.JPG}
  
--------------------------------

What is going on here?

Regards
Johann
-- 
J.H. Spies - Tel. 021-982 2694 / 082 782 0336 / 021-808 4599(w)  
            Posbus 4668, Tygervallei 7536

    "A new commandment I give unto you; That ye love one 
      another. As I have loved you, so ye also must love one
      another.  By this shall all men know that ye are my 
      disciples, if ye have love one to another."    
                        John 13:34,35 



--------------------------------------------------
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


 
   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/xetex/attachments/20141121/f4f682ab/attachment.html>


More information about the XeTeX mailing list