New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
\pdftex_if_engine:TF giving wrong result after 20110628 l3kernel update #32
Comments
That is the expected behaviour. This is a test for the engine in use, not the output mode. Thus the test is true for pdfTeX and false for XeTeX and LuaTeX, but says nothing about the output. It is intended for dealing with cases where the different engines require different code (for example, in the |
But yesterday the result was still different. Will I have to go back to package `ifpdf' ? |
BTW, to test for the other engines mentioned, we could use the dedicated booleans defined in l3, couldn't we? |
The definition has been tightened up, so the behaviour now is as-documented: the engine and the output are not the same thing. On the ways to test, you can also use the booleans, as you say. |
Ok. I will (temporarily) revert to ifpdf. Do you intend to provide an output testing boolean to replace ifpdf anytime soon? This would be great. |
We can certainly look at this. I need to think of an appropriate name (I guess |
We already use mode for |
I've argued (unsuccessfully) for |
I hadn't considered what we should be calling By the way, just to explain the justification against |
To avoid prefix proliferation, I'd prefer a common prefix for all those constants/almost constants which have to do with the general framework in which the document is typeset. Something like Otherwise, we could have something like |
I'm going to close here and open a new issue for the PDF output question. |
\pdftex_if_engine:TF always enters the true branch.
Test file:
\documentclass{article}
\usepackage{expl3}
\begin{document}
\ExplSyntaxOn
\pdftex_if_engine:TF{
\typeout{+++
PDFMODE~+++}}{
\typeout{+++
DVIMODE~+++}}
\ExplSyntaxOff
\end{document}
The text was updated successfully, but these errors were encountered: