Graphics, Figures & TablesWeird Error

Information and discussion about graphics, figures & tables in LaTeX documents.
ghostanime2001
Posts: 402
Joined: Fri May 20, 2011 9:41 am

Re: Weird Error

Post by ghostanime2001 »

So to run pstricks graphics I have to use auto-pst-pdf package and run as (meaning the compiler) pdfLatex?

Btw I guess computer didn't explode :) You must have a 10 year old computer then :P

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Weird Error

Post by Stefan Kottwitz »

ghostanime2001 wrote:So to run pstricks graphics I have to use auto-pst-pdf package and run as (meaning the compiler) pdfLatex?
- That's one way, if you would like to use pdfLaTeX
- or use LaTeX in DVI mode to produce DVI, convert to PS via dvips and to PDF via ps2pdf,
- or simply use XeLaTeX, this often works too with PS-Tricks.

Stefan
LaTeX.org admin
ghostanime2001
Posts: 402
Joined: Fri May 20, 2011 9:41 am

Re: Weird Error

Post by ghostanime2001 »

XeTeX works fine now and so does pdflatex. One thing of concern with pdflatex is that If i have a document with text and graphics and I run it with pdflatex some letters appear to be offset more than others in words. For example "Wed, April 7th, 2010". If I use XeTeX the letter spacing is minimal and appears to be okay.

I don't know why but earlier today I uninstalled miktex, all of it! and then i re-installed again and then xelatex worked perfectly even without --escape-write18 command line in TeXworks. But I needed that command line to run pdflatex so that's why i included that in my texworks anyway.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Weird Error

Post by Stefan Kottwitz »

ghostanime2001 wrote:One thing of concern with pdflatex is that If i have a document with text and graphics and I run it with pdflatex some letters appear to be offset more than others in words. For example "Wed, April 7th, 2010". If I use XeTeX the letter spacing is minimal and appears to be okay.
With pdfLaTeX, try

Code: Select all

\usepackage{microtype}
have a look at that justification example with microtype.

Or try this with XeLaTeX:

Code: Select all

\documentclass[a4paper,10pt]{article}
\usepackage[english]{babel}
\usepackage{blindtext}
\begin{document}
\begin{minipage}{3.7cm}
\blindtext
\end{minipage}
\end{document}
I get bad spacing and 10 bad boxes. When I add \usepackage{microtype} and compile with pdfLaTeX, I get better spacing without any bad box warning.

Stefan
LaTeX.org admin
ghostanime2001
Posts: 402
Joined: Fri May 20, 2011 9:41 am

Re: Weird Error

Post by ghostanime2001 »

With xelatex there are no changes with or without microtype package. But compiling with pdflatex there is. Anyways what I have in my document is just a small thing. Few letters are like 2pts seperated from other letters in certain words. Not that having this makes a tremendous difference and loss of readability. I'm just noting down minute differences.
Post Reply