[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#792616: marked as done (\ifpdf returning false with xelatex, even when creating PDF)



Your message dated Fri, 17 Jul 2015 07:51:04 +0900
with message-id <20150716225104.GQ9806@auth.logic.tuwien.ac.at>
and subject line Re: Bug#792616: \ifpdf returning false with xelatex, even when creating PDF
has caused the Debian Bug report #792616,
regarding \ifpdf returning false with xelatex, even when creating PDF
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
792616: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=792616
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: texlive-latex-base
Version: 2012.20120611-5

I'm not quite sure which package to report this against, so I start with
the one providing ifpdf.sty.

I am trying to use https://github.com/aginiewicz/createspace.git with
dblatex, and ran into a problem when using xetex as the dblatex backend.
The build fail with "Package createspace Error: no PDF supported engine
detected".  I've tracked this down to the fact that \ifpdf return false
with xelatex, even if it is generating a PDF.  The following test
document demonstrate the problem:

  \documentclass{article}
  \usepackage{ifpdf}
  \begin{document}
  \ifpdf
  Using PDF
  \else
  Not using PDF
  \fi
  \end{document}

The PDF output is 'Using PDF' with pdflatex, and 'Not using PDF' with
xelatex.  I expected it to return 'Using PDF' with both.

Is this a bug in the ifpdf.sty implementation or with xetex?

CC to the createspace style author, to make him aware of this bug
report.

-- 
Happy hacking
Petter Reinholdtsen

--- End Message ---
--- Begin Message ---
Hi Petter,

On Thu, 16 Jul 2015, Petter Reinholdtsen wrote:
> The PDF output is 'Using PDF' with pdflatex, and 'Not using PDF' with
> xelatex.  I expected it to return 'Using PDF' with both.

>From the documentation of ifpdf, first sentence:
	This package looks for pdfTeX in pdf mode and implements 
	and sets the switch \ifpdf.
Thus ifpdf behaves absolutely correct.

xetex is not pdftex.

Furthermore, xelatex produces dvi/xdv which is converted to pdf 
automatically to pdf using xdvipdfmx, but that doesn't mean that it is 
in pdf mode.

You should use ifxetex and ifluatex, too.

Good hints are easily found also via google-that-for-me "ifpdf xetex"

Closing this bug

Norbert

------------------------------------------------------------------------
PREINING, Norbert                               http://www.preining.info
JAIST, Japan                                 TeX Live & Debian Developer
GPG: 0x860CDC13   fp: F7D8 A928 26E3 16A1 9FA0  ACF0 6CAC A448 860C DC13
------------------------------------------------------------------------

--- End Message ---

Reply to: