Re: Layout worked with documentstyle not with documentclass
- From: real-address-in-sig@xxxxxxxxxxxxxxx (Rowland McDonnell)
- Date: Sat, 31 May 2008 18:33:45 +0100
Heiko Oberdiek <oberdiek@xxxxxxxxxxxxxxx> wrote:
real-address-in-sig@xxxxxxxxxxxxxxx (Rowland McDonnell) wrote:
Ulrike Fischer <news2@xxxxxxxxxxx> wrote:
Btw: Don't use \usepackage[pdftex]{graphicx}.
What is wrong with doing it that way?
Nothing or all, depending on your intention or matter of taste,
see below.
Righto.
I've been told it's wrong before, but I can't see why.
In miktex a simple
\usepackage{graphicx} works fine with dvips, pdflatex and xetex.
in MacTeX, it does not.
If it doesn't work with pdflatex or xetex, then install a more
intelligent graphics.cfg.
Aha!
Tracked it down - thanks for the tip.
graphics.sty has become more advanced since I first started using it in
the OzTeX/dvips days. I had a graphics.cfg file that did what I needed
with that setup - still installed in what is now my local texmf tree.
Oops.
I got that out of the way, and guess what? All of a sudden it works as
people here say it should.
I feel rather silly now.
The configuration file from MikTeX or
TeX Live tests for pdfTeX and XeTeX and sets the appropriate
driver option.
Also many packages are nowadays able to detect pdfTeX
and XeTeX (ifpdf.sty, ifxetex.sty may help). It's a pity that
the detection for graphics and color must be done in a
configuration file.
The graphics.cfg file was not meant to do a detection job originally as
far as I'm aware, because detection wasn't possible.
If you specify the driver option `pdftex' then you explicitly
say in most cases something like: the TeX file is intended for
pdfTeX only".
Well, yes - that is the general idea. I don't see any problem there.
The situation is more complicate for DVI drivers. The driver program
cannot be detected at TeX macro level. Therefore the driver must
be specified. However often `dvips' is the default.
That's exactly what my graphics.cfg file was set to give me - with a
commented out set of variants if I should want them. Very old bodging
from me.
It's a pity that there isn't a common DVI special standard forI think one problem is that because so many people go straight to pdf,
most of the features. Then in theory the DVI driver programs
only needs to implement one special set and a DVI file
could be processed by different DVI driver programs.
interest in dvi has largely been lost.
FWIW, I've no idea how to view a dvi file directly using MacTeX - the
nearest one gets is having some sort of auto-conversion to pdf.
Rowland.
--
Remove the animal for email address: rowland.mcdonnell@xxxxxxxxxxxxxxx
Sorry - the spam got to me
http://www.mag-uk.org http://www.bmf.co.uk
UK biker? Join MAG and the BMF and stop the Eurocrats banning biking
.
- References:
- Layout worked with documentstyle not with documentclass
- From: themind
- Re: Layout worked with documentstyle not with documentclass
- From: Rowland McDonnell
- Re: Layout worked with documentstyle not with documentclass
- From: themind
- Re: Layout worked with documentstyle not with documentclass
- From: themind
- Re: Layout worked with documentstyle not with documentclass
- From: Ulrike Fischer
- Re: Layout worked with documentstyle not with documentclass
- From: themind
- Re: Layout worked with documentstyle not with documentclass
- From: Ulrike Fischer
- Re: Layout worked with documentstyle not with documentclass
- From: Rowland McDonnell
- Re: Layout worked with documentstyle not with documentclass
- From: Heiko Oberdiek
- Layout worked with documentstyle not with documentclass
- Prev by Date: Re: Layout worked with documentstyle not with documentclass
- Next by Date: Re: MacTeX 2007 and documentation
- Previous by thread: Re: Layout worked with documentstyle not with documentclass
- Next by thread: Re: Layout worked with documentstyle not with documentclass
- Index(es):